/* 设计系统 - 颜色变量 */
:root {
    /* 主色调 */
    --primary-gradient: linear-gradient(45deg, #2196F3, #00BCD4);
    --primary-color: #2196F3;
    --primary-light: #64B5F6;
    --primary-dark: #1976D2;
    
    /* 辅助色 */
    --secondary-color: #00BCD4;
    --secondary-light: #4DD0E1;
    --secondary-dark: #0097A7;
    
    /* 强调色 */
    --accent-color: #FF4081;
    --accent-light: #FF80AB;
    --accent-dark: #F50057;
    
    /* 中性色 */
    --neutral-100: #FFFFFF;
    --neutral-200: rgba(255, 255, 255, 0.9);
    --neutral-300: rgba(255, 255, 255, 0.7);
    --neutral-400: rgba(255, 255, 255, 0.5);
    --neutral-500: rgba(0, 0, 0, 0.5);
    --neutral-600: rgba(0, 0, 0, 0.7);
    --neutral-700: rgba(0, 0, 0, 0.9);
    --neutral-800: #000000;
    
    /* 功能色 */
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --error-color: #F44336;
    --info-color: #2196F3;
    
    /* 背景色 */
    --bg-overlay: rgba(0, 0, 0, 0.4);
    --bg-card: rgba(255, 255, 255, 0.1);
    --bg-blur: blur(10px);
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
    
    /* 间距系统 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* 过渡动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 字体大小 */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 4rem;
}

/* 全局样式重置和默认值 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--neutral-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
}

/* 通用工具类 */
.gradient-primary {
    background: var(--primary-gradient);
}

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

.blur-backdrop {
    backdrop-filter: var(--bg-blur);
    background: var(--bg-card);
}

/* 间距工具类 */
.m-xs { margin: var(--space-xs); }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }
.m-xl { margin: var(--space-xl); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* 按钮基础样式 */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-normal);
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--neutral-100);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
}

/* 卡片基础样式 */
.card {
    background: var(--bg-card);
    backdrop-filter: var(--bg-blur);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
}

/* 文本样式 */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-light { color: var(--neutral-200); }
.text-lighter { color: var(--neutral-300); }

/* 响应式容器 */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* 动画类 */
.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.05);
}

header {
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    color: white;
    margin: 0;
    font-size: 2em;
    font-weight: 300;
}

nav {
    margin-top: 15px;
}

nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin: 0 20px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

nav a:hover:after {
    width: 100%;
}

/* Footer Styles */
footer {
    background-image: url('../images/footer-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.site-footer {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.9) 100%);
    color: #fff;
    padding: 40px 0 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.footer-section h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    color: #2196F3;
    transform: translateY(-3px);
}

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

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

.footer-section ul a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-section ul a:hover {
    color: #fff;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
}

.contact-info li i {
    color: #2196F3;
}

.subscribe-form {
    display: flex;
    gap: 10px;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
    transition: background-color 0.3s ease;
}

.subscribe-form input:focus {
    background: rgba(255,255,255,0.15);
}

.subscribe-form button {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.subscribe-form button:hover {
    transform: translateY(-3px);
}

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

.copyright {
    color: rgba(255,255,255,0.7);
}

.footer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links img{
    width: 16px;
    height: 16px;
}
.footer-links a:hover {
    color: #fff;
}

/* Header Styles */
.site-header {
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    transition: all var(--transition-normal);
    padding: var(--space-lg) 0;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: var(--space-xs) 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-normal);
}

/* Logo Styles */
.logo-link {
    text-decoration: none;
    display: block;
}

.logo-text {
    display: flex;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
}

.logo-letter {
    display: inline-block;
    color: var(--neutral-100);
    transition: all 0.3s ease;
    position: relative;
    transform-style: preserve-3d;
}

.logo-letter:nth-child(1) { color: var(--primary-color); }
.logo-letter:nth-child(2) { color: var(--primary-light); }
.logo-letter:nth-child(3) { color: var(--secondary-color); }
.logo-letter:nth-child(4) { color: var(--secondary-light); }
.logo-letter:nth-child(5) { color: var(--primary-color); }
.logo-letter:nth-child(6) { color: var(--secondary-color); }
.logo-letter:nth-child(7) { color: var(--primary-light); }

.logo-link:hover .logo-letter {
    animation: letterFloat 0.6s ease forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

/* Navigation Styles */
.main-nav {
    display: flex;
    gap: var(--space-xl);
    margin: 0 var(--space-2xl);
    transition: all var(--transition-normal);
}

.site-header.scrolled .main-nav {
    gap: var(--space-lg);
}

.nav-link {
    color: var(--neutral-200);
    text-decoration: none;
    font-size: var(--text-lg);
    padding: var(--space-xs) var(--space-sm);
    position: relative;
    transition: all var(--transition-normal);
}

.site-header.scrolled .nav-link {
    font-size: var(--text-base);
    padding: var(--space-xs) var(--space-xs);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--neutral-100);
}

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

/* Header Action Button */
.btn-outline {
    color: var(--neutral-100);
    border: 2px solid var(--primary-color);
    background: transparent;
    transition: all var(--transition-normal);
    padding: var(--space-sm) var(--space-xl);
}

.site-header.scrolled .btn-outline {
    padding: var(--space-xs) var(--space-lg);
}

.btn-outline:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
}

