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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

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

/* 页面下移，避免导航栏遮挡 */
.page-offset {
    padding-top: 30px;
}

@media (max-width: 968px) {
    .page-offset {
        padding-top: 72px;
    }
}

@media (max-width: 640px) {
    .page-offset {
        padding-top: 64px;
    }
}

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

/* 按钮样式 */
.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

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

.navbar.scrolled {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    height: 64px;
    position: relative;
    gap: 20px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    position: absolute;
    left: 0px;
    margin-right: 0;
    flex-shrink: 0;
    z-index: 10;
}

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

.logo img {
    display: block;
    width: 160px;
    height: 37px;
    margin-top: -10px;
    flex-shrink: 0;
}

/* 响应式logo位置调整 - 根据分辨率设置不同的左边距 */
@media (min-width: 1400px) {
    .logo {
        left: 0px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .logo {
        left: 0px;
    }
}

@media (min-width: 968px) and (max-width: 1199px) {
    .logo {
        left: 0px;
    }
}

@media (max-width: 967px) {
    .logo {
        left: 0px;
    }
}

@media (max-width: 768px) {
    .logo {
        left: 0px;
    }
}

@media (max-width: 640px) {
    .logo {
        left: 0px;
    }
    
    .logo img {
        width: 140px;
        height: 32px;
    }
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
    margin: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.05);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
    font-weight: 600;
}

/* 下拉菜单样式 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-dropdown span.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dropdown span.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.05);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 8px 0;
    margin: 8px 0 0 0;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.05);
}

.dropdown-header {
    padding: 8px 20px 6px;
    margin-top: 4px;
}

.dropdown-header:first-child {
    margin-top: 0;
}

.dropdown-header span {
    display: block;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    cursor: default;
    pointer-events: none;
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    margin: 6px 0;
    padding: 0;
}

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

/* 语言切换器 */
.language-switcher {
    position: absolute;
    right: 60px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.language-switcher-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.language-switcher-button:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.05);
}

.language-switcher-button svg {
    width: 16px;
    height: 16px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.language-option:hover {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.05);
}

.language-option.active {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
    font-weight: 600;
}

@media (max-width: 968px) {
    .language-switcher {
        right: 50px;
    }
}

