:root {
    --primary: #1890ff;
    --dark: #001529;
    --bg-alt: #f0f2f5;
    --text: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); background: #fff; scroll-behavior: smooth; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.alt-bg { background: var(--bg-alt); }

/* Header */
header {
    position: fixed; top: 0; width: 100%; height: 70px;
    background: rgba(0, 21, 41, 0.9); backdrop-filter: blur(10px);
    z-index: 1000; display: flex; align-items: center;
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo img { height: 35px; }
.nav-links {
    display: flex;
    justify-content: center;  /* 水平居中 */
    align-items: center;      /* 垂直居中 */
    gap: 40px;                /* 項目之間的間距，可根據需求調整 */
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li {
    display: inline-block;
}
.nav-links a { color: #fff; text-decoration: none; font-size: 18px; opacity: 0.8; transition: 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--primary); }

.lang-toggle { color: #fff; font-size: 18px; cursor: pointer; }
.lang-toggle span { opacity: 0.5; }
.lang-toggle span.active { opacity: 1; color: var(--primary); font-weight: bold; }

/* Hero */
.hero {
    height: 600px; background: var(--dark); position: relative;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-align: center; overflow: hidden;
}
#particle-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 5; }
.hero .tag { 
    border: 1px solid var(--primary); color: var(--primary);
    display: inline-block; padding: 5px 15px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 { font-size: 48px; margin-bottom: 15px; }
.hero .subtitle { font-size: 24px; opacity: 0.6; font-weight: 300; margin-bottom: 20px; }

/* Grid */
.section-title { text-align: center; margin-bottom: 50px; }
.underline { width: 40px; height: 4px; background: var(--primary); margin: 10px auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card {
    background: #fff; padding: 40px; border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s;
    position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-10px); }
.card.highlight { border-top: 4px solid var(--primary); }
.card-num { position: absolute; top: 10px; right: 20px; font-size: 40px; font-weight: 800; color: #f0f2f5; }
.card h3 { margin-bottom: 15px; }
.card p { font-size: 14px; color: #666; line-height: 1.8; }

/* About */
.about-flex { display: flex; gap: 60px; align-items: center; }
.about-text { flex: 1; }
.about-img { flex: 1; }
.about-img img { width: 100%; border-radius: 12px; }
.address-box { margin-top: 30px; background: #fffbe6; border: 1px solid #ffe58f; padding: 20px; border-radius: 5px; }
.addr { color: #d48806; font-size: 14px; margin-top: 5px; font-weight: bold; }

/* Footer */
footer { background: #111; color: #fff; padding: 60px 0 20px; }
.footer-grid { display: flex; justify-content: space-between; margin-bottom: 40px; }
.footer-brand h3 { color: var(--primary); margin-bottom: 10px; }
.copyright { text-align: center; border-top: 1px solid #222; padding-top: 20px; font-size: 12px; color: #555; }

@media (max-width: 768px) {
    .about-flex { flex-direction: column; }
    .hero h1 { font-size: 32px; }
    .nav-links { display: none; } /* 移动端可自行增加汉堡菜单 */
}

/* ... 前面的基础样式保持不变 ... */

:root {
    --primary: #1890ff;
    --dark: #001529;
    --bg-alt: #f8f9fa;
    --text: #333;
    --text-light: #666;
}

/* ... Header, Hero 等样式 ... */

/* 新产品卡片网格布局 */
.products-section { background-color: #fcfcfc; }

.product-new-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.p-new-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.p-new-card:hover { transform: translateY(-10px); }

.p-new-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #eee;
}

.p-new-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-new-content {
    padding: 30px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.p-new-content h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.p-new-sub {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
    min-height: 40px;
}

.p-new-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1;
}

.p-new-list li {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

/* 蓝色打钩图标 */
.p-new-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.learn-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
    margin-top: auto;
}

.learn-more:hover { text-decoration: underline; }

/* 响应式 */
@media (max-width: 992px) {
    .product-new-grid { grid-template-columns: 1fr; max-width: 500px; margin: 40px auto 0; }
}

/* ... 基礎樣式保持不變 ... */

/* Header 導航固定 */
header {
    background: #001529;
    height: 70px;
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
}

/* 漢堡選單圖示 (預設隱藏) */
.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.menu-icon span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* 移動端適配 (螢幕寬度小於 850px) */
@media (max-width: 850px) {
    .menu-icon { display: flex; z-index: 1100; }

    nav {
        position: fixed; top: 0; right: -100%;
        width: 60%; height: 100vh;
        background: #001c37;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
        padding: 100px 30px;
        z-index: 1050;
    }

    /* 關鍵修復：當 active 時，確保內部連結顯示 */
    nav.active { right: 0; }
    nav.active .nav-links { display: flex !important; } 

    .nav-links {
        display: none; /* 預設在手機端不佔位 */
        flex-direction: column;
        gap: 35px;
    }

    .nav-links li { width: 100%; text-align: left; }
    .nav-links a { font-size: 18px; display: block; }
    
    /* 漢堡旋轉動畫 */
    .menu-icon.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-icon.open span:nth-child(2) { opacity: 0; }
    .menu-icon.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
}