:root {
    --primary: #0f172a;
    --accent: #d97706;
    --accent-hover: #b45309;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-mute: #64748b;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
}
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "Noto Sans TC", sans-serif;
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: all 0.2s; }
img { max-width: 100%; height: auto; display: block; }
.shell { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* 国际双语切换引擎 */
html[data-lang="en"] .i18n-tc { display: none !important; }
html[data-lang="en"] .i18n-en { display: inline !important; }
html[data-lang="tc"] .i18n-en { display: none !important; }
html[data-lang="tc"] .i18n-tc { display: inline !important; }

/* 顶部状态条 */
.top-notice-bar {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-notice-bar .shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-notice-dot {
    width: 6px; height: 6px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

/* 导航头 */
.main-nav-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-inner {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.brand-logo span.tag {
    font-size: 11px;
    background: #f1f5f9;
    color: var(--text-mute);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}
.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    font-weight: 600;
    font-size: 14px;
}
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-btn {
    border: 1px solid var(--border-dark);
    padding: 5px 12px;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}
.cart-badge-btn {
    border: 1px solid var(--primary);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart-badge-btn:hover { background: var(--primary); color: #fff; }

/* 通用按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #1e293b; }
.btn-amber { background: var(--accent); color: #fff; }
.btn-amber:hover { background: var(--accent-hover); }
.btn-outline { border: 1px solid var(--border-dark); background: #fff; color: var(--primary); }
.btn-outline:hover { background: #f8fafc; border-color: var(--primary); }

/* 首页 Hero 区域 */
.hero-box {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}
.hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero-subtitle {
    font-size: 16px;
    color: var(--text-mute);
    line-height: 1.7;
    margin-bottom: 24px;
}
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-dark);
}
.metric-item dt { font-size: 12px; color: var(--text-mute); }
.metric-item dd { font-size: 20px; font-weight: 800; margin-top: 4px; }

/* 3大保障承诺 */
.features-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.feature-card { padding: 0 16px; }
.feature-num { font-size: 14px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.feature-head { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-mute); line-height: 1.6; }

/* 商品网格 */
.products-wrapper { padding: 50px 0; }
.section-head-box { margin-bottom: 30px; }
.section-title { font-size: 26px; font-weight: 800; }
.section-subtitle { font-size: 14px; color: var(--text-mute); margin-top: 4px; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.prod-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.prod-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0,0,0,0.1);
}
.prod-thumb-box {
    background: #f8fafc;
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.prod-thumb-box img {
    height: 180px;
    width: 100%;
    object-fit: contain;
    margin: 0 auto;
}
.prod-info-box { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.prod-tag-pill {
    display: inline-block;
    padding: 2px 8px;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}
.prod-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.prod-spec-brief { font-size: 13px; color: var(--text-mute); margin-bottom: 12px; }
.prod-pricing-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}
.prod-price { font-size: 22px; font-weight: 800; color: var(--accent); }
.prod-mrp { font-size: 13px; color: #94a3b8; text-decoration: line-through; }

/* 详情页专用结构 */
.detail-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    padding: 40px 0;
}
.gallery-main {
    background: #fff;
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 6px;
    text-align: center;
}
.gallery-main img {
    height: 380px;
    width: 100%;
    object-fit: contain;
}
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.thumb-btn {
    border: 1px solid var(--border);
    background: #fff;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
}
.thumb-btn.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.thumb-btn img { height: 60px; width: 100%; object-fit: contain; }

.detail-action-card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 6px;
    margin-top: 20px;
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; }
.chip-item {
    border: 1px solid var(--border-dark);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}
.chip-item.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    overflow: hidden;
}
.qty-btn {
    width: 36px; height: 36px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}
.qty-input {
    width: 50px; height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}
.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--border);
    margin-top: 20px;
    font-size: 14px;
}
.spec-table th, .spec-table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
}
.spec-table th { background: #f8fafc; width: 30%; font-weight: 600; }

/* 页面底部与版权 */
.site-footer {
    background: #09131f;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
    margin-top: 60px;
}
.footer-cols {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 13px; }
.footer-corp-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
}

/* GDPR Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 18px 24px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cookie-banner p { font-size: 12px; line-height: 1.5; color: #cbd5e1; }
.cookie-actions { display: flex; gap: 8px; }

@media (max-width: 900px) {
    .hero-grid, .detail-layout, .footer-cols { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .features-trio { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 28px; }
}
