/* ============================================
   光速传媒科技 - 企业官网样式
   Premium Dark Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #08090d;
    --bg-secondary: #0d1017;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.06);
    --text-primary: #e8eaed;
    --text-secondary: #8b8fa3;
    --text-muted: #555a6e;
    --accent-1: #00d4ff;
    --accent-2: #7b61ff;
    --accent-3: #ff5e9c;
    --gradient-primary: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --gradient-hero: linear-gradient(135deg, #00d4ff, #7b61ff, #ff5e9c);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--transition-smooth);
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* --- Loading Screen --- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-ring {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-glass);
    border-top-color: var(--accent-1);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Particle Canvas --- */
.particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.scrolled {
    background: rgba(8, 9, 13, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
}
.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-1);
}
.nav-links {
    display: flex;
    gap: 36px;
}
.nav-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    letter-spacing: 0.5px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gradient-primary);
    transition: width 0.3s var(--transition-smooth);
    border-radius: 1px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform 0.3s var(--transition-smooth), opacity 0.3s;
    transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Sections --- */
.section {
    position: relative;
    z-index: 1;
    padding: 120px 40px;
}
.section-alt {
    background: var(--bg-secondary);
}
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 72px;
}
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--accent-1);
    margin-bottom: 16px;
    text-transform: uppercase;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* --- Text Gradient --- */
.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Glass Card --- */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: transform 0.4s var(--transition-smooth), border-color 0.4s, box-shadow 0.4s;
}
.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,255,0.08);
}

/* --- Hero --- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) 40px 80px;
    text-align: center;
}
.hero-content {
    max-width: 800px;
}
.hero-tag {
    font-size: 0.75rem;
    letter-spacing: 6px;
    color: var(--accent-1);
    margin-bottom: 24px;
    font-weight: 500;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 32px;
}
.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.hero-desc sub { font-size: 0.7em; color: var(--accent-1); }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 24px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4);
}
.btn-primary svg { transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.2);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.stat-num {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.about-card {
    padding: 40px 32px;
    text-align: center;
}
.about-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    color: var(--accent-1);
}
.about-card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    padding: 40px 32px;
    text-align: center;
}
.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: var(--accent-1);
}
.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.service-card h3 sub { font-size: 0.7em; color: var(--accent-1); }
.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Industries --- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.industry-item {
    padding: 24px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.industry-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-1);
    margin-top: 7px;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(0,212,255,0.4);
}
.industry-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.industry-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Team --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.team-card {
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}
.team-card-num {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
}
.team-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.team-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.team-card p:last-child { margin-bottom: 0; }

/* --- Cases --- */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.case-card {
    overflow: hidden;
}
.case-thumb {
    aspect-ratio: 4/3;
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.case-thumb-placeholder {
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    transition: transform 0.6s var(--transition-smooth);
}
.case-card:hover .case-thumb-placeholder { transform: scale(1.05); }
.case-info {
    padding: 20px 20px 24px;
}
.case-tag {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--accent-1);
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.case-tag sub { font-size: 0.7em; }
.case-info p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    align-items: stretch;
}
.contact-card {
    padding: 48px 40px;
}
.contact-main {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contact-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    opacity: 0.9;
}
.contact-avatar svg {
    width: 40px;
    height: 40px;
    color: #fff;
}
.contact-main h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.contact-role {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 24px;
}
.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-1);
    transition: color 0.3s;
    letter-spacing: 1px;
}
.contact-phone:hover { color: var(--accent-2); }
.contact-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.contact-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}
.contact-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.contact-tags span {
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}
.contact-tags span sub { font-size: 0.7em; }

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: 64px 40px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
}
.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}
.footer-col a, .footer-col p {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero Fade Up --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--transition-smooth) forwards;
    animation-delay: calc(var(--i, 0) * 0.15s + 1s);
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .services-grid,
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(3, 1fr); }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 32px; }
}

@media (max-width: 768px) {
    :root { --nav-height: 60px; }
    .section { padding: 80px 24px; }
    .hero { padding: calc(var(--nav-height) + 20px) 24px 60px; }
    .hero-stats { gap: 24px; }

    .nav-inner { padding: 0 24px; }
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(8, 9, 13, 0.95);
        backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s, visibility 0.4s;
    }
    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }
    .nav-links a { font-size: 1.1rem; }
    .nav-toggle { display: flex; }

    .about-grid,
    .services-grid,
    .team-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .about-card { padding: 32px 24px; }
    .service-card { padding: 32px 24px; }
    .team-card { padding: 32px 24px; }
    .contact-card { padding: 40px 28px; }
}

@media (max-width: 480px) {
    .hero-stats { gap: 16px; }
    .stat-num { font-size: 1.5rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { justify-content: center; width: 100%; }
    .industries-grid { grid-template-columns: 1fr; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .fade-up { opacity: 1; transform: none; animation: none; }
}
