/* ============================================
   子页面共享样式 (about / privacy / terms)
   与首页同一套视觉系统:明快品牌青绿 #0D9488
   ============================================ */

:root {
    --ink: #0A3530;
    --ink-line: rgba(255, 255, 255, 0.1);
    --ink-text: #E8F1EF;
    --ink-text-2: rgba(232, 241, 239, 0.62);

    --paper: #F6F9F8;
    --line: #E3EAE8;
    --text: #0E1B19;
    --text-2: #5A6B68;

    --teal: #0D9488;
    --teal-deep: #0F766E;
    --teal-bright: #14B8A6;
    --teal-mint: #2DD4BF;
    --teal-tint: rgba(13, 148, 136, 0.08);
    --teal-glow: rgba(13, 148, 136, 0.3);

    --font-display: 'Space Grotesk', 'Noto Sans SC', -apple-system, sans-serif;
    --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--paper);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 导航栏(白色玻璃) ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: var(--line);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 9px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-2);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--teal);
}

.btn-nav {
    background: var(--teal);
    color: #FFFFFF !important;
    padding: 9px 22px;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.25s ease;
}

.btn-nav:hover {
    background: var(--teal-deep);
    transform: translateY(-1px);
}

/* ---------- 页面头部(明亮青绿) ---------- */
.page-header {
    position: relative;
    padding-top: 170px;
    padding-bottom: 80px;
    background: linear-gradient(180deg, #EAF6F2 0%, #F6FBF9 70%, var(--paper) 100%);
    color: var(--text);
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(13, 148, 136, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 30%, transparent 75%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 480px;
    background: radial-gradient(ellipse, rgba(20, 184, 166, 0.16) 0%, transparent 65%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

.page-header .subtitle {
    font-size: 16px;
    color: var(--text-2);
}

.page-header .update-time {
    margin-top: 18px;
    font-size: 13px;
    color: #93A5A1;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

/* ---------- 法律文档主体 ---------- */
.legal-content {
    padding: 70px 0 110px;
}

.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 52px 60px;
    box-shadow: 0 4px 24px -8px rgba(14, 27, 25, 0.08);
    border: 1px solid var(--line);
}

.legal-wrapper h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-top: 44px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(13, 148, 136, 0.18);
}

.legal-wrapper h2:first-child {
    margin-top: 0;
}

.legal-wrapper h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-wrapper h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2A3B38;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-wrapper p {
    color: #43524F;
    margin-bottom: 14px;
    line-height: 1.85;
}

.legal-wrapper ul,
.legal-wrapper ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-wrapper ul li,
.legal-wrapper ol li {
    color: #43524F;
    margin-bottom: 8px;
    line-height: 1.75;
}

.legal-wrapper a {
    color: var(--teal);
    text-decoration: none;
}

.legal-wrapper a:hover {
    text-decoration: underline;
}

.legal-wrapper strong {
    color: var(--text);
    font-weight: 600;
}

.legal-wrapper .notice-box {
    background: var(--teal-tint);
    border-left: 4px solid var(--teal);
    padding: 16px 20px;
    border-radius: 0 10px 10px 0;
    margin: 20px 0;
}

.legal-wrapper .notice-box p {
    margin-bottom: 0;
    color: var(--teal-deep);
}

/* 算法备案公示页专用 */
.legal-wrapper .algo-meta {
    font-size: 13.5px;
    color: #93A5A1;
    font-family: var(--font-display);
    letter-spacing: 0.03em;
}

.legal-wrapper .algo-pending {
    color: var(--teal-deep);
    font-weight: 600;
    background: var(--teal-tint);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 14px;
}

/* 表格 */
.legal-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.legal-wrapper th,
.legal-wrapper td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.legal-wrapper th {
    background: var(--paper);
    font-weight: 600;
    color: #2A3B38;
}

.legal-wrapper td {
    color: #43524F;
}

/* ---------- 关于我们页面 ---------- */
.about-section {
    padding: 90px 0;
}

.about-section:nth-child(even) {
    background: #FFFFFF;
}

.about-section:nth-child(odd) {
    background: var(--paper);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-grid.reverse {
    direction: rtl;
}

.about-grid.reverse > * {
    direction: ltr;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 20px;
}

.about-text p {
    color: #43524F;
    line-height: 1.85;
    margin-bottom: 16px;
}

.about-text p strong,
.about-info-list li strong {
    color: var(--text);
}

.about-info-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.about-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    color: #43524F;
    line-height: 1.7;
}

.about-info-list li svg {
    width: 20px;
    height: 20px;
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 4px;
}

.about-info-list li strong {
    font-weight: 600;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.contact-card {
    background: #FFFFFF;
    padding: 34px 28px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid var(--line);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -16px rgba(14, 27, 25, 0.15);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background: var(--teal-tint);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--teal);
}

.contact-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.7;
}

.contact-card a {
    color: var(--teal);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* ---------- 页脚(深青绿) ---------- */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.65);
    padding: 70px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo {
    color: var(--ink-text);
    margin-bottom: 16px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    font-size: 14.5px;
}

.company-info {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--ink-line);
}

.company-info p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 2px;
}

.company-info p strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 70px;
}

.footer-column h5 {
    color: var(--ink-text);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.25s ease;
}

.footer-column a:hover {
    color: var(--teal-mint);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--ink-line);
    text-align: center;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--teal-mint) !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-grid.reverse {
        direction: ltr;
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .legal-wrapper {
        padding: 40px 34px;
    }
}

@media (max-width: 768px) {
    .nav-links li:not(:last-child) {
        display: none;
    }

    .page-header {
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .legal-wrapper {
        padding: 30px 22px;
        border-radius: 14px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 44px;
        flex-wrap: wrap;
    }
}
