:root{
  --bg:#ffffff; --fg:#2a2a2a; --muted:#6b7280; --card:#f8fafc; --line:#e5e7eb;
  --brand:#0B72FF; --accent:#0656c7;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--fg);font:16px/1.7 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial}
a{color:inherit;text-decoration:none}
.wrap{max-width:1140px;margin:0 auto;padding:0 24px}

/* Header */
header.wrap{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;height:64px;background:#fff;border-bottom:1px solid var(--line)}
.logo{display:inline-block;font-size:24px;font-weight:800;letter-spacing:.2px;color:#0f172a;line-height:1.1}
.logo::after{content:"";display:block;width:28px;height:3px;margin-top:6px;background:var(--brand);border-radius:2px;opacity:.9}
.nav{margin-left:auto;display:flex;align-items:center}
.nav a{margin-left:24px;color:#374151;font-weight:500;opacity:.9;transition:opacity .15s ease}
.nav a:hover,.nav a.active{opacity:1;color:var(--brand)}
.nav .btn-contact{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 18px;background:var(--brand);color:#fff !important;border-radius:9999px;font-weight:700;letter-spacing:.2px;box-shadow:0 6px 16px rgba(11,114,255,.25);transition:background .2s ease, transform .15s ease, box-shadow .15s ease;margin-left:28px}
.nav .btn-contact:hover{background:var(--accent);transform:translateY(-1px);box-shadow:0 10px 22px rgba(6,86,199,.28)}
.lang-select{margin-left:16px;height:36px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#111}

/* Hero */
.hero{padding:80px 0;text-align:left;background:#fff}
.hero h1{font-size:56px;line-height:1.15;margin:.2em 0;color:#111;font-weight:800;letter-spacing:.2px}
.hero p{font-size:18px;color:var(--muted);margin:10px 0 24px}
.actions .btn{display:inline-block;background:var(--brand);padding:12px 18px;border-radius:9999px;color:#fff;font-weight:600;box-shadow:0 6px 20px rgba(11,114,255,.25);transition:transform .15s ease, box-shadow .15s ease, background .15s ease}
.actions .btn:hover{background:var(--accent);transform:translateY(-1px);box-shadow:0 10px 24px rgba(6,86,199,.28)}
.btn.btn-secondary{background:#fff;color:var(--brand);border:1px solid var(--brand)}
.btn.btn-secondary:hover{background:#f0f6ff}

/* Sections */
.section{padding:40px 0}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.section-head h2{margin:0;font-size:24px;color:#0f172a}
.link-more{color:var(--brand);font-weight:600}

/* Trust badges */
.trust{padding-top:8px}
.trust-list{display:flex;flex-wrap:wrap;gap:10px;list-style:none;padding:0;margin:0}
.badge{background:#f1f5f9;border:1px solid var(--line);color:#334155;border-radius:9999px;padding:6px 12px;font-size:13px;font-weight:600}

/* Grids */
.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.grid-4{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}

/* Features */
.feature{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:0 4px 16px rgba(0,0,0,.04)}
.feature .icon{width:24px;height:24px;color:var(--brand)}
.feature h3{margin:10px 0 6px 0;font-size:16px;color:#111}
.feature p{margin:0;color:var(--muted)}

/* Cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; margin-top:20px}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease}
.thumb{background:#eef2f7 center/cover no-repeat;aspect-ratio:4/3}
.card-body{padding:14px}
.card h3{margin:0;font-size:17px;color:#111;font-weight:600}
.card:hover{border-color:var(--brand);box-shadow:0 8px 28px rgba(0,0,0,.07);transform:translateY(-2px)}

/* Products - sticky toolbar */
.toolbar.sticky{position:sticky;top:64px;z-index:40;background:#fff;border-bottom:1px solid var(--line);padding:12px 0;margin:0 0 12px 0}
.toolbar select{min-width:200px;height:40px;padding:8px 12px;border-radius:10px;background:#fff;color:var(--fg);border:1px solid var(--line)}

/* Product page layout */
.product{display:grid;grid-template-columns:1.2fr 1fr; gap:28px; align-items:start}
.product-media{background:#f1f5f9 center/contain no-repeat;aspect-ratio:4/3;border:1px solid var(--line);border-radius:16px}
.specs{list-style:none;padding:0;margin:14px 0}
.specs li{padding:8px 0;border-bottom:1px dashed var(--line)}

/* Footer */
.footer{border-top:1px solid var(--line);margin-top:64px;padding:24px 0;color:#6b7280;background:#f9fafb}

@media (max-width:960px){
  .hero{padding:64px 0}
  .hero h1{font-size:40px}
  .toolbar.sticky{top:56px}
}
@media (max-width:800px){
  .product{grid-template-columns:1fr}
}

/* Cleanup: hide any leftover icons and hero decorations */
.feature .icon{display:none !important}
.hero::before,.hero::after{content:none !important}


/* --- patch: spacing + cleanup --- */
.section{padding:36px 0}
.hero::before,.hero::after{content:none!important}
.feature .icon{display:none!important}

/* === 右上角導覽列：hover / active 底線改紅色 === */
.header-nav a:hover,
.header-nav a.active,
.nav a:hover,
.nav a.active {
  text-decoration: underline;                  /* 出現底線 */
  text-decoration-color: #e11d48;              /* 紅色（red-600）*/
  text-decoration-thickness: 2px;              /* 底線粗細（可調）*/
  text-underline-offset: 3px;                  /* 底線與文字的間距（可調）*/
}
