/* ============ iBlue Smart — Global Site Styles ============ */
:root {
  --blue-deep: #0b3a6b;
  --blue: #0f4c81;
  --blue-bright: #29abe2;
  --gold: #e8a33d;
  --ink: #16283c;
  --muted: #5a6b7d;
  --line: #e3e9f0;
  --bg-soft: #f4f8fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 58, 107, .10);
  --max: 1180px;
  --font: "Inter", "Manrope", -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Roboto, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; cursor: pointer; transition: all .25s; }
.btn-primary { background: var(--blue-bright); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 8px 18px; font-size: 13.5px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(11,58,107,.08); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.lang-switch a { padding: 6px 12px; border-radius: 8px; color: var(--muted); }
.lang-switch a.active { background: var(--bg-soft); color: var(--blue); }
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--blue); }
.cart-btn:hover { border-color: var(--blue-bright); }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cart-count.hidden { display: none; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a { font-size: 15px; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav > a:hover { color: var(--blue-bright); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--blue-deep); border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; background: linear-gradient(135deg, #081f38 0%, #0b3a6b 55%, #0f4c81 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; min-height: 620px; padding: 70px 0 90px; }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(41,171,226,.25), transparent 65%); top: -160px; right: -80px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-bright); font-weight: 600; margin-bottom: 18px; }
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--blue-bright); }
.hero p.lead { margin: 22px 0 34px; font-size: 17.5px; color: #c9dcef; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure { position: relative; z-index: 1; }
.hero-figure img { width: 100%; max-width: 420px; margin: 0 auto; border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-badges span { font-size: 13px; padding: 7px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #dbe9f6; }

/* ---------- stats ---------- */
.stats { background: var(--blue-deep); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 0; }
.stat { text-align: center; }
.stat b { font-size: 34px; font-weight: 700; color: var(--blue-bright); }
.stat b i { font-style: normal; font-size: 20px; color: var(--gold); margin-left: 2px; }
.stat p { font-size: 13.5px; color: #b9cfe3; margin-top: 4px; }

/* ---------- sections ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--blue-bright); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; color: var(--blue-deep); line-height: 1.25; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* ---------- category tabs ---------- */
.cats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.cat-btn { padding: 9px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit; }
.cat-btn.active, .cat-btn:hover { border-color: var(--blue-bright); color: var(--blue); background: #eaf6fd; }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card .p-img { aspect-ratio: 1; overflow: hidden; background: #fff; position: relative; }
.product-card .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .p-img img { transform: scale(1.05); }
.p-tag { position: absolute; top: 12px; left: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 6px; background: var(--blue-bright); color: #fff; }
.p-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-body h3 { font-size: 16.5px; font-weight: 700; color: var(--blue-deep); }
.p-spec { font-size: 13.5px; color: var(--muted); flex: 1; }
.p-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.p-meta b { color: var(--gold); font-size: 13px; }
.add-cart { margin-top: 6px; }

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { background: #fff; border-radius: var(--radius); padding: 34px 28px; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.s-icon { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, #eaf6fd, #d7eefb); display: flex; align-items: center; justify-content: center; color: var(--blue); margin-bottom: 20px; }
.s-icon svg { width: 27px; height: 27px; }
.service-card h3 { font-size: 18px; color: var(--blue-deep); margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.service-card ul li { font-size: 14px; color: var(--ink); padding: 6px 0 6px 24px; position: relative; }
.service-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-figure { position: relative; }
.about-figure img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(24px, 2.6vw, 34px); color: var(--blue-deep); line-height: 1.3; margin-bottom: 18px; }
.about-copy p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.about-points { margin: 20px 0 28px; }
.about-points li { padding: 7px 0 7px 30px; position: relative; font-size: 15px; }
.about-points li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 6px; background: #eaf6fd; color: var(--blue-bright); font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card time { font-size: 12.5px; color: var(--blue-bright); font-weight: 700; letter-spacing: .05em; }
.news-card h3 { font-size: 16.5px; color: var(--blue-deep); margin: 10px 0; line-height: 1.45; }
.news-card p { font-size: 14px; color: var(--muted); }

/* ---------- contact / quote ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.c-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #eaf6fd; color: var(--blue); display: flex; align-items: center; justify-content: center; }
.c-icon svg { width: 21px; height: 21px; }
.contact-list strong { display: block; font-size: 14px; color: var(--blue-deep); }
.contact-list p { font-size: 14.5px; color: var(--muted); }
.quote-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.quote-box h3 { font-size: 20px; color: var(--blue-deep); margin-bottom: 18px; }
.basket-list { background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.basket-list .bi { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.basket-list .bi button { background: none; border: 0; color: #c0392b; cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 4px; }
.basket-empty { font-size: 13.5px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--blue-deep); margin-bottom: 6px; }
.form-field label i { color: #c0392b; font-style: normal; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color .2s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--blue-bright); }
.form-tip { font-size: 13.5px; margin-top: 12px; min-height: 18px; }
.form-tip.ok { color: #1d9e75; }
.form-tip.err { color: #c0392b; }

/* ---------- footer ---------- */
.site-footer { background: #081f38; color: #b9cfe3; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.site-footer .brand img { height: 40px; background: #fff; border-radius: 8px; padding: 5px 8px; }
.footer-brand p { font-size: 14px; margin-top: 16px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; padding: 4px 0; color: #9fb8cf; }
.footer-col a:hover { color: var(--blue-bright); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: 12.5px; color: #7e9ab5; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- back to top ---------- */
.back-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; box-shadow: 0 8px 24px rgba(11,58,107,.35); z-index: 90; }
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top svg { width: 20px; height: 20px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding: 56px 0 70px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-figure { display: none; }
  .service-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; padding: 20px 24px 26px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(11,58,107,.12); transform: translateY(-130%); transition: transform .3s; }
  .main-nav.open { transform: none; }
  .nav-toggle { display: flex; }
  .lang-switch { margin-left: auto; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
