:root {
  --bg: #f6f5f1;
  --paper: #fffdfa;
  --ink: #191714;
  --muted: #7b746b;
  --line: #ddd7ce;
  --line-strong: #191714;
  --accent: #2f6b4f;
  --danger: #a83232;
  --shadow: 0 10px 30px rgba(25, 23, 20, .06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif CJK SC", "PingFang SC", "Microsoft YaHei", serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-text-size-adjust: 100%;
}
button, input {
  font: inherit;
  letter-spacing: 0;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px 164px;
}
.sitebar {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.sitebrand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}
.sitebrand .logo {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
}
.sitenav {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}
.sitenav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.hero {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.hero-copy {
  max-width: 960px;
  margin: 0 auto;
  padding: 54px 16px 46px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
h1, h2, h3, p {
  letter-spacing: 0;
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
}
.lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 19px;
}
.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 8px;
  margin-top: 24px;
}
.hero-actions .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 14px;
}
.keyword-line {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.content-band {
  border-bottom: 1px solid var(--line);
}
.band-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 34px 16px;
}
.band-inner h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.18;
}
.band-inner p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.feature-grid article {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 14px;
}
.feature-grid h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
}
.feature-grid p {
  font-size: 13px;
}
.use-list,
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.use-list {
  margin-top: 18px;
}
.use-list a,
.use-list span,
.internal-links a {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
}
.upload-wrap {
  padding-top: 32px;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 900;
}
.faq details p {
  margin-top: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 20px;
}
.brand > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.brand .logo {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  border-radius: 6px;
}
.langpick {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px;
  background: var(--paper);
}
.langpick button {
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  min-width: 34px;
  height: 30px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.langpick button.active {
  background: var(--ink);
  color: var(--paper);
}
.brand .title {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
}
.brand .sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

.section {
  margin: 0 0 22px;
}
.label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
}
.label span {
  width: 28px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.hint {
  color: var(--muted);
  font-size: 13px;
  margin: -4px 0 10px 36px;
}
.license-section .hint {
  margin-bottom: 0;
}
.paybox {
  display: block;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
}
.paybox.show {
  display: block;
}
.paytitle {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
}
.paydesc {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.legal-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.legal-note a {
  color: var(--ink);
  font-weight: 800;
}
.steps-list {
  margin: 12px 0 0 18px;
  color: var(--muted);
}
.steps-list li {
  margin: 7px 0;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pick,
.tpl,
.mode,
.btn {
  appearance: none;
  -webkit-appearance: none;
}
.pick {
  min-height: 50px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.moodpick {
  min-height: 92px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.mood-title {
  display: block;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
}
.mood-desc {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.pick.active {
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.tpls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.tpl {
  width: 100%;
  min-height: 68px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.tpl:after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.tpl.active {
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.tpl.active:before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.tname {
  font-size: 17px;
  font-weight: 800;
}
.tdesc {
  font-size: 13px;
  color: var(--muted);
}
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 20px;
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.modepick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  background: #ebe6dc;
  border-radius: 6px;
  padding: 4px;
}
.mode {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  min-height: 44px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.mode.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

input[type=text] {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
input[type=text]:focus {
  border-color: var(--line-strong);
  outline: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chips button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.chips button.active {
  border-color: var(--line-strong);
  background: var(--ink);
  color: var(--paper);
}

.shot {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
}
.shot.ok {
  border-color: var(--accent);
}
.shot.bad {
  border-color: var(--danger);
}
.shot .head {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 8px;
}
.shot .num {
  color: var(--paper);
  background: var(--ink);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.shot .desc {
  min-width: 0;
  font-size: 14px;
  color: var(--ink);
}
.shot .tip {
  font-size: 12px;
  color: var(--muted);
  background: #f0ece4;
  padding: 8px 10px;
  border-radius: 5px;
  margin: 8px 0 0 36px;
}
.shot .status {
  margin-top: 8px;
  font-size: 13px;
  word-break: break-word;
}
.shot .status.good {
  color: var(--accent);
}
.shot .status.err {
  color: var(--danger);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  min-height: 50px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  padding: 0 14px;
  text-align: center;
  text-decoration: none;
}
.btn-file {
  margin-top: 10px;
  background: transparent;
  color: var(--ink);
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-control {
  position: relative;
  overflow: hidden;
}
.file-control input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.01;
  cursor: pointer;
  font-size: 100px;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:disabled {
  background: #c9c2b8;
  color: #fffaf2;
  cursor: not-allowed;
}
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.submit-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: rgba(246, 245, 241, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.submit-bar .inner {
  max-width: 560px;
  margin: 0 auto;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(246, 245, 241, .96);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}
.overlay.show {
  display: flex;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.overlay .msg {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 800;
}
.overlay .pct {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
}

.ring-wrap {
  text-align: center;
  margin: 34px 0 24px;
}
.ring {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  position: relative;
}
.ring svg {
  transform: rotate(-90deg);
}
.ring .num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
}
.statusmsg {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  margin: 14px 0;
}
video {
  width: 100%;
  border-radius: 6px;
  background: #000;
}
.cover-preview {
  display: none;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 10px;
  background: #000;
}
.copybox {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin: 10px 0;
}
.copybox .ttl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 8px;
}
.copybox .body {
  white-space: pre-wrap;
  font-size: 14px;
  color: var(--ink);
}
.copybtn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.errbox {
  background: #fff8f6;
  color: var(--danger);
  border: 1px solid #e5b8b0;
  padding: 16px;
  border-radius: 6px;
  text-align: center;
}
.stack > * {
  margin-bottom: 10px;
}
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(25, 23, 20, .42);
  z-index: 80;
}
.modal.show {
  display: flex;
}
.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(25, 23, 20, .22);
}
.modal-card h2 {
  margin: 0 0 10px;
}
.modal-card p {
  margin: 0 0 10px;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.qrbox {
  min-height: 240px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0;
  background: #fff;
  text-align: center;
  padding: 12px;
}
.qrbox img {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.qr-placeholder {
  display: none;
  color: var(--muted);
  font-size: 14px;
}
.contact-lines {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
}
.contact-lines p {
  font-size: 14px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 16px 92px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.site-footer strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 4px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.site-footer a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.footlink {
  max-width: 560px;
  margin: -106px auto 86px;
  padding: 0 16px;
  text-align: center;
}
.footlink a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
@media (max-width: 760px) {
  .sitebar {
    grid-template-columns: 1fr auto;
  }
  .sitenav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .hero-copy {
    padding-top: 38px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .lead {
    font-size: 17px;
  }
  .hero-actions {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .row2 {
    grid-template-columns: 1fr;
  }
  .band-inner h2 {
    font-size: 24px;
  }
}
