:root {
  --ink: #15211b;
  --green: #123f31;
  --green-2: #1f6650;
  --paper: #f6f7f4;
  --white: #fff;
  --line: #d8dfd9;
  --gold: #b7904f;
  --gold-soft: #d6bd8c;
  --coral: #d86648;
  --blue: #286a88;
  --muted: #5e6b64;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Noto Sans TC", sans-serif; color: var(--ink); background: var(--white); letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2 { font-family: "Noto Serif TC", serif; }

.site-header { height: 76px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; box-shadow: 0 8px 24px rgba(21,33,27,.04); }
.brand { display: flex; align-items: center; gap: 13px; font-size: 20px; font-weight: 800; }
.brand img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; border: 1px solid #e5d6b7; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.site-nav a { position: relative; }
.site-nav a:not(.nav-store)::after { content: ""; height: 2px; position: absolute; left: 0; right: 100%; bottom: -8px; background: var(--gold); transition: right .25s ease; }
.site-nav a:not(.nav-store):hover::after { right: 0; }
.site-nav a:hover { color: var(--green-2); }
.nav-store { background: var(--green); color: #fff !important; padding: 12px 18px; border-radius: 4px; box-shadow: 0 8px 18px rgba(18,63,49,.16); }
.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; }

.hero { height: calc(100vh - 76px); min-height: 680px; max-height: 900px; position: relative; overflow: hidden; background: url('assets/hero.jpg') center / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: rgba(10,29,22,.58); }
.hero-inner { position: relative; z-index: 2; width: min(var(--max), calc(100% - 48px)); margin: auto; padding-top: 110px; color: #fff; }
.eyebrow, .section-label { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--gold); margin: 0 0 15px; }
.eyebrow { color: #e3c98e; display: flex; align-items: center; gap: 10px; }
.eyebrow span { display: block; width: 38px; height: 1px; background: #e3c98e; }
.hero h1 { font-size: 86px; line-height: 1.04; margin: 0 0 26px; text-shadow: 0 6px 20px rgba(0,0,0,.14); }
.hero-copy { font-size: 18px; line-height: 1.9; max-width: 630px; margin: 0 0 34px; color: #f1f4f1; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { min-height: 50px; padding: 13px 21px; border: 1px solid transparent; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button svg, .text-link svg, .service-grid span svg { width: 18px; height: 18px; }
.primary { background: var(--coral); color: #fff; box-shadow: 0 10px 22px rgba(216,102,72,.22); }
.secondary { border-color: rgba(255,255,255,.72); color: #fff; background: rgba(255,255,255,.06); }
.dark { background: var(--ink); color: #fff; }
.outline { background: transparent; border-color: var(--green); color: var(--green); }
.hero-proof { display: flex; gap: 30px; margin-top: 48px; font-size: 13px; }
.hero-proof span { display: flex; align-items: center; gap: 9px; }
.hero-proof svg { width: 18px; color: #e3c98e; }
.hero-products { position: absolute; z-index: 2; right: max(3vw, 24px); bottom: -18px; width: min(45vw, 660px); filter: drop-shadow(0 26px 24px rgba(0,0,0,.28)); }

.trust-bar { height: 126px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); background: #0f1c16; color: #fff; display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-bar > div { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: 1fr 1fr; column-gap: 16px; align-content: center; border-right: 1px solid #34423a; padding: 0 32px; }
.trust-bar > div:first-child { border-left: 1px solid #34423a; }
.trust-bar strong { grid-row: 1 / 3; font-family: "Noto Serif TC", serif; color: var(--gold-soft); font-size: 22px; align-self: center; }
.trust-bar span { font-weight: 800; align-self: end; }
.trust-bar small { color: #9eaaa3; align-self: start; margin-top: 4px; }

.intro-band, .products-section, .standards-section, .service-section, .story-section, .faq-section, .cta-band, footer { padding-left: max(24px, calc((100vw - var(--max)) / 2)); padding-right: max(24px, calc((100vw - var(--max)) / 2)); }
.intro-band { padding-top: 84px; padding-bottom: 84px; background: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: end; }
.intro-band h2, .section-heading h2, .standards-copy h2, .story-copy h2, .faq-section h2, .cta-band h2 { font-size: 48px; line-height: 1.32; margin: 0; }
.intro-band > p, .section-heading > p, .standards-copy > p, .story-copy > p { color: var(--muted); line-height: 1.95; margin: 0; }

.products-section { padding-top: 100px; padding-bottom: 108px; background: var(--paper); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.section-heading > p { max-width: 430px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; box-shadow: 0 14px 30px rgba(25,46,36,.06); transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 22px 42px rgba(25,46,36,.12); }
.product-image { height: 350px; display: flex; align-items: center; justify-content: center; padding: 38px; position: relative; }
.product-image::after { content: "MAIBA SELECT"; position: absolute; left: 20px; bottom: 16px; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; color: rgba(21,33,27,.4); }
.product-image img { max-height: 100%; object-fit: contain; transition: transform .3s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-miao .product-image { background: #f2e9df; }
.product-meimai .product-image { background: #e9f1ec; }
.product-aurora .product-image { background: #e8eef1; }
.product-content { padding: 27px; }
.product-tag { display: inline-block; color: var(--green-2); font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.product-content h3 { font-size: 27px; margin: 0 0 10px; }
.product-content p { color: var(--muted); line-height: 1.75; min-height: 60px; }
.text-link { padding: 0; border: 0; background: transparent; color: var(--green); font-weight: 800; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }

.standards-section { background: var(--green); color: #fff; padding-top: 108px; padding-bottom: 108px; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; position: relative; }
.standards-section::before { content: "MAIBA"; position: absolute; right: max(24px, calc((100vw - var(--max)) / 2)); top: 24px; font-family: "Noto Serif TC", serif; font-size: 74px; font-weight: 800; color: rgba(255,255,255,.035); }
.standards-copy > p { color: #dce8e1; }
.standards-copy .button { margin-top: 24px; background: #fff; color: var(--green); }
.standards-list article { display: grid; grid-template-columns: 48px 1fr; gap: 22px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.standards-list article:first-child { padding-top: 0; }
.standards-list span { color: #d9b76d; font-weight: 800; }
.standards-list h3 { margin: 0 0 7px; font-size: 21px; }
.standards-list p { margin: 0; color: #dce8e1; }

.service-section { padding-top: 96px; padding-bottom: 104px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.service-grid > a { padding: 30px; border-right: 1px solid var(--line); min-height: 230px; transition: background .22s ease; }
.service-grid > a:hover { background: #f4f7f4; }
.service-grid > a:last-child { border: 0; }
.service-grid > a > svg { width: 28px; height: 28px; color: var(--green); }
.service-grid h3 { margin: 30px 0 8px; }
.service-grid p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.service-grid span { font-size: 13px; font-weight: 800; color: var(--green); display: flex; align-items: center; gap: 7px; }

.story-section { background: #e6edf0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 560px; padding-top: 82px; padding-bottom: 82px; border-top: 1px solid #d3dde1; border-bottom: 1px solid #d3dde1; }
.story-visual { display: flex; justify-content: center; }
.story-visual img { width: min(80%, 560px); }
.story-copy { max-width: 560px; }
.story-copy > p + p { margin-top: 16px; }
.story-copy .button { margin-top: 28px; }

.faq-section { padding-top: 96px; padding-bottom: 104px; background: #fff; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; padding: 23px 0; font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary svg { width: 20px; }
details[open] summary svg { transform: rotate(45deg); }
details p { margin: 0 0 24px; color: var(--muted); line-height: 1.8; }

.cta-band { padding-top: 68px; padding-bottom: 68px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { font-size: 34px; }
footer { padding-top: 50px; padding-bottom: 30px; background: #0f1713; color: #d8dfda; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand img { width: 58px; height: 58px; object-fit: cover; border-radius: 50%; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: #fff; font-size: 20px; }
.footer-brand span { font-size: 13px; margin-top: 4px; }
.footer-info { display: flex; gap: 24px; flex-wrap: wrap; margin: 28px 0; font-size: 13px; }
footer > p { font-size: 12px; color: #8e9a92; border-top: 1px solid #2c3831; padding-top: 22px; }

.video-dialog { width: min(900px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 4px; background: #0e1411; color: #fff; }
.video-dialog::backdrop { background: rgba(0,0,0,.72); }
.dialog-head { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.dialog-close { border: 0; background: transparent; color: #fff; width: 40px; height: 40px; }
.video-dialog video { width: 100%; max-height: 72vh; background: #000; display: block; }
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.visible { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; padding: 18px 24px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .hero { min-height: 700px; height: calc(100svh - 76px); }
  .hero-shade { background: rgba(12,31,24,.68); }
  .hero-inner { padding-top: 74px; }
  .hero h1 { font-size: 64px; }
  .hero-copy { font-size: 16px; max-width: 90%; }
  .hero-products { width: 68vw; right: -8vw; bottom: -6px; }
  .hero-proof { gap: 14px; flex-wrap: wrap; }
  .trust-bar { height: auto; grid-template-columns: 1fr; }
  .trust-bar > div { min-height: 92px; border-left: 1px solid #34423a; border-bottom: 1px solid #34423a; }
  .trust-bar > div:last-child { border-bottom: 0; }
  .intro-band, .standards-section, .story-section { grid-template-columns: 1fr; gap: 38px; }
  .intro-band { padding-top: 68px; padding-bottom: 68px; }
  .intro-band h2, .section-heading h2, .standards-copy h2, .story-copy h2, .faq-section h2 { font-size: 40px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: 42% 58%; }
  .product-image { height: 280px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-grid > a:nth-child(2) { border-right: 0; }
  .service-grid > a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .story-visual { order: 2; }
  .story-copy { order: 1; }
  .cta-band { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .site-header { height: 64px; }
  .brand { font-size: 18px; }
  .brand img { width: 38px; height: 38px; }
  .site-nav { top: 64px; }
  .hero { min-height: 680px; }
  .hero-inner { width: calc(100% - 36px); padding-top: 58px; }
  .hero h1 { font-size: 52px; }
  .eyebrow { font-size: 11px; }
  .hero-copy { max-width: 100%; line-height: 1.75; }
  .hero-proof { font-size: 12px; }
  .hero-products { width: 90vw; right: -22vw; bottom: 8px; }
  .intro-band, .products-section, .standards-section, .service-section, .story-section, .faq-section, .cta-band, footer { padding-left: 18px; padding-right: 18px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }
  .product-card { display: block; }
  .product-image { height: 280px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid > a { border-right: 0; border-bottom: 1px solid var(--line) !important; min-height: 180px; }
  .service-grid > a:last-child { border-bottom: 0 !important; }
  .story-section { min-height: 0; }
  .cta-band h2 { font-size: 30px; }
  .footer-info { display: grid; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
