/* =========================================================================
 * 柚子摄影 · 摄影预约系统样式  —  灰蓝科技主题（主色 #1E377F / 灰色背景）
 * ========================================================================= */
:root {
  --ink: #1a2233;
  --ink-2: #3f4a60;
  --muted: #7d889a;
  --paper: #eceef1;        /* 主背景：中性灰 */
  --paper-2: #f8f9fb;      /* 卡片：浅灰 */
  --line: #dde1e7;
  --accent: #1e377f;       /* 主题色 */
  --accent-dark: #152a63;
  --accent-soft: #e7ecf8;
  --comicon: #425a9c;
  --comicon-soft: #e9edf8;
  --danger: #c25a63;
  --danger-soft: #fbeef0;
  --grid: rgba(52, 66, 100, .06);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(26, 34, 51, .10);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
h1, h2, h3, h4, p, dl, dd, ol, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(30, 55, 127, .55); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 72px 0 88px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.req { color: var(--danger); font-weight: 700; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: '// '; opacity: .7; }
h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 54px); line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
h2 { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 34px); line-height: 1.28; font-weight: 700; }
h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.lead { color: var(--muted); font-size: 16px; max-width: 640px; margin-top: 14px; }
.text-link {
  border: 0; background: none; padding: 0; color: var(--accent-dark);
  font-size: 14px; font-weight: 600; border-bottom: 1px solid transparent;
}
.text-link:hover { border-bottom-color: currentColor; }
.text-link.danger-text { color: var(--danger); }

