/* 全局样式 */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-glow: rgba(30, 64, 175, 0.15);
    --secondary: #0f172a;
    --accent: #0ea5e9;
    --accent-light: #38bdf8;
    --success: #10b981;
    --text: #0f172a;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.2);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding-bottom: env(safe-area-inset-bottom);
    /* 安卓浏览器兼容 */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition);
    padding-top: env(safe-area-inset-top);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links > li > a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* 下拉箭头 */
.has-dropdown > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 2px;
    transition: var(--transition);
}

.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* 二级下拉菜单 */
/* 二级下拉菜单 - 产品导航 */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

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

/* ===================== */
/* 两级菜单（左右布局） */
/* ===================== */

.dropdown-two-level {
    display: grid;
    grid-template-columns: auto 1fr;
    min-width: 560px;
    gap: 0;
}

/* ---- 左栏：分类列表 ---- */
.dropdown-level1 {
    border-right: 1px solid var(--border-light);
    padding: 8px 0;
    min-width: 160px;
}

.dropdown-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px 10px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    border-radius: 0;
    position: relative;
}

.dropdown-cat-item:hover,
.dropdown-cat-item.active {
    background: linear-gradient(135deg, var(--primary-glow), transparent);
    color: var(--primary);
}

/* hover时的左侧高亮条 */
.dropdown-cat-item:hover::before,
.dropdown-cat-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.dropdown-cat-item .arrow {
    font-size: 1rem;
    color: var(--text-lighter);
    transition: transform 0.2s;
    margin-left: 8px;
}

.dropdown-cat-item:hover .arrow,
.dropdown-cat-item.active .arrow {
    color: var(--primary);
    transform: translateX(2px);
}

/* ---- 右栏：产品列表 ---- */
.dropdown-level2 {
    padding: 8px 0;
    position: relative;
    min-height: 100%;
}

/* 所有产品面板默认隐藏 */
.dropdown-products {
    display: none;
    padding: 0 20px;
}

/* JS添加.active类时显示 */
.dropdown-products.active {
    display: block;
    animation: fadeInProduct 0.15s ease;
}

@keyframes fadeInProduct {
    from { opacity: 0; transform: translateX(4px); }
    to { opacity: 1; transform: translateX(0); }
}

.dropdown-products a {
    display: block;
    padding: 9px 12px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 400;
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
    border-radius: 6px;
    text-decoration: none;
    line-height: 1.5;
}

.dropdown-products a:hover {
    color: var(--primary);
    background: var(--bg-light);
    padding-left: 16px;
}

