/* ========================================
   名称：子页面样式表
   版本：1.0
   说明：子页面样式表设计与布局，关于我们、联系我们、服务条款、隐私政策等页面
   时间：2026-01-14
   ======================================== */

/* ========== 1. 全局变量 ========== */
:root {
    /* 主色调 */
    --primary-blue: #2563eb;
    --primary-blue-dark: #1e40af;
    --bs-secondary-color: #6b7280;
    
    /* 渐变色 */
    --gradient-blue: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
}

/* 暗黑模式变量 */
[data-bs-theme="dark"] {
    --bs-body-bg: #0f172a;
    --bs-body-color: #e2e8f0;
    --bs-secondary-color: #94a3b8;
    --primary-blue: #3b82f6;
}

/* ========== 2. 基础样式 ========== */
* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ========== 3. 简化导航栏 ========== */
.simple-navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
}

[data-bs-theme="dark"] .simple-navbar {
    background-color: rgba(15, 23, 42, 0.95) !important;
}

/* 品牌Logo */
.simple-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-blue) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* 主题切换按钮 */
.theme-toggle {
    border: none;
    background: none;
    font-size: 1.25rem;
    color: var(--bs-body-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 返回首页按钮 */
.btn-back {
    background: var(--gradient-blue);
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
}

/* ========== 4. 页面容器 ========== */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* ========== 5. 页面头部 ========== */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bs-body-color);
    margin-bottom: 1rem;
}

.page-header .subtitle {
    font-size: 1.1rem;
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .page-header .subtitle {
    color: #94a3b8;
}

/* ========== 6. 内容区域 ========== */
.page-content {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .page-content {
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 内容标题 - 二级标题 */
.page-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.page-content h2:first-child {
    margin-top: 0;
}

/* 内容标题 - 三级标题 */
.page-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--bs-body-color);
}

/* 段落 */
.page-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--bs-body-color);
}

/* 列表 */
.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--bs-body-color);
}

.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: var(--bs-body-color);
}

/* 链接 */
.page-content a {
    color: var(--primary-blue);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* ========== 7. 信息提示框 ========== */
.info-box {
    background: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--primary-blue);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

[data-bs-theme="dark"] .info-box {
    background: rgba(59, 130, 246, 0.1);
}

/* ========== 8. 联系信息卡片 ========== */
.contact-info {
    background: rgba(37, 99, 235, 0.05);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

[data-bs-theme="dark"] .contact-info {
    background: rgba(59, 130, 246, 0.1);
}

.contact-info h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--primary-blue);
}

/* ========== 9. 页脚 ========== */
.simple-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

[data-bs-theme="dark"] .simple-footer {
    background: #0f172a;
}

.simple-footer a {
    color: var(--primary-blue);
    text-decoration: none;
}

.simple-footer a:hover {
    text-decoration: underline;
}

/* ========== 10. 响应式设计 ========== */
@media (max-width: 768px) {
    /* 页面头部移动端适配 */
    .page-header h1 {
        font-size: 2rem;
    }

    /* 内容区域移动端适配 */
    .page-content {
        padding: 1.5rem;
    }

    /* 容器移动端适配 */
    .page-container {
        padding: 2rem 1rem;
    }
}
