/* Mine Clear — jewel-purple surfaces and warm gold inspired by assets/images/logo.webp. */
:root {
  color-scheme: dark;
  --canvas: #190f29;
  --surface: #2b1b3d;
  --surface-raised: #3a244d;
  --primary: #f5c663;
  --primary-dark: #ffe3a0;
  --rose: #d941a1;
  --yellow: #f5c663;
  --red: #ff91a0;
  --ink: #fff4df;
  --muted: #d0bdd9;
  --line: #61465f;
  --shadow: 0 10px 30px rgba(8, 3, 17, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
.i18n-pending body { visibility: hidden; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 95% 0, rgba(162, 37, 133, .23) 0, transparent 40%), radial-gradient(ellipse at 0 36%, rgba(99, 43, 147, .16), transparent 45%), var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--primary-dark); text-underline-offset: 4px; }
button { font-family: inherit; }
a, button { -webkit-tap-highlight-color: rgba(245, 198, 99, .16); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(25, 15, 41, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(8, 3, 17, .2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.topbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px 24px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}
.logo {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(245, 198, 99, .16);
}
.logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand small { display: block; margin-top: 3px; font-size: 10px; letter-spacing: 1.8px; color: var(--muted); }
.lang-btn {
  min-width: 58px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--primary-dark);
  background: var(--surface-raised);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.lang-btn:hover { background: #4c2b5f; }
.lang-btn:active { transform: scale(.96); }
.tabs-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 13px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}
.tab {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 7px 16px;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background .15s, color .15s;
}
.tab:hover { color: var(--primary-dark); background: var(--surface-raised); }
.tab.active { color: #30182d; background: linear-gradient(135deg, #ffe6a1, var(--primary)); border-color: #ffe3a0; box-shadow: 0 4px 12px rgba(245, 198, 99, .15); }
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 30px;
  padding: 32px 36px;
  border: 1px solid #bd8c4d;
  border-radius: 28px;
  overflow: hidden;
  color: var(--ink);
  background: radial-gradient(ellipse at 95% 0, rgba(217, 65, 161, .34), transparent 65%), linear-gradient(120deg, #28163f, #54214e);
  box-shadow: inset 0 0 0 5px rgba(245, 198, 99, .05), 0 14px 32px rgba(8, 3, 17, .3);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -24px;
  top: -80px;
  width: 300px;
  height: 400px;
  border: 24px double rgba(245, 198, 99, .1);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}
.hero-app { min-height: 310px; padding: 38px 40px; }
.hero-text { flex: 1 1 0; min-width: 0; }
.kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  margin-bottom: 16px;
  border: 1px solid #ffe3a0;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffe7a6, var(--yellow));
  color: #38203a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
}
.hero-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.hero-labels .kicker { margin-bottom: 0; }
.version-tag { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-raised); color: var(--primary-dark); font-size: 11px; font-weight: 750; line-height: 1.75; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero .version-tag { background: rgba(25, 15, 41, .4); border-color: rgba(245, 198, 99, .5); color: var(--primary-dark); }
h1 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 40px); font-weight: 850; line-height: 1.2; letter-spacing: -.7px; }
.hero h1 { color: #ffe3a0; font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif; font-weight: 700; }
.hero-app h1 { font-size: clamp(36px, 5vw, 48px); }
.subname { margin: 0 0 14px; font-size: 14px; font-weight: 800; letter-spacing: 3px; color: var(--yellow); text-transform: uppercase; }
.tagline, .lead { margin: 0; font-size: 15px; line-height: 1.75; color: var(--muted); }
.hero .tagline, .hero .lead, .hero .meta { color: #efdaed; }
.meta { margin: 0; font-size: 12px; line-height: 1.9; color: var(--muted); }
.hero-art { flex: 0 0 auto; }
.hero-art img {
  display: block;
  width: 144px;
  height: 144px;
  object-fit: cover;
  border: 2px solid var(--primary);
  border-radius: 30px;
  box-shadow: 0 14px 30px rgba(8, 3, 17, .4);
  transform: rotate(5deg);
}
.hero-app .hero-art img { width: 224px; height: 224px; border-radius: 40px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 14px;
  font-size: 18px;
  font-weight: 800;
}
.section-title i { display: block; width: 7px; height: 20px; border-radius: 4px; background: var(--primary); }
.section-title.alt i { background: var(--yellow); }
.frame, .card, .step {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #302042, var(--surface));
  box-shadow: inset 0 1px 0 rgba(245, 198, 99, .07), var(--shadow);
}
.frame { padding: 24px; margin: 0 0 16px; }
.frame p { margin: 0 0 12px; }
.frame p:last-child { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { padding: 22px; }
.card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.card p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  background: var(--surface-raised);
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 800;
}
.badge.dark { background: #412757; color: #dcafff; }
.badge.red { background: #51243d; color: #ffaccb; }
.badge.amber { background: #4c3539; color: #ffe3a0; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { background: var(--surface-raised); color: var(--primary-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tr:nth-child(even) td { background: rgba(255, 227, 160, .025); }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.kv { margin: 0; }
.kv div { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { margin: 0; color: var(--muted); flex-shrink: 0; }
.kv dd { margin: 0; text-align: right; font-weight: 650; overflow-wrap: anywhere; }
.note { margin: 18px 0 0; padding: 14px 18px; border-radius: 12px; background: #422d3e; color: #ffe3a0; font-size: 13px; }
.link-more { display: inline-block; margin-top: 14px; padding: 7px 0; font-size: 13px; font-weight: 750; text-decoration-thickness: 1px; }
.step { display: flex; align-items: flex-start; gap: 18px; padding: 22px 24px; margin-bottom: 14px; }
.step .icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; background: linear-gradient(135deg, #b6388f, #6a327d); border-radius: 16px; box-shadow: 0 5px 12px rgba(217, 65, 161, .14); }
.step.alt .icon { background: linear-gradient(135deg, #78439d, #512a70); }
.step .icon svg { width: 25px; height: 25px; }
.step h3 { margin: 0 0 5px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
ul.ticks { list-style: none; margin: 0; padding: 0; }
ul.ticks li { position: relative; padding: 12px 0 12px 23px; font-size: 14px; border-bottom: 1px solid var(--line); }
ul.ticks li:last-child { border-bottom: 0; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }
.digits { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.digits span { display: grid; place-items: center; width: 38px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); font-size: 19px; font-weight: 850; }
.d1 { color: #98b9ff; }.d2 { color: #87e1a0; }.d3 { color: #ff91a0; }.d4 { color: #d8abff; }.d5 { color: #ffc285; }.d6 { color: #8ce1e1; }.d7 { color: #fff0cc; }.d8 { color: #d0bddb; }
.flow { list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.flow li { counter-increment: flow; position: relative; padding: 15px 0 15px 48px; font-size: 14px; border-bottom: 1px solid var(--line); }
.flow li:last-child { border-bottom: 0; }
.flow li::before { content: counter(flow); position: absolute; left: 0; top: 13px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-raised); color: var(--primary-dark); font-weight: 800; }
.legal { margin-top: 24px; }
.legal .frame { padding: 12px 30px 28px; }
.legal h2 { display: flex; align-items: center; gap: 12px; margin: 28px 0 13px; font-size: 17px; font-weight: 800; line-height: 1.5; }
.legal h2 b { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 9px; background: var(--surface-raised); color: var(--primary-dark); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.legal p { margin: 0 0 12px; font-size: 14px; line-height: 1.95; color: var(--muted); overflow-wrap: anywhere; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.legal li::marker { color: var(--primary); }
.legal .summary { margin: 0 0 20px; padding: 22px 26px; border: 1px solid #8d6654; border-radius: 18px; background: linear-gradient(135deg, #432445, #30203f); color: var(--ink); font-size: 14px; }
.legal .table-wrap { margin: 16px 0; }
.legal .table { min-width: 480px; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 18px; padding: 10px 18px; border: 1px solid var(--primary); border-radius: 13px; background: linear-gradient(135deg, #ffe6a1, var(--primary)); color: #30182d; font-size: 13px; font-weight: 750; line-height: 1.6; text-decoration: none; transition: background .15s, box-shadow .15s; }
.primary-link:hover { background: #ffe3a0; border-color: #fff0c9; box-shadow: 0 5px 14px rgba(245, 198, 99, .16); }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.contact-card h2, .contact-card h3 { margin: 14px 0 10px; line-height: 1.5; }
.contact-card h2 { font-size: 20px; }
.contact-card h3 { font-size: 17px; }
.contact-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.contact-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--surface-raised); color: var(--primary-dark); font-size: 24px; }
.contact-icon svg { width: 25px; height: 25px; }
.contact-email { overflow-wrap: anywhere; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.contact-actions .primary-link { margin-top: 0; }
.copy-status { min-height: 1.6em; margin: 10px 0 0 !important; color: var(--primary-dark); font-size: 13px; }
.clipboard-field { position: fixed; left: -9999px; top: 0; opacity: 0; }
.support-list { margin: 12px 0 0; padding-left: 22px; color: var(--muted); font-size: 14px; }
.support-list li { margin: 7px 0; }
.support-list li::marker { color: var(--primary); }
.faq { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.faq details { padding: 0 24px; border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { padding: 19px 0; color: var(--ink); font-size: 15px; font-weight: 750; line-height: 1.6; cursor: pointer; }
.faq summary::marker { color: var(--primary); }
.faq summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.faq details[open] summary { color: var(--primary-dark); }
.faq details p, .faq details ul { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.faq details ul { padding-left: 22px; }
.faq-item summary { color: var(--ink); font-size: 16px; font-weight: 750; line-height: 1.6; cursor: pointer; }
.faq-item summary::marker { color: var(--primary); }
.faq-item summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
.faq-item[open] summary { margin-bottom: 12px; color: var(--primary-dark); }
.faq-item p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.redirect-page { padding-top: 40px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding: 26px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 28px; gap: 24px; }
  .hero-app .hero-art img { width: 176px; height: 176px; border-radius: 32px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .topbar-inner { padding: 12px 16px 10px; }
  .brand { font-size: 16px; gap: 10px; }
  .brand small { font-size: 9px; }
  .logo { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; }
  .tabs-inner { padding: 0 16px 11px; gap: 4px; }
  .tab { padding: 7px 12px; font-size: 12px; }
  .lang-btn { padding: 8px 13px; }
  .hero { align-items: flex-start; flex-direction: column-reverse; gap: 22px; margin: 20px 0 26px; padding: 26px; border-radius: 24px; }
  .hero-text { flex-basis: auto; width: 100%; }
  .hero-art img, .hero-app .hero-art img { width: 96px; height: 96px; border-radius: 23px; transform: rotate(-5deg); }
  .hero-app { min-height: 0; }
  .hero-app .hero-art img { width: 112px; height: 112px; border-radius: 26px; }
  .hero-app h1 { font-size: 36px; }
  h1 { font-size: 32px; }
  .kicker { margin-bottom: 13px; }
  .hero-labels { margin-bottom: 13px; }
  .subname { margin-bottom: 10px; }
  .hero .tagline, .hero .lead { font-size: 14px; }
  .section-title { font-size: 17px; margin-top: 26px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card, .frame { padding: 20px; border-radius: 18px; }
  .card h3 { margin-bottom: 9px; }
  .step { padding: 20px 18px; gap: 14px; border-radius: 18px; }
  .step .icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 14px; }
  .step h3 { font-size: 15px; }
  .step p, .legal p, .legal li { font-size: 13px; }
  .table th, .table td { padding: 10px; }
  .kv div { gap: 14px; font-size: 12px; }
  .legal .frame { padding: 6px 20px 24px; }
  .legal h2 { margin-top: 24px; font-size: 16px; gap: 10px; }
  .legal .summary { padding: 18px 20px; font-size: 13px; }
  .support-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .contact-card { padding: 22px; border-radius: 18px; }
  .contact-card p, .support-list { font-size: 13px; }
  .faq { border-radius: 18px; }
  .faq details { padding: 0 20px; }
  .faq summary { padding: 17px 0; font-size: 14px; }
  .faq details p, .faq details ul { font-size: 13px; }
  .faq-item summary { font-size: 14px; }
  .faq-item p { font-size: 13px; }
  .footer { margin-top: 28px; padding: 22px 0; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, button { transition: none; }
}
@media print {
  body { background: #fff; }
  .topbar { position: static; box-shadow: none; }
  .lang-btn, .tabs, .hero-art { display: none; }
  :root { color-scheme: light; --canvas: #fff; --surface: #fff; --surface-raised: #f2edf5; --ink: #291b35; --muted: #51435e; --primary: #80512b; --primary-dark: #673b20; --line: #d8cddd; }
  .hero { background: #f4eef7; color: var(--ink); box-shadow: none; }
  .hero h1 { color: #673b20; }
  .frame, .card, .step, .legal .summary { background: #fff; }
  .kicker, .note, .badge, .badge.dark, .badge.red, .badge.amber, .hero .version-tag { background: #f2edf5; color: #4c2c5e; border-color: #d8cddd; }
  .primary-link { background: #673b20; color: #fff; }
  .digits span { color: #291b35; }
  .hero .tagline, .hero .lead, .hero .meta { color: var(--muted); }
  .frame, .card, .step { box-shadow: none; }
}
