:root {
    --bg-deep: #04060c;
    --card-glass-bg: rgba(10, 16, 28, 0.35);
    --card-glass-bg-hover: rgba(15, 22, 38, 0.8);
    --card-glass-border: rgba(255, 255, 255, 0.04);
    --card-glass-border-hover: rgba(0, 200, 255, 0.5);
    --accent-cyan: #00e0ff;
    --accent-purple: #9d6cff;
    --accent-gold: #f0b842;
    --text-primary: #e8edf5;
    --text-secondary: #a4afc1;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --transition-bounce: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-stack: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-stack);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==================== 背景轮播层 ==================== */
.bg-carousel {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-slides-track {
    display: flex; width: 100%; height: 100%;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.bg-slide {
    flex: 0 0 100%; width: 100%; height: 100%;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    position: relative;
}
.bg-slide-1 { background-image: url('../image/home-bg1.webp'); }
.bg-slide-2 { background-image: url('../image/home-bg2.webp'); }
.bg-slide-3 { background-image: url('../image/home-bg3.webp'); }
.bg-slide-4 { background-image: url('../image/home-bg4.webp'); }
.bg-slide-5 { background-image: url('../image/home-bg5.webp'); }
.bg-geo-lines {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; opacity: 0.2;
}
.geo-line {
    position: absolute; background: linear-gradient(90deg, transparent, rgba(0,200,255,0.15), transparent);
    height: 1px; width: 60%; animation: geoFloat 8s ease-in-out infinite;
}
.geo-line:nth-child(1) { top: 22%; left: -10%; }
.geo-line:nth-child(2) { top: 42%; left: 30%; width: 45%; background: linear-gradient(90deg, transparent, rgba(160,120,255,0.12), transparent); animation-delay: 2s; }
.geo-line:nth-child(3) { top: 62%; left: 15%; width: 55%; animation-delay: 4s; }
.geo-line:nth-child(4) { top: 78%; left: -5%; width: 50%; animation-delay: 6s; }
@keyframes geoFloat {
    0%,100% { transform: translateX(0) scaleX(1); opacity: 0.3; }
    50% { transform: translateX(40px) scaleX(1.2); opacity: 0.6; }
}
.glow-orb {
    position: absolute; border-radius: 50%; pointer-events: none;
    filter: blur(60px); animation: orbPulse 8s ease-in-out infinite;
}
.glow-orb.orb-cyan { background: #00d4ff; width: 200px; height: 200px; top: 10%; left: 8%; opacity: 0.06; }
.glow-orb.orb-purple { background: #8b5cf6; width: 240px; height: 240px; top: 50%; right: 6%; opacity: 0.05; animation-delay: 3s; }
.glow-orb.orb-gold { background: #f0a742; width: 150px; height: 150px; bottom: 20%; left: 35%; opacity: 0.04; animation-delay: 5s; }
@keyframes orbPulse {
    0%,100% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.8); opacity: 0.15; }
}
.grid-overlay-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; opacity: 0.02;
    background-image: linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* ==================== 粒子层 ==================== */
#particleCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none; opacity: 0.45;
}

/* ==================== 左侧圆点指示器 ==================== */
.carousel-dots {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.carousel-dot:hover {
    background: rgba(0, 200, 255, 0.6);
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.4);
}
.carousel-dot.active {
    background: #00e0ff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 18px rgba(0, 224, 255, 0.7);
    transform: scale(1.3);
}

/* ==================== 横幅文字层 ==================== */
.hero-text-layer {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    z-index: 5;
    transform: translateY(-50%);
    pointer-events: none;
    transition: opacity 0.5s ease, top 0.5s ease;
    display: flex;
    justify-content: center;
}
.hero-text-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(12px, 4vw, 32px);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}
.text-block {
    pointer-events: auto;
    max-width: 800px;
    width: fit-content;
    transition: opacity 0.5s ease;
}
.text-block.text-left {
    align-self: flex-start;
    text-align: left;
}
.text-block.text-center {
    align-self: center;
    text-align: center;
    width: auto;
    max-width: 800px;
}
.text-block.text-right {
    align-self: flex-end;
    text-align: right;
}

.hero-title {
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #ffffff, #e0f7ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    filter: drop-shadow(0 0 30px rgba(0, 160, 255, 0.3));
}
.hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    color: #ffffff;
    letter-spacing: 0.05em;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 600px;
}
.text-center .hero-subtitle { margin-left: auto; margin-right: auto; }
.text-right .hero-subtitle { margin-left: auto; }

.hero-btn {
    display: inline-block;
    padding: 12px clamp(24px, 6vw, 36px);
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e8f5;
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    letter-spacing: 0.06em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.hero-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #00d4ff;
    box-shadow: 0 0 40px rgba(0, 200, 255, 0.3), 0 0 80px rgba(0, 160, 255, 0.1);
    color: #fff;
    transform: translateY(-3px);
}

/* ==================== 顶部导航 ==================== */
.top-nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 10px 0;
    background: rgba(4, 6, 14, 0.4);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(0, 200, 255, 0.12);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 30px rgba(0, 160, 255, 0.06);
}
.top-nav.scrolled {
    background: rgba(2, 4, 12, 0.85);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(0, 200, 255, 0.2);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 200, 255, 0.2);
}
.nav-inner {
    width: 100%; max-width: 1400px; margin: 0 auto;
    padding: 0 clamp(12px, 4vw, 32px);
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; text-decoration: none;
    transition: transform 0.3s ease;
}
.nav-logo:hover { transform: scale(1.02); }
.logo-img {
    max-width: 150px; max-height: 40px; width: auto; height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,200,255,0.3));
    transition: filter 0.3s ease;
}
.nav-logo:hover .logo-img {
    filter: drop-shadow(0 0 20px rgba(0,220,255,0.6));
}
.logo-fallback {
    display: none;
    font-size: clamp(1rem, 3vw, 1.3rem); font-weight: 700;
    color: #fff; text-shadow: 0 0 20px rgba(0,200,255,0.5);
    white-space: nowrap; letter-spacing: 0.06em;
}
.nav-links {
    display: flex; list-style: none; gap: 2px; align-items: center;
    padding: 4px; border-radius: 60px;
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.04);
}
.nav-links li { position: relative; }
.nav-links li a {
    display: block; padding: 9px clamp(12px, 2.5vw, 20px); border-radius: 50px;
    color: #a8b4c8; text-decoration: none; font-size: clamp(0.78rem, 2.2vw, 0.9rem);
    letter-spacing: 0.05em; font-weight: 500; white-space: nowrap;
    border: 1px solid transparent;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; z-index: 1;
}
.nav-links li a::before {
    content: ''; position: absolute; inset: 0; border-radius: 50px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(140, 100, 255, 0.15));
    opacity: 0; transition: opacity 0.35s ease; z-index: -1;
}
.nav-links li a:hover {
    color: #ffffff;
    border-color: rgba(0, 210, 255, 0.4);
    background: rgba(0, 200, 255, 0.08);
    text-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.2);
    transform: translateY(-1px);
}
.nav-links li a:hover::before { opacity: 1; }
.nav-hamburger {
    display: none; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; cursor: pointer; flex-direction: column; gap: 4px; padding: 8px; z-index: 110;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #c0cfe0; border-radius: 2px; transition: all 0.3s ease; }

/* ==================== 固定底部区域 ==================== */
.fixed-bottom-area {
    position: fixed; bottom: 0; left: 0; width: 100%; z-index: 10;
    padding: 16px 0 12px;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    pointer-events: none;
}
.fixed-bottom-area > * { pointer-events: auto; }
.products-row-wrapper { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 clamp(12px, 4vw, 32px); }
.product-category-row { display: flex; flex-wrap: nowrap; gap: 10px; width: 100%; align-items: stretch; }

/* ===== 产品卡片 ===== */
.product-category-card {
    flex: 1 1 0; min-width: 0;
    background: var(--card-glass-bg);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--card-glass-border);
    border-radius: var(--radius-lg);
    padding: 14px 12px 12px;
    display: flex; flex-direction: column; gap: 8px;
    transition: var(--transition-bounce);
    cursor: pointer; text-decoration: none;
    color: inherit; position: relative; 
    overflow: hidden;
    box-shadow: none;
    transform:none;
}
.product-category-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.6s ease; z-index: 2; pointer-events: none; border-radius: inherit;
}
.product-category-card:hover {
    background: var(--card-glass-bg-hover);
    border-color: var(--card-glass-border-hover);
    box-shadow: 0 12px 40px rgba(0,180,255,0.3), 0 0 0 1px rgba(0,200,255,0.12) inset;
    transform: translateY(-6px);
    z-index: 5;
}
.product-category-card:hover::before { left: 100%; }
.card-header-row { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.card-icon-mini {
    font-size: clamp(0.9rem, 2.2vw, 1.2rem); flex-shrink: 0;
    width: clamp(26px, 5vw, 34px); height: clamp(26px, 5vw, 34px);
    border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
.product-category-card:hover .card-icon-mini {
    background: rgba(0,200,255,0.12);
    border-color: rgba(0,200,255,0.35);
    box-shadow: 0 0 22px rgba(0,200,255,0.3);
    transform: scale(1.06);
}
.card-title-mini {
    font-size: clamp(0.7rem, 1.8vw, 0.85rem); font-weight: 700; letter-spacing: 0.04em;
    color: #ffffff; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: color 0.3s;
}
.product-category-card:hover .card-title-mini { color: #fff; }
.card-desc {
    font-size: clamp(0.6rem, 1.5vw, 0.7rem); color: #e0e8f5; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; letter-spacing: 0.02em; position: relative; z-index: 1;
}
.product-category-card:hover .card-desc { color: #b8c0d0; }
.card-tags-row { display: flex; flex-wrap: wrap; gap: 5px; position: relative; z-index: 1; }
.product-tag {
    display: inline-block; padding: 4px 9px; border-radius: 20px;
    font-size: clamp(0.5rem, 1.2vw, 0.62rem); font-weight: 500; letter-spacing: 0.03em;
    white-space: nowrap; flex-shrink: 0; transition: all 0.25s ease;
}
.tag-cyan { background: rgba(0,210,255,0.06); color: #80d8ff; border: 1px solid rgba(0,210,255,0.12); }
.tag-purple { background: rgba(140,100,255,0.06); color: #b8a0ff; border: 1px solid rgba(140,100,255,0.12); }
.tag-gold { background: rgba(240,180,60,0.06); color: #f0c860; border: 1px solid rgba(240,180,60,0.12); }
.tag-green { background: rgba(60,210,140,0.06); color: #60d8a0; border: 1px solid rgba(60,210,140,0.12); }
.product-category-card:hover .tag-cyan { background: rgba(0,210,255,0.18); border-color: rgba(0,210,255,0.45); color: #a0e8ff; }
.product-category-card:hover .tag-purple { background: rgba(140,100,255,0.18); border-color: rgba(140,100,255,0.45); color: #d0b8ff; }
.product-category-card:hover .tag-gold { background: rgba(240,180,60,0.18); border-color: rgba(240,180,60,0.45); color: #f8d870; }
.product-category-card:hover .tag-green { background: rgba(60,210,140,0.18); border-color: rgba(60,210,140,0.45); color: #80e8b8; }
/*版权文字颜色*/
.panel-copyright { 
    text-align: center;
    color: #000;
    font-size: clamp(0.6rem, 1.6vw, 0.7rem);
    letter-spacing: 0.04em;
    padding: 0 20px;
    white-space: normal;
    line-height: 1.3;
    }
.panel-copyright a { color: #dd050a; text-decoration: none; font-weight: 500; }
.panel-copyright a:hover { color: #f40; text-shadow: 0 0 12px rgba(0,200,255,0.4); }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .nav-inner { position: relative; }
    .nav-links {
        display: none; position: absolute; top: calc(100% + 8px); left: clamp(12px,4vw,32px); right: clamp(12px,4vw,32px);
        width: auto; flex-direction: column;
        background: rgba(4,6,16,0.96); backdrop-filter: blur(35px);
        border: 1px solid rgba(0,200,255,0.2); border-radius: 20px; padding: 8px;
        z-index: 1000;
    }
    .nav-links.open { display: flex; }
    .nav-hamburger { display: flex; }
    .product-category-row { gap: 5px; }
    .product-category-card { padding: 10px 7px 8px; gap: 6px; border-radius: 10px; }
    .card-icon-mini { width: 20px; height: 20px; font-size: 0.7rem; }
    .card-title-mini { font-size: 0.6rem; }
    .card-desc { font-size: 0.6rem; }
    .card-tags-row { gap: 2px; flex-wrap: wrap; }
    .product-tag { padding: 2px 5px; font-size: 0.45rem; }
    .carousel-dots { left: 10px; }
}
@media (max-width: 480px) {
    .product-category-card { padding: 8px 4px 6px; background: rgba(10,16,28,0.3); }
    .card-icon-mini { width: 16px; height: 16px; font-size: 0.55rem; }
    .card-title-mini { font-size: 0.5rem; }
    .card-desc { display: none; }
    .card-tags-row { display: none; }
    .fixed-bottom-area { gap: 10px; }
    .carousel-dots { left: 5px; gap: 8px; }
    .carousel-dot { width: 8px; height: 8px; }
}