/* ============================================================
   簡單國際開發有限公司  Ez International Co., Ltd.
   Global stylesheet — RWD, pure CSS
   ============================================================ */

:root {
  /* Brand palette (derived from the Ez logo gradient) */
  --green-dark: #6a9a2d;
  --green: #8bbf2e;
  --lime: #c4d92e;
  --grad: linear-gradient(135deg, #7cb342 0%, #a4c934 45%, #c8d92e 100%);
  --grad-soft: linear-gradient(135deg, #f4f8e8 0%, #eaf2d6 100%);

  --ink: #262d18;      /* dark olive charcoal */
  --ink-2: #333b22;
  --text: #333a2c;
  --muted: #6b7361;
  --line: #e4e8dc;
  --bg: #ffffff;
  --bg-alt: #f7f9f1;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 4px 18px rgba(38, 45, 24, 0.07);
  --shadow-lg: 0 14px 40px rgba(38, 45, 24, 0.12);
  --maxw: 1160px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.75;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* keep form fields usable (typing/selection inside inputs) */
input, textarea, select {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
img { -webkit-user-drag: none; user-drag: none; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand .brand-name { font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: .3px; }
.brand .brand-en { display: block; font-size: .68rem; color: var(--muted); font-weight: 500; letter-spacing: .5px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-2);
  border-radius: 10px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--green-dark); }
.nav-links a.active { color: var(--green-dark); }
.nav-links a.active::after {
  content: ""; display: block; height: 3px; width: 22px; margin: 3px auto 0;
  background: var(--grad); border-radius: 3px;
}
.nav-cta {
  margin-left: 8px;
  background: var(--grad);
  color: #1f2712 !important;
  padding: 10px 20px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 16px rgba(140, 191, 46, .35);
}
.nav-cta:hover { transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px; background: var(--ink); border-radius: 3px;
  transition: transform .3s, opacity .3s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700;
  font-size: .98rem; cursor: pointer; border: 0; transition: transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--grad); color: #1f2712; box-shadow: 0 8px 20px rgba(140,191,46,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(140,191,46,.45); }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink) center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 88% -12%, rgba(196,217,46,.15), transparent 60%),
    linear-gradient(100deg, rgba(22,58,16,.74) 0%, rgba(32,70,22,.50) 33%, rgba(44,82,30,.26) 60%, rgba(44,82,30,.07) 100%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding: 84px 0 92px;
}
.hero .eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: 2px;
  color: var(--lime); border: 1px solid rgba(196,217,46,.4); padding: 5px 14px;
  border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.22; font-weight: 900; letter-spacing: .5px; text-shadow: 0 2px 18px rgba(20,26,10,.55); }
.hero p.lead, .hero .eyebrow { text-shadow: 0 1px 10px rgba(20,26,10,.45); }
.hero h1 .accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { margin: 22px 0 32px; font-size: 1.15rem; font-weight: 600; color: rgba(255,255,255,.9); max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: rgba(20,50,14,.40);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.hero-card h3 { font-size: 1.05rem; color: var(--lime); margin-bottom: 6px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.hero-phone { font-size: 2.1rem; font-weight: 900; letter-spacing: 1px; margin: 4px 0 2px; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.hero-card .muted { color: rgba(255,255,255,.78); font-size: .9rem; font-weight: 700; text-shadow: 0 1px 5px rgba(0,0,0,.5); }
.hero-stats { display: flex; gap: 8px; margin-top: 22px; }
.hero-stats .stat { flex: 1; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 15px 10px; text-align: center; }
.hero-stats .num { font-size: 2rem; font-weight: 900; color: #2f5314; text-shadow: 0 0 2px #ffffff, 0 0 5px rgba(255,255,255,.98), 0 0 11px rgba(255,255,255,.7), 0 1px 1px rgba(255,255,255,.6); }
.hero-stats .lbl { font-size: .82rem; color: rgba(255,255,255,.85); font-weight: 700; text-shadow: 0 1px 5px rgba(0,0,0,.55); }

.hero-wave { position: relative; display: block; width: 100%; height: 40px; color: var(--bg); }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .kicker {
  display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: 2px;
  color: var(--green-dark); text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--ink); font-weight: 900; line-height: 1.3; }
.section-head h2 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Feature / service cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(140,191,46,.4); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--green-dark); margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }
.card .step-no { font-size: .78rem; font-weight: 800; color: var(--green); letter-spacing: 1px; }

/* Industry cards */
.industry {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.industry:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.industry .banner {
  height: 110px; background: var(--grad); position: relative; display: grid; place-items: center;
}
.industry .banner svg { width: 52px; height: 52px; color: rgba(31,39,18,.85); }
.industry .body { padding: 22px 24px 26px; flex: 1; }
.industry h3 { font-size: 1.12rem; color: var(--ink); margin-bottom: 6px; }
.industry p { color: var(--muted); font-size: .92rem; }
.industry .tag {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.85);
  color: var(--green-dark); font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}

/* ---------- Value / why-us strip ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why .item { text-align: center; padding: 20px; }
.why .big { font-size: 2.4rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why .item h4 { color: var(--ink); margin: 6px 0 4px; font-size: 1.05rem; }
.why .item p { color: var(--muted); font-size: .9rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split .media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--grad-soft); min-height: 320px; display: grid; place-items: center; padding: 30px; }
.split .media .logo-mark { width: 62%; max-width: 260px; }
.checklist { list-style: none; margin-top: 20px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; color: var(--text); }
.checklist li svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--green); margin-top: 3px; }
.checklist li strong { color: var(--ink); }

/* ---------- Tables (comparison / eligibility) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
thead th { background: var(--ink); color: #fff; font-weight: 700; padding: 16px 18px; text-align: left; font-size: .95rem; }
thead th.hl { background: var(--green-dark); }
tbody td, tbody th { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .94rem; text-align: left; vertical-align: top; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 700; color: var(--ink); background: var(--bg-alt); white-space: nowrap; }
tbody td.hl { background: rgba(196,217,46,.09); font-weight: 700; color: var(--ink); }
tbody tr:hover td { background: rgba(196,217,46,.05); }
.points { display: inline-block; min-width: 34px; text-align: center; background: var(--grad); color: #1f2712; font-weight: 800; border-radius: 8px; padding: 2px 8px; }

/* ---------- Eligibility feature boxes ---------- */
.elig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.elig-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; box-shadow: var(--shadow); }
.elig-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.elig-card.dark h3 { color: var(--lime); }
.elig-card .badge { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: 1px; color: var(--green-dark); background: var(--grad-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.elig-card.dark .badge { color: #1f2712; background: var(--lime); }
.elig-card h3 { color: var(--ink); font-size: 1.15rem; margin-bottom: 12px; }
.elig-list { list-style: none; }
.elig-list li { display: flex; gap: 10px; padding: 7px 0; align-items: flex-start; font-size: .95rem; }
.elig-list li::before { content: "✓"; color: var(--green); font-weight: 900; flex: 0 0 auto; }
.elig-card.dark .elig-list li::before { color: var(--lime); }

/* ---------- Savings callout ---------- */
.callout {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--grad); border-radius: var(--radius-lg); padding: 30px 34px; margin-top: 30px;
  box-shadow: var(--shadow-lg);
}
.callout .save { font-size: 2rem; font-weight: 900; color: #1f2712; white-space: nowrap; }
.callout p { color: #26301a; font-weight: 600; flex: 1; min-width: 260px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #eef5df 0%, #dfeecb 100%); color: var(--ink); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(700px 320px at 50% -25%, rgba(124,179,66,.18), transparent 68%); }
.cta-band .container { position: relative; }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; color: var(--ink); }
.cta-band h2 .accent { background: linear-gradient(135deg, #5f8a1f 0%, #7ea320 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-band p { color: #4d5a3d; margin: 14px auto 28px; max-width: 40em; }
.cta-band .btn-ghost { background: rgba(38,45,24,.04); color: var(--ink); border-color: rgba(38,45,24,.3); }
.cta-band .btn-ghost:hover { background: rgba(38,45,24,.1); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info .info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:last-child { border-bottom: 0; }
.contact-info .ic { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); color: var(--green-dark); display: grid; place-items: center; }
.contact-info .ic svg { width: 22px; height: 22px; }
.contact-info h4 { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.contact-info .val { color: var(--ink); font-weight: 700; font-size: 1.08rem; }
.contact-info .val a:hover { color: var(--green-dark); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .96rem; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(140,191,46,.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.map-embed { border: 0; width: 100%; height: 300px; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 30px; }

/* ---------- Eligibility category nav ---------- */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 8px; }
.cat-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: .95rem; color: var(--ink-2); transition: border-color .2s, background .2s, transform .2s; }
.cat-nav a:hover { border-color: var(--green); background: var(--grad-soft); transform: translateY(-2px); }
.cat-group-title { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; font-weight: 900; color: var(--ink); margin: 40px 0 18px; padding-top: 10px; }
.cat-group-title::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--grad); }

/* ---------- Accordion (details/summary) ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.acc[open] { box-shadow: var(--shadow-lg); border-color: rgba(140,191,46,.4); }
.acc > summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; gap: 14px; font-weight: 800; color: var(--ink); font-size: 1.1rem; transition: background .2s; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { background: var(--bg-alt); }
.acc > summary .ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; background: var(--grad-soft); color: var(--green-dark); display: grid; place-items: center; font-size: 1.2rem; }
.acc > summary .chev { margin-left: auto; flex: 0 0 auto; color: var(--green-dark); transition: transform .25s; }
.acc[open] > summary .chev { transform: rotate(180deg); }
.acc > summary .stitle small { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.acc-body { padding: 6px 24px 26px; border-top: 1px solid var(--line); }

.req-h { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green-dark); font-size: 1rem; margin: 20px 0 10px; }
.req-h .pill { font-size: .72rem; font-weight: 800; color: #1f2712; background: var(--lime); padding: 3px 10px; border-radius: 999px; }
.work-desc { color: var(--text); font-size: .96rem; margin: 12px 0 4px; padding: 12px 16px; background: var(--grad-soft); border-radius: 10px; border-left: 4px solid var(--green); }
.req-list { margin: 0; padding-left: 0; list-style: none; }
.req-list > li { position: relative; padding: 7px 0 7px 42px; color: var(--text); font-size: .95rem; }
.req-list > li::before { content: attr(data-n); position: absolute; left: 0; top: 6px; box-sizing: border-box; min-width: 28px; height: 24px; padding: 0 7px; border-radius: 7px; background: var(--grad); color: #1f2712; font-size: .78rem; font-weight: 800; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.req-list .sub { margin: 6px 0 2px 4px; padding-left: 16px; border-left: 2px solid var(--line); }
.req-list .sub li { padding: 4px 0; color: var(--muted); font-size: .92rem; }
.note-block { background: var(--bg-alt); border-radius: 10px; padding: 12px 16px; font-size: .86rem; color: var(--muted); margin-top: 14px; line-height: 1.7; }
.note-block strong { color: var(--ink); }
.acc-body .table-wrap { margin-top: 14px; }

/* ---------- FAQ (常見問題) ---------- */
.faq-subcat { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; font-weight: 800; color: var(--green-dark); margin: 34px 0 14px; padding-bottom: 9px; border-bottom: 2px solid var(--line); }
.faq-subcat:first-of-type { margin-top: 8px; }
.faq-subcat .ic { font-size: 1.2rem; }
.acc > summary .ico.q { font-weight: 900; font-size: 1.15rem; }
.acc > summary .stitle.qtext { font-weight: 800; line-height: 1.5; }
.faq-a { display: flex; gap: 12px; }
.faq-a .a-badge { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; background: var(--grad); color: #1f2712; font-weight: 900; display: grid; place-items: center; font-size: .95rem; }
.faq-a .a-text { flex: 1; min-width: 0; }
.faq-a .a-text p { margin: 0 0 10px; line-height: 1.9; color: var(--text); font-size: .95rem; }
.faq-a .a-text p:last-child { margin-bottom: 0; }
.faq-a .a-text ol, .faq-a .a-text ul { margin: 6px 0 10px 1.4em; }
.faq-a .a-text li { margin: 5px 0; line-height: 1.8; color: var(--text); font-size: .95rem; }
.faq-a .a-text .sub2 { margin: 4px 0 4px 1.2em; padding-left: 12px; border-left: 2px solid var(--line); list-style: none; }
.faq-a .a-text .sub2 li { color: var(--muted); }

/* ---------- News (最新消息) ---------- */
.news-status { text-align: center; color: var(--muted); padding: 46px 0; font-size: 1rem; line-height: 1.8; }
.news-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.news-item { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.news-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(140,191,46,.4); }
.news-item .date-badge { flex: 0 0 auto; text-align: center; background: var(--grad-soft); border-radius: 12px; padding: 12px 14px; min-width: 92px; }
.news-item .date-badge .d-day { font-size: 1.6rem; font-weight: 900; color: var(--green-dark); line-height: 1; }
.news-item .date-badge .d-ym { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.news-item .n-body { flex: 1; min-width: 0; }
.news-item h3 { color: var(--ink); font-size: 1.12rem; margin: 0 0 5px; }
.news-item p { color: var(--muted); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .arrow { flex: 0 0 auto; color: var(--green-dark); }
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.pagination button { min-width: 42px; height: 42px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 700; cursor: pointer; font-family: inherit; font-size: .95rem; transition: border-color .2s, background .2s, color .2s; }
.pagination button:hover:not(:disabled) { border-color: var(--green); background: var(--grad-soft); }
.pagination button.active { background: var(--grad); color: #1f2712; border-color: transparent; }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }
.pagination .pg { color: var(--muted); padding: 0 4px; }
.news-total { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 14px; }

.news-detail { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px 40px; }
.news-detail .back { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); font-weight: 700; margin-bottom: 22px; }
.news-detail .back:hover { color: var(--green); }
.news-detail .nd-title { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--ink); font-weight: 900; line-height: 1.4; margin: 0 0 10px; }
.news-detail .nd-date { color: var(--muted); font-size: .9rem; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.news-detail .nd-desc p { color: var(--text); line-height: 1.95; margin: 0 0 14px; }
.nd-files { margin-top: 26px; display: grid; gap: 14px; }
.nd-files img { max-width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.nd-file-link { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); color: var(--ink); font-weight: 600; }
.nd-file-link:hover { border-color: var(--green); background: var(--grad-soft); }
.nd-file-link .fsize { margin-left: auto; color: var(--muted); font-weight: 500; font-size: .86rem; }

@media (max-width: 560px) {
  .news-item { padding: 16px 18px; gap: 14px; }
  .news-item .date-badge { min-width: 72px; padding: 10px; }
  .news-item .date-badge .d-day { font-size: 1.3rem; }
  .news-detail { padding: 26px 22px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--ink) center/cover no-repeat;
  color: #fff; min-height: 380px; padding: 40px 0; position: relative; overflow: hidden; text-align: center;
  display: flex; align-items: center;
}
.page-hero::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(500px 300px at 82% 4%, rgba(196,217,46,.13), transparent 60%),
    radial-gradient(120% 88% at 50% 52%, rgba(22,58,16,.56) 0%, rgba(32,70,22,.40) 42%, rgba(44,82,30,.20) 74%, rgba(44,82,30,.06) 100%);
}
/* Brighter background photos (e.g. white documents) need a tighter, stronger text scrim */
.page-hero.is-bright::before {
  background:
    radial-gradient(500px 300px at 82% 4%, rgba(196,217,46,.12), transparent 60%),
    radial-gradient(118% 86% at 50% 52%, rgba(18,50,12,.78) 0%, rgba(28,64,18,.56) 40%, rgba(44,82,30,.28) 72%, rgba(44,82,30,.09) 100%);
}
.page-hero .container { position: relative; }
.page-hero .eyebrow { color: var(--lime); font-weight: 700; letter-spacing: 2px; font-size: .82rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 900; margin: 12px 0 10px; text-shadow: 0 2px 4px rgba(12,16,6,.55), 0 3px 18px rgba(12,16,6,.5); }
.page-hero p { color: rgba(255,255,255,.95); font-size: 1.16rem; font-weight: 600; max-width: 44em; margin: 0 auto; text-shadow: 0 1px 3px rgba(12,16,6,.8), 0 2px 14px rgba(12,16,6,.6); }
.breadcrumb { margin-top: 18px; font-size: .86rem; color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--lime); }

/* ---------- Footer ---------- */
.site-footer { background: #47583f; color: rgba(255,255,255,.8); padding: 60px 0 26px; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 40px; }
.footer-brand .n { font-weight: 800; color: #fff; font-size: 1.05rem; }
.footer-brand .e { font-size: .68rem; color: rgba(255,255,255,.66); }
.site-footer p { line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a:hover { color: var(--lime); }
.footer-col ul li.footer-line { padding-top: 16px; }
.footer-line .line-label { display: block; color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 9px; }
.footer-line img { width: 124px; height: 124px; display: block; background: #fff; padding: 8px; border-radius: 12px; box-shadow: var(--shadow); }
.footer-meta { padding-top: 22px; font-size: .82rem; color: rgba(255,255,255,.66); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.footer-badges span { color: rgba(255,255,255,.6); }

/* Floating call button (mobile) */
.float-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  background: var(--grad); color: #1f2712; border-radius: 999px; padding: 14px 20px;
  font-weight: 800; box-shadow: 0 10px 24px rgba(140,191,46,.45); display: none; align-items: center; gap: 8px;
}
.float-call svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 60px 0 70px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split .media { order: -1; min-height: 220px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: repeat(2, 1fr); }
}

/* Collapse nav to hamburger before the 7 links get cramped (~1102px needed) */
@media (max-width: 1160px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; gap: 4px;
    box-shadow: var(--shadow-lg); transform: translateY(-140%); transition: transform .32s ease; visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: 13px 14px; border-radius: 10px; }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin: 6px 0 0; text-align: center; }
}

@media (max-width: 760px) {
  .grid-3, .grid-2, .elig-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .float-call { display: inline-flex; }
  section { padding: 56px 0; }
  .hero-phone { font-size: 1.8rem; }
}

/* Small screens: show short brand name only (hide 「有限公司」 suffix) */
@media (max-width: 480px) {
  .brand .brand-suffix { display: none; }
}

@media (max-width: 420px) {
  .why { grid-template-columns: 1fr; }
  .brand .brand-en { display: none; }
}
