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

html {
    scroll-behavior: smooth;
}

:root {
    /* 默认深色主题变量 */
    --bg-primary: #0a0a0f;
    --bg-secondary: #141e30;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --accent-primary: #0066ff;
    --accent-secondary: #00ccff;
    --card-bg: rgba(20, 30, 48, 0.6);
    --card-border: rgba(0, 102, 255, 0.2);
    --nav-bg: rgba(10, 10, 15, 0.95);
    --footer-bg: #333;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --accent-primary: #0066cc;
    --accent-secondary: #0099ff;
    --card-bg: #ffffff;
    --card-border: rgba(0, 102, 204, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #2c3e50;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #141e30;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --accent-primary: #0066ff;
    --accent-secondary: #00ccff;
    --card-bg: rgba(20, 30, 48, 0.6);
    --card-border: rgba(0, 102, 255, 0.2);
    --nav-bg: rgba(10, 10, 15, 0.95);
    --footer-bg: #333;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(var(--accent-primary-rgb), 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(var(--accent-secondary-rgb), 0.1) 0%, transparent 20%);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #0066ff, #00ccff);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0052cc, #00a3e0);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #00ccff;
    border: 2px solid #00ccff;
    box-shadow: 0 4px 15px rgba(0, 204, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 204, 255, 0.1);
    color: #00ccff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 204, 255, 0.3);
}

/* 导航栏 */
.navbar {
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 102, 204, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 102, 204, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

.logo-text {
    background: linear-gradient(45deg, #00ccff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
}

.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #00ccff;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #00ccff;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    box-shadow: 0 0 10px rgba(var(--accent-secondary-rgb), 0.5);
}

/* 主题切换器 */
.theme-switcher {
    margin-left: 20px;
}

.theme-toggle {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.theme-btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.5);
}

/* 英雄区域 */
.hero {
    padding: 180px 0 120px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9) 0%, rgba(20, 30, 48, 0.9) 100%);
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 204, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #00ccff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(0, 102, 255, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: #b0b0b0;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    margin-top: 40px;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.2) 0%, transparent 70%);
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

/* 通用部分样式 */
.section-title {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #00ccff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

section {
    padding: 100px 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.3), transparent);
}

/* 关于我们 */
.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    color: #00ccff;
    margin: 30px 0 20px;
    font-weight: 700;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #b0b0b0;
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 16px;
}

.values-list {
    list-style: none;
    margin-top: 25px;
}

.values-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #e0e0e0;
    font-size: 16px;
}

.values-list i {
    color: #00ccff;
    margin-right: 12px;
    font-size: 18px;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 35px 25px;
    background: rgba(20, 30, 48, 0.6);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066ff, #00ccff);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.3);
    border-color: rgba(0, 102, 255, 0.4);
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #00ccff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
}

.stat-label {
    font-size: 16px;
    color: #b0b0b0;
    font-weight: 500;
}

/* 服务网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 48px;
    color: #0066cc;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    font-size: 15px;
}

/* 解决方案标签页 */
.solutions-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 30px;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tab:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.tab.active {
    background-color: #0066cc;
    color: white;
}

.tab-content {
    display: none;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.tab-content p {
    color: #666;
    margin-bottom: 20px;
}

.tab-content ul {
    list-style: none;
    padding-left: 20px;
}

.tab-content li {
    margin-bottom: 10px;
    color: #666;
    position: relative;
}

.tab-content li:before {
    content: '✓';
    color: #0066cc;
    position: absolute;
    left: -20px;
}

/* 联系我们 */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: #0066cc;
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.contact-item p {
    color: #666;
}

.contact-form {
    flex: 1;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #0066cc;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #0066cc;
    transform: translateY(-3px);
}

.newsletter {
    display: flex;
    margin-top: 15px;
}

.newsletter input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: 'Noto Sans SC', sans-serif;
}

.newsletter button {
    padding: 12px 20px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter button:hover {
    background-color: #0052a3;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 14px;
}

.footer-bottom a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dotted rgba(187, 187, 187, 0.3);
    padding-bottom: 1px;
}

.footer-bottom a:hover {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

.footer-bottom p {
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .solutions-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}