/* CC cloud pixel site — fonts shared with the clientarea pixel theme (Fusion Pixel 12px, OFL 1.1) */
@font-face { font-family: "PX12 SC"; src: url("/themes/clientarea/pixel/assets/fonts/px12-zh_hans.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "PX12 TC"; src: url("/themes/clientarea/pixel/assets/fonts/px12-zh_hant.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "PX12 JP"; src: url("/themes/clientarea/pixel/assets/fonts/px12-ja.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "PX12 Latin"; src: url("/themes/clientarea/pixel/assets/fonts/px12-latin.woff2") format("woff2"); font-display: swap; }

:root {
  --px-font: "PX12 SC";
  --sys-font: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --bg: #F4F5F2;
  --surface: #FFFFFF;
  --ink: #111111;
  --muted: #8A8F98;
  --line: #E6E8EB;
  --primary: #1F7A4D;
  --primary-dark: #17603C;
  --accent-bg: #EAF5EC;
  --mint: #5BD08F;
}
:root:lang(zh-TW) { --px-font: "PX12 TC"; --sys-font: "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; }
:root:lang(ja) { --px-font: "PX12 JP"; --sys-font: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif; }
:root:lang(en) { --px-font: "PX12 Latin"; --sys-font: system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sys-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3, p { margin: 0; }

.ws-display, .ws-h2, .ws-card h3, .ws-num, .ws-kicker, .ws-btn, .ws-nav a,
.ws-lang summary, .ws-lang-menu a, .ws-link, .ws-term, .ws-foot h4, .ws-foot-label {
  font-family: var(--px-font), var(--sys-font);
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: none;
  letter-spacing: 0;
}

.ws-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ws-dot { color: var(--primary); }

/* ---------- top bar ---------- */
.ws-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.ws-top-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.ws-logo img { height: 32px; width: auto; max-width: 200px; image-rendering: pixelated; }
.ws-panel { display: flex; align-items: center; gap: 32px; flex: 1 1 auto; }
.ws-nav { display: flex; gap: 0; flex: 1 1 auto; }
.ws-nav a { font-size: 12px; padding: 8px 14px; white-space: nowrap; }
.ws-nav a:first-child { padding-left: 0; }
.ws-nav a:hover { color: var(--primary); }
.ws-actions { display: flex; align-items: center; gap: 8px; }
.ws-menu-toggle, .ws-menu-btn { display: none; }

.ws-lang { position: relative; }
.ws-lang summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  padding: 0 12px;
  height: 36px;
  line-height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.ws-lang summary::-webkit-details-marker { display: none; }
.ws-lang summary::after { content: " v"; color: var(--muted); }
.ws-lang-menu {
  position: absolute;
  right: 0;
  top: 40px;
  min-width: 140px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--ink);
}
.ws-lang-menu a { display: block; padding: 8px 12px; font-size: 12px; }
.ws-lang-menu a:hover { background: var(--accent-bg); color: var(--primary); }

/* ---------- buttons ---------- */
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  font-size: 12px;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
}
.ws-btn:hover { background: var(--ink); color: #fff; }
.ws-btn-primary { background: var(--primary); color: #fff; box-shadow: 2px 2px 0 var(--ink); }
.ws-btn-primary:hover { background: var(--primary-dark); color: #fff; }
.ws-btn-primary:active { transform: translate(2px, 2px); box-shadow: none; }
.ws-btn-dark { background: var(--ink); color: #fff; box-shadow: 2px 2px 0 var(--primary-dark); }
.ws-btn-dark:hover { background: #000; }
.ws-btn-dark:active { transform: translate(2px, 2px); box-shadow: none; }
.ws-btn-lg { height: 48px; padding: 0 24px; }

/* ---------- hero ---------- */
.ws-hero {
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(17, 17, 17, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, .05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.ws-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}
.ws-kicker { font-size: 12px; color: var(--primary); margin-bottom: 24px; }
.ws-kicker::before { content: "> "; }
.ws-display { font-size: 96px; line-height: 96px; overflow-wrap: anywhere; }
.ws-lead { font-size: 18px; color: #4A4F57; max-width: 520px; margin-top: 24px; }
.ws-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.ws-term {
  background: var(--ink);
  color: #E6E8EB;
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--primary);
  font-size: 12px;
}
.ws-term-bar { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid #2A2D31; }
.ws-term-bar i { width: 12px; height: 12px; background: #3A3E44; }
.ws-term-bar i:first-child { background: var(--mint); }
.ws-term-body {
  margin: 0;
  padding: 24px;
  font: inherit;
  line-height: 24px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ws-term-p { color: var(--mint); }
.ws-ok { color: var(--mint); }
.ws-caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--mint);
  animation: ws-blink 1s steps(1) infinite;
}
@keyframes ws-blink { 50% { opacity: 0; } }

/* ---------- sections ---------- */
.ws-section { padding: 96px 0; }
.ws-section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ws-h2 { font-size: 48px; line-height: 48px; margin-bottom: 48px; }
.ws-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ws-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ws-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
}
.ws-section-alt .ws-card { background: var(--bg); }
.ws-card h3 { font-size: 24px; line-height: 28px; margin-bottom: 12px; }
.ws-card p { color: #4A4F57; font-size: 15px; }
.ws-num { font-size: 36px; line-height: 36px; color: var(--primary); margin-bottom: 24px; }
.ws-product { transition: transform .1s steps(2); }
.ws-product:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.ws-link { display: inline-block; margin-top: 24px; font-size: 12px; color: var(--primary); }

.ws-band { background: var(--accent-bg); border-top: 1px solid var(--primary); border-bottom: 1px solid var(--primary); }
.ws-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.ws-band .ws-h2 { margin-bottom: 12px; }
.ws-band p { color: #4A4F57; }

/* ---------- footer ---------- */
.ws-foot { background: var(--ink); color: #B9BDC4; font-size: 14px; }
.ws-foot a:hover { color: #fff; }
.ws-foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.ws-foot-brand { flex: 2 1 280px; }
.ws-foot-col { flex: 1 1 160px; }
.ws-foot-brand img { height: 32px; width: auto; image-rendering: pixelated; }
.ws-foot-brand p { margin-top: 16px; max-width: 320px; }
.ws-foot h4 { font-size: 12px; color: #fff; margin: 0 0 16px; }
.ws-foot ul { list-style: none; margin: 0; padding: 0; }
.ws-foot li { padding: 4px 0; overflow-wrap: anywhere; }
.ws-foot-links { display: flex; flex-wrap: wrap; gap: 16px; padding-bottom: 24px; }
.ws-foot-label { font-size: 12px; color: #fff; }
.ws-foot-copy { border-top: 1px solid #2A2D31; padding-top: 24px; padding-bottom: 24px; font-size: 12px; color: var(--muted); }

.ws-404 { padding: 120px 0; text-align: left; }
.ws-404 .ws-btn { margin-top: 32px; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .ws-hero-grid { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; }
  .ws-grid4 { grid-template-columns: repeat(2, 1fr); }
  .ws-grid3 { grid-template-columns: 1fr; }
  .ws-display { font-size: 72px; line-height: 72px; }

  .ws-top-inner { gap: 12px; }
  .ws-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    margin-left: auto;
    padding: 0 8px;
    border: 1px solid var(--line);
    cursor: pointer;
  }
  .ws-menu-btn span { display: block; height: 2px; background: var(--ink); }
  .ws-panel {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--ink);
  }
  .ws-menu-toggle:checked ~ .ws-panel { display: flex; }
  .ws-nav { flex-direction: column; gap: 0; }
  .ws-nav a { padding: 12px 0; border-bottom: 1px dashed var(--line); }
  .ws-actions { flex-wrap: wrap; }
  .ws-lang-menu { left: 0; right: auto; }
}
@media (max-width: 575.98px) {
  .ws-wrap { padding-left: 16px; padding-right: 16px; }
  .ws-display { font-size: 48px; line-height: 48px; }
  .ws-h2 { font-size: 36px; line-height: 36px; margin-bottom: 32px; }
  .ws-grid4 { grid-template-columns: 1fr; }
  .ws-section { padding: 64px 0; }
  .ws-band-inner { flex-direction: column; align-items: flex-start; }
  .ws-term { box-shadow: 4px 4px 0 var(--primary); }
}
