/**
 * HHPOKER Template12 - 时光长卷 · 编年叙事
 * Architecture: 20 Storytelling Layout
 * Fingerprint: ARCH:20|HERO:09|HDR:07|GRD:10|CRD:11|FAQ:08|FTR:04|R:14
 */

:root {
    --bg: #121214;
    --surface: #1a1a1e;
    --surface-hover: #26262b;
    --primary: #eab308;
    --primary-hover: #facc15;
    --secondary: #ca8a04;
    --accent: #f59e0b;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.1);
    --border-active: rgba(234, 179, 8, 0.4);
    --radius: 14px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --container-max: 1200px;
}

/* Universal Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.5px; }
.hero-title { font-size: 3.2rem; line-height: 1.2; }


a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Components */

.site-header {
    background: #1a1a1e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}


.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo img {
    height: 38px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.4rem;
}

.mobile-drawer {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    z-index: 999;
}

.mobile-drawer.is-open {
    display: block;
}

.mobile-drawer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-drawer a {
    font-size: 1.05rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}


.btn-primary {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #0c0d12;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: #eab308;
    border: 1.5px solid #eab308;
    border-radius: 14px;
}
.btn-outline:hover {
    background: rgba(245, 158, 11, 0.1);
}


/* Badges */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-size: 0.82rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    padding: 4.5rem 0 3.5rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-title {
    margin-bottom: 1.2rem;
    color: var(--text);
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-desc strong {
    color: var(--text);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border);
}

.stat-item h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Dynamic Showcase Media Card (Picsum dynamic image) */
.media-showcase-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.media-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.media-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.showcase-image-wrapper {
    position: relative;
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
    background: #000;
}

.showcase-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.showcase-image-wrapper:hover img {
    transform: scale(1.02);
}

.media-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Grid Systems */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

/* Cards System */

.card, .feature-card, .spec-card, .subpage-card {
    background: #1a1a1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 2.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover, .feature-card:hover {
    border-color: rgba(234, 179, 8, 0.4);
    transform: translateY(-4px);
}


.card-icon {
    width: 52px;
    height: 52px;
    border-radius: calc(var(--radius) / 2 + 2px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.feature-card h3, .spec-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.feature-card p, .spec-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Section Base */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text);
    margin-bottom: 0.8rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Breadcrumbs */
.breadcrumb-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--border);
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 600;
}

/* Page Hero for Subpages */
.page-hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto;
}

/* FAQ Accordion */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.faq-item.active {
    border-color: var(--border-active);
}

.faq-trigger {
    padding: 1.3rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.faq-trigger h4 {
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 600;
}

.faq-trigger i {
    color: var(--primary);
    transition: transform 0.25s ease;
}

.faq-item.active .faq-trigger i {
    transform: rotate(180deg);
}

.faq-content {
    display: none;
    padding: 0 1.6rem 1.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.faq-item.active .faq-content {
    display: block;
}

/* CTA Section */
.cta-banner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.cta-banner p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.2rem;
}

.cta-banner .cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4.5rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-col h4 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 1.2rem;
}

.footer-col p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav, .header-actions {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-title {
        font-size: 2.2rem !important;
    }
    .grid-3, .grid-2, .grid-4 {
        grid-template-columns: 1fr;
    }
    .hero-stats-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
