/* Zheng Template - Professional Trust & Authority */
:root {
    --primary: #1E3A5F;
    --primary-light: #2A5080;
    --primary-dark: #0F2440;
    --accent: #C8963E;
    --accent-light: #D4A854;
    --accent-dark: #A67A2E;
    --bg: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-warm: #FAFAF7;
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 12px; left: 12px; right: 12px;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.navbar.scrolled {
    box-shadow: var(--shadow);
    background: rgba(255,255,255,0.98);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
}
.logo-icon {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
}
.logo-icon svg { stroke: #fff; }
.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}
.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}
.nav-cta:hover { background: var(--primary-light); transform: translateY(-1px); }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 6px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #EEF2F7 50%, var(--bg-warm) 100%);
    z-index: -1;
}
.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(200,150,62,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(30,58,95,0.08);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-dark);
}
.text-accent { color: var(--accent); }
.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.8;
}
.hero-buttons { display: flex; gap: 14px; margin-bottom: 36px; }
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,58,95,0.25);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 13px 28px;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.2s ease;
    cursor: pointer;
}
.btn-text:hover { gap: 10px; }
.hero-trust { display: flex; gap: 24px; }
.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.trust-item svg { stroke: var(--accent); flex-shrink: 0; }
.hero-visual { position: relative; }
.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    width: 100%;
    max-height: 480px;
}

/* ===== Stats ===== */
.stats {
    padding: 60px 0;
    background: var(--primary-dark);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-card {
    text-align: center;
    padding: 28px 16px;
    cursor: pointer;
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ===== Section Common ===== */
.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(200,150,62,0.1);
    color: var(--accent-dark);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}
.section-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Why Us / Features ===== */
.why-us { padding: 90px 0; background: var(--bg); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    padding: 32px 28px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border);
}
.feature-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,58,95,0.08);
    border-radius: 10px;
    margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--primary); }
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}
.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== About Section ===== */
.about-section { padding: 90px 0; background: var(--bg-light); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-img-wrap img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    object-fit: cover;
    width: 100%;
    max-height: 400px;
}
.about-text .section-tag { margin-bottom: 10px; }
.about-text .section-title { text-align: left; margin-bottom: 16px; }
.about-text p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

/* ===== Samples Gallery ===== */
.samples { padding: 90px 0; background: var(--bg); }
.samples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.sample-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.sample-img {
    width: 100%; height: 100%;
}
.sample-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.sample-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,36,64,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.sample-overlay span {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
}
.sample-card:hover .sample-overlay { opacity: 1; }
.sample-card:hover .sample-img img { transform: scale(1.05); }

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 0.7; }

/* ===== News ===== */
.news { padding: 90px 0; background: var(--bg-light); }
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.news-date {
    flex-shrink: 0;
    text-align: center;
    padding: 12px 14px;
    background: var(--primary);
    border-radius: var(--radius);
    color: #fff;
    min-width: 64px;
    align-self: flex-start;
}
.news-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}
.news-month {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
}
.news-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.5;
}
.news-body p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Testimonials ===== */
.testimonials { padding: 90px 0; background: var(--bg); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    padding: 32px 28px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    color: var(--accent);
}
.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 40px; height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.author-role { font-size: 0.78rem; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq { padding: 90px 0; background: var(--bg-light); }
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}
.faq-intro { position: sticky; top: 100px; align-self: start; }
.faq-intro .section-tag { margin-bottom: 10px; }
.faq-intro .section-title { text-align: left; margin-bottom: 14px; }
.faq-intro p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text);
}
.faq-question svg {
    flex-shrink: 0;
    stroke: var(--accent);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer {
    padding: 0 22px 18px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.8;
    display: none;
}
.faq-item.active .faq-answer { display: block; }

/* ===== CTA ===== */
.cta { padding: 80px 0; background: var(--bg); }
.cta-card {
    text-align: center;
    padding: 64px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    color: #fff;
}
.cta-card h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.cta-card p { font-size: 1rem; opacity: 0.8; margin-bottom: 28px; }
.cta-card .btn-primary {
    background: var(--accent);
    color: #fff;
}
.cta-card .btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 6px 20px rgba(200,150,62,0.35);
}

/* ===== Friend Links ===== */
.friend-links {
    padding: 32px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}
.friend-links-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.friend-links-header svg { stroke: var(--text-muted); }
.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}
.friend-links-list a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.2s ease;
}
.friend-links-list a:hover { color: var(--primary); }

/* ===== Footer ===== */
.footer {
    padding: 32px 0;
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
}
.footer-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.78rem;
    line-height: 1.7;
}
.footer-disclaimer svg {
    stroke: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-links {
    display: flex;
    list-style: none;
    gap: 24px;
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: #fff; }
.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ===== Scroll Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-visual { order: -1; max-width: 500px; margin: 0 auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-text .section-title { text-align: center; }
    .about-text { text-align: center; }
    .about-text .btn-text { justify-content: center; }
    .samples-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .faq-layout { grid-template-columns: 1fr; }
    .faq-intro { position: static; text-align: center; }
    .faq-intro .section-title { text-align: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar { top: 8px; left: 8px; right: 8px; }
    .nav-inner { padding: 10px 16px; }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0; right: 0;
        flex-direction: column;
        background: rgba(255,255,255,0.98);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 12px 16px;
        gap: 0;
        box-shadow: var(--shadow);
    }
    .nav-links.active { display: flex; }
    .nav-links li { border-bottom: 1px solid var(--border-light); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a { display: block; padding: 12px 0; }
    .nav-cta { display: none; }
    .mobile-menu-btn { display: block; }

    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero h1 { font-size: 2rem; }
    .hero-desc { font-size: 0.95rem; }
    .hero-buttons { flex-direction: column; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; padding: 14px 24px; }
    .hero-trust { flex-wrap: wrap; justify-content: center; gap: 16px; }

    .features-grid { grid-template-columns: 1fr; }
    .samples-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .stat-card { padding: 20px 12px; }
    .stat-number { font-size: 1.6rem; }

    .section-title { font-size: 1.6rem; }
    .cta-card { padding: 40px 20px; }
    .cta-card h2 { font-size: 1.5rem; }

    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .news-card { flex-direction: column; }
}

/* ===== Page Header (for sub-pages) ===== */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #EEF2F7 100%);
    text-align: center;
}
.page-header .section-title { font-size: 2.5rem; }
