:root { --bg:#f6f4ef; --text:#2a2622; --muted:#5a524a; --accent:#b62424; --accent2:#cfa34f; --card:#ffffff; --shadow:rgba(0,0,0,0.08); --border:#e7e2da; }
body { font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei"; margin: 0; background: var(--bg); color: var(--text); }
.container { max-width: 980px; margin: 0 auto; padding: 24px; }
h1 { margin: 0; letter-spacing: 0.5px; }
.hero { position: relative; background: radial-gradient(1200px 600px at 10% 0%, #bf2d2d 0%, #8b1a1a 40%, #6a1313 85%); color: #fff; padding: 30px 24px 42px; overflow: visible; }
.hero-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.brand .han { font-size: 38px; line-height: 1; background: linear-gradient(180deg, #ffd86a, #e2b24e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .en { font-size: 22px; opacity: 0.9; }
.subtitle { margin: 8px 0 12px; opacity: 0.9; }
.cta { display: inline-block; padding: 12px 20px; background: #fff; color: #6a1313; text-decoration: none; border-radius: 999px; font-weight: 600; box-shadow: 0 6px 12px rgba(0,0,0,0.15); }
.decor { position: absolute; left: 0; right: 0; height: 30px; z-index: 0; }
.decor-top { bottom: 0; }

.lang-switch { position: absolute; top: 2px; right: 16px; z-index: 20; }
.hero-inner { position: relative; z-index: 10; }
.hero-inner h1 { margin-top: 6px; }
.lang-switch select { padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.7); background: rgba(255,255,255,0.95); color: #6a1313; font-weight: 600; }

.card { margin-top: 20px; background: var(--card); border-radius: 12px; padding: 20px; box-shadow: 0 2px 6px var(--shadow); }
.card.light { background: #fff7e6; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.feature { text-align: center; padding: 12px; }
.feature .icon { font-size: 28px; }
.feature .title { font-weight: 700; margin-top: 8px; }
.feature .desc { font-size: 14px; color: var(--muted); }

.how .steps { display: grid; gap: 10px; }
.step { display: flex; align-items: center; gap: 12px; }
.badge { width: 28px; height: 28px; background: var(--accent2); color: #3f2d16; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

.order .tip { color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 600; }
input, select { padding: 10px; font-size: 16px; border-radius: 8px; border: 1px solid #ddd; }
.btn { grid-column: 1 / 3; padding: 12px; background: var(--accent); color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 16px; }

.payment h3 { margin-top: 0; }
.pay-grid { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; }
img#qr { max-width: 200px; border-radius: 8px; box-shadow: 0 2px 8px var(--shadow); background: #fff; }
.payment img#qr { margin-top: 12px; }
.addr .label { font-size: 12px; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.result { white-space: pre-wrap; border-top: 1px solid #eee; margin-top: 12px; padding-top: 12px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; }
.pill.success { background: #e6ffea; color: #0f7b2f; border: 1px solid #b6f3c7; }
.pill.pending { background: #fff7e6; color: #8b5a00; border: 1px solid #ffe1a1; }
.pill.failed { background: #ffecec; color: #a40000; border: 1px solid #ffb5b5; }
.orders-list .item { margin-top: 10px; background: var(--card); border-radius: 8px; padding: 12px; box-shadow: 0 1px 4px var(--shadow); }
.orders-list .meta { font-size: 12px; color: var(--muted); }
.orders-list .row { display: flex; align-items: center; justify-content: space-between; }
.orders-list .actions { margin-top: 8px; }
.orders-list .actions .btn { display: inline-block; }

/* progress bar for report generation */
.progress { margin-top: 8px; }
.progress-bar { width: 0%; height: 8px; background: var(--accent2); border-radius: 6px; box-shadow: 0 1px 3px var(--shadow); transition: width 0.2s linear; }
.progress-text { font-size: 12px; color: var(--muted); margin-top: 6px; }

.footer { display: grid; place-items: center; text-align: center; }
.seal { width: 64px; height: 64px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6), 0 2px 8px var(--shadow); margin-bottom: 8px; }

.hidden { display: none; }

@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .btn { grid-column: auto; }
  .pay-grid { grid-template-columns: 1fr; }
}

/* segments for network/connect */
.segments { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.segment { display: grid; gap: 4px; padding: 14px; border-radius: 12px; border: 1px solid #e7e2da; background: #fff; cursor: pointer; text-align: left; }
.segment:hover { box-shadow: 0 2px 8px var(--shadow); }
.seg-title { font-weight: 700; }
.seg-sub { color: var(--muted); font-size: 13px; }

/* faq */
.faq { display: grid; gap: 8px; }
.faq .q { font-weight: 700; }
.faq .a { color: var(--muted); }
.details { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
.detail-row .label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.detail-row .mono { border: 1px solid #eaeaea; background: #fafafa; padding: 8px; border-radius: 8px; }
.wrap { word-break: break-all; overflow-wrap: anywhere; }
html, body { height: 100%; }
body { display: flex; flex-direction: column; }
.container { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; border-top: 1px solid var(--border); padding: 16px 0; text-align: center; }
