/* ===== 全局变量 ===== */
:root {
    /* 主题色 */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --accent: #f59e0b;

    /* 浅色主题 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #334155;
    --border-hover: #475569;
}

/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* ===== 背景装饰 ===== */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: var(--bg-primary);
    z-index: -2;
}

.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-accent);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.8);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.theme-icon {
    width: 20px;
    height: 20px;
}

[data-theme="dark"] .theme-icon.sun {
    display: block;
}

[data-theme="dark"] .theme-icon.moon {
    display: none;
}

.theme-icon.sun {
    display: none;
}

.theme-icon.moon {
    display: block;
}

/* ===== Hero 区域 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    width: fit-content;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    color: var(--text-primary);
}

.title-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 3rem;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    background: var(--border-color);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
}

.platform-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.platform-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logos-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-logo {
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.platform-logo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ===== 右侧装饰 - 72%位置 ===== */
.hero-visual {
    position: absolute;
    left: 72%;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    perspective: 2000px;
}

@media (min-width: 1024px) {
    .hero-visual {
        display: block;
    }
}

.floating-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    border: none;
    border-radius: 64px;
    padding: 6rem 8rem;
    box-shadow: 0 60px 160px rgba(102, 126, 234, 0.5),
                0 0 120px rgba(102, 126, 234, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.2),
                inset 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: cardRotate 12s ease-in-out infinite;
    opacity: 0;
    transform-style: preserve-3d;
    backdrop-filter: blur(10px);
}

.card-1 {
    animation-delay: 0s;
    z-index: 3;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    box-shadow: 0 60px 160px rgba(102, 126, 234, 0.5), 0 0 120px rgba(102, 126, 234, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.card-2 {
    animation-delay: 4s;
    z-index: 2;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(6, 78, 59, 0.95) 100%);
    box-shadow: 0 60px 160px rgba(16, 185, 129, 0.5), 0 0 120px rgba(16, 185, 129, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.card-3 {
    animation-delay: 8s;
    z-index: 1;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95) 0%, rgba(180, 83, 9, 0.95) 100%);
    box-shadow: 0 60px 160px rgba(245, 158, 11, 0.5), 0 0 120px rgba(245, 158, 11, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes cardRotate {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotateY(-90deg) translateZ(-200px);
        filter: blur(10px);
    }
    3% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08) rotateY(0deg) translateZ(50px);
        filter: blur(0px);
    }
    5% {
        transform: translate(-50%, -50%) scale(1) rotateY(0deg) translateZ(0px);
    }
    8.33% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateY(0deg) translateZ(0px);
    }
    12%, 91.67% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotateY(90deg) translateZ(-200px);
        filter: blur(10px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotateY(90deg) translateZ(-200px);
        filter: blur(10px);
    }
}

.card-icon {
    font-size: 8rem;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transform: translateZ(40px);
    animation: iconFloat 3s ease-in-out infinite;
}

.card-text {
    font-weight: 700;
    color: #ffffff;
    font-size: 3.5rem;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 8px 32px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    transform: translateZ(20px);
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateZ(40px) translateY(0);
    }
    50% {
        transform: translateZ(60px) translateY(-10px);
    }
}

/* ===== 区块通用样式 ===== */
section {
    padding: 6rem 2rem;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 服务区域 ===== */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.service-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ===== 特殊服务卡片样式 ===== */
.special-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.badge-icon {
    font-size: 1.25rem;
}

/* 云迁移卡片 */
.special-migration {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.special-migration::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.special-migration:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
}

.special-migration .service-icon-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* 云优化卡片 */
.special-optimization {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.03) 0%, rgba(255, 159, 64, 0.03) 100%);
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.special-optimization::before {
    background: linear-gradient(90deg, #ff6b35, #ff9f40);
}

.special-optimization:hover {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.25);
}

.special-optimization .service-icon-wrapper {
    background: linear-gradient(135deg, #ff6b35 0%, #ff9f40 100%);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* 云安全卡片 */
.special-security {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.special-security::before {
    background: linear-gradient(90deg, #10b981, #06b6d4);
}

.special-security:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.25);
}

.special-security .service-icon-wrapper {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* 动画图标 */
.animated-icon {
    animation: float 3s ease-in-out infinite;
}

.special-migration .animated-icon {
    animation: rocket 2s ease-in-out infinite;
}

.special-optimization .animated-icon {
    animation: pulse 2s ease-in-out infinite;
}

.special-security .animated-icon {
    animation: shield 2s ease-in-out infinite;
}

@keyframes rocket {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.1);
    }
}

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

@keyframes shield {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
}

.service-card:hover .service-icon-wrapper::after {
    transform: translate(-50%, -50%) scale(1);
}

.service-icon {
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-features svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s ease;
}

.service-link:hover {
    gap: 0.75rem;
}

.service-link svg {
    width: 18px;
    height: 18px;
}

/* ===== 云平台区域 ===== */
.platforms-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.platform-item {
    perspective: 1000px;
}

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

.platform-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: var(--shadow-xl);
}

.platform-bg {
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-item.aliyun .platform-bg {
    background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
}

.platform-item.aws .platform-bg {
    background: linear-gradient(135deg, #ff9900 0%, #ffb84d 100%);
}

.platform-item.huawei .platform-bg {
    background: linear-gradient(135deg, #c7000b 0%, #ff4d4d 100%);
}

.platform-item.tencent .platform-bg {
    background: linear-gradient(135deg, #0052d9 0%, #00a0e9 100%);
}

.platform-icon {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.platform-info {
    padding: 2rem;
}

.platform-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.platform-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.platform-certs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cert-badge {
    padding: 0.375rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== 客户案例 ===== */
.cases {
    background: var(--bg-secondary);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.case-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.case-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.case-icon {
    font-size: 2rem;
}

.case-platform {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.case-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.case-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

/* ===== 联系表单 ===== */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.qr-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.qr-header {
    margin-bottom: 3rem;
}

.qr-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qr-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.qr-wrapper {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    display: inline-block;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.qr-wrapper:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2);
}

.qr-code {
    width: 300px;
    height: 300px;
    display: block;
}

.qr-tips {
    color: var(--text-tertiary);
    font-size: 1rem;
}

.qr-tips p {
    margin: 0;
}

/* ===== 页脚 ===== */
.footer {
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-tertiary));
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo svg {
    width: 36px;
    height: 36px;
    color: var(--primary);
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.footer-column h4:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.footer-column h4 svg:first-child {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.footer-column h4.active .toggle-icon {
    transform: rotate(180deg);
}

.footer-column h4.active {
    background: var(--primary);
    color: white;
}

.footer-column h4.active svg:first-child {
    color: white;
}

.footer-column h4.active .toggle-icon {
    color: white;
}

.footer-column ul {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    margin-bottom: 0;
}

.footer-column ul.active {
    max-height: 300px;
    opacity: 1;
    margin-bottom: 1rem;
}

.footer-column ul li {
    margin-bottom: 0.875rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
}

.footer-column ul li a span {
    font-size: 1.1rem;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary);
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.footer-column ul li a:hover span {
    opacity: 1;
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 0.9rem;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: var(--gradient-primary);
}

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-divider {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .services-grid,
    .platforms-showcase,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .qr-container {
        padding: 3rem 2rem;
    }

    .qr-title {
        font-size: 2rem;
    }

    .qr-code {
        width: 250px;
        height: 250px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* 移动端默认折叠所有菜单 */
    .footer-column ul {
        max-height: 0;
        opacity: 0;
    }

    .footer-column ul.active {
        max-height: 300px;
        opacity: 1;
    }
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}
