:root {
  --bg: #f3f5f9;
  --text: #252a35;
  --muted: #7b8493;
  --pink: #ffd3e6;
  --pink-bg: #fff4f8;
  --red: #ed4e54;
  --blue: #4388f2;
  --blue-dark: #3178e9;
  --orange: #f47725;
  --line: #edf0f4;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  margin: 0;
  padding: 0 14px 38px;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; }
button { cursor: pointer; }
.page-shell { width: min(100%, 620px); margin: 0 auto; }
.site-header { padding: 28px 4px 20px; }
.site-header h1 { margin: 8px 0 6px; font-size: clamp(26px, 7vw, 34px); line-height: 1.18; letter-spacing: .01em; }
.site-header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #687180; font-size: 13px; font-weight: 700; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 99px; background: #f45b63; box-shadow: 0 0 0 5px #ffe2e5; }
.step-card, .admin-card, .preview-card {
  margin-bottom: 18px;
  padding: clamp(18px, 5vw, 24px);
  background: #fff;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(50, 70, 100, .08);
}
.step-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.step-number { display: inline-grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--red); border-radius: 50%; font-size: 17px; font-weight: 800; box-shadow: 0 5px 12px rgba(237,78,84,.2); }
.step-heading h2 { margin: 2px 0 0; font-size: clamp(17px, 4.4vw, 21px); line-height: 1.52; letter-spacing: .01em; }
.soft-panel { padding: clamp(16px, 4vw, 20px); background: var(--pink-bg); border: 1px solid var(--pink); border-radius: 18px; }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-title { display: inline-flex; align-items: center; gap: 8px; color: #465061; font-size: 16px; font-weight: 800; }
.panel-icon { font-size: 21px; line-height: 1; }
.text-action { display: inline-flex; align-items: center; gap: 4px; padding: 3px 0; color: var(--orange); background: transparent; border: 0; font-size: 15px; font-weight: 800; white-space: nowrap; }
.text-action:hover { color: #e15b0d; }
.comment-box { display: block; width: 100%; min-height: 82px; padding: 14px; color: #424b5c; background: #f8f8ff; border: 2px dashed #b8dcff; border-radius: 5px; text-align: left; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; transition: border-color .2s, background .2s; }
.comment-box:hover, .comment-box:focus-visible { background: #fff; border-color: var(--blue); outline: none; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 50px; margin-top: 14px; padding: 11px 18px; color: #fff; background: linear-gradient(135deg, #3d88f4, #5aa5f8); border: 0; border-radius: 15px; box-shadow: 0 8px 18px rgba(55, 137, 241, .26); font-weight: 800; transition: transform .15s, box-shadow .15s; }
.primary-button:hover { box-shadow: 0 11px 24px rgba(55, 137, 241, .34); }
.primary-button:active { transform: scale(.985); }
.button-icon { font-size: 19px; line-height: 1; }
.copy-status { min-height: 18px; margin-top: 7px; color: #3d8a59; font-size: 12px; text-align: center; }
.keyword-panel { display: grid; grid-template-columns: minmax(0, 1fr) 140px; align-items: center; gap: 18px; }
.keyword-wrap { min-width: 0; }
.keyword-box { display: block; width: 100%; margin-top: 15px; padding: 9px 0; color: #272e3b; background: transparent; border: 0; font-size: clamp(19px, 5.6vw, 25px); font-weight: 900; line-height: 1.25; text-align: left; overflow-wrap: anywhere; }
.keyword-box:hover, .keyword-box:focus-visible { color: #2771d9; outline: none; }
.hint { margin: 7px 0 0; color: #acb0bb; font-size: 12px; line-height: 1.5; }
.hint span { margin-right: 3px; }
.left-status { text-align: left; }
.douyin-wrap { display: flex; flex-direction: column; align-items: center; }
.douyin-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; color: #fff; background: #242832; border-radius: 13px; font-size: 31px; font-weight: 900; line-height: 1; text-shadow: 2px 2px #20d4e6, -2px -2px #f53e70; }
.douyin-button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; color: #fff; background: linear-gradient(135deg, #4ba5ef, #3987dc); border: 0; border-radius: 14px; font-size: 15px; font-weight: 800; box-shadow: 0 8px 16px rgba(54, 139, 226, .24); }
.douyin-button:active { transform: scale(.97); }
.douyin-wrap p { margin: 10px 0 0; color: #f16d31; font-size: 11px; line-height: 1.5; text-align: center; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 4px 18px; color: #a0a8b5; font-size: 12px; }
.site-footer a { color: #7a8595; font-weight: 700; text-decoration: none; }
.site-footer a:hover { color: var(--blue-dark); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 5; display:flex; align-items:center; gap:10px; max-width:calc(100vw - 40px); padding:14px 24px; color:#fff; background:rgba(31,32,36,.94); border-radius:20px; font-size:18px; font-weight:800; white-space:nowrap; box-shadow:0 10px 28px rgba(0,0,0,.22); opacity:0; transform:translate(-50%,12px); pointer-events:none; transition:opacity .2s,transform .2s; }
.toast-check { display:grid; place-items:center; width:28px; height:28px; border-radius:7px; color:#fff; background:#16c53a; font-size:22px; line-height:1; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Admin */
.admin-header { padding-bottom: 16px; }
.field-label { display: block; margin: 0 0 8px; color: #4b5565; font-size: 14px; font-weight: 800; }
.field-input { display: block; width: 100%; height: 48px; padding: 0 13px; color: var(--text); background: #f8faff; border: 1px solid #dce4f0; border-radius: 11px; outline: none; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field-input:focus { border-color: #70a8f4; box-shadow: 0 0 0 4px rgba(72, 142, 242, .13); }
.field-help { margin: 7px 0 22px; color: #969eac; font-size: 12px; line-height: 1.5; }
.range-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 10px; }
.range-caption { display: block; margin: 0 0 6px; color: #9aa2ae; font-size: 12px; }
.range-dash { padding-bottom: 14px; color: #9aa2ae; font-weight: 800; }
.notification-fields { display: flex; flex-direction: column; gap: 8px; }
.notification-row { display: grid; grid-template-columns: 1.05fr .9fr 1.7fr 36px; gap: 7px; align-items: center; }
.notification-input { min-width: 0; height: 42px; padding: 0 9px; color: var(--text); background: #fffdfb; border: 1px solid #eaded5; border-radius: 9px; outline: none; font-size: 12px; }
.notification-input:focus { border-color: #f2a476; box-shadow: 0 0 0 3px rgba(244,119,37,.12); }
.remove-notification { display: grid; place-items: center; width: 36px; height: 36px; color: #d65b5b; background: #fff3f0; border: 1px solid #f7d4cb; border-radius: 9px; font-size: 17px; }
.add-notification { align-self: flex-start; margin-top: 10px; padding: 9px 12px; color: #657184; background: #fff; border: 1px solid #dce4f0; border-radius: 9px; font-size: 13px; font-weight: 700; }
.admin-save { margin-top: 4px; }
.form-status { min-height: 20px; padding-top: 8px; color: #3d8a59; font-size: 13px; text-align: center; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 20px; color: #657184; font-size: 13px; font-weight: 700; }
.login-password-label { margin-top: 16px; }
.preview-card { padding-top: 18px; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #525d6d; font-size: 14px; font-weight: 800; }
.preview-comment { margin-top: 14px; padding: 13px; color: #424b5c; background: #f8f8ff; border: 1px dashed #b8dcff; border-radius: 7px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.preview-keyword { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: #9aa2ae; font-size: 13px; }
.preview-keyword strong { color: #303747; font-size: 14px; overflow-wrap: anywhere; text-align: right; }

@media (max-width: 410px) {
  body { padding-right: 10px; padding-left: 10px; }
  .keyword-panel { grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; }
  .douyin-button { font-size: 13px; }
  .text-action span { display: none; }
}
@media (max-width: 350px) {
  .keyword-panel { grid-template-columns: 1fr; }
  .douyin-wrap { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .douyin-mark { margin: 0; }
  .douyin-button { width: auto; padding: 0 16px; }
  .douyin-wrap p { width: 100%; margin-top: 0; }
}

/* Full guide layout */
body { padding: 0 0 120px; background: #f0f2f5; }
.countdown-bar { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; height: 36px; padding: 0 10px; color: #fff; background: linear-gradient(90deg, #ef4444, #f97316); box-shadow: 0 4px 10px rgba(148, 52, 52, .18); font-size: 12px; font-weight: 800; }
.bar-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; background: transparent; border: 0; border-radius: 9px; font-size: 29px; line-height: 1; }
.countdown-copy { display: flex; align-items: center; gap: 5px; }
.countdown-copy strong { padding: 2px 5px; background: rgba(255,255,255,.2); border-radius: 4px; font: 800 14px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.bar-spacer { width: 32px; }
.page-shell { width: min(100%, 600px); margin: 0 auto; padding: 0 16px; }
.claim-tag { display: flex; align-items: center; justify-content: center; gap: 5px; position: relative; width: max-content; margin: -1px auto 10px; padding: 5px 15px; color: #b45309; background: #fff; border: 1.5px solid #f2c14e; border-radius: 999px; box-shadow: 0 4px 12px rgba(217,119,6,.16); font-size: 12px; font-weight: 700; }
.claim-arrow { position: absolute; top: -8px; width: 0; height: 0; border-right: 7px solid transparent; border-bottom: 0; border-left: 7px solid transparent; border-top: 8px solid #ef4444; }
.claim-tag strong { color: #ea580c; font-size: 13px; }
.hero-card { margin-bottom: 16px; padding: 15px 18px 17px; text-align: center; background: #fff; border-radius: 22px; box-shadow: 0 8px 32px rgba(31,38,135,.05); cursor: pointer; }
.hero-title { margin: 0 0 13px; color: transparent; background: linear-gradient(135deg, #f59e0b, #f97316 35%, #ef4444 70%, #c026d3); background-clip: text; -webkit-background-clip: text; filter: drop-shadow(0 1px 1px rgba(249,115,22,.12)); font-size: clamp(19px, 5vw, 23px); font-weight: 900; line-height: 1.5; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 15px; }
.hero-tag { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; color: #7c2d12; background: linear-gradient(135deg,#fff7ed,#ffedd5); border: 1px solid #ffd9b0; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; }
.hero-tag img { width: 18px; height: 18px; object-fit: contain; }
.hero-tag .tag-large { transform: scale(1.35); }
.hero-divider { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #d97706; font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.hero-divider::before, .hero-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #e5e7eb, transparent); }
.hero-minline { display: flex; align-items: center; justify-content: center; gap: 8px; }
.hero-minline img { width: 24px; height: 24px; }
.hero-minline span { color: transparent; background: linear-gradient(100deg,#f59e0b,#f97316 25%,#fff 50%,#f97316 75%,#ef4444); background-clip: text; -webkit-background-clip: text; font-size: 16px; font-weight: 900; }
.step-card { padding: 20px; }
.step-heading { gap: 12px; margin-bottom: 16px; }
.step-heading h2 { font-size: 16px; line-height: 1.55; }
.step-number { width: 28px; height: 28px; flex-basis: 28px; font-size: 14px; }
.pink-panel { padding: 11px 12px 12px; background: linear-gradient(to right,#fdf2f8,#fff1f2); border: 1px solid #fbcfe8; border-radius: 16px; }
.panel-title { margin: 0; font-size: 15px; }
.orange-action { padding: 4px 0; color: #f97316; background: none; border: 0; font-size: 14px; font-weight: 800; }
.copy-box { display: block; width: 100%; min-height: 67px; padding: 12px 14px; color: #374151; background: #f0f4ff; border: 2px dashed #bfdbfe; border-radius: 11px; text-align: left; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.blue-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px 0; color: #fff; background: linear-gradient(to right,#3b82f6,#60a5fa); border: 0; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(59,130,246,.3); font-size: 15px; font-weight: 800; }
.danger-text { color: #dc2626; font-weight: 900; }
.second-panel { padding: 16px; }
.keyword-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.keyword-column { min-width: 0; flex: 1; }
.keyword-box { display: block; width: fit-content; max-width: calc(7em + 30px); padding: 10px 12px; color: #1f2937; background: #f0f4ff; border: 2px dashed #bfdbfe; border-radius: 11px; font-size: 16px; font-weight: 800; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }
.hint { margin: 6px 0 0; color: #94a3b8; font-size: 11px; }
.jump-column { display: flex; flex: 0 0 108px; flex-direction: column; gap: 8px; margin-left: auto; }
.jump-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 108px; padding: 10px 8px; color: #fff; background: linear-gradient(135deg,#45a3f5,#2f8fe8); border: 0; border-radius: 14px; box-shadow: 0 8px 18px -8px rgba(47,143,232,.55); font-size: 13px; font-weight: 900; }
.jump-button img { width: 28px; height: 28px; border-radius: 7px; }
.lite-button { width: 108px; padding: 4px 0 2px; color: #f97316; background: none; border: 0; font-size: 11px; font-weight: 700; line-height: 1.55; }
.warning-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; color: #ef4444; font-size: 13px; font-weight: 800; line-height: 1.5; text-align: center; }
.warning-line img { width: 22px; height: 22px; flex-shrink: 0; }
.rules-box { margin-top: 12px; padding: 14px; background: linear-gradient(135deg,#fffbeb,#fef3c7); border: 1.5px solid #f59e0b; border-radius: 16px; box-shadow: 0 8px 20px -10px rgba(245,158,11,.5); }
.rules-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: #b45309; font-size: 15px; }
.rules-icon { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: linear-gradient(135deg,#fbbf24,#d97706); border-radius: 50%; font-size: 20px; }
.rules-copy { color: #92400e; font-size: 13px; line-height: 1.75; }
.rules-copy p { display: flex; gap: 8px; margin: 0 0 3px; }
.rules-copy p > b { color: #d97706; flex-shrink: 0; }
.rules-copy strong { color: #b45309; }
.guide-label { margin: 16px 0 12px; color: #2563eb; font-size: 15px; font-weight: 800; text-align: center; }
.guide-image-box { overflow: hidden; border: 1px solid #e5e7eb; border-radius: 12px; }
.guide-image-box img { display: block; width: 100%; height: auto; }
.final-card { padding: 20px; text-align: center; }
.success-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; color: #fff; background: linear-gradient(135deg,#4ade80,#10b981); border-radius: 50%; box-shadow: 0 4px 12px rgba(16,185,129,.3); font-size: 30px; font-weight: 800; }
.final-card h2 { margin: 0 0 4px; font-size: 19px; }
.final-subtitle { margin: 0 0 15px; color: #6b7280; font-size: 14px; }
.important-tip { margin: 0 0 16px; color: #dc2626; font-size: 12px; font-weight: 700; line-height: 1.7; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 11px; min-width: min(300px,100%); margin: 0 auto; padding: 16px 24px; color: #fff; background: linear-gradient(135deg,#ef4444,#dc2626); border: 0; border-radius: 999px; box-shadow: 0 6px 20px rgba(239,68,68,.4); font-size: 19px; font-weight: 900; animation: ctaGlow 1.6s ease-in-out infinite; }
.resource-card { margin-bottom: 18px; padding: 22px 18px; text-align: center; background: #fdf2f8; border: 1px solid #fbcfe8; border-radius: 22px; }
.resource-title { margin: 0 0 16px; color: #374151; font-size: 15px; font-weight: 900; line-height: 1.5; }
.resource-title span { color: #ec4899; }
.resource-entry { display: block; width: 100%; padding: 0; overflow: hidden; background: none; border: 0; border-radius: 16px; box-shadow: 0 8px 20px -10px rgba(236,72,153,.45); }
.resource-entry img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.resource-note { margin: 16px 0 0; color: #6b7280; font-size: 14px; font-weight: 600; }
.notify-bubble { display: flex; align-items: flex-start; gap: 9px; position: fixed; right: 12px; bottom: 16px; z-index: 40; width: 236px; padding: 10px 12px; color: #fff; background: rgba(30,30,36,.78); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.32); opacity: 0; transform: translateX(130%); transition: transform .45s, opacity .3s; }
.notify-bubble.show { opacity: 1; transform: translateX(0); }
.notify-avatar { display: grid; flex-shrink: 0; place-items: center; width: 38px; height: 38px; background: #fff; border-radius: 50%; font-size: 21px; }
.notify-top { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 2px; font-size: 10px; }
.notify-top strong { color: #facc15; font-size: 12px; }
.notify-bubble p { margin: 0; font-size: 11px; line-height: 1.4; }
.image-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.78); }
.image-modal[hidden] { display: none; }
.image-modal img { max-width: 100%; max-height: 90vh; border-radius: 14px; }
.image-modal button { position: absolute; top: 12px; right: 16px; color: #fff; background: none; border: 0; font-size: 36px; }
.toast { z-index: 100; }
@media (max-width: 390px) { .page-shell { padding: 0 12px; } .step-card { padding: 16px; } .jump-column, .jump-button, .lite-button { width: 98px; } .jump-column { flex-basis: 98px; } .warning-line { font-size: 12px; } }
@media (max-width: 520px) { .notification-row { grid-template-columns: 1fr 1fr 36px; } .notification-action { grid-column: 1 / 3; } .remove-notification { grid-column: 3; grid-row: 1 / 3; height: 42px; } }
.upload-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 18px; background: rgba(9,12,20,.72); backdrop-filter: blur(7px); }
.upload-card { position: relative; width: min(100%, 390px); padding: 24px 20px; background: #fff; border-radius: 22px; box-shadow: 0 24px 70px rgba(0,0,0,.3); text-align: center; }
.upload-card h2 { margin: 0 0 6px; font-size: 21px; }
.upload-card > p { margin: 0 0 18px; color: #7b8493; font-size: 13px; }
.upload-close { position: absolute; top: 9px; right: 12px; width: 36px; height: 36px; color: #7b8493; background: none; border: 0; font-size: 28px; }
.upload-drop { display: flex; align-items: center; flex-direction: column; gap: 5px; padding: 20px; color: #4b7edb; background: #f5f8ff; border: 2px dashed #a9c8ff; border-radius: 14px; cursor: pointer; }
.upload-drop span { font-size: 29px; }
.upload-drop strong { font-size: 15px; }
.upload-drop small { color: #9aa8bd; font-size: 11px; }
.upload-drop input { display: none; }
.upload-previews { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; min-height: 0; margin-top: 12px; }
.upload-previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.upload-submit { width: 100%; margin-top: 15px; padding: 12px; color: #fff; background: linear-gradient(135deg,#3b82f6,#60a5fa); border: 0; border-radius: 12px; font-weight: 800; }
.upload-submit:disabled { color: #9aa1ad; background: #e9edf4; cursor: not-allowed; }
.upload-progress { display: none; align-items: center; gap: 8px; margin-top: 13px; color: #4b7edb; font-size: 12px; }
.upload-progress.show { display: flex; }
.upload-progress::before { content: ''; flex: 1; height: 7px; overflow: hidden; background: #edf1f7; border-radius: 9px; }
.upload-progress i { position: absolute; height: 7px; width: 0; margin-left: 0; background: #4ade80; border-radius: 9px; }
.upload-message { margin-top: 12px; color: #3d8a59; font-size: 12px; }
