:root {
  --green: #8fc800;
  --green-dark: #6f9c00;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5e7;
  --bg-soft: #f5f5f7;
  --black: #0b0b0c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Noto Sans TC", system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; max-width: 1400px; }
.brand img { height: 30px; width: auto; }
.main-nav { display: flex; gap: 34px; align-items: center; }
.main-nav a { color: #fff; font-size: 15px; letter-spacing: .05em; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--green); }
.has-sub { position: relative; }
.has-sub .sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 26px; display: none; min-width: 150px; }
.has-sub .sub a { display: block; background: var(--black); padding: 10px 20px; font-size: 14px; text-align: center; border-top: 1px solid #222; }
.has-sub:hover .sub { display: block; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* banner */
.banner { height: 300px; background: #111 center/cover no-repeat; display: flex; align-items: center; justify-content: center; position: relative; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.banner-title { position: relative; z-index: 1; margin: 0; text-align: center; color: #fff; }
.banner-title .en { display: block; font-family: Montserrat, sans-serif; font-size: 44px; letter-spacing: .15em; font-weight: 700; line-height: 1.2; }
.banner-title .ch { display: block; font-size: 18px; letter-spacing: .3em; font-weight: 500; margin-top: 6px; }

/* list */
.products-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-top: 64px; padding-bottom: 96px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; position: sticky; top: 110px; border-top: 2px solid var(--ink); }
.sidebar a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; transition: color .2s, padding .2s; }
.sidebar a:hover { color: var(--green); padding-left: 10px; }
.sidebar a.active { color: var(--green); font-weight: 700; padding-left: 10px; }
.cat-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
.cat-head h2 { margin: 0; font-size: 26px; letter-spacing: .05em; }
.cat-head span { color: var(--muted); font-family: Montserrat, sans-serif; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.card { display: block; }
.card-pic { aspect-ratio: 1; background: var(--bg-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-pic img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.card:hover .card-pic img { transform: scale(1.06); }
.card-txt { padding: 14px 2px 0; border-bottom: 2px solid transparent; transition: border-color .3s; }
.card:hover .card-txt { border-color: var(--green); }
.card-txt h3 { margin: 0; font-size: 17px; font-weight: 500; }
.card-txt p { margin: 2px 0 12px; color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); padding: 40px 0; }

/* view */
.view { padding-top: 56px; padding-bottom: 96px; }
.notice { background: #fff8e1; border: 1px solid #f3d27a; padding: 10px 14px; margin-bottom: 24px; font-size: 14px; }
.view-top { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.gallery-main { aspect-ratio: 1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 84px; height: 84px; padding: 0; border: 2px solid transparent; background: var(--bg-soft); cursor: pointer; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--green); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a:hover { color: var(--green); }
.view-ch { font-size: 30px; margin: 0; letter-spacing: .04em; line-height: 1.35; }
.view-en { font-family: Montserrat, sans-serif; font-weight: 500; color: var(--muted); font-size: 15px; margin: 6px 0 24px; letter-spacing: .05em; }
.specs { list-style: none; padding: 20px 0 0; margin: 0; border-top: 1px solid var(--line); }
.specs li { position: relative; padding: 5px 0 5px 18px; font-size: 15px; }
.specs li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 140px; padding: 12px 26px; background: var(--green); color: #fff; border: 2px solid var(--green); font-size: 15px; letter-spacing: .1em; transition: .2s; cursor: pointer; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.desc { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--line); text-align: center; font-size: 16px; color: #333; max-width: 960px; margin-left: auto; margin-right: auto; }
.desc img { margin: 24px auto; }
.desc strong { color: var(--green); font-size: 1.25em; }
.desc p { margin: 0 0 .6em; }
.desc .ql-align-left { text-align: left; } .desc .ql-align-right { text-align: right; } .desc .ql-align-center { text-align: center; }
.back { text-align: center; margin-top: 64px; }
.back a { color: var(--muted); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.back a:hover { color: var(--green); }
.notfound { text-align: center; padding: 120px 16px; }
.notfound h1 { font-family: Montserrat, sans-serif; font-size: 72px; margin: 0; color: var(--green); }

/* footer */
.site-footer { background: var(--black); color: #a4a4a6; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.6fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 14px; }
.site-footer h5 { color: #fff; font-size: 16px; font-weight: 500; margin: 0 0 12px; letter-spacing: .075em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--green); }
.copyright { border-top: 1px solid #222; text-align: center; padding: 18px 16px; font-size: 12px; }

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; top: 76px; right: 0; bottom: 0; width: 78%; max-width: 320px; background: var(--black); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px; transform: translateX(100%); transition: transform .3s; }
  .nav-open .main-nav { transform: none; }
  .main-nav > a, .has-sub > a { display: block; padding: 14px 0; border-bottom: 1px solid #222; }
  .has-sub .sub { position: static; transform: none; display: block; padding: 0 0 8px 12px; }
  .has-sub .sub a { text-align: left; border: 0; padding: 8px 0; color: #aaa; }
  .products-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .sidebar ul { position: static; display: flex; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--line); gap: 22px; }
  .sidebar li { flex: none; }
  .sidebar a, .sidebar a:hover, .sidebar a.active { padding: 10px 0; border-bottom: 2px solid transparent; }
  .sidebar a.active { border-color: var(--green); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .view-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .banner { height: 200px; }
  .banner-title .en { font-size: 30px; }
}
@media (max-width: 480px) {
  .header-inner { height: 64px; }
  .main-nav { top: 64px; }
  .brand img { height: 24px; }
  .view-ch { font-size: 24px; }
  .gallery-thumbs button { width: 64px; height: 64px; }
  .desc { margin-top: 48px; padding-top: 36px; }
}