/* Logo Animation */
@keyframes letterFloat {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}

/* Header Actions Style */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--neutral-100);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.lang-btn i {
    font-size: var(--text-sm);
    transition: transform var(--transition-normal);
}

.lang-btn .fa-chevron-down {
    font-size: 0.8em;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-switcher.active .lang-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.current-lang {
    font-size: var(--text-sm);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + var(--space-xs));
    right: 0;
    min-width: 160px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

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

.lang-option {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    color: var(--neutral-200);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--neutral-100);
}

.lang-option.active {
    background: var(--primary-gradient);
    color: var(--neutral-100);
}

.lang-flag {
    display: none;
}

/* 滚动状态下的样式调整 */
.site-header.scrolled .lang-btn {
    padding: calc(var(--space-xs) - 2px) var(--space-sm);
    font-size: var(--text-sm);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .language-switcher {
        margin-right: var(--space-md);
    }
    
    .lang-dropdown {
        right: auto;
        left: 0;
    }
}

/* Navigation Styles */
.main-nav {
    display: flex;
    gap: var(--space-xl);
    margin: 0 var(--space-2xl);
    transition: all var(--transition-normal);
}

/* 响应式调整 */
@media (max-width: 1100px) {
    .main-nav {
        gap: var(--space-md);
        margin: 0 var(--space-lg);
    }

    .nav-link {
        font-size: var(--text-base);
        padding: var(--space-xs) var(--space-xs);
    }
}

/* 显示/隐藏类 */
.d-none {
    display: none !important;
}

@media (max-width: 992px) {
    .d-hide-992 {
        display: none !important;
    }
    .d-show-992 {
        display: block !important;
    }
}

/* 移动端导航按钮 */
.mobile-nav-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--neutral-100);
    font-size: var(--text-xl);
    cursor: pointer;
    padding: var(--space-xs);
}

@media (max-width: 992px) {
    .mobile-nav-btn {
        display: block !important;
    }
    
    .main-nav {
        display: none;
    }
}

/* 侧边导航 */
.side-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    transition: all var(--transition-normal);
}

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

.side-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.side-nav-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background: var(--neutral-800);
    padding: var(--space-lg);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.side-nav.active .side-nav-content {
    transform: translateX(0);
}

.side-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.side-nav-close {
    background: transparent;
    border: none;
    color: var(--neutral-100);
    font-size: var(--text-xl);
    cursor: pointer;
    padding: var(--space-xs);
}

.side-nav-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.side-nav-menu .nav-link {
    font-size: var(--text-lg);
    padding: var(--space-sm) 0;
}

/* 悬浮按钮 */
.float-buttons {
    position: fixed;
    right: var(--space-md);
    bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 1000;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    color: var(--neutral-100);
    font-size: var(--text-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

/* 调整背景层级 */
.bg-under {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.bg-bove {
    position: relative;
    z-index: 2;
}

/* 客服弹出层样式 */
.customer-service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 3000;
    display: none;
}

.customer-service-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: var(--space-md);
    border-bottom: 1px solid var(--neutral-300);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--neutral-700);
    font-size: var(--text-lg);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--neutral-500);
    font-size: var(--text-lg);
    cursor: pointer;
    padding: var(--space-xs);
}

.modal-body {
    padding: var(--space-md);
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--neutral-200);
}

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

.service-item-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.service-item i {
    font-size: var(--text-xl);
    color: var(--primary-color);
}

.service-info h4 {
    color: var(--neutral-700);
    margin-bottom: var(--space-xs);
    font-size: var(--text-lg);
}

.service-info p {
    color: var(--neutral-600);
}

.qr-code {
    margin-top: var(--space-xs);
    width: 120px;
    height: 120px;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.service-action {
    display: flex;
    justify-content: flex-end;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}