/* =====================================================================
   acttao 官网 — 方案 A「白底绿线·数据感」
   单文件、无框架、无外链字体、无图标字体；装饰只用 CSS。
   颜色：已从 src/static/img/logo-stacked.png 取色定准（像素众数）——
     green  #48AB35（草案 #4DB43A）  blue #0097DA（草案 #1E9BE0）
     orange #EB9400（草案 #F0A020）  ink  #3E3A39（草案 #3A3A3A）
   移动优先；容器 1120px；日文行高 1.8；字号 16px 起。
   ===================================================================== */

:root {
  --green: #48AB35;
  --green-dark: #3A8F2A;
  --green-soft: #EEF8EA;
  --blue: #0097DA;
  --blue-soft: #EAF6FC;
  --orange: #EB9400;
  --orange-soft: #FDF4E3;
  --ink: #3E3A39;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --bg: #fff;
  --bg-alt: #f8fafb;
  --container: 1120px;
  --gutter: 20px;
  --radius: 6px;
  --font-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-en: "Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-num: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  font-feature-settings: "palt" 0;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.65; }
html[lang="zh"] body { font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", var(--font-ja); }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 8px; top: 8px; background: var(--bg); padding: .4rem .8rem; z-index: 100; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 1.2em; }
main { padding: 2.5rem 0 4rem; }
main > *:first-child { margin-top: 0; }

.page-title, main > h1 {
  font-size: 1.5rem;
  margin: 0 0 1.75rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-title::after, main > h1::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--green);
}

@media (min-width: 640px) { .page-title, main > h1 { font-size: 1.75rem; } }

main section { margin: 0 0 3rem; }
section > h2 {
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
  padding: 0 0 .5rem;
  border-bottom: 2px solid var(--green);
  display: inline-block;      /* 绿色细线只跟随标题宽度 */
  min-width: 8em;
}
section > h2 + * { margin-top: .25rem; }
h3 { font-size: 1.1rem; margin: 1.75rem 0 .75rem; padding-left: .75rem; border-left: 4px solid var(--green); line-height: 1.5; }
h3:first-child { margin-top: 0; }
h4 { font-size: 1rem; margin: 1.25rem 0 .5rem; }

ul, ol { margin: 0 0 1.25em; padding-left: 1.5em; }
li { margin: .25em 0; }
li > ul, li > ol { margin: .25em 0 0; }
main ul > li::marker { color: var(--green); }
main ol > li::marker { color: var(--green); font-family: var(--font-num); font-weight: 700; }

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p:last-child { margin-bottom: 0; }

figure { margin: 1.75rem 0; }
figure img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
figcaption { font-size: .875rem; color: var(--muted); margin-top: .5rem; text-align: center; }
main p > img { margin: 1rem auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { margin: 0; border: 0; }
.table-wrap table:has(tr > :nth-child(3)) { min-width: 640px; }   /* 3 列以上才强制横向滚动；2 列键值表在手机上贴合宽度 */
.table-wrap table:has(tr > :nth-child(5)) { min-width: 760px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.5rem 0; background: var(--bg); }
th, td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: normal; }
th { background: var(--bg-alt); font-weight: 700; white-space: nowrap; border-bottom: 2px solid var(--green); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfdfa; }
td:first-child, th:first-child { white-space: nowrap; }
tbody th[scope="row"], tbody td:first-child { color: var(--ink); font-weight: 600; }
td .num, td[data-num] { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .7rem 1.5rem;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  border: 2px solid var(--green);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-secondary:hover { background: var(--green-soft); color: var(--green-dark); }
.btn + .btn { margin-left: .75rem; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.cards .card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
  background: var(--bg);
  display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.cards .card:nth-child(3n+2) { border-top-color: var(--blue); }
.cards .card:nth-child(3n+3) { border-top-color: var(--orange); }
.cards .card:hover { box-shadow: 0 6px 20px rgba(62, 58, 57, .08); }
.cards .card h3 { margin: 0 0 .75rem; padding: 0; border: 0; font-size: 1.15rem; }
.cards .card p { margin-bottom: 1rem; font-size: .95rem; }
.cards .card p:last-child { margin-bottom: 0; }
.cards .card .btn { margin-top: auto; align-self: flex-start; padding: .5rem 1.1rem; font-size: .9rem; }
.cards .card p:has(> .btn) { margin-top: auto; margin-bottom: 0; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* ---------- facts（数据条）---------- */
ul.facts {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
ul.facts li.fact {
  margin: 0;
  padding: 1.1rem .9rem;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
  position: relative;
  box-shadow: 0 0 0 1px var(--line);
}
ul.facts li.fact:last-child:nth-child(odd) { grid-column: span 2; }
ul.facts li.fact::before { content: ""; position: absolute; left: 50%; top: 0; width: 28px; height: 3px; margin-left: -14px; background: var(--green); }
ul.facts li.fact strong {
  display: block;
  font-family: var(--font-num);
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  margin-bottom: .3rem;
}
ul.facts li.fact span { display: block; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 640px) {
  ul.facts { grid-template-columns: repeat(3, 1fr); }
  ul.facts li.fact:last-child:nth-child(odd) { grid-column: auto; }
  ul.facts li.fact:last-child:nth-child(3n+1) { grid-column: span 3; }
  ul.facts li.fact:last-child:nth-child(3n+2) { grid-column: span 2; }
  ul.facts li.fact strong { font-size: 1.75rem; }
}
@media (min-width: 900px) {
  ul.facts { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  ul.facts li.fact:last-child { grid-column: auto !important; }
  ul.facts li.fact { padding: 1.4rem 1rem; }
  ul.facts li.fact strong { font-size: 1.9rem; }
  ul.facts li.fact span { font-size: .875rem; }
}

/* ---------- notice（法定提示）---------- */
.notice {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid #f3d9a4;
  background: var(--orange-soft);
  border-radius: var(--radius);
  font-size: .95rem;
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- review banner（zh 内部审阅版顶部横幅）---------- */
.review-banner {
  position: sticky; top: 0; z-index: 60;
  width: 100%;
  background: var(--orange);
  color: #fff;
  text-align: center;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.5;
  padding: .4rem var(--gutter);
}
.review-banner a { color: #fff; text-decoration: underline; }
body:has(> .review-banner) .site-header { top: 2.1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 140px; height: auto; }
.brand:hover { text-decoration: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 0; cursor: pointer; border-radius: 4px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-right { display: none; }
body.nav-open .header-right {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
  padding: .5rem var(--gutter) 1rem;
  max-height: calc(100vh - 64px); overflow-y: auto;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: .75rem .25rem; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.site-nav a:hover { text-decoration: none; color: var(--green-dark); }
.site-nav a.active { color: var(--green-dark); }
.site-nav .has-sub > a { cursor: pointer; position: relative; padding-right: 1.5rem; }
.site-nav .has-sub > a::after {
  content: ""; position: absolute; right: .5rem; top: 50%;
  width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.site-nav .has-sub.open > a::after { transform: rotate(225deg); margin-top: -2px; }
.site-nav ul.sub { display: none; padding-left: 1rem; background: var(--bg-alt); }
.site-nav .has-sub.open > ul.sub { display: block; }
.site-nav ul.sub a { font-weight: 400; font-size: .95rem; }

.lang-switch { display: flex; gap: .25rem; align-items: center; padding: .75rem .25rem 0; font-family: var(--font-num); font-size: .875rem; letter-spacing: .04em; }
.lang-switch a { color: var(--muted); padding: .15rem .5rem; border-radius: 3px; border: 1px solid transparent; }
.lang-switch a.current { color: var(--green-dark); border-color: var(--green); font-weight: 700; }
.lang-switch a:hover { text-decoration: none; color: var(--green-dark); }
.lang-switch a + a::before { content: none; }

@media (min-width: 900px) {
  .brand img { width: 160px; }
  .nav-toggle { display: none; }
  .header-right, body.nav-open .header-right {
    display: flex; align-items: center; gap: 1.25rem;
    position: static; padding: 0; border: 0; box-shadow: none; max-height: none; overflow: visible; background: transparent;
  }
  .site-nav > ul { display: flex; align-items: center; gap: .25rem; }
  .site-nav > ul > li { position: relative; }
  .site-nav a { padding: .5rem .8rem; border: 0; font-size: .95rem; }
  .site-nav > ul > li > a { position: relative; }
  .site-nav > ul > li > a::before {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 2px; background: var(--green);
    transform: scaleX(0); transform-origin: left; transition: transform .15s;
  }
  .site-nav > ul > li > a:hover::before, .site-nav > ul > li > a.active::before { transform: scaleX(1); }
  .site-nav .has-sub > a { padding-right: 1.6rem; }
  .site-nav .has-sub > a::after { right: .6rem; margin-top: -6px; width: 6px; height: 6px; }
  .site-nav .has-sub.open > a::after { transform: rotate(45deg); margin-top: -6px; }
  .site-nav ul.sub, .site-nav .has-sub.open > ul.sub {
    display: block; position: absolute; left: .5rem; top: 100%; min-width: 220px;
    background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--green);
    border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    padding: .4rem 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
  }
  .site-nav .has-sub:hover > ul.sub, .site-nav .has-sub:focus-within > ul.sub, .site-nav .has-sub.open > ul.sub { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul.sub a { padding: .55rem 1rem; white-space: nowrap; }
  .site-nav ul.sub a:hover, .site-nav ul.sub a.active { background: var(--green-soft); color: var(--green-dark); }
  .site-nav ul.sub a::before { content: none; }
  .lang-switch { padding: 0 0 0 1rem; border-left: 1px solid var(--line); }
}

/* ---------- hero（首页首屏）---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; }
/* 右侧 logo 三角装饰：绿 / 蓝 / 橙 三色 clip-path 三角，纯 CSS */
.hero::before {
  right: -6%; top: -20%;
  width: 46vw; height: 46vw; max-width: 560px; max-height: 560px;
  background: linear-gradient(135deg, var(--green) 0 34%, var(--blue) 34% 67%, var(--orange) 67% 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: .12;
}
.hero::after {
  right: 10%; top: 35%;
  width: 22vw; height: 22vw; max-width: 260px; max-height: 260px;
  background: var(--green);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: .08;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto;
  padding: 3.5rem var(--gutter) 3rem;
}
.hero h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  line-height: 1.35;
  letter-spacing: .02em;
  margin: 0 0 1rem;
  max-width: 18em;
}
.hero h1::before { content: ""; display: block; width: 48px; height: 4px; background: var(--green); margin-bottom: 1.25rem; }
.hero .lead { font-size: 1.05rem; color: var(--muted); max-width: 34em; margin-bottom: 1.75rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.hero .cta .btn + .btn { margin-left: 0; }
@media (min-width: 900px) {
  .hero-inner { padding: 5.5rem var(--gutter) 5rem; }
  .hero .lead { font-size: 1.15rem; }
}
.page-home main { padding-top: 3rem; }

/* ---------- CTA 条（页脚上方）---------- */
.cta-bar {
  background: linear-gradient(90deg, var(--green-soft), #fff 60%);
  border-top: 1px solid var(--line);
  border-bottom: 3px solid var(--green);
}
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding-top: 2rem; padding-bottom: 2rem; }
.cta-text { margin: 0; font-weight: 700; font-size: 1.1rem; }
@media (min-width: 640px) { .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 1.75rem; padding-top: 2.5rem; padding-bottom: 1.5rem; }
.footer-name { color: var(--ink); font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--green-dark); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-nav li { margin: 0; }
.footer-nav a { color: var(--ink); }
.footer-nav ul.sub { padding-left: 0; }
.footer-nav li.has-sub > ul.sub { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .1rem; }
.footer-nav li.has-sub > ul.sub a { color: var(--muted); font-size: .85rem; }
.footer-nav li.has-sub > ul.sub a::before { content: "– "; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 1.5rem; display: flex; flex-direction: column; gap: .25rem; }
.notice-alcohol { margin: 0; font-size: .8125rem; }
.notice-alcohol:empty { display: none; }
.copyright { margin: 0; font-family: var(--font-num); font-size: .8125rem; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr; padding-top: 3rem; }
  .footer-nav ul { flex-direction: column; gap: .35rem; }
  .footer-nav li.has-sub > ul.sub { flex-direction: row; padding-left: 1rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- misc ---------- */
.page-contact main a[href^="mailto:"], .page-contact main a[href^="tel:"] { font-family: var(--font-num); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } html { scroll-behavior: auto; } }
@media print { .site-header, .cta-bar, .nav-toggle { display: none; } main { padding: 0; } }
