/* HugeTail - Apple-Inspired Professional Design */

:root {
    /* Apple-inspired color palette */
    --background-light: #fafafa;
    --background-secondary: #ffffff;
    --background-tertiary: #f5f5f7;
    --background-dark: #1d1d1f;
    --background-card: rgba(255, 255, 255, 0.8);
    
    /* Text colors */
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;
    --text-light: #ffffff;
    --text-accent: #06c;
    
    /* Brand colors */
    --accent-color: #007aff;
    --accent-hover: #0056cc;
    --accent-light: rgba(0, 122, 255, 0.1);
    --success-color: #30d158;
    --warning-color: #ff9f0a;
    
    /* Glass morphism */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    
    /* Shadows */
    --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-light);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--background-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 3px;
}

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

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all var(--transition-base);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

/* Typography hierarchy */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.022em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    font-weight: 600;
    letter-spacing: -0.022em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.container {
    width: min(90%, 1200px);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Enhanced Button Styles */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--accent-color);
    border: none;
    color: var(--text-light);
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 500;
    text-transform: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    height: 50px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-medium);
}

/* --- Enhanced Header / Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 1rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: none;
    transform: translateY(0);
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
    height: 64px;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.02em;
    transition: all var(--transition-base);
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    position: relative;
    z-index: 1001; /* 确保logo在导航栏同一层级 */
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all var(--transition-base);
    border-radius: 0 !important; /* 完全移除圆角 */
    background: transparent !important; /* 强制背景透明 */
    background-color: transparent !important; /* 强制背景色透明 */
    border: none !important; /* 强制移除任何边框 */
    box-shadow: none !important; /* 强制移除任何阴影 */
    outline: none !important; /* 移除任何轮廓 */
    padding: 0 !important; /* 移除任何内边距 */
    margin: 0 !important; /* 移除任何外边距 */
}

/* 额外确保logo图标没有任何背景 */
.navbar .logo .logo-icon,
.navbar .logo img.logo-icon {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.navbar.scrolled .logo {
    color: var(--text-primary);
    text-shadow: none;
}

.navbar.scrolled .logo-icon {
    width: 28px;
    height: 28px;
    background: transparent !important; /* 强制背景透明 */
    background-color: transparent !important; /* 强制背景色透明 */
    border: none !important; /* 强制移除边框 */
    box-shadow: none !important; /* 强制移除阴影 */
    border-radius: 0 !important; /* 强制移除圆角 */
    outline: none; /* 移除轮廓 */
}

.navbar.scrolled .logo-text {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
    gap: var(--spacing-lg);
}

.nav-links a {
    position: relative;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all var(--transition-base);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
}

.navbar.scrolled .nav-links a {
    color: var(--text-primary);
}

.nav-links a:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav-links a.active {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--accent-color);
    background: transparent;
}

.navbar.scrolled .nav-links a.active {
    color: var(--accent-color);
    background: var(--accent-light);
}

.nav-controls {
    display: flex;
    align-items: center;
    height: 100%;
    gap: var(--spacing-md);
}

/* Enhanced Language Switcher */
.lang-switcher {
    position: relative;
    cursor: pointer;
}

.selected-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 80px;
    justify-content: center;
}

.navbar.scrolled .selected-lang {
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
}

.selected-lang:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.navbar.scrolled .selected-lang:hover {
    background: rgba(255, 255, 255, 0.8);
}

.lang-switcher .arrow {
    transition: transform var(--transition-base);
    width: 10px;
    height: 6px;
}

.lang-switcher.open .arrow {
    transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--background-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    list-style: none;
    padding: 0.5rem;
    min-width: 120px;
    box-shadow: var(--shadow-large);
    z-index: 10;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    visibility: hidden;
    transition: all var(--transition-base);
}

.lang-switcher.open .lang-options {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.lang-options li {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    cursor: pointer;
}

.lang-options li:hover {
    background: var(--background-tertiary);
    color: var(--text-primary);
    transform: translateX(2px);
}

.lang-options li.active {
    font-weight: 600;
    color: var(--accent-color);
    background: var(--accent-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled .menu-toggle {
    color: var(--text-primary);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* --- Hero Section Enhancement --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-top: 80px;
    color: #fff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    text-align: center;
}

.hero-content .slogan {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.8);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.03em;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hero-content .mission {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin: var(--spacing-lg) 0 var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 智能淡出效果 - 当轮播图内容复杂时文字自动淡出 */
.hero-content.fade-out .slogan,
.hero-content.fade-out .mission {
    opacity: 0.1;
    transform: scale(0.95);
}

.product-carousel {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 重新设计的信息卡片 */
.hero-info-card {
    position: absolute;
    top: 120px;
    left: 60px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 280px;
    height: auto;
    min-height: 200px;
    transition: all var(--transition-slow);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-info-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
}

.info-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.info-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* 强制表情符号显示统一颜色 */
    filter: grayscale(100%) brightness(0) invert(1);
}

.hero-info-card h3 {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-info-card h2 {
    font-size: 1.75rem;
    color: var(--text-light);
    margin: 0 0 var(--spacing-lg) 0;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.info-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

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

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

/* 轮播控制UI - 移动到右下角 */
.carousel-ui {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.carousel-controls {
    display: flex;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.carousel-dot:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.carousel-dot.active {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.15);
}

.carousel-arrows {
    display: flex;
    gap: 0.75rem;
}

.carousel-nav {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    color: rgba(0, 0, 0, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(0, 0, 0, 0.7);
    transform: scale(1.03);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Enhanced slide-in animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Enhanced entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content .slogan {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-content .mission {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-info-card {
    animation: slideInLeft 1s ease-out 0.7s both;
}

.carousel-ui {
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* --- About Section Enhancement --- */
.about-section {
    background: var(--background-secondary);
    text-align: center;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-secondary), transparent);
    opacity: 0.2;
}

.about-content {
    display: flex;
    gap: var(--spacing-3xl);
    align-items: flex-start;
    text-align: left;
    flex-direction: column;
}

.about-text, .timeline {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: var(--spacing-lg);
}

.about-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), var(--success-color));
    border-radius: 2px;
}

.about-text h3:not(:first-child) {
    margin-top: var(--spacing-2xl);
}

.timeline {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
}

.timeline h3 {
    text-align: center;
    padding-left: 0;
    margin-bottom: var(--spacing-2xl);
}

.timeline h3::before {
    display: none;
}

.timeline ul {
    list-style: none;
    position: relative;
    text-align: left;
    padding-left: var(--spacing-lg);
}

.timeline ul::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-color), var(--success-color));
    border-radius: 1px;
}

.timeline li {
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--background-secondary);
    box-shadow: var(--shadow-small);
}

.timeline li strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

/* --- Products Section Enhancement --- */
.products-section {
    background: var(--background-tertiary);
    position: relative;
}

/* 产品装饰条样式 */
.products-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-xs) 0 var(--spacing-2xl) 0;
    gap: var(--spacing-md);
}

.decoration-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
    max-width: 120px;
    opacity: 0.6;
}

.decoration-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    padding: 0 var(--spacing-sm);
    background: var(--background-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 122, 255, 0.1);
    opacity: 0.8;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.product-card {
    background: var(--background-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-slow);
    position: relative;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.product-card > img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin: 0 auto var(--spacing-xl);
    transition: all var(--transition-base);
    border-radius: var(--radius-lg);
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: var(--background-secondary);
}

.product-card:hover img {
    transform: scale(1.08) rotate(1deg);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-weight: 600;
}

.product-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- Solutions Section Enhancement --- */
.solutions-section {
    background: var(--background-secondary);
    position: relative;
    padding: 10rem 0;
}

/* 扩展解决方案section的背景色到页脚 */
.solutions-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--spacing-3xl);
    background: var(--background-secondary);
    transform: translateY(100%);
    z-index: -1;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: var(--spacing-lg) auto var(--spacing-3xl);
    line-height: 1.6;
    padding: 0 var(--spacing-md);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-lg);
}

.solution-item {
    background: var(--background-tertiary);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    margin-bottom: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-small);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.solution-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), var(--success-color));
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transition: transform var(--transition-base);
    transform-origin: top;
}

.solution-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-medium);
}

.solution-item:hover::before {
    transform: scaleY(1);
}

.solution-item h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.solution-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* --- News Section Enhancement --- */
.news-section {
    background: var(--background-tertiary);
    position: relative;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.news-card {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    background: var(--background-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-small);
    text-align: left;
}

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

.news-card img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

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

.news-content {
    flex: 1;
}

.news-card h3 {
    font-size: 1.375rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.4;
}

.news-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.news-card a {
    font-weight: 600;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
}

.news-card a:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

.news-card a::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform var(--transition-base);
}

.news-card a:hover::after {
    transform: translateX(4px);
}

/* --- Contact Section Enhancement --- */
.contact-section {
    background: var(--background-secondary);
    border-bottom: none;
    position: relative;
}

.contact-content {
    background: var(--background-tertiary);
    padding: var(--spacing-3xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.contact-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h2 {
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.contact-info p {
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: left;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-info p strong {
    color: var(--text-primary);
    font-weight: 600;
    min-width: 120px;
}

.social-links {
    margin-top: var(--spacing-xl);
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.social-links a {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    background: var(--background-secondary);
    color: var(--text-secondary);
    transition: all var(--transition-base);
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    color: var(--accent-color);
    background: var(--accent-light);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* --- Enhanced Footer --- */
.footer {
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
    color: white;
    padding: var(--spacing-3xl) 0 0;
    margin-top: var(--spacing-3xl);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="25" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    pointer-events: none;
}

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

.footer-section h4 {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
    border-radius: 1px;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--text-light);
    transform: translateX(4px);
}

.footer-info {
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-info p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.copyright {
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-align: center;
}

.footer-records {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.footer-records a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    transition: all var(--transition-base);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.footer-records a:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

/* 页脚主要布局 */
.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    min-height: 120px;
    padding: var(--spacing-xl) var(--spacing-lg) 120px var(--spacing-lg);
    transition: none; /* 防止布局抖动 */
}

/* 左侧品牌标语区域 */
.footer-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 0;
    max-width: 45%; /* 限制宽度防止与联系信息重叠 */
}

.brand-slogan {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    word-break: break-word; /* 允许长单词换行 */
    min-height: 4.2rem; /* 防止高度变化 */
    transition: none; /* 禁用过渡效果防止抖动 */
}

/* 针对英文内容的特殊样式 */
html[lang="en"] .brand-slogan,
.lang-en .brand-slogan {
    font-size: 3rem; /* 英文稍微小一点 */
    line-height: 1.1;
}

/* 右侧联系信息区域 */
.footer-contact {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-top: var(--spacing-sm);
    margin-left: var(--spacing-xl); /* 增加与左侧标语的间距 */
}

.footer-contact h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: white;
}

.contact-info {
    max-width: 500px;
    margin-right: 200px;
}

/* 针对英文内容调整联系信息 */
html[lang="en"] .contact-info,
.lang-en .contact-info {
    max-width: 600px; /* 英文地址通常更长 */
}

.contact-info p {
    margin: var(--spacing-sm) 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
    text-align: left;
    transition: none; /* 防止文字切换时抖动 */
}

/* 防止页脚所有元素在语言切换时抖动 */
.footer * {
    transition-property: color, background-color, border-color, transform;
    transition-duration: var(--transition-base);
}

/* 排除页脚文字内容的过渡效果 */
.footer [data-translate] {
    transition: none !important;
}

/* 优化语言切换动画 */
[data-translate] {
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    /* 防止内容变化时的布局偏移 */
    contain: layout style;
}

/* 防止导航栏文字跳动 */
.navbar [data-translate] {
    white-space: nowrap;
    display: inline-block;
}

/* 保持容器高度稳定 */
section {
    overflow: hidden;
}

/* 防止语言切换时的重排 */
body.lang-switching {
    overflow-anchor: none;
}

body.lang-switching * {
    overflow-anchor: none;
}

/* 标题元素保持稳定 */
h1[data-translate],
h2[data-translate],
h3[data-translate] {
    transform: translateZ(0); /* 启用硬件加速 */
}

/* 防止主要内容区域高度跳动 */
.hero-section .slogan {
    min-height: 1.2em;
    line-height: 1.2;
}

.hero-section .mission {
    min-height: 1.5em;
    line-height: 1.5;
}

/* About section 稳定性 */
.about-section h2,
.products-section h2,
.solutions-section h2 {
    min-height: 1.2em;
}

.about-section p,
.product-card p,
.solution-item p {
    min-height: 3em; /* 确保段落有最小高度 */
}

/* 防止产品卡片高度变化 */
.product-card {
    min-height: 320px;
}

.solution-item {
    min-height: 150px;
}

.contact-info strong {
    color: white;
    font-weight: 600;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: all var(--transition-base);
}

.contact-info a:hover {
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* 右下角备案信息 */
.footer-records {
    position: absolute;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 3;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.copyright-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    order: 1;
}

/* 底部居中法律信息区域 */
.footer-bottom {
    width: 100%;
    text-align: center;
    padding: 12px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 12px;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.copyright-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 400;
    text-align: center;
    order: 1; /* 版权信息在上方 */
}

.icp-record {
    display: inline-block;
    order: 2; /* 备案号在下方 */
}

.icp-record a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-base);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icp-record a:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* 公安备案样式 */
.police-record {
    display: inline-block;
    order: 3; /* 公安备案号在最下方 */
    margin-top: 2px;
}

.police-record a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-base);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.police-record a img {
    width: 16px !important;
    height: 16px !important;
    display: inline !important;
    vertical-align: middle !important;
    margin-right: 4px !important;
    margin-bottom: 1px !important;
    object-fit: contain !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
}

.police-record a span {
    display: inline;
    vertical-align: middle;
}

.police-record a:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* --- Enhanced Responsive Design --- */

/* Tablet screens */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-main {
        padding: var(--spacing-lg) var(--spacing-lg) 100px var(--spacing-lg);
    }
    
    .footer-brand {
        max-width: 40%;
    }
    
    .brand-slogan {
        font-size: 2.8rem;
    }
    
    html[lang="en"] .brand-slogan,
    .lang-en .brand-slogan {
        font-size: 2.4rem;
    }
    
    .footer-contact {
        margin-left: var(--spacing-lg);
    }
    
    .contact-info {
        margin-right: 100px;
    }
    
    /* 平板端底部法律信息样式 */
    .footer-bottom {
        margin-top: var(--spacing-lg);
    }
    
    .copyright-info,
    .icp-record a,
    .police-record a {
        font-size: 0.85rem;
    }
    
    .police-record a img {
        width: 15px !important;
        height: 15px !important;
        max-width: 15px !important;
        max-height: 15px !important;
        min-width: 15px !important;
        min-height: 15px !important;
    }
}

/* 桌面端隐藏关闭按钮 */
@media (min-width: 769px) {
    .nav-close {
        display: none !important;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
        --spacing-3xl: 3rem;
    }

    body {
        font-size: 15px;
    }

    h2 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: var(--spacing-xl);
    }

    section {
        padding: var(--spacing-xl) 0;
    }
    
    .solutions-section {
        padding: 6rem 0;
    }
    
    .solutions-section::after {
        height: var(--spacing-2xl);
    }
    
    .footer {
        margin-top: var(--spacing-2xl);
        padding-top: var(--spacing-2xl);
    }

    .container {
        width: 95%;
        padding: 0 var(--spacing-sm);
    }

    .navbar {
        height: 64px;
        padding: 0.75rem 0;
        z-index: 999; /* 确保在菜单下方 */
    }

    .navbar.scrolled {
        height: 56px;
        padding: 0.5rem 0;
    }

    .logo {
        gap: 0.375rem;
        z-index: 1001; /* 移动端也确保正确层级 */
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        background: transparent !important; /* 强制背景透明 */
        background-color: transparent !important; /* 强制背景色透明 */
        border: none !important; /* 强制移除边框 */
        box-shadow: none !important; /* 强制移除阴影 */
        border-radius: 0 !important; /* 强制移除圆角 */
        outline: none; /* 移除轮廓 */
    }
    
    .logo-text {
        font-size: 1.5rem;
    }

    .navbar.scrolled .logo-icon {
        width: 24px;
        height: 24px;
        background: transparent !important; /* 强制背景透明 */
        background-color: transparent !important; /* 强制背景色透明 */
        border: none !important; /* 强制移除边框 */
        box-shadow: none !important; /* 强制移除阴影 */
        border-radius: 0 !important; /* 强制移除圆角 */
        outline: none; /* 移除轮廓 */
    }
    
    .navbar.scrolled .logo-text {
        font-size: 1.375rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        height: 66vh; /* 三分之二屏幕高度 */
        background: linear-gradient(135deg, rgba(29, 29, 31, 0.92) 0%, rgba(15, 15, 20, 0.88) 100%);
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: var(--spacing-xl) var(--spacing-lg);
        gap: var(--spacing-lg);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        z-index: 999999; /* 确保绝对在最顶层 */
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        /* Apple风格动画 - 平滑滑入 */
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        display: flex;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Apple风格关闭按钮 - 默认完全隐藏 */
    .nav-close {
        position: fixed;
        /* top和left由JavaScript动态设置 */
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.15), rgba(241, 245, 249, 0.1));
        border: 1px solid rgba(248, 250, 252, 0.25);
        color: #f8fafc;
        width: 40px; /* 与菜单按钮尺寸匹配 */
        height: 40px;
        border-radius: var(--radius-lg); /* 与菜单按钮样式匹配 */
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.2rem;
        font-weight: 300;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        /* 默认状态：完全隐藏 */
        transform: scale(0.8);
        opacity: 0;
        visibility: hidden;
        pointer-events: none; /* 默认不可交互 */
        z-index: 1000001; /* 关闭按钮在最顶层 */
    }
    
    .nav-links.active .nav-close {
        transform: scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* 激活时可交互 */
        transition-delay: 0.2s;
    }
    
    .nav-close:hover {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(99, 179, 237, 0.15));
        transform: scale(1.1);
        border-color: rgba(59, 130, 246, 0.4);
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 4px 12px rgba(59, 130, 246, 0.2),
            0 5px 15px rgba(0, 0, 0, 0.15);
        color: #ffffff;
    }
    
    .nav-close:active {
        transform: scale(1.05);
        transition-duration: 0.1s;
    }
    
    /* 背景遮罩层 - 全屏模糊效果，不影响菜单交互 */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 100; /* 远低于菜单，确保在下方 */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        pointer-events: none; /* 防止阻挡菜单交互 */
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* 激活时允许点击检测 */
    }

    .nav-links a {
        margin: 0;
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: 1.4rem;
        font-weight: 600; /* 增加字重提高可读性 */
        width: 80%;
        max-width: 280px;
        border-radius: var(--radius-lg);
        /* 专业配色：强制白色文字 */
        color: #ffffff !important; /* 强制纯白色，确保最高对比度 */
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.12), rgba(241, 245, 249, 0.08)); /* 明亮渐变背景 */
        border: 1px solid rgba(248, 250, 252, 0.2); /* 清晰边框 */
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform: translateY(30px) scale(0.9);
        opacity: 0;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        text-decoration: none;
        display: block;
        cursor: pointer;
        pointer-events: auto; /* 确保可以点击 */
        position: relative;
        z-index: 1000000; /* 菜单项在菜单容器之上 */
        /* 专业文字阴影 - 增强在深色背景上的对比度 */
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 rgba(0, 0, 0, 0.1);
        /* 添加内阴影创造深度感 */
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    /* Apple风格逐项动画 - 优雅延迟 */
    .nav-links.active a {
        transform: translateY(0) scale(1);
        opacity: 1;
        color: #ffffff !important; /* 确保激活状态也是白色 */
    }
    
    .nav-links.active a:nth-child(2) { transition-delay: 0.08s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.16s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.24s; }
    .nav-links.active a:nth-child(5) { transition-delay: 0.32s; }
    .nav-links.active a:nth-child(6) { transition-delay: 0.40s; }

    .nav-links a:hover {
        /* 专业hover配色：蓝色系渐变 */
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(99, 179, 237, 0.2));
        transform: translateY(-2px) scale(1.02);
        color: #ffffff !important; /* hover时强制纯白确保最高对比度 */
        border-color: rgba(59, 130, 246, 0.5);
        /* 专业阴影系统 */
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 4px 12px rgba(59, 130, 246, 0.2),
            0 8px 25px rgba(0, 0, 0, 0.15);
        /* 增强文字清晰度 */
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 1px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links a:active {
        transform: translateY(0) scale(0.98);
        transition-duration: 0.1s;
    }

    .nav-controls {
        gap: var(--spacing-sm);
        min-width: 140px; /* 固定最小宽度防止抖动 */
        justify-content: flex-end;
    }

    .menu-toggle {
        display: block;
        order: 2;
        position: relative;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0.7rem;
        border-radius: var(--radius-lg);
        transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        font-size: 1.3rem;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* 菜单打开时的样式 - 更平滑的旋转 */
    .menu-toggle.active {
        background: linear-gradient(135deg, rgba(0, 122, 255, 0.4), rgba(48, 209, 88, 0.3));
        border-color: rgba(0, 122, 255, 0.6);
        transform: rotate(180deg) scale(1.1);
        box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
    }
    
    .menu-toggle.active:hover {
        transform: rotate(180deg) scale(1.15);
    }
    
    .lang-switcher {
        order: 1;
        min-width: 60px; /* 固定最小宽度 */
        flex-shrink: 0; /* 防止收缩 */
    }

    .selected-lang {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        min-width: 70px;
    }

    .lang-options {
        width: 100px;
        padding: 0.375rem;
    }

    .lang-options li {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding-top: 64px;
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 0 var(--spacing-md);
        max-width: 90%;
    }
    
    .hero-content .slogan {
        font-size: clamp(2rem, 8vw, 3rem);
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    }
    
    .hero-content .mission {
        font-size: clamp(1rem, 4vw, 1.25rem);
        text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
        margin: var(--spacing-md) 0;
    }

    .hero-info-card {
        position: static;
        width: auto;
        max-width: 280px;
        margin: var(--spacing-xl) auto 0;
        padding: var(--spacing-lg);
        text-align: center;
    }

    .hero-info-card h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .hero-info-card h3 {
        text-align: center;
        font-size: 0.75rem;
    }

    .info-header {
        justify-content: center;
    }

    .info-stats {
        justify-content: center;
    }

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

    .carousel-ui {
        bottom: 20px;
        right: 20px;
        gap: var(--spacing-sm);
    }

    .carousel-controls {
        padding: 0.375rem;
        gap: 0.25rem;
        border-radius: 0.625rem;
    }

    .carousel-nav {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .carousel-arrows {
        gap: 0.5rem;
    }

    .carousel-dot {
        width: 4px;
        height: 4px;
    }

    /* Mobile sections */
    .about-content {
        gap: var(--spacing-xl);
    }

    /* Products decoration mobile */
    .products-decoration {
        margin: var(--spacing-xs) 0 var(--spacing-xl) 0;
        gap: var(--spacing-sm);
    }

    .decoration-line {
        max-width: 80px;
    }

    .decoration-text {
        font-size: 0.85rem;
        padding: 0 var(--spacing-xs);
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .news-card {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .news-card img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-content {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .contact-info p {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 0.25rem;
    }

    .contact-info p strong {
        min-width: auto;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    /* 页脚移动端 */
    .footer-main {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-2xl);
        min-height: auto;
        padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-xl) var(--spacing-md);
        align-items: center;
    }

    .footer-brand {
        justify-content: center;
        order: 1;
        margin-top: 0;
        max-width: 100%;
        margin-bottom: 0;
    }

    .brand-slogan {
        font-size: 2.5rem;
        line-height: 1.3;
        margin-bottom: var(--spacing-lg);
        text-align: center;
    }
    
    /* 英文版移动端字体大小 */
    html[lang="en"] .brand-slogan,
    .lang-en .brand-slogan {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .footer-contact {
        align-items: center;
        text-align: center;
        order: 2;
        margin-top: 0;
        margin-left: 0;
        padding: var(--spacing-xl) var(--spacing-md);
        background: rgba(255, 255, 255, 0.03);
        border-radius: var(--radius-xl);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
        max-width: 500px;
    }
    
    .footer-contact h3 {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-lg);
        color: rgba(255, 255, 255, 0.95);
        font-weight: 600;
    }

    .contact-info {
        margin-right: 0;
        max-width: 100%;
        width: 100%;
    }

    .contact-info p {
        text-align: center;
        margin: var(--spacing-md) 0;
        padding: var(--spacing-md);
        background: rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-lg);
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        transition: all 0.3s ease;
    }
    
    .contact-info p:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .contact-info strong {
        margin-right: 0;
        font-size: 0.9rem;
        opacity: 0.7;
        font-weight: 500;
    }
    
    .contact-info span,
    .contact-info a {
        font-size: 1.1rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.95);
    }
    
    .contact-info a {
        transition: all 0.3s ease;
    }
    
    .contact-info a:hover {
        color: var(--accent-color);
        text-decoration: underline;
    }

    .footer-records {
        display: none; /* 在移动端隐藏，因为我们有底部的法律信息区域 */
    }
    
    /* 移动端底部法律信息样式 */
    .footer-bottom {
        margin-top: 8px;
        padding: 10px 0 16px;
    }
    
    .footer-legal {
        gap: 5px;
    }
    
    .copyright-info,
    .icp-record a,
    .police-record a {
        font-size: 0.8rem;
    }
    
    .icp-record a,
    .police-record a {
        padding: 0.25rem 0.5rem;
    }
    
    .police-record a img {
        width: 14px !important;
        height: 14px !important;
        max-width: 14px !important;
        max-height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        object-fit: contain;
    }
}

/* --- Enhanced Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for grid items */
.product-card,
.solution-item,
.news-card {
    transition-delay: calc(var(--animation-delay, 0) * 0.1s);
}

.stagger-item {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stagger-item.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Loading animations and skeleton screens */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Image loading states */
img {
    transition: opacity 0.3s ease;
}

img:not(.loaded) {
    opacity: 0.7;
}

img.loaded {
    opacity: 1;
}

/* Keyboard navigation support */
.keyboard-navigation *:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Skip navigation for accessibility */
.skip-nav {
    display: none;
}

/* Enhanced button interactions */
.cta-button,
.carousel-nav,
.carousel-dot {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:active::after {
    width: 300px;
    height: 300px;
}

/* Parallax container optimization */
    .hero-section {
    will-change: transform;
    }

    .hero-decorative {
    will-change: transform;
}

/* Performance optimizations */
.product-card,
.solution-item,
.news-card,
.carousel-nav,
.carousel-dot {
    will-change: transform;
}

/* Carousel slide transitions */
.carousel-slide {
    will-change: transform, opacity;
}

/* Glass morphism enhancements */
.hero-decorative,
.navbar.scrolled,
.selected-lang {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Micro animations for better UX */
.nav-links a,
.social-links a,
.footer-section ul li a {
    position: relative;
    overflow: hidden;
}

.nav-links a::before,
.social-links a::before,
.footer-section ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.nav-links a:hover::before,
.social-links a:hover::before,
.footer-section ul li a:hover::before {
    left: 100%;
}

/* Enhanced card animations */
.product-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: var(--radius-xl);
}

.product-card:hover::after {
    opacity: 1;
}

/* Smooth state transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Focus indicators */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Optimized animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        transform: none;
    }
    
    .stagger-item {
        transform: none;
    }
    
    .hero-section,
    .hero-decorative {
        will-change: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #000000;
        --background-card: #ffffff;
        --glass-bg: rgba(255, 255, 255, 0.9);
    }
    
    .product-card,
    .solution-item,
    .news-card {
        border: 2px solid var(--text-primary);
    }
}

/* Dark mode preparation (for future implementation) */
@media (prefers-color-scheme: dark) {
    :root {
        --background-light: #1a1a1a;
        --background-secondary: #2a2a2a;
        --background-tertiary: #3a3a3a;
        --text-primary: #ffffff;
        --text-secondary: #a0a0a0;
        --text-tertiary: #808080;
    }
}

/* Print styles */
@media print {
    .navbar,
    .carousel-controls,
    .carousel-nav,
    .cta-button {
        display: none;
    }
    
    .hero-section {
        background: none;
        color: var(--text-primary);
    }
    
    .hero-decorative {
        position: static;
        background: none;
        box-shadow: none;
    }
    
    * {
        box-shadow: none !important;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .hero-info-card h2 {
        font-size: 1.25rem;
    }
    
    .product-card {
        padding: var(--spacing-lg);
    }
    
    .product-card img {
        width: 160px;
        height: 160px;
        margin-bottom: var(--spacing-lg);
    }
    
    .contact-content {
        padding: var(--spacing-lg);
    }

    .carousel-ui {
        bottom: 15px;
        right: 15px;
    }

    .carousel-controls {
        padding: 0.25rem;
        gap: 0.2rem;
        border-radius: 0.5rem;
    }

    .carousel-nav {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .carousel-arrows {
        gap: 0.375rem;
    }

    .carousel-dot {
        width: 3px;
        height: 3px;
    }
}

/* Tablet specific optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-info-card {
        width: 260px;
        left: 40px;
        top: 100px;
    }

    .carousel-ui {
        bottom: 30px;
        right: 30px;
    }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-info-card {
        width: 320px;
        padding: var(--spacing-2xl);
    }
    
    .hero-info-card h2 {
        font-size: 2rem;
    }

    .carousel-ui {
        bottom: 50px;
        right: 50px;
    }
}

/* Hover states for touch devices */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover,
    .solution-item:hover,
    .news-card:hover {
        transform: none;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
    
    .cta-button:active {
        transform: scale(0.95);
    }
}

/* === 暗黑模式全面适配 === */
@media (prefers-color-scheme: dark) {
    /* 导航栏暗黑模式 */
    .navbar {
        background-color: rgba(28, 28, 30, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .navbar.scrolled {
        background: rgba(28, 28, 30, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
    }
    
    .logo {
        color: #ffffff !important;
    }
    
    .navbar.scrolled .logo {
        color: #ffffff !important;
    }
    
    /* 桌面端导航链接暗黑模式 */
    .nav-links a {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .nav-links a:hover {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.15);
    }
    
    .navbar.scrolled .nav-links a {
        color: #ffffff !important;
    }
    
    .navbar.scrolled .nav-links a:hover {
        color: #007aff !important;
        background: rgba(0, 122, 255, 0.1);
    }
    
    /* 语言切换器暗黑模式 */
    .selected-lang {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
    }
    
    .navbar.scrolled .selected-lang {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: rgba(255, 255, 255, 0.25) !important;
        color: #ffffff !important;
    }
    
    .lang-options {
        background: rgba(28, 28, 30, 0.95) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .lang-options li {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .lang-options li:hover,
    .lang-options li.active {
        background: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
    }
    
    /* 菜单按钮暗黑模式 */
    .menu-toggle {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
    }
    
    .navbar.scrolled .menu-toggle {
        background: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
    }
    
    /* 产品展示区域暗黑模式 */
    .products-section {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
        color: #ffffff !important;
    }
    
    .products-section h2 {
        color: #ffffff !important;
    }
    
    .products-decoration .decoration-text {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .product-card {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .product-card h3 {
        color: #ffffff !important;
    }
    
    .product-card p {
        color: rgba(255, 255, 255, 0.85) !important;
    }
    
    .product-card:hover {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.25) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }
    
    /* About section 暗黑模式 */
    .about-section {
        background: #1a1a1a !important;
        color: #ffffff !important;
    }
    
    .about-section h2,
    .about-section h3 {
        color: #ffffff !important;
    }
    
    .about-section p {
        color: rgba(255, 255, 255, 0.85) !important;
    }
}

/* === 最终logo背景修复 - 最高优先级 === */
.logo img,
.logo .logo-icon,
img.logo-icon,
.navbar .logo img,
.navbar .logo .logo-icon,
.navbar img.logo-icon {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* 确保没有任何视觉效果 */
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
} 