/* ===== 全局重置与基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-cream: #FFF4E7;
    --color-tan: #DABFA0;
    --color-dark: #0A0707;
    --color-dark-blue: #0A1B2D;
    --color-accent: #A22211;
    --color-glass: rgba(17, 16, 15, 0.35);
    --color-title-bar: #191C1F;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background: var(--color-dark);
    color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: rgba(162, 34, 17, 0.4);
    color: #fff;
}

/* ===== 液态玻璃效果 ===== */
.liquid-glass {
    background: linear-gradient(165deg, rgba(255,255,255,0.005) 0%, rgba(255,255,255,0.002) 40%, rgba(255,255,255,0.001) 100%);
    backdrop-filter: blur(18px) saturate(1.4) brightness(1.05);
    -webkit-backdrop-filter: blur(18px) saturate(1.4) brightness(1.05);
    border: none;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.025) 15%,
        rgba(255,255,255,0.005) 40%, rgba(255,255,255,0.005) 60%,
        rgba(255,255,255,0.025) 85%, rgba(255,255,255,0.06) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 7, 7, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #ff6b4a 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.logo-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-cream);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    color: rgba(255, 244, 231, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--color-cream);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--color-cream);
    background: rgba(162, 34, 17, 0.2);
    border: 1px solid rgba(162, 34, 17, 0.4);
}

.nav-cta {
    padding: 12px 28px;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #b32a15;
    transform: translateY(-2px);
}

/* 移动端菜单按钮 */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.toggle-line {
    width: 24px;
    height: 2px;
    background: var(--color-cream);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle.active .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(10, 7, 7, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 24px;
}

.mobile-link {
    font-size: 32px;
    font-weight: 300;
    color: var(--color-cream);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-cta {
    margin-top: 20px;
    padding: 16px 40px;
    background: var(--color-cream);
    color: var(--color-dark);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-radius: 100px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active .mobile-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

/* ===== Hero区域 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 28, 31, 0.75);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 13px;
    color: var(--color-cream);
    margin-bottom: 32px;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-title span {
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-tan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 300;
    color: rgba(255, 244, 231, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.btn-primary {
    padding: 16px 36px;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: #b32a15;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(162, 34, 17, 0.3);
}

.btn-secondary {
    padding: 16px 36px;
    background: transparent;
    color: var(--color-cream);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ===== 通用区块 ===== */
.section {
    padding: 120px 0;
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-title strong {
    font-weight: 600;
}

.section-desc {
    font-size: 17px;
    color: rgba(255, 244, 231, 0.6);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== 服务卡片 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(162, 34, 17, 0.3);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(162, 34, 17, 0.2) 0%, rgba(162, 34, 17, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 15px;
    color: rgba(255, 244, 231, 0.6);
    line-height: 1.7;
}

/* ===== 数据展示 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-tan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 244, 231, 0.6);
}

/* ===== 页脚 ===== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-logo i {
    color: var(--color-accent);
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 244, 231, 0.5);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-cream);
}

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

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

.footer-contact p {
    font-size: 14px;
    color: rgba(255, 244, 231, 0.5);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--color-accent);
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 244, 231, 0.4);
    margin-bottom: 8px;
}

.footer-bottom a {
    color: rgba(255, 244, 231, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--color-cream);
}

/* ===== 错误页面 ===== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.error-code {
    font-size: clamp(100px, 20vw, 200px);
    font-weight: 200;
    line-height: 1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(162, 34, 17, 0.3) 0%, rgba(162, 34, 17, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 16px;
}

.error-desc {
    font-size: 17px;
    color: rgba(255, 244, 231, 0.6);
    margin-bottom: 40px;
    max-width: 500px;
}

/* ===== 动画关键帧 ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 36px;
    }
}