/* Product Type Detail Page Styles — shared by all /products/ and /zh/products/ sub-pages */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #0a1628;
    --accent: #c9a96e;
    --accent-light: #d4ba8a;
    --white: #ffffff;
    --bg: #f7f5ef;
    --text: #1a1a2e;
    --text-light: #55606f;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.10);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    --gold-gradient: linear-gradient(135deg, #c9a96e 0%, #d4ba8a 50%, #c9a96e 100%);
    --max-width: 1200px;
}
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* NAV */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: all var(--transition); background: transparent; }
.navbar.scrolled { background: rgba(10,22,40,0.95); backdrop-filter: blur(20px); padding: 10px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 24px; font-weight: 800; color: var(--white) !important; letter-spacing: -0.5px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-lang { display: flex; gap: 4px; margin-left: 16px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,0.2); }
.nav-lang a { font-size: 12px; padding: 4px 8px; border-radius: 4px; }
.nav-lang a.active { color: var(--accent); font-weight: 700; }
.menu-btn { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

/* DRAWER */
.drawer-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.drawer-overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: var(--primary); z-index: 9999; padding: 80px 32px 32px; transition: right var(--transition); display: flex; flex-direction: column; gap: 24px; }
.drawer.show { right: 0; }
.drawer a { color: var(--white); font-size: 17px; font-weight: 500; }
.drawer a:hover { color: var(--accent); }
.drawer-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }
.drawer-lang { display: flex; gap: 12px; margin-top: auto; }
.drawer-lang a { font-size: 14px; }
.drawer-lang a.active { color: var(--accent); font-weight: 700; }

/* PAGE HERO */
.page-hero { padding: 160px 0 80px; background: linear-gradient(135deg, var(--primary) 0%, #0d1f3c 50%, var(--primary) 100%); text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 50%, rgba(201,169,110,0.08) 0%, transparent 50%), radial-gradient(circle at 70% 50%, rgba(201,169,110,0.05) 0%, transparent 50%); }
.page-hero h1 { font-size: 46px; font-weight: 800; color: var(--white); position: relative; margin-bottom: 16px; line-height: 1.2; }
.page-hero h1 span { color: var(--accent); }
.page-hero p { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 700px; margin: 0 auto; position: relative; }
.breadcrumb { display: flex; gap: 8px; align-items: center; justify-content: center; margin-bottom: 24px; position: relative; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.5); font-size: 14px; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); font-size: 14px; }

/* CONTENT */
.content-section { padding: 80px 0; }
.content-section.alt { background: var(--white); }

/* OVERVIEW GRID */
.overview-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; margin-bottom: 48px; }
.hero-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.hero-image img { width: 100%; height: 380px; object-fit: cover; }
.overview-text .tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); background: rgba(201,169,110,0.1); padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.overview-text h2 { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.overview-text p { font-size: 16px; color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }

/* VARIANT CARDS */
.section-title { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 32px; text-align: center; }
.section-title span { color: var(--accent); }
.variant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 48px; }
.variant-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; border: 1px solid rgba(0,0,0,0.06); transition: all var(--transition); }
.variant-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.variant-card .variant-img { width: 100%; height: 180px; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.variant-card .variant-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.variant-card:hover .variant-img img { transform: scale(1.05); }
.variant-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.variant-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; }
.variant-card .variant-meta { font-size: 12px; color: var(--accent); font-weight: 700; }

