/* Marillion Software: one stylesheet for every page */
:root {
  --ink: #1f2a27;
  --muted: #5b6763;
  --bg: #ffffff;
  --soft: #f3f8f7;
  --line: #dbe6e3;
  --accent: #0f8f86;
  --accent-dark: #0b6f68;
  --pinyin: #8a5a12;
  --english: #1b5fa8;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--accent-dark); }
img { max-width: 100%; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* header and footer */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { height: 76px; width: auto; display: block; }
.site-head .wrap { padding-top: 8px; padding-bottom: 8px; }
.product-title { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.product-title img { width: 64px; height: 64px; flex: none; }
.product-title h1 { margin: 0; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current] { color: var(--accent-dark); }
.site-foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.site-foot p { margin: 4px 0; }

/* sections */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 56px 0 48px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 0 0 14px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 0 26px; }
section { padding: 40px 0 0; }
h2 { font-size: 26px; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  padding: 13px 22px; border-radius: var(--radius); border: 0; font-size: 17px;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: transparent; color: var(--accent-dark); border: 2px solid var(--accent); padding: 11px 20px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-note { color: var(--muted); font-size: 14px; }

/* cards and grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.card p { margin: 0; color: var(--muted); }
.product { display: flex; gap: 18px; align-items: flex-start; }
.product img { width: 64px; height: 64px; flex: none; }
.product h3 { font-size: 22px; }
.product p { margin: 4px 0 14px; color: var(--muted); }

ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 10px; }
.box { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.box p:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }
code { background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 15px; }

/* the click-a-word demo */
.demo { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 16px; background: var(--bg); box-shadow: 0 6px 24px rgba(15, 60, 55, .07); }
.demo-line { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: flex-end; }
.w { display: inline-flex; flex-direction: column; align-items: center; border: 0; background: none; padding: 2px 4px; border-radius: 6px; cursor: pointer; font: inherit; color: inherit; }
.w:hover, .w:focus-visible { background: var(--soft); outline: none; }
.w .en { font-size: 12px; color: var(--english); min-height: 18px; white-space: nowrap; visibility: hidden; }
.w.on .en { visibility: visible; }
.w .py { font-size: 13px; color: var(--pinyin); }
.w .zh { font-size: 28px; line-height: 1.25; font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif; }
.p { font-size: 28px; align-self: flex-end; padding-bottom: 4px; }
.demo-hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

.release h3 { margin-top: 18px; }
.release ul { margin: 6px 0 0; padding-left: 22px; }

/* the how-to-use guide */
.guide { display: grid; grid-template-columns: 230px 1fr; gap: 36px; padding-top: 32px; }
.guide-nav { position: sticky; top: 16px; align-self: start; }
.guide-nav p { font-weight: 700; margin: 0 0 8px; }
.guide-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.guide-nav li { counter-increment: step; }
.guide-nav a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.guide-nav a::before { content: counter(step) ". "; }
.guide-nav a:hover { background: var(--soft); color: var(--ink); }
.guide-nav a[aria-current] { background: var(--soft); color: var(--accent-dark); }
.guide-body { min-width: 0; }
.guide-body h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.2; margin: 0 0 10px; }
.guide-body h2 { margin-top: 34px; }
.guide-body .lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.guide-body ol.steps > li { margin-bottom: 16px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager a { font-weight: 700; text-decoration: none; }
.pager .next { margin-left: auto; }
.tip { border-left: 4px solid var(--accent); background: var(--soft); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 16px 0; }
.tip.warn { border-left-color: #c47d12; background: #fdf6ea; }
.tip p { margin: 0; }
.tip p + p { margin-top: 8px; }

/* a button as it looks in the program */
.ui { display: inline-block; border: 1px solid #9fd6d1; background: #ffffff; color: #0b5f59; border-radius: 6px; padding: 0 8px; font-size: 15px; font-weight: 600; white-space: nowrap; line-height: 1.6; }
.ui.on { background: #d6f1ee; }
/* a dialog box as it looks in the program */
.dialog { border: 1px solid var(--line); border-radius: 8px; max-width: 360px; margin: 12px 0 4px; box-shadow: 0 4px 16px rgba(15, 60, 55, .08); overflow: hidden; font-size: 15px; }
.dialog .t { background: var(--soft); padding: 6px 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
.dialog .b { padding: 14px 12px; }
.dialog .btns { display: flex; gap: 8px; justify-content: flex-end; padding: 0 12px 12px; }
.files { font-family: Consolas, "Courier New", monospace; font-size: 15px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.files div::before { content: "📄 "; }
table.plain { border-collapse: collapse; width: 100%; font-size: 15px; margin: 10px 0; }
table.plain th, table.plain td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
table.plain th { color: var(--muted); font-weight: 600; }
.guide-cta { margin-top: 18px; }
figure.shot { margin: 14px 0 22px; }
figure.shot img { display: block; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 22px rgba(15, 60, 55, .10); height: auto; }
figure.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

@media (max-width: 760px) {
  .guide { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .guide-nav { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 32px; }
  .product { flex-direction: column; }
  .brand img { height: 60px; }
  .product-title img { width: 48px; height: 48px; }
  .w .zh { font-size: 24px; }
}
