﻿/* ========== Global Styles - 深空科技感主题 精细优化版 ========== */
:root {
    --primary: #0C0E12;         /* 深空主背景 微调更深邃 */
    --primary-dark: #030405;    /* 纯黑区域 */
    --accent: #2D7EEA;          /* 电光蓝 保留品牌色 */
    --accent-light: #4A9EFF;    /* 更亮的电光蓝用于悬浮/hover */
    --accent-glow: rgba(45, 126, 234, 0.25); /* 发光光晕 */
    --text-primary: #FFFFFF;     /* 主文字纯白 */
    --text-secondary: #B0B8C5;   /* 次级文字 更柔和 */
    --border-light: #2C2F36;     /* 深色边框 带一点蓝调 */
    --border-heavy: #3A3F48;     /* 强调边框/hover */
    --bg-card: #15181D;          /* 卡片背景 稍亮于主背景 */
    --bg-elevated: #1E2229;      /* 下拉菜单/悬浮卡片背景 */
    --shadow-color: rgba(0, 0, 0, 0.8);
    --shadow-elevation: 0 15px 30px -12px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(20, 24, 30, 0.85);
    --transition-smooth: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary);
    background-image: radial-gradient(circle at 50% 0, rgba(45, 126, 234, 0.03) 0%, transparent 60%),
                      radial-gradient(circle at 100% 100%, rgba(45, 126, 234, 0.02) 0%, transparent 50%);
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 5%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== Typography ========== */
h2 {
    font-size: 2.8rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-subhead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 3rem;
    font-weight: 350;
    letter-spacing: 0.01em;
}
.section-subhead--centered {
    margin-left: auto;
    margin-right: auto;
}

/* ========== Header & Navigation ========== */
header {
    background-color: rgba(12, 14, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(45, 126, 234, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    letter-spacing: -0.5px;
}

.logo:hover {
    transform: translateX(-4px);
    color: var(--accent-light);
}

.logo i {
    color: var(--accent);
    font-size: 2rem;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 450;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    box-shadow: 0 0 10px var(--accent-glow);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* 二级菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-elevated);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevation), 0 0 0 1px rgba(45, 126, 234, 0.2);
    min-width: 240px;
    padding: 0.6rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition-smooth);
    z-index: 200;
    border: 1px solid var(--border-light);
}

.nav-links li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-menu li {
    display: block;
    position: relative;
}

.dropdown-menu a {
    padding: 0.7rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(45, 126, 234, 0.1);
    border-left-color: var(--accent);
    color: var(--text-primary);
}

.dropdown-menu a::after {
    display: none;
}

/* 三级菜单 */
.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.6rem;
    transform: translateX(10px);
    opacity: 0;
    visibility: hidden;
}

.dropdown-menu li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(4px);
}

/* 下拉箭头 */
.has-dropdown > a i {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.2s;
    color: var(--accent);
}

.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

/* 语言切换器 */
.language-switcher {
    position: relative;
    cursor: pointer;
}

#translate {
    min-width: 140px;
}

.translateSelectLanguage {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 10px 36px 10px 20px;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    background: var(--bg-card) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 16px center;
    background-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: var(--text-primary);
    font-weight: 450;
    transition: var(--transition-smooth);
    width: 170px;
    backdrop-filter: blur(4px);
}

.translateSelectLanguage:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.translate-select-panel {
    background: var(--bg-elevated) !important;
    backdrop-filter: blur(8px) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-elevation), 0 0 0 1px var(--accent) !important;
    border: 1px solid var(--border-light) !important;
    padding: 0.6rem 0 !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    z-index: 1001 !important;
}

.translate-select-panel div {
    padding: 0.8rem 1.8rem !important;
    font-size: 0.95rem !important;
    color: var(--text-secondary) !important;
    transition: background 0.15s, border-color 0.15s !important;
    cursor: pointer !important;
    border-left: 3px solid transparent !important;
}

.translate-select-panel div:hover {
    background: rgba(45, 126, 234, 0.1) !important;
    border-left-color: var(--accent) !important;
    color: var(--text-primary) !important;
}

.translate-select-panel div.selected {
    background: rgba(45, 126, 234, 0.15) !important;
    border-left-color: var(--accent) !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.btn-login {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--accent-light);
    transform: translateY(-2px);
}

.btn-register {
    background: linear-gradient(135deg, var(--accent), #1A5BBF);
    color: var(--text-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(45, 126, 234, 0.4);
}

.btn-register:hover {
    background: linear-gradient(135deg, #1A5BBF, var(--accent));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(45, 126, 234, 0.6);
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    font-size: 1.2rem;
    border: 1px solid transparent;
}

.btn-icon:hover {
    background: rgba(45, 126, 234, 0.1);
    color: var(--accent-light);
    border-color: var(--accent);
    transform: scale(1.1);
}

/* Search Wrapper */
.search-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 1.2rem 2%;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 99;
    border-top: 1px solid rgba(45, 126, 234, 0.2);
    border-bottom: 1px solid rgba(45, 126, 234, 0.2);
}

.search-wrapper.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.search-icon {
    color: var(--text-secondary);
    font-size: 1.3rem;
}

.search-container input {
    flex: 1;
    padding: 0.9rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}

.search-container input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-container button {
    background: linear-gradient(135deg, var(--accent), #1A5BBF);
    border: none;
    color: var(--text-primary);
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(45, 126, 234, 0.3);
}

.search-container button:hover {
    background: linear-gradient(135deg, #1A5BBF, var(--accent));
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(45, 126, 234, 0.5);
}

.close-search {
    background: transparent;
    border: 1px solid var(--border-light);
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem 1rem;
    line-height: 1;
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.close-search:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(45, 126, 234, 0.1);
}

/* Mobile Toggle & Nav */
.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-light);
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem 1rem;
    line-height: 1;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.mobile-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    overflow-y: auto;
    border-right: 1px solid rgba(45, 126, 234, 0.3);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.close-mobile {
    background: none;
    border: 1px solid var(--border-light);
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.close-mobile:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.mobile-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 450;
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: padding-left 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-links a:hover {
    padding-left: 12px;
    color: var(--accent-light);
    border-bottom-color: var(--accent);
}

/* 移动端子菜单 */
.mobile-dropdown {
    list-style: none;
    padding-left: 1.5rem;
    display: none;
}

.mobile-dropdown.active {
    display: block;
}

.mobile-dropdown li a {
    font-size: 1rem;
    padding: 0.8rem 0 0.8rem 1rem;
    border-bottom: 1px dashed var(--border-light);
    color: var(--text-secondary);
}

.mobile-dropdown li a:hover {
    color: var(--accent-light);
}

.mobile-dropdown .mobile-dropdown {
    padding-left: 1.5rem;
}

.mobile-dropdown .mobile-dropdown li a {
    font-size: 0.95rem;
    padding-left: 2rem;
}

.arrow-icon {
    transition: transform 0.2s;
    color: var(--accent);
}

.active > a .arrow-icon {
    transform: rotate(90deg);
}

.mobile-language {
    margin: 1.5rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 1.2rem 0;
    max-height: 300px;
    overflow-y: auto;
}

.lang-options-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-language .language-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
    border-left: 4px solid transparent;
    background-color: transparent;
    color: var(--text-secondary);
}

.mobile-language .language-option:hover {
    background: rgba(45, 126, 234, 0.1);
    border-left-color: var(--accent);
    color: var(--text-primary);
}

.mobile-language .language-option.active {
    background: rgba(45, 126, 234, 0.15);
    border-left-color: var(--accent);
    font-weight: 500;
    color: var(--text-primary);
}

.mobile-language .language-flag {
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
}

.mobile-language .language-name {
    flex: 1;
    font-size: 1rem;
}

.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.mobile-auth .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ========== Hero Banner ========== */
.hero-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(45, 126, 234, 0.2);
}

.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 800;
    max-height: 80vh;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.15, 1);
}

.carousel-item {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.8) saturate(1.1);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
    width: 80%;
    max-width: 800px;
    z-index: 2;
    padding: 1rem;
    backdrop-filter: blur(2px);
}

.carousel-caption h2 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 500;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 0 2px 10px rgba(45, 126, 234, 0.5);
}

.carousel-caption p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 350;
}