.lang-switch {
    display: flex;
    gap: 0;
    background: var(--bg-lighter);
    padding: 3px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.lang-btn {
    padding: 6px 18px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.lang-btn:hover:not(.active) {
    color: var(--text);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    min-width: 20px;
    transition: var(--transition);
}

/* 移动端产品菜单 */
.mobile-products-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
}

.mobile-products-menu.active {
    display: block;
}

.mobile-menu-section {
    margin-bottom: 20px;
}

.mobile-menu-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.mobile-menu-section a {
    display: block;
    padding: 10px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-section a:last-child {
    border-bottom: none;
}

/* 首页横幅 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a365d 50%, #1e3a5f 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(30, 64, 175, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle 600px at 30% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
        radial-gradient(circle 400px at 70% 80%, rgba(30, 64, 175, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 3px;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-btn::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: 0.5s;
}

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

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: none;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 100px;
}

/* 特点介绍 */
.features {
    padding: 120px 0;
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    text-align: center;
    padding: 40px 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    background: linear-gradient(135deg, var(--primary-glow), transparent);
    border: 2px solid rgba(30, 64, 175, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon svg {
    color: white;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* 产品展示 */
.products {
    padding: 120px 0;
    background: var(--bg-lighter);
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 24px auto 0;
}

/* 产品分类标签 */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* 产品卡片 - 可点击 */
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

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

.product-card.hidden {
    display: none;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-lighter), var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.03), transparent);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-placeholder {
    width: 100px;
    height: 100px;
    color: var(--primary);
    opacity: 0.5;
}

.product-placeholder svg {
    width: 100%;
    height: 100%;
}

.product-info {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.product-category::before {
    content: '';
    width: 12px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.product-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.4;
}

.product-desc {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 20px;
    line-height: 1.7;
    flex: 1;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}

.product-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.product-card:hover .product-link {
    gap: 12px;
}

.product-card:hover .product-link::after {
    transform: translateX(4px);
}

/* 技术参数 */
.specs {
    padding: 100px 0;
    background: var(--bg);
}

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

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.specs-table th,
.specs-table td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.specs-table th {
    background: var(--bg-dark);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.specs-table th:first-child {
    background: var(--primary);
}

.specs-table td {
    font-size: 0.95rem;
    color: var(--text);
}

.specs-table td:first-child {
    font-weight: 500;
    background: var(--bg-light);
}

.specs-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.02);
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text);
    letter-spacing: -0.5px;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 24px;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-placeholder {
    width: 360px;
    height: 300px;
    background: linear-gradient(135deg, var(--bg-lighter), var(--border-light));
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-placeholder:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.about-placeholder svg {
    width: 200px;
    height: 200px;
    opacity: 0.5;
}

/* 联系我们 */
.contact {
    padding: 120px 0;
    background: var(--bg-lighter);
}

.contact-content-centered {
    display: flex;
    justify-content: center;
}

.contact-info-centered {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding: 32px 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
    pointer-events: none;
    background: var(--bg);
    padding: 0 4px;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 12px;
    font-size: 0.8rem;
    color: var(--primary);
}

.submit-btn {
    padding: 16px 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 页脚 */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 10px;
    max-width: 280px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

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

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* ========== 产品详情页样式 ========== */

/* 面包屑导航 */
.breadcrumb {
    padding: 100px 0 0;
    background: var(--bg-lighter);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb .sep {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.breadcrumb .current {
    color: var(--text);
    font-weight: 500;
}

/* 产品详情 */
.product-detail {
    padding: 48px 0 80px;
    background: var(--bg-lighter);
}

/* 产品头部 */
.product-header {
    margin-bottom: 48px;
}

.product-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.product-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-glow), rgba(14,165,233,0.08));
    border: 1px solid rgba(30,64,175,0.15);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.product-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

#productTitle {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.product-short-desc {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* 产品图片 */
.product-image-section {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.product-main-image {
    max-width: 700px;
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-main-image:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.product-placeholder-large {
    width: 280px;
    height: 280px;
    color: var(--primary);
    opacity: 0.3;
}

.product-placeholder-large svg {
    width: 100%;
    height: 100%;
}

/* 产品描述区域 */
.product-description {
    max-width: 800px;
    margin: 0 auto;
}

.desc-text-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.desc-text-block:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.desc-text-block p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 2;
    white-space: pre-wrap;
}

.desc-image-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    align-items: center;
}

.desc-image-block .desc-image {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 400px;
}

.desc-image-block .desc-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.desc-image-block .desc-text p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 2;
    white-space: pre-wrap;
}

.desc-image-only {
    margin-bottom: 24px;
}

.desc-image-only img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

/* 上一个/下一个产品导航 */
.product-navigation {
    padding: 60px 0 100px;
    background: var(--bg);
    border-top: 1px solid var(--border-light);
}

.nav-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.nav-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.nav-product:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.nav-product.empty {
    visibility: hidden;
}

.nav-product-arrow {
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    opacity: 0.6;
    transition: var(--transition);
}

.nav-product:hover .nav-product-arrow {
    opacity: 1;
    transform: scale(1.1);
}

.nav-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.nav-product-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.nav-product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.next-product {
    text-align: right;
    flex-direction: row-reverse;
}

.next-product .nav-product-arrow {
    transform: rotate(180deg);
}

.next-product:hover .nav-product-arrow {
    transform: rotate(180deg) scale(1.1);
}
    transition: var(--transition);
}

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

/* 详情标签页 */
.product-tabs-detail {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tab-headers {
    display: flex;
    border-bottom: 2px solid var(--border);
}

.tab-header {
    flex: 1;
    padding: 18px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-header:hover {
    color: var(--primary);
}

.tab-header.active {
    color: var(--primary);
}

.tab-header.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    display: none;
    padding: 32px;
}

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

/* 详情规格表 */
.detail-table {
    max-width: 600px;
}

.detail-table td {
    padding: 14px 20px;
}

.detail-table td:first-child {
    width: 200px;
    font-weight: 500;
}

/* 描述内容 */
.description-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 28px;
    color: var(--text);
}

.description-content h3:first-child {
    margin-top: 0;
}

.description-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

/* 应用领域网格 */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.application-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.application-card:hover {
    background: var(--bg);
    box-shadow: var(--shadow);
}

.app-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.app-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.application-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.application-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 文档列表 */
.docs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.doc-item:hover {
    background: var(--bg);
    box-shadow: var(--shadow);
}

.doc-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.doc-info {
    flex: 1;
}

.doc-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.doc-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.doc-download {
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
}

.doc-item:hover .doc-download {
    background: var(--primary-dark);
}

/* 产品详情页 */
.product-detail {
    padding: 40px 0 80px;
    background: var(--bg);
}

.product-header {
    text-align: center;
    margin-bottom: 48px;
}

.product-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.product-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.product-short-desc {
    color: var(--text-light);
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.product-main-image {
    max-width: 600px;
    margin: 0 auto 48px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.product-placeholder-large {
    width: 300px;
    height: 300px;
    color: var(--primary);
}

.product-placeholder-large svg {
    width: 100%;
    height: 100%;
}

/* 产品描述区域 */
.product-description {
    max-width: 900px;
    margin: 0 auto;
}

.desc-text-block {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
}

.desc-text-block p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.9;
    white-space: pre-line;
}

.desc-image-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
    align-items: center;
}

.desc-image-block .desc-image {
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 400px;
}

.desc-image-block .desc-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.desc-image-block .desc-text p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.9;
    white-space: pre-line;
}

.desc-image-only {
    margin-bottom: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    max-height: 500px;
    margin-left: auto;
    margin-right: auto;
}

.desc-image-only img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

/* 上一个/下一个产品导航 */
.product-navigation {
    padding: 40px 0 80px;
    background: var(--bg);
}

.nav-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.nav-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.nav-product:hover {
    background: var(--bg);
    box-shadow: var(--shadow);
}

.nav-product.empty {
    visibility: hidden;
}

.nav-product-arrow {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
}

.nav-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.nav-product-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.nav-product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.next-product {
    text-align: right;
    flex-direction: row-reverse;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .about-image {
        order: -1;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: static;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        min-height: 44px; /* 触控友好最小高度 */
        min-width: 44px;
        justify-content: center;
        align-items: center;
    }

    .nav-container {
        height: 72px;
    }

    /* 横幅优化 - 核心修复 */
    .hero {
        min-height: 100svh; /* 用 svh 代替 vh，自动适应可视区域高度 */
        padding: 80px 20px 60px;
        padding-top: calc(72px + env(safe-area-inset-top) + 16px);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 3rem); /* 使用 clamp 动态计算字号 */
        font-weight: 700;
        line-height: 1.15;
    }

    .hero h1 span {
        display: block;
        margin-top: 4px;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3.5vw, 1.5rem);
        letter-spacing: 1px;
    }

    .hero-desc {
        font-size: clamp(0.9rem, 3vw, 1.15rem);
        line-height: 1.6;
        margin-bottom: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta-btn {
        min-width: 200px;
        padding: 14px 28px;
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 12px;
        gap: 16px;
    }

    .features {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        padding: 0 12px;
        gap: 16px;
    }

    .product-tabs {
        flex-direction: column;
        align-items: stretch;
        padding: 0 16px;
        gap: 8px;
    }

    .tab-btn {
        text-align: center;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    /* 移动端菜单安全区域 */
    .mobile-products-menu {
        top: calc(72px + env(safe-area-inset-top));
        max-height: calc(100svh - 72px - env(safe-area-inset-top));
        padding: 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .mobile-menu-section {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .mobile-menu-section h4 {
        font-size: 0.85rem;
    }

    .mobile-menu-section a {
        font-size: 0.95rem;
        padding: 10px 0;
    }

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

    .contact-content-centered {
        padding: 0 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding: 0 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .dropdown-menu {
        display: none;
    }

    .tab-headers {
        flex-wrap: wrap;
    }

    .tab-header {
        flex: 1 1 50%;
    }

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

    .about-content {
        grid-template-columns: 1fr !important;
    }

    .about-image {
        order: -1;
    }

    /* 图片自适应 */
    .product-card img,
    .feature-card img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: calc(72px + env(safe-area-inset-top) + 12px);
        padding-bottom: 48px;
    }

    .hero h1 {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .cta-btn {
        width: 100%;
        max-width: 280px;
    }

    .section-header h2 {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

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

    .specs-table th,
    .specs-table td {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .footer {
        padding-top: 48px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* iOS 安全区域适配 */
@supports (padding: env(safe-area-inset-top)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    .nav-container {
        height: calc(72px + env(safe-area-inset-top));
    }
}

/* 触摸设备优化 */
@supports (touch-action: manipulation) {
    .product-card,
    .feature-card,
    .tab-btn {
        cursor: pointer;
    }
}