/* SPEC TABLE */
.spec-table { width: 100%; max-width: 720px; margin: 0 auto 32px; border-collapse: collapse; font-size: 14px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table tr:not(:last-child) { border-bottom: 1px solid #f0ebe0; }
.spec-table th { text-align: left; padding: 14px 20px; color: var(--text-light); font-weight: 500; width: 160px; background: rgba(201,169,110,0.05); }
.spec-table td { padding: 14px 20px; font-weight: 600; }

/* PACKAGING OPTIONS */
.packaging-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; margin: 0 auto 48px; }
.packaging-list span { background: var(--white); border: 1px solid rgba(201,169,110,0.3); color: var(--primary); padding: 10px 18px; border-radius: 50px; font-size: 14px; font-weight: 500; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--white); border-radius: var(--radius); padding: 20px 24px; border: 1px solid rgba(0,0,0,0.06); }
.faq-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.faq-item p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* CTA */
.cta-section { text-align: center; padding: 80px 20px; background: linear-gradient(135deg, var(--primary) 0%, #0d1f3c 100%); color: var(--white); }
.cta-section h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 24px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-size: 15px; font-weight: 600; transition: all var(--transition); cursor: pointer; border: none; text-decoration: none; }
.btn-primary { background: var(--gold-gradient); color: var(--primary) !important; box-shadow: 0 4px 16px rgba(201,169,110,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,169,110,0.4); }
.btn-outline { border: 2px solid rgba(201,169,110,0.4); color: var(--primary) !important; background: transparent; }
.btn-outline:hover { border-color: var(--accent); background: rgba(201,169,110,0.05); }
.btn-white { background: var(--white); color: var(--primary) !important; }

/* RELATED */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.related-card { background: var(--white); padding: 20px; border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.06); display: block; transition: all var(--transition); }
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.related-card h4 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.related-card p { font-size: 13px; color: var(--text-light); }

/* FOOTER */
footer { background: var(--primary); padding: 64px 0 0; color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand h4 { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.footer-brand h4 span { color: var(--accent); }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-links h5 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a { display: block; font-size: 13px; padding: 4px 0; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 48px; padding: 24px 0; text-align: center; font-size: 13px; }

/* CS FLOAT */
.cs-float { position: fixed; bottom: 24px; right: 24px; z-index: 9997; }
.cs-panel { display: none; flex-direction: column; gap: 4px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; margin-bottom: 8px; }
.cs-panel.show { display: flex; }
.cs-panel a { display: block; padding: 10px 16px; font-size: 13px; border-radius: 8px; transition: background var(--transition); white-space: nowrap; }
.cs-panel a:hover { background: #faf7f2; }
.cs-btn { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--primary); border: none; font-size: 22px; cursor: pointer; box-shadow: var(--shadow-md); transition: all var(--transition); }
.cs-btn:hover { transform: scale(1.1); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-btn { display: block; }
    .page-hero h1 { font-size: 30px; }
    .page-hero p { font-size: 15px; }
    .content-section { padding: 48px 0; }
    .overview-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-image img { height: 240px; }
    .overview-text h2 { font-size: 24px; }
    .section-title { font-size: 22px; }
    .variant-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .spec-table th { width: 120px; padding: 12px 14px; }
    .spec-table td { padding: 12px 14px; }
}


/* 8OEM premium polish: product detail pages */
.page-hero {
    background:
      linear-gradient(135deg, rgba(10,22,40,.94), rgba(18,48,64,.86)),
      radial-gradient(circle at 85% 20%, rgba(201,169,110,.28), transparent 28%);
}
.page-hero h1 { max-width: 860px; margin-left: auto; margin-right: auto; letter-spacing: 0; }
.page-hero p { max-width: 760px; margin-left: auto; margin-right: auto; }
.overview-grid {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(10,22,40,.08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 24px 70px rgba(10,22,40,.10);
}
.hero-image { border: 1px solid rgba(201,169,110,.22); }
.hero-image img { height: 430px; }
.overview-text {
    padding: 10px 12px;
}
.overview-text h2 { letter-spacing: 0; }
.overview-text p:first-of-type { color: #344055; }
.variant-card {
    border-color: rgba(10,22,40,.08);
    box-shadow: 0 10px 28px rgba(10,22,40,.05);
}
.variant-card .variant-img {
    background: #f1eee6;
    border: 1px solid rgba(201,169,110,.18);
}
.spec-table {
    border: 1px solid rgba(10,22,40,.08);
    box-shadow: 0 18px 44px rgba(10,22,40,.07);
}
.packaging-list span {
    background: linear-gradient(180deg,#fff,#fbf7ef);
    box-shadow: 0 8px 20px rgba(10,22,40,.04);
}
.cta-section {
    background:
      linear-gradient(135deg, rgba(10,22,40,.96), rgba(17,60,63,.92)),
      radial-gradient(circle at 20% 10%, rgba(201,169,110,.34), transparent 28%);
}
.related-card {
    min-height: 132px;
    border-color: rgba(10,22,40,.08);
}
@media (max-width: 768px) {
    .overview-grid { padding: 12px; }
    .hero-image img { height: 300px; }
}