.carousel-caption .btn {
    background: linear-gradient(135deg, var(--accent), #1A5BBF);
    color: white;
    border: none;
    padding: 0.9rem 2.8rem;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(45, 126, 234, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-caption .btn:hover {
    background: linear-gradient(135deg, #1A5BBF, var(--accent));
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(45, 126, 234, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background: rgba(20, 24, 30, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-control:hover {
    background: var(--accent);
    border-color: var(--accent-light);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

.carousel-control.prev { left: 30px; }
.carousel-control.next { right: 30px; }

.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 10;
}

.carousel-indicators button {
    width: 44px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    backdrop-filter: blur(2px);
}

.carousel-indicators button.active {
    background: var(--accent);
    width: 70px;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ========== 服务项目模块 ========== */
section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-card);
    position: relative;
}

.bg-white {
    background-color: var(--primary);
}

.text-center {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.8rem 1.8rem 2.2rem;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(255, 255, 255, 0.02) inset;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-light);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0, rgba(45, 126, 234, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent);
    box-shadow: 0 25px 40px -12px rgba(45, 126, 234, 0.3), 0 0 0 1px var(--accent) inset;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 10px var(--accent-glow));
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1rem;
}

.card-link {
    font-weight: 500;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s, color 0.2s;
    font-size: 1.05rem;
    border-bottom: 1px solid transparent;
}

.service-card:hover .card-link {
    gap: 1rem;
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
}

/* 工厂介绍模块 */
.factory-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.factory-content {
    flex: 1;
}

.factory-content h2 {
    margin-bottom: 1.8rem;
    color: var(--text-primary);
}

.factory-desc {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    line-height: 1.7;
}

.factory-stats {
    display: flex;
    gap: 3rem;
    margin: 2.5rem 0;
}

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.2;
    text-shadow: 0 0 15px var(--accent-glow);
}

.stat-item p {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    font-weight: 350;
}

.btn-virtual-tour {
    background: linear-gradient(135deg, var(--accent), #1A5BBF);
    color: var(--text-primary);
    padding: 0.9rem 2.8rem;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(45, 126, 234, 0.3);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-virtual-tour:hover {
    background: linear-gradient(135deg, #1A5BBF, var(--accent));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(45, 126, 234, 0.5);
}

.btn-virtual-tour i {
    margin-left: 0.6rem;
    transition: transform 0.2s;
}

.btn-virtual-tour:hover i {
    transform: translateX(4px);
}

.factory-media {
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-elevation), 0 0 0 1px rgba(45, 126, 234, 0.2);
    border: 1px solid var(--border-light);
}

.factory-media img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
    filter: brightness(0.95) contrast(1.1);
}

.factory-media:hover img {
    transform: scale(1.05);
}

/* 精选产品模块 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(255, 255, 255, 0.02) inset;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-light);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 25px 40px -15px rgba(45, 126, 234, 0.3), 0 0 0 1px var(--accent) inset;
}

.product-image {
    background: #1A1E24;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    aspect-ratio: 1 / 1;      /* 强制容器为正方形 */
    width: 100%;              /* 宽度跟随父容器（grid列宽） */
    height: auto;             /* 高度由 aspect-ratio 自动计算 */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* 图片填满正方形，不裁剪（因为图片也是正方形） */
    transition: transform 0.5s;
    filter: brightness(0.95);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-info {
    padding: 2rem 1.8rem 2.2rem;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.product-category {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
    font-weight: 450;
}

.product-price {
    font-weight: 600;
    font-size: 1.5rem;
    margin: 1rem 0 1.5rem;
    color: var(--text-primary);
}

.product-link {
    color: var(--accent);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, gap 0.2s;
    font-size: 1.05rem;
}

.product-link:hover {
    border-bottom-color: var(--accent);
    color: var(--accent-light);
    gap: 0.8rem;
}

/* 留言询单模块 */
.contact-wrapper {
    display: flex;
    gap: 3rem;
    background: var(--bg-card);
    border-radius: 40px;
    box-shadow: var(--shadow-elevation);
    padding: 3.5rem;
    border: 1px solid var(--border-light);
}

.contact-info {
    flex: 1;
    padding-right: 2rem;
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.8rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.15rem;
    line-height: 1.7;
}

.contact-details {
    margin: 2.5rem 0;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.contact-details i {
    width: 28px;
    color: var(--accent);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.secure-badge {
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.secure-badge i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.1rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: rgba(0, 0, 0, 0.4);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent), #1A5BBF);
    color: var(--text-primary);
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(45, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #1A5BBF, var(--accent));
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(45, 126, 234, 0.5);
}

/* 底部导航 */
.footer {
    background: #07090C;
    color: var(--text-secondary);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(45, 126, 234, 0.2);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.footer-col p {
    margin: 1.2rem 0 1.8rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.footer-logo i {
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
    border: 1px solid var(--border-light);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--text-primary);
    border-color: var(--accent);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(45, 126, 234, 0.4);
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul a {
    color: var(--text-secondary);
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-col ul a:hover {
    color: var(--accent-light);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.payment-icons i {
    font-size: 2.2rem;
    margin-left: 1rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.payment-icons i:hover {
    color: var(--accent);
}

/* ========== 右侧浮动条 ========== */
.floating-bar {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.floating-item {
    width: 54px;
    height: 54px;
    background: var(--bg-elevated);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    box-shadow: var(--shadow-elevation), 0 0 0 1px rgba(45, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-light);
}

.floating-item:hover {
    background: var(--accent);
    color: var(--text-primary);
    transform: scale(1.15);
    border-color: var(--accent-light);
    box-shadow: 0 0 20px var(--accent-glow);
}

.floating-item .qr-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-elevated);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--shadow-elevation), 0 0 0 1px var(--accent);
    display: none;
    width: 130px;
    text-align: center;
    pointer-events: none;
    border: 1px solid var(--border-light);
}

.floating-item:hover .qr-tooltip {
    display: block;
}

.qr-tooltip img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.qr-tooltip span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.floating-item a {
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.go-top {
    background: linear-gradient(135deg, var(--accent), #1A5BBF);
    color: var(--text-primary);
    border: none;
}

.go-top:hover {
    background: linear-gradient(135deg, #1A5BBF, var(--accent));
    color: white;
}

/* 响应式 */
@media screen and (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .factory-wrapper { flex-direction: column; }
    .contact-wrapper { flex-direction: column; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 900px) {
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-toggle {
        display: block !important;
    }
    
    .search-wrapper {
        top: 70px;
    }

    .floating-bar {
        right: 15px;
        gap: 10px;
    }
    
    .floating-item {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}

@media screen and (min-width: 901px) {
    .mobile-nav {
        transform: translateX(100%) !important;
    }
}

@media screen and (max-width: 768px) {
    .carousel {
        aspect-ratio: 16 / 9;
    }
    
    .carousel-control {
        width: 44px;
        height: 44px;
        font-size: 2.2rem;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 480px) {
    .carousel-control {
        display: none;
    }
    
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        padding: 2rem;
    }
}