/* ============================================
   ToFind 上海 V3 · Apple-style Design System
   主色：深色背景 + 香槟金点缀
   字体：思源宋体（标题）+ 思源黑体（正文）
   ============================================ */

@import url('https://fonts.googleapis.cn/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --bg-elevated: #161616;

    --gold: #c8a96e;
    --gold-light: #e8d9a8;
    --gold-dark: #a08547;
    --gold-muted: rgba(200, 169, 110, 0.15);

    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;
    --text-gold: #c8a96e;

    --border: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(200, 169, 110, 0.2);

    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
    --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", -apple-system, sans-serif;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    --container: 1200px;
    --section-pad: clamp(80px, 12vw, 160px);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.3s var(--ease); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; background: none; }

/* ===== Container ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s var(--ease);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.nav-brand-icon {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-brand-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav-brand-sub {
    font-size: 0.6rem;
    color: var(--gold);
    letter-spacing: 0.25em;
    margin-top: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 32px);
}

.nav-links a {
    font-size: 0.82rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: color 0.3s var(--ease);
}

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

.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.02em;
}

.nav-phone-dot {
    width: 5px; height: 5px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease);
}

@media (max-width: 900px) {
    .nav-links { 
        display: none;
        position: absolute;
        top: 52px;
        left: 0; right: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-phone { font-size: 0; }
    .nav-phone .nav-phone-dot { display: none; }
    .nav-phone::after { content: '📞'; font-size: 1rem; }
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(200, 169, 110, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(200, 169, 110, 0.03) 0%, transparent 40%),
        var(--bg-primary);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.35em;
    color: var(--gold);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title .gold {
    color: var(--gold);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    border-radius: 980px;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-gold {
    background: var(--gold);
    color: var(--bg-primary);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(200, 169, 110, 0.25);
}

.btn-outline {
    color: var(--gold);
    border-color: var(--border-gold);
}
.btn-outline:hover {
    background: var(--gold-muted);
    border-color: var(--gold);
}

.btn-ghost {
    color: var(--text-secondary);
    border-color: var(--border);
}
.btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.2);
}

/* ===== Section ===== */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 80px);
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.7;
}

/* ===== Page Header (subpages) ===== */
.page-hero {
    padding: 140px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(200, 169, 110, 0.05) 0%, transparent 50%),
        var(--bg-primary);
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-breadcrumb {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.page-hero-breadcrumb a { color: var(--text-muted); }
.page-hero-breadcrumb a:hover { color: var(--gold); }

.page-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.page-hero p {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Cards Grid ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 40px);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    transform: translateY(-4px);
}

.card:hover::before { opacity: 1; }

.card-num {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 1.2rem;
}

.card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tag {
    font-size: 0.72rem;
    color: var(--gold);
    padding: 4px 12px;
    border: 1px solid var(--border-gold);
    border-radius: 980px;
    letter-spacing: 0.03em;
}

/* ===== District Grid ===== */
.district-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.district-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 2px solid var(--gold);
    padding: 24px 20px;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease);
}

.district-card:hover {
    background: var(--bg-card-hover);
    border-left-width: 4px;
    transform: translateX(4px);
}

.district-card h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 500;
}

.district-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Case List ===== */
.case-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.case-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 36px);
    transition: all 0.3s var(--ease);
    display: block;
}

.case-item:hover {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.case-label {
    font-size: 0.72rem;
    color: var(--gold);
    letter-spacing: 0.2em;
    font-weight: 500;
}

.case-tag {
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    padding: 3px 10px;
    border-radius: 980px;
}

.case-item h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.case-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== Tech Cards ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(28px, 3vw, 40px);
    transition: all 0.4s var(--ease);
}

.tech-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
}

.tech-icon {
    width: 48px; height: 48px;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.tech-icon svg {
    width: 100%; height: 100%;
}

.tech-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.tech-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.tech-scope {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.tech-scope strong { color: var(--gold); font-weight: 500; }

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s var(--ease);
}

.faq-item.open { border-color: var(--border-gold); }

.faq-q {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-primary);
    transition: color 0.3s var(--ease);
}

.faq-q:hover { color: var(--gold); }

.faq-arrow {
    width: 20px; height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-a p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ===== Pricing ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 3vw, 40px);
    text-align: center;
    transition: all 0.4s var(--ease);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(200, 169, 110, 0.05) 0%, var(--bg-card) 100%);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-label {
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.pricing-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.pricing-price {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--gold);
    margin: 1.5rem 0;
    font-weight: 600;
}

.pricing-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

.pricing-features {
    text-align: left;
    margin: 1.5rem 0 2rem;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '';
    width: 4px; height: 4px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== News ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 32px);
    transition: all 0.3s var(--ease);
    display: block;
}

.news-card:hover {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.news-card h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.5;
}

.news-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-block h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-block p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.contact-block a {
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    transition: color 0.3s var(--ease);
}

.contact-block a:hover { color: var(--gold); }

/* ===== Footer ===== */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

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

.footer-links a {
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color 0.3s var(--ease);
}

.footer-links a:hover { color: var(--gold); }

@media (max-width: 600px) {
    .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== CTA Section ===== */
.cta {
    text-align: center;
    padding: var(--section-pad) 24px;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(200, 169, 110, 0.04) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.cta p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* ===== Stats ===== */
.stats-row {
    display: flex;
    justify-content: center;
    gap: clamp(32px, 6vw, 80px);
    flex-wrap: wrap;
    padding: 40px 0;
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ===== Process Steps ===== */
.process-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    padding: 24px 16px;
}

.process-num {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 300;
    margin-bottom: 16px;
    line-height: 1;
}

.process-step h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-d1 { transition-delay: 0.1s; }
.fade-in-d2 { transition-delay: 0.2s; }
.fade-in-d3 { transition-delay: 0.3s; }
.fade-in-d4 { transition-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero { padding: 100px 20px 60px; }
    .cards-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .district-grid { grid-template-columns: repeat(2, 1fr); }
    .process-list { grid-template-columns: repeat(2, 1fr); }
}