/* ---------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 999px;
  border: 1px solid transparent; background: none; font-size: 14px; font-weight: 600;
  letter-spacing: .02em; transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(30, 55, 127, .32); }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); box-shadow: 0 12px 30px rgba(30, 55, 127, .44); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(26, 34, 51, .22); }
.btn-dark:hover:not(:disabled) { background: #0f1624; }
.btn-ghost { border-color: var(--line); background: var(--paper-2); color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline-danger { border-color: #e3b3b8; color: var(--danger); background: transparent; }
.btn-outline-danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn-lg { min-height: 52px; padding: 13px 30px; font-size: 15px; }
.btn-sm { min-height: 34px; padding: 6px 14px; font-size: 12px; border-radius: 999px; }
.btn-xs { min-height: 28px; padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------- 页头页脚 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236, 238, 241, .93); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { font-size: 30px; color: var(--accent); line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 19px; letter-spacing: .06em; }
.brand-text small { font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: .2s; }
.nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.nav a.active { background: var(--ink); color: #fff; }
.nav a.nav-admin { margin-left: 8px; border: 1px solid var(--line); }
.nav a.nav-admin:hover { border-color: var(--accent); background: transparent; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; text-align: center; }
.site-footer p { font-family: var(--serif); font-size: 15px; }
.site-footer .muted { font-family: var(--sans); font-size: 12px; margin-top: 8px; }

/* ---------------------------------------------------------- 首页 Hero */
.hero {
  position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden;
  background: #121b34; --hero-overlay: .72;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(130, 155, 220, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 155, 220, .075) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}
.hero-visual { position: absolute; inset: 0; }
.hero-custom-bg { display: none; }
.hero.has-custom-bg .hero-custom-bg {
  display: block; position: absolute; inset: 0;
  background-size: cover; background-repeat: no-repeat; background-position: center;
}
.hero.has-custom-bg .hero-orb, .hero.has-custom-bg .hero-lines { display: none; }
.hero-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 16, 34, .97) 0%, rgba(15, 25, 52, .86) 46%, rgba(24, 40, 84, .52) 100%);
}
.hero.has-custom-bg .hero-visual::after {
  background: linear-gradient(90deg,
    rgba(10, 16, 34, var(--hero-overlay)) 0%,
    rgba(15, 25, 52, calc(var(--hero-overlay) * .84)) 46%,
    rgba(24, 40, 84, calc(var(--hero-overlay) * .46)) 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: .11; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.orb-a { width: 520px; height: 520px; top: -120px; right: 4%; background: radial-gradient(circle, #3a58b4, transparent 68%); }
.orb-b { width: 460px; height: 460px; bottom: -180px; right: 28%; background: radial-gradient(circle, #1e377f, transparent 68%); }
.hero-lines { position: absolute; right: -6%; top: 0; height: 100%; width: 68%; opacity: .9; }
.hero-mark {
  position: absolute; right: 6%; bottom: 8%; z-index: 2;
  font-family: var(--mono); font-size: 12px; letter-spacing: .3em; line-height: 1.9;
  color: rgba(173, 193, 245, .72); text-align: right;
}
.hero-body { position: relative; z-index: 3; padding: 90px 0; color: #fff; }
.hero .eyebrow { color: #9fb6f0; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.14; }
.hero h1 em { font-style: normal; color: #b8c9f6; }
.hero-desc { margin-top: 24px; font-size: 16px; line-height: 1.9; color: rgba(213, 222, 246, .82); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; font-family: var(--mono); font-size: 12px; color: rgba(184, 199, 240, .72); letter-spacing: .04em; }
.hero-meta span::before { margin-right: 8px; color: #9fb6f0; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn-ghost { border-color: rgba(190, 208, 248, .45); background: rgba(255, 255, 255, .06); color: #e6edfb; }
.hero-actions .btn-ghost:hover:not(:disabled) { border-color: #9fb6f0; background: rgba(159, 182, 240, .16); color: #fff; }

/* ---------------------------------------------------------- 模块卡片 */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-note { font-size: 13px; color: var(--muted); max-width: 320px; text-align: right; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.type-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.type-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 24px 60px rgba(26, 34, 51, .16); }
.card-art { height: 190px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-comicon .card-art { background: linear-gradient(135deg, #e7eaf3, #d0d8ec); color: #3f5590; }
.card-studio .card-art { background: linear-gradient(135deg, #eaecf2, #d5dbea); color: #1e377f; }
.card-art svg { width: 78%; height: 100%; }
.card-art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-art:has(.card-art-img) { background: #121b34; }
.card-art:has(.card-art-img) .card-art-tag {
  z-index: 2; color: #fff; opacity: 1; padding: 6px 10px; border-radius: 6px;
  background: rgba(10, 16, 34, .60); backdrop-filter: blur(6px); top: 14px; left: 16px;
}
.card-art-tag { position: absolute; top: 16px; left: 20px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; font-weight: 700; opacity: .8; }
.card-body { padding: 28px 28px 30px; }
.card-kicker { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--accent); margin-bottom: 8px; }
.card-body h3 { font-size: 26px; margin-bottom: 12px; }
.card-desc { font-size: 14px; color: var(--muted); min-height: 46px; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 8px; }
.feature-list li { font-size: 13px; color: var(--ink-2); padding-left: 20px; position: relative; }
.feature-list li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); font-size: 12px; top: 1px; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 80px; }
.strip-item { background: var(--paper-2); padding: 26px 20px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.strip-item strong { font-family: var(--mono); font-size: 30px; color: var(--accent-dark); }
.strip-item span { font-size: 12px; color: var(--muted); letter-spacing: .06em; }

/* ---------------------------------------------------------- 步骤条 */
.page-head { padding-top: 56px; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin-bottom: 40px; }
.steps li { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.step-dot { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; background: var(--paper-2); }
.steps li.done { color: var(--accent-dark); }
.steps li.done .step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps li.current { color: var(--ink); font-weight: 700; }
.steps li.current .step-dot { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------- 场次卡片 */
.session-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.session-card {
  position: relative; text-align: left; padding: 26px 28px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius); transition: .22s ease; overflow: hidden;
}
.session-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--comicon); opacity: 0; transition: .22s; }
.session-card:hover { transform: translateY(-3px); border-color: var(--comicon); box-shadow: var(--shadow); }
.session-card:hover::before { opacity: 1; }
.session-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.session-date { font-family: var(--mono); font-size: 12px; color: var(--comicon); letter-spacing: .04em; }
.session-badge { font-family: var(--mono); font-size: 11px; background: var(--comicon-soft); color: #354e91; padding: 4px 11px; border-radius: 999px; font-weight: 600; }
.session-name { display: block; font-family: var(--serif); font-size: 21px; margin-bottom: 8px; padding-right: 24px; }
.session-note { display: block; font-size: 13px; color: var(--muted); }
.session-arrow { position: absolute; right: 24px; bottom: 22px; font-size: 20px; color: var(--comicon); transition: transform .2s; }
.session-card:hover .session-arrow { transform: translateX(4px); }
.back-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; }
.empty-state { padding: 60px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------------------------------------------------------- 表单 */
.form-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 40px; box-shadow: var(--shadow); }
.form-field { margin-bottom: 30px; }
.form-field:last-of-type { margin-bottom: 34px; }
.field-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 11px; color: var(--ink); }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.text-input {
  width: 100%; min-height: 46px; padding: 11px 15px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.text-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 55, 127, .14); outline: none; }
textarea.text-input { resize: vertical; line-height: 1.7; }
.date-picker-box { position: relative; }
.date-picker-box .date-input { cursor: pointer; }
.date-picker-overlay { position: absolute; inset: 0; border-radius: var(--radius-sm); cursor: pointer; }
.date-picker-box:focus-within .date-input { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 55, 127, .14); }
.date-picker-box.native-fallback .date-picker-overlay { display: none; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.small-input { max-width: 130px; }
.inline-controls { display: flex; align-items: center; gap: 12px; }
.unit { color: var(--muted); font-size: 14px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice-btn {
  text-align: left; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: .2s; min-height: 66px; display: flex; flex-direction: column; justify-content: center;
}
.choice-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.choice-btn.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice-btn.is-disabled { opacity: .5; cursor: not-allowed; background: #f2f3f6; }
.choice-title { font-size: 14px; font-weight: 600; }
.choice-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.choice-sub.warn { color: #96713f; }
.choice-sub.danger { color: var(--danger); }
.choice-sub.chosen { color: var(--accent); font-weight: 600; }
.sub-panel { margin-top: 14px; padding: 18px; border-left: 3px solid var(--accent); background: #f1f3fa; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.sub-title { font-size: 13px; font-weight: 700; margin-bottom: 13px; }
.time-range { display: flex; align-items: flex-end; gap: 14px; }
.time-range > div { flex: 1; }
.time-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.range-dash { padding-bottom: 13px; color: var(--muted); }

/* 场次突出横幅 */
.session-banner {
  position: relative; margin-bottom: 22px; padding: 20px 24px; border: 1px solid var(--accent);
  border-left: 5px solid var(--accent); border-radius: var(--radius);
  background: linear-gradient(135deg, #eef1fa, #f8f9fc); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px;
}
.session-banner-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.session-banner-tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.session-banner-name { font-family: var(--serif); font-size: 23px; color: var(--ink); line-height: 1.35; }
.session-banner-date { font-family: var(--mono); font-size: 13px; color: var(--accent-dark); }
.session-banner-note { font-size: 12.5px; color: var(--muted); }

/* 联系方式 / 拍摄类型 单选网格 */
.contact-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
.contact-type-grid .choice-btn { min-height: 54px; }
.contact-input-panel { margin: 2px 0 4px; }
.day-slot-panel { margin-top: 12px; }
.form-field .field-label .muted.small { font-weight: 400; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 6px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------- 条款页 */
.terms-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.terms-scroll { padding: 32px 36px; max-height: 420px; overflow-y: auto; font-size: 14px; line-height: 2; color: var(--ink-2); }
.decision-box { margin-top: 26px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); text-align: center; }
.decision-q { font-family: var(--serif); font-size: 19px; margin-bottom: 20px; }
.decision-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.decision-note { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* ---------------------------------------------------------- 完成页 */
.receipt { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.receipt-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; background: var(--ink); color: #fff; }
.receipt-logo { font-family: var(--serif); font-size: 17px; letter-spacing: .04em; }
.receipt-status { font-family: var(--mono); font-size: 12px; color: #a8d8c4; }
.receipt-id { padding: 26px 30px 10px; display: flex; align-items: baseline; gap: 14px; }
.receipt-id span { font-size: 12px; color: var(--muted); }
.receipt-id strong { font-family: var(--mono); font-size: 20px; letter-spacing: .04em; }
.receipt-type { padding: 0 30px 20px; font-size: 13px; color: var(--muted); border-bottom: 1px dashed var(--line); }
.receipt-list { padding: 12px 30px 20px; }
.receipt-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #e8ebf1; }
.receipt-list > div:last-child { border-bottom: 0; }
.receipt-list dt { font-size: 13px; color: var(--muted); flex: none; }
.receipt-list dd { font-size: 14px; font-weight: 600; text-align: right; word-break: break-word; }
.receipt-tip { margin: 0 30px 26px; padding: 14px 16px; background: var(--accent-soft); border-radius: var(--radius-sm); font-size: 12.5px; color: var(--accent-dark); }
.lookup-result { margin-top: 26px; }
.lookup-result .warn-box { margin-top: 0; }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.done-actions.center { justify-content: center; }

.center-state { padding-top: 90px; padding-bottom: 110px; text-align: center; }
.warn-icon { width: 78px; height: 78px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); font-family: var(--serif); font-size: 42px; display: flex; align-items: center; justify-content: center; margin: 0 auto 26px; border: 1px solid #edc9cd; }
.center-state .lead { margin-inline: auto; }
.warn-box { max-width: 560px; margin: 30px auto 0; text-align: left; padding: 20px 24px; border-left: 3px solid var(--danger); background: var(--danger-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.warn-box strong { font-size: 14px; color: var(--danger); }
.warn-box p { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* ---------------------------------------------------------- 价目表 / 联系我们 */
.pricing-intro { font-family: var(--serif); font-size: 18px; color: var(--ink-2); margin-bottom: 32px; max-width: 660px; }
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.price-panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.price-panel-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.price-index { font-family: var(--mono); font-size: 12px; color: var(--accent); background: var(--accent-soft); padding: 4px 9px; border-radius: 6px; }
.price-panel-head h2 { font-size: 21px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.price-info strong { font-size: 14px; }
.price-info span { font-size: 12px; color: var(--muted); }
.price-value { flex: none; font-family: var(--mono); font-size: 18px; color: var(--accent-dark); }
.pricing-note { margin: 26px 0 0; padding: 16px 20px; background: var(--accent-soft); border-radius: var(--radius-sm); font-size: 13px; color: var(--accent-dark); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: stretch; }
.contact-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.contact-visual {
  position: relative; height: 240px; background: #121b34; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden; --contact-bg: none;
}
.contact-visual::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(130,155,220,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(130,155,220,.1) 1px, transparent 1px); background-size: 32px 32px; }
.contact-visual::after { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, #3a58b4, transparent 66%); filter: blur(50px); opacity: .45; }
.contact-visual-bg { display: none; }
.contact-visual.has-custom-image::before { background: linear-gradient(180deg, rgba(10, 16, 34, .16), rgba(10, 16, 34, .74)); }
.contact-visual.has-custom-image::after { display: none; }
.contact-visual.has-custom-image .contact-visual-bg {
  display: block; position: absolute; inset: 0; z-index: 0;
  background-image: var(--contact-bg); background-size: cover; background-position: center; background-repeat: no-repeat;
}
.contact-visual.has-custom-image .hero-grain { opacity: .08; }
.contact-en { position: relative; z-index: 2; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .26em; color: rgba(205, 217, 249, .75); }
.contact-card-body { padding: 24px 28px 34px; display: flex; flex-direction: column; flex: 1; }
.contact-card-body h2 { font-size: 24px; margin-bottom: 6px; }
.contact-links { display: grid; grid-template-columns: repeat(2, 112px); justify-content: start; gap: 10px; margin-top: auto; padding-top: 22px; }
.contact-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink-2); font-size: 14px; font-weight: 600;
  letter-spacing: .02em; text-decoration: none; transition: .2s;
}
.contact-link span { color: var(--accent); font-family: var(--mono); }
.contact-link:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.contact-link.is-empty { opacity: .42; cursor: not-allowed; }
.contact-detail { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 36px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.contact-detail-head { margin-bottom: 24px; }
.contact-detail-head h2 { font-size: 28px; }
.contact-line { display: flex; flex-direction: column; gap: 4px; padding: 15px 0; border-bottom: 1px solid #e8ebf1; }
.contact-line span { font-size: 12px; color: var(--muted); }
.contact-line strong { font-size: 15px; }
.contact-hint { font-size: 13px; color: var(--muted); margin: 22px 0 8px; }
.contact-detail .done-actions { margin-top: auto; }

/* ---------------------------------------------------------- 弹窗 / Toast */
.modal-mask { position: fixed; inset: 0; z-index: 200; background: rgba(10, 16, 34, .60); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { width: min(480px, 100%); max-height: 86vh; overflow-y: auto; background: var(--paper-2); border-radius: var(--radius); padding: 28px 30px; box-shadow: 0 30px 80px rgba(10, 16, 34, .30); }
.modal-card h3 { font-size: 21px; margin-bottom: 12px; }
.modal-card p { font-size: 14px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.8; }
.modal-card .field-label { margin-top: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.pb-toast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); z-index: 300; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; opacity: 0; pointer-events: none; transition: .28s ease; box-shadow: 0 12px 30px rgba(10, 16, 34, .30); }
.pb-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.pb-toast.is-success { background: #2c7a63; }
.pb-toast.is-error { background: var(--danger); }

/* ---------------------------------------------------------- 登录页 */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { position: relative; background: #121b34; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.login-art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(130,155,220,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(130,155,220,.1) 1px, transparent 1px); background-size: 48px 48px; }
.login-art::after { content: ''; position: absolute; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, #3a58b4, transparent 66%); filter: blur(70px); opacity: .45; }
.login-art-inner { position: relative; z-index: 2; text-align: center; color: #fff; }
.login-mark { font-family: var(--mono); font-size: 58px; color: #9fb6f0; }
.login-art-inner h2 { font-size: 42px; margin-top: 10px; }
.login-art-inner p { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: rgba(205, 217, 249, .65); margin-top: 8px; }
.login-art-inner small { display: block; margin-top: 34px; font-size: 13px; color: rgba(205, 217, 249, .55); }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-form { width: min(380px, 100%); }
.login-form .text-link { display: inline-block; margin-bottom: 38px; }
.login-form h1 { font-size: 40px; }
.login-form .field-label { margin-top: 30px; }
.login-form .btn { margin-top: 18px; }
.login-note { font-size: 12px; color: var(--muted); margin-top: 20px; }

/* ---------------------------------------------------------- 后台框架 */
.admin-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; background: #16213d; color: #fff; display: flex; flex-direction: column; padding: 26px 16px; }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 0 12px 26px; border-bottom: 1px solid rgba(150, 175, 230, .14); }
.admin-brand > span { font-family: var(--mono); font-size: 26px; color: #9fb6f0; }
.admin-brand div { display: flex; flex-direction: column; line-height: 1.3; }
.admin-brand strong { font-family: var(--serif); font-size: 17px; }
.admin-brand small { font-family: var(--mono); font-size: 10px; color: rgba(205, 217, 249, .5); }
.admin-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; flex: 1; overflow-y: auto; }
.admin-nav-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; border-radius: 9px; border: 0; background: transparent; color: rgba(205, 217, 249, .70); font-size: 14px; transition: .2s; }
.admin-nav-item:hover { background: rgba(159, 182, 240, .10); color: #fff; }
.admin-nav-item.active { background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 6px 18px rgba(30, 55, 127, .42); }
.nav-ico { width: 20px; text-align: center; font-size: 15px; }
.admin-side-foot { border-top: 1px solid rgba(150, 175, 230, .14); padding: 18px 12px 0; display: flex; flex-direction: column; gap: 12px; }
.admin-side-foot .text-link { color: rgba(205, 217, 249, .62); text-align: left; }
.admin-side-foot .text-link:hover { color: #fff; }
.admin-main { padding: 40px 44px 80px; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.admin-head h1 { font-size: 32px; }
.admin-head .lead { font-size: 14px; margin-top: 8px; }
.admin-head-actions { flex: none; }
.admin-stack { display: grid; gap: 20px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; }
.panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: 0 6px 20px rgba(26, 34, 51, .05); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h2 { font-size: 19px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; }
.stat-card span { font-size: 12px; color: var(--muted); }
.stat-card strong { font-family: var(--mono); font-size: 36px; color: var(--accent-dark); line-height: 1.25; }
.stat-card small { font-size: 11px; color: var(--muted); }

.usage-list { display: grid; gap: 14px; }
.usage-row { display: grid; grid-template-columns: 1fr 120px 56px; align-items: center; gap: 12px; }
.usage-name { display: flex; flex-direction: column; min-width: 0; }
.usage-name strong { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usage-name span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usage-bar { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; }
.usage-bar span { display: block; height: 100%; border-radius: 99px; transition: width .3s; }
.usage-num { font-family: var(--mono); font-size: 12px; text-align: right; }
.usage-num.danger { color: var(--danger); }

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; font-size: 11px; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 12px; border-bottom: 1px solid #e9ecf1; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table code { font-family: var(--mono); font-size: 11.5px; color: var(--accent-dark); }
.data-table td.ellip { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.tag-comicon { background: var(--comicon-soft); color: #354e91; }
.tag-studio { background: var(--accent-soft); color: var(--accent-dark); }

.edit-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 16px; background: #f4f6fa; }
.edit-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.edit-index { font-family: var(--mono); font-size: 12px; font-weight: 700; color: #354e91; background: var(--comicon-soft); padding: 4px 10px; border-radius: 99px; }
.edit-row { display: grid; gap: 7px; margin-bottom: 14px; }
.edit-row.two { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.edit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.edit-grid.three { grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.edit-row label { font-size: 12px; color: var(--muted); font-weight: 600; }
.edit-row .text-input { min-height: 42px; font-size: 13.5px; }
.toggle-row { padding-top: 6px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.switch input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.icon-btn { flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 18px; line-height: 1; color: var(--muted); transition: .2s; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.sub-section { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.sub-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.sub-section-head h3 { font-size: 16px; }
.day-block { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin: 12px 0; }
.day-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.day-head .text-input { font-weight: 600; }
.slot-list { display: grid; gap: 8px; margin-bottom: 10px; }
.slot-row { display: flex; align-items: center; gap: 8px; }
.slot-row .text-input { flex: 1; min-width: 0; }
.slot-row .num { flex: none; width: 74px; text-align: center; }
.slot-used { font-size: 11px; color: var(--muted); white-space: nowrap; min-width: 44px; }
.pkg-list { display: grid; gap: 10px; }
.pkg-row { display: flex; align-items: center; gap: 10px; }
.pkg-row .text-input { flex: 1; }
.pkg-row .sel { flex: none; width: 150px; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 6px; }
.filter-btn { padding: 7px 14px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 12.5px; }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-input { max-width: 260px; min-height: 38px; }
.danger-zone { border-color: #e8cdd0; }
.danger-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.danger-item:last-child { border-bottom: 0; }
.danger-item strong { font-size: 14px; }
.danger-item p { margin-top: 3px; }
.storage-note { font-size: 12px; color: var(--muted); }
.price-edit-list { display: grid; gap: 10px; margin-top: 16px; }
.card-image-editor { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.card-image-preview {
  width: 100%; aspect-ratio: 3 / 2; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: #eef0f5; display: flex; align-items: center; justify-content: center;
}
.card-image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-image-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 12px; }
.card-image-controls .edit-row { margin-bottom: 14px; }
.card-image-upload { position: relative; overflow: hidden; cursor: pointer; }
.card-image-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.price-edit-row { display: grid; grid-template-columns: 1.3fr .8fr 1.6fr 32px; gap: 8px; align-items: center; }
.price-edit-row .text-input { min-height: 40px; font-size: 13px; }
.contact-link-list { display: grid; margin-top: 16px; }
.contact-link-editor { display: grid; grid-template-columns: 66px 1fr 1.5fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-link-editor:last-child { border-bottom: 0; }
.contact-link-editor .text-input { min-height: 40px; font-size: 13px; }
.price-edit-price { font-family: var(--mono); }

/* 自定义表单项目管理 */
.cf-list { display: grid; gap: 14px; }
.cf-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; background: #f4f6fa; }
.cf-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cf-badge { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 99px; }
.cf-move { display: flex; gap: 6px; }
.cf-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr auto; gap: 12px; align-items: end; }
.cf-grid .edit-row { margin-bottom: 0; }
.cf-grid .switch { height: 42px; }

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1024px) {
  .admin-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-main { padding: 32px 26px 70px; }
}
@media (max-width: 820px) {
  .nav a { padding: 7px 10px; font-size: 13px; }
  .nav a.nav-admin { margin-left: 2px; }
  .cards, .session-grid, .price-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: repeat(2, 112px); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-note { text-align: left; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .login-page { grid-template-columns: 1fr; }
  .login-art { min-height: 220px; }
  .login-art-inner h2 { font-size: 30px; }
  .login-mark { font-size: 44px; }
  .login-panel { padding: 50px 24px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 14px 18px; gap: 12px; }
  .admin-brand { border-bottom: 0; padding: 0; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; margin-top: 0; flex: 1; overflow: visible; }
  .admin-nav-item { width: auto; padding: 8px 12px; font-size: 12.5px; }
  .admin-side-foot { border-top: 0; padding: 0; flex-direction: row; gap: 12px; }
  .admin-main { padding: 28px 20px 60px; }
  .edit-grid.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 52px 0 64px; }
  .header-inner { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .nav a { white-space: nowrap; }
  .hero { min-height: 520px; }
  .hero-body { padding: 66px 0; }
  .hero-mark { display: none; }
  .hero-lines { width: 100%; right: -20%; opacity: .55; }
  .hero-meta { gap: 12px 20px; }
  .form-card { padding: 26px 20px; }
  .choice-grid, .decision-actions, .edit-row.two, .edit-grid { grid-template-columns: 1fr; }
  .time-range { flex-direction: column; align-items: stretch; }
  .time-range > div { width: 100%; }
  .range-dash { display: none; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .form-actions .text-link { text-align: center; }
  .terms-scroll { padding: 22px 20px; }
  .admin-head { flex-direction: column; align-items: flex-start; }
  .admin-main { padding: 24px 14px 50px; }
  .panel { padding: 18px 16px; }
  .stat-grid { gap: 10px; }
  .stat-card strong { font-size: 28px; }
  .usage-row { grid-template-columns: 1fr 70px 46px; }
  .edit-grid.three { grid-template-columns: 1fr; }
  .slot-row { flex-wrap: wrap; }
  .pkg-row { flex-wrap: wrap; }
  .card-image-editor { grid-template-columns: 1fr; gap: 16px; }
  .card-image-preview { max-width: 320px; }
  .cf-grid { grid-template-columns: 1fr 1fr; }
  .contact-type-grid { gap: 10px; }
  .session-banner { padding: 16px; }
  .session-banner-name { font-size: 20px; }
  .price-edit-row { grid-template-columns: 1fr 1fr; }
  .price-edit-row .icon-btn { justify-self: end; }
  .contact-link-editor { grid-template-columns: 1fr; gap: 6px; }
  .receipt-head, .receipt-id, .receipt-type, .receipt-list, .receipt-tip { padding-left: 18px; padding-right: 18px; }
  .receipt-tip { margin-left: 18px; margin-right: 18px; }
  .done-actions .btn { flex: 1 1 auto; }
}
@media print {
  .site-header, .site-footer, .done-actions, .back-row, .pb-toast { display: none !important; }
  body { background: #fff; }
  .receipt { box-shadow: none; border-color: #999; }
}