@media (max-width: 640px) {
    .language-switcher {
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .language-switcher-button {
        padding: 6px 10px;
        font-size: 12px;
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 0;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 英雄区域 */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

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

/* 全屏轮播图容器 */
.hero-carousel-fullscreen {
    width: 100%;
    position: relative;
    margin-bottom: 0;
}

.hero-carousel {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: none;
    margin-bottom: 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 80px auto 0;
    z-index: 1;
    position: relative;
    padding: 40px 0;
    background-color: transparent;
}

.carousel-track {
    position: relative;
}

.carousel-slide {
    display: none;
    position: relative;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    display: flex;
    align-items: flex-end;
    min-height: 600px;
    width: 100%;
    opacity: 1;
}

.carousel-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    transition: transform 0.8s ease-in-out;
}

.carousel-slide.active .carousel-image {
    transform: scale(1.05);
}

.carousel-caption {
    position: relative;
    padding: 60px 40px;
    color: white;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.caption-tag {
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 12px;
}

.carousel-caption h3 {
    font-size: 42px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.carousel-caption p {
    font-size: 16px;
    opacity: 0.9;
}

.carousel-indicators {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    text-indent: -9999px;
    overflow: hidden;
    font-size: 0;
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
}

.slide-1 {
    background-image: linear-gradient(120deg, rgba(15,23,42,0.7), rgba(14,116,144,0.4)), url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?auto=format&fit=crop&w=1600&q=80');
}

.slide-2 {
    background-image: linear-gradient(120deg, rgba(15,23,42,0.7), rgba(99,102,241,0.4)), url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?auto=format&fit=crop&w=1600&q=80');
}

.slide-3 {
    background-image: linear-gradient(120deg, rgba(15,23,42,0.7), rgba(16,185,129,0.4)), url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1600&q=80');
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

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

.page-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    text-align: center;
}

.page-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

.breadcrumb {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.page-section {
    padding: 80px 0;
}

.page-section + .page-section {
    padding-top: 0;
}

/* 快速导航 */
.quick-nav {
    padding: 80px 0;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.quick-nav-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-nav-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.quick-nav-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 32px;
}

.quick-nav-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.quick-nav-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-block {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.about-block h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.about-values {
    list-style: none;
    margin-top: 12px;
    padding-left: 18px;
}

.about-values li {
    position: relative;
    color: var(--text-secondary);
    padding-left: 12px;
    margin-bottom: 6px;
}

.about-values li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.about-visual {
    background: transparent;
    border-radius: 20px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 0;
    height: 100%;
}

.about-image-placeholder {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.about-image {
    width: 100%;
    height: 100%;
    min-height: 600px;
    max-width: 100%;
    border-radius: 20px;
    object-fit: cover;
    display: block;
}

/* 云端价值卡片 */
.value-cards-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.value-cards-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 50px;
    text-align: center;
}

.value-cards-wrapper {
    display: flex;
    gap: 20px;
    height: 600px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.value-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 40px rgba(59, 85, 230, 0.15);
    border: 1px solid #fff;
    flex: 1;
}

.value-card.active {
    flex: 2.5;
    background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%);
}

.value-card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 20px;
    white-space: nowrap;
}

.value-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: left;
    margin-bottom: 30px;
    opacity: 0.9;
}

.value-card.active .value-card-desc {
    text-align: center;
    max-width: 80%;
}

.value-img-placeholder {
    width: 100%;
    height: 200px;
    margin-top: auto;
    border-radius: 10px;
    object-fit: contain;
    display: block;
}

.value-card.active .value-img-placeholder {
    height: 300px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.value-btn-consult {
    display: none;
    width: 80%;
    padding: 15px 0;
    border-radius: 50px;
    background: linear-gradient(90deg, #6a30eb 0%, #2b4eff 100%);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(43, 78, 255, 0.3);
    transition: transform 0.2s;
    text-decoration: none;
    text-align: center;
}

.value-btn-consult:hover {
    transform: scale(1.02);
}

.value-card.active .value-btn-consult {
    display: block;
}

/* 3D动态地球模块 */
.earth-stats-section {
    position: relative;
    background-color: #0b1021;
    color: #ffffff;
    padding-top: 60px;
    padding-bottom: 120px;
    text-align: center;
    height: 400px;
    margin: 60px auto 0;
    max-width: 1200px;
    border-radius: 20px;
    overflow: hidden;
}

#earth-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.earth-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.earth-top-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.earth-main-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(to right, #fff, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.earth-stats-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 40px;
}

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

.earth-stat-number {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
    color: #ffffff;
}

.earth-stat-desc {
    font-size: 14px;
    color: #94a3b8;
}

.earth-floating-card {
    background: #fff;
    max-width: 1200px;
    margin: -60px auto 60px;
    border-radius: 20px;
    padding: 50px 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #1f2d3d;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.earth-feature-item {
    flex: 1;
    padding: 0 20px;
    text-align: left;
}

.earth-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e0e7ff 0%, #f5f7fa 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
}

.earth-icon-box svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.earth-feature-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1f2d3d;
}

.earth-feature-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 客户案例 */
.cases {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.case-card {
    background-color: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.case-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}

.case-content {
    padding: 32px;
}

.case-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.case-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.case-highlights {
    list-style: none;
    padding-left: 18px;
    color: var(--text-secondary);
}

.case-highlights li {
    margin-bottom: 8px;
    position: relative;
}

.case-highlights li::before {
    content: '•';
    position: absolute;
    left: -12px;
    color: var(--primary-color);
}

.case-actions {
    margin-top: 20px;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.text-link:hover {
    transform: translateX(4px);
}

.case-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    background-color: var(--bg-primary);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-color);
}

.case-benefits h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.case-benefits ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 技术博客 */
.blog {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

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

.blog-post {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.blog-content {
    padding: 28px;
}

.blog-category {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.blog-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 功能特性 */
.features {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

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

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 24px;
    text-align: center;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* 仅“多云管理服务(MSP)&AI算力解决方案”板块描述左对齐 */
.about .section-description {
    text-align: left;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-primary);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 服务展示 */
.services {
    padding: 100px 0;
}

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

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

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

.service-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-icon-bg {
    color: white;
    opacity: 0.9;
}

.service-card:hover .service-image {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.service-card {
    padding: 0;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 32px 16px;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin: 0 32px 24px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin: 0 32px 24px;
    padding: 0;
}

.service-features li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.service-link {
    display: inline-block;
    margin: 0 32px 32px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-link:hover {
    transform: translateX(4px);
}

/* 价格方案 */
.pricing {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--bg-primary);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.pricing-price {
    margin-bottom: 12px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-size: 18px;
    color: var(--text-secondary);
}

.pricing-description {
    color: var(--text-secondary);
    font-size: 14px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 28px;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: start;
}

.contact-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-social {
    margin-top: 24px;
}

.contact-social h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

.follow-wechat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.follow-qr {
    width: 360px;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 8px;
}

.follow-tip {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

.contact-form,
.contact-info {
    background-color: var(--bg-primary);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* 页脚 */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
}

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

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

.footer-logo span {
    color: var(--primary-color);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 14px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: white;
}

/* BOS产品展示 */
.products {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.products-showcase {
    max-width: 1200px;
    margin: 0 auto;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-content {
    padding-right: 40px;
}

.product-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.product-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.product-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.product-visual {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

.storage-diagram {
    position: relative;
    width: 300px;
    height: 300px;
}

.storage-node {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.storage-node.node-1 {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.storage-node.node-2 {
    top: 20px;
    right: 20px;
    animation-delay: 0.5s;
}

.storage-node.node-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

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

.storage-connections {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
}

.line-1 {
    width: 200px;
    top: 50px;
    left: 80px;
    transform: rotate(45deg);
    animation: flow 3s infinite;
}

.line-2 {
    width: 180px;
    top: 50px;
    right: 80px;
    transform: rotate(-45deg);
    animation: flow 3s infinite 1s;
}

.line-3 {
    width: 120px;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    animation: flow 3s infinite 2s;
}

@keyframes flow {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

/* 文档中心 */
.docs {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.doc-card {
    background-color: var(--bg-primary);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.doc-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 24px;
}

.doc-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.doc-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.doc-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.doc-link:hover {
    transform: translateX(4px);
}

/* 活动与服务 */
.events {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.event-card {
    background-color: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.event-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.event-placeholder {
    color: white;
    opacity: 0.8;
}

.event-content {
    padding: 32px;
}

.event-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.event-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.event-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.event-link:hover {
    transform: translateX(4px);
}

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

.service-item {
    background-color: var(--bg-primary);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 24px;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-link:hover {
    transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 968px) {
    .nav-wrapper {
        padding: 8px 0;
        height: 56px;
        justify-content: space-between;
    }

    .logo {
        font-size: 16px;
        gap: 8px;
        position: absolute;
        left: 10px;
    }
    
    .language-switcher {
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-menu {
        position: fixed;
        top: 56px;
        left: -100%;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        gap: 8px;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        margin: 8px 0 0 0;
        padding: 0 0 0 20px;
        background-color: rgba(99, 102, 241, 0.03);
        border-radius: 6px;
        min-width: auto;
        width: 100%;
    }

    .dropdown-menu a {
        padding: 8px 16px;
        font-size: 13px;
    }

    .dropdown-header {
        padding: 8px 16px 6px;
        margin-top: 8px;
    }

    .dropdown-header:first-child {
        margin-top: 4px;
    }

    .dropdown-header span {
        font-size: 11px;
    }

    .dropdown-divider {
        margin: 8px 0;
    }

    .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 0;
    }
    
    .language-switcher {
        position: absolute;
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-description {
        font-size: 18px;
    }

    .carousel-slide.active {
        min-height: 450px;
    }
    
    .hero-content {
        margin-top: 50px;
        padding: 30px 0;
    }

    .carousel-caption {
        padding: 28px;
    }

    .carousel-caption h3 {
        font-size: 26px;
    }

    .section-title {
        font-size: 36px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-image {
        min-height: 300px;
    }
    
    .value-cards-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .value-card.active {
        flex: auto;
    }
    
    .earth-stats-section {
        margin: 40px -10px 0;
        padding-top: 60px;
        padding-bottom: 120px;
        height: auto;
        min-height: 500px;
    }
    
    .earth-main-title {
        font-size: 28px;
    }
    
    .earth-stats-grid {
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .earth-floating-card {
        flex-direction: column;
        gap: 40px;
        margin-top: -50px;
        padding: 40px 30px;
    }
    
    .earth-feature-item {
        width: 100%;
        padding: 0;
    }

    .cases-grid,
    .case-benefits,
    .blog-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions button {
        width: 100%;
    }

    .hero-stats {
        gap: 30px;
    }

    .carousel-slide.active {
        min-height: 350px;
    }
    
    .hero-content {
        margin-top: 40px;
        padding: 20px 0;
    }

    .carousel-caption h3 {
        font-size: 22px;
    }

    .carousel-caption p {
        font-size: 14px;
    }

    .features-grid,
    .services-grid,
    .pricing-grid,
    .docs-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .product-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-content {
        padding-right: 0;
        text-align: center;
    }

    .product-actions {
        justify-content: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== 新功能样式 ========== */

/* 价格计算器 */
.price-calculator {
    background-color: var(--bg-primary);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.calculator-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.calculator-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.calculator-form {
    max-width: 800px;
}

.calc-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.calc-group {
    display: flex;
    flex-direction: column;
}

.calc-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.calc-group input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.calc-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.calc-result {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    color: white;
}

.result-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.result-amount {
    font-size: 48px;
    font-weight: 700;
}

/* 产品对比表格 */
.product-comparison {
    margin-top: 80px;
}

.comparison-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.comparison-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

.comparison-table th:first-child {
    width: 200px;
}

.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.comparison-table tbody tr:hover {
    background-color: var(--bg-secondary);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table td:not(:first-child) {
    text-align: center;
    font-weight: 500;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* 在线客服聊天窗口 */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    position: relative;
}

.chat-toggle-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 600;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 600px;
    background-color: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 16px 16px 0 0;
}

.chat-header-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.chat-header-info p {
    font-size: 12px;
    opacity: 0.9;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chat-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.bot .message-content {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input-area input:focus {
    border-color: var(--primary-color);
}

.chat-input-area button {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.chat-input-area button:hover {
    transform: scale(1.1);
}

/* 搜索功能 */
.search-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    z-index: 999;
}

.search-toggle:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
}

.search-box {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 20px;
}

.search-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    background: transparent;
    color: var(--text-primary);
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-close:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.search-results {
    background-color: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    max-height: 500px;
    overflow-y: auto;
}

.search-result-item {
    display: block;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
}

.search-result-item:hover {
    background-color: var(--bg-secondary);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.search-result-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.search-no-results {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

/* 案例详情页 */
.case-detail {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.detail-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.detail-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    padding: 4px 0;
}

.detail-card-header:hover {
    opacity: 0.8;
}

.detail-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
    flex: 1;
}

.detail-card .dropdown-arrow {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.detail-card.expanded .dropdown-arrow {
    transform: rotate(180deg);
}

.detail-card-preview {
    margin-top: 12px;
    display: block;
}

.detail-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.detail-card.expanded .detail-card-content {
    max-height: 5000px;
    opacity: 1;
    margin-top: 16px;
}

.detail-card p,
.detail-card li {
    color: var(--text-secondary);
    line-height: 1.7;
}

.detail-card ul {
    list-style: disc;
    padding-left: 18px;
}

.case-architecture {
    margin-top: 60px;
    text-align: center;
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

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

.architecture-item .architecture-image {
    max-width: 95%;
}

.architecture-label {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.architecture-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: center;
}

.architecture-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: block;
    margin: 0 auto;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    padding: 24px;
    color: white;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.case-contact {
    padding: 80px 0;
}

.case-contact-card {
    background-color: var(--bg-primary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 40px;
    text-align: center;
}

.case-contact-card h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.case-contact-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.case-contact-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.case-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 响应式设计 - 新功能 */
@media (max-width: 640px) {
    .calc-row {
        grid-template-columns: 1fr;
    }
    
    .price-calculator {
        padding: 24px;
    }
    
    .comparison-table-wrapper {
        overflow-x: scroll;
    }
    
    .comparison-table {
        min-width: 600px;
    }
    
    .chat-window {
        width: calc(100vw - 40px);
        right: -20px;
    }
    
    .back-to-top,
    .search-toggle {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .search-toggle {
        bottom: 90px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-stats {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .case-contact-card {
        padding: 24px;
    }

    .case-contact-info {
        flex-direction: column;
        align-items: center;
    }
}
