/* 对外主页 + 后台「申请」卡片（与后台共用 style.css 的变量） */

.pub-body { min-height: 100vh; }
.pub-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px clamp(14px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.pub-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.pub-brand .brand-mark { width: 38px; height: 38px; font-size: 17px; }
.pub-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.pub-brand-text b { font-size: 15px; letter-spacing: 0.02em; }
.pub-brand-text small { font-size: 9px; letter-spacing: 0.2em; color: var(--text-mute); }
.pub-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pub-nav a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  color: var(--text-dim); font-size: 13px;
}
.pub-nav a:hover { color: var(--text); background: var(--panel); }
.pub-nav .pub-cta {
  background: var(--grad); color: #170a16; font-weight: 700;
  box-shadow: 0 10px 24px -12px rgba(255, 122, 184, 0.7);
}
.pub-main { max-width: 1180px; margin: 0 auto; padding: 22px clamp(14px, 4vw, 40px) 60px; }
.pub-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 400px; border-radius: 28px; border: 1px solid var(--line);
  display: flex; align-items: flex-end;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(255, 122, 184, 0.2), transparent 60%),
    radial-gradient(700px 380px at 88% 20%, rgba(103, 232, 249, 0.14), transparent 62%),
    linear-gradient(140deg, #1b1030, #120b1d 55%, #1a1030);
}
.pub-hero-media { position: absolute; inset: 0; background-size: cover; background-position: center 35%; }
.pub-hero.has-cover .pub-hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 6, 14, 0.82) 0%, rgba(9, 6, 14, 0.5) 42%, rgba(9, 6, 14, 0.12) 74%, rgba(9, 6, 14, 0.34) 100%),
    linear-gradient(180deg, rgba(9, 6, 14, 0.16) 0%, rgba(9, 6, 14, 0.36) 46%, rgba(9, 6, 14, 0.88) 100%);
}
.pub-hero:not(.has-cover) { align-items: center; }
.pub-hero-inner { position: relative; z-index: 2; padding: clamp(22px, 4.4vw, 52px); max-width: 780px; }
.pub-kicker { margin: 0 0 12px; font-size: 11px; letter-spacing: 0.28em; color: rgba(255, 255, 255, 0.62); }
.pub-hero h1 {
  margin: 0; font-family: var(--font); font-weight: 800;
  font-size: clamp(26px, 4.4vw, 48px); line-height: 1.22; letter-spacing: -0.02em; color: #fff;
}
.pub-intro { margin: 14px 0 0; font-size: 14px; line-height: 1.8; color: rgba(255, 255, 255, 0.78); max-width: 620px; }
.pub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip-static {
  padding: 6px 11px; border-radius: 999px; font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}
.pub-hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.pub-section { margin-top: clamp(40px, 6vw, 64px); }
.pub-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pub-sec-head h2 { margin: 0; font-family: var(--font); font-size: clamp(20px, 2.4vw, 26px); }
.pub-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pub-work {
  position: relative; padding: 0; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; background: var(--panel); cursor: zoom-in; display: block;
}
.pub-work img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform 0.5s ease; }
.pub-work:hover img { transform: scale(1.03); }
.pub-work-cap {
  position: absolute; inset: auto 0 0 0; padding: 22px 14px 12px; font-size: 12.5px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(9, 6, 14, 0.82)); text-align: left;
}
.pub-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pub-price {
  border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  background: var(--panel); display: flex; flex-direction: column; gap: 8px;
}
.pp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pp-shots { margin: 0; font-size: 12.5px; color: var(--text-dim); }
.pub-price .btn { align-self: flex-start; margin-top: auto; }
.pub-price-note { margin-top: 12px; }
.pub-cal-card { padding: 18px; }
.cal-nav { display: flex; gap: 6px; }
.pub-cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 14px 0 8px; }
.pub-cal-dow span { text-align: center; font-size: 11.5px; color: var(--text-mute); }
.pub-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.pub-cal-cell {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  gap: 6px; min-height: 66px; padding: 8px 9px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  cursor: pointer; transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.pub-cal-cell .d { font-size: 14px; font-weight: 700; }
.pub-cal-cell .m { font-size: 10.5px; color: var(--green); }
.pub-cal-cell:hover:not(:disabled) { border-color: var(--line-strong); transform: translateY(-1px); }
.pub-cal-cell.dim { opacity: 0.4; }
.pub-cal-cell.today { border-color: rgba(255, 122, 184, 0.55); }
.pub-cal-cell.sel { border-color: var(--pink); background: rgba(255, 122, 184, 0.14); box-shadow: 0 0 0 2px rgba(255, 122, 184, 0.22); }
.pub-cal-cell.off { background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 5px, transparent 5px 10px); }
.pub-cal-cell.off .m { color: var(--text-mute); }
.pub-cal-cell.full { background: rgba(255, 255, 255, 0.02); }
.pub-cal-cell.full .m { color: var(--text-mute); }
.pub-cal-cell.nosel { cursor: not-allowed; opacity: 0.62; }
.pub-form { padding: 20px; }
.pub-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pub-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.pub-form-foot p { margin: 0; max-width: 620px; }
.pub-done { text-align: center; padding: clamp(26px, 5vw, 52px); }
.pub-done-mark {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; color: #0f2a1d;
  background: linear-gradient(140deg, #6ee7b7, #34d399);
}
.pub-done h2 { margin: 0 0 10px; }
.pub-done p { margin: 0 0 8px; color: var(--text-dim); }
.pub-done-ops { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pub-lightbox { display: grid; place-items: center; }
.pub-lightbox img { max-width: 100%; max-height: 72vh; border-radius: 14px; display: block; }
.pub-foot {
  border-top: 1px solid var(--line); padding: 26px clamp(14px, 4vw, 48px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1180px; margin: 40px auto 0;
}
.side-link { color: var(--text-mute); font-size: 11.5px; text-decoration: none; }
.side-link:hover { color: var(--text-dim); }
.nav-badge {
  margin-left: auto; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 700;
  background: var(--grad); color: #170a16; font-style: normal;
}

/* 后台：预约申请卡片 */
.rq-list { display: flex; flex-direction: column; gap: 12px; }
.rq-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--panel); }
.rq-card.pending { border-color: rgba(251, 191, 36, 0.34); background: linear-gradient(180deg, rgba(251, 191, 36, 0.06), transparent 60%), var(--panel); }
.rq-card.rejected { opacity: 0.72; }
.rq-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rq-head b { font-size: 15px; }
.rq-when { margin-top: 6px; font-size: 12.5px; color: var(--text-dim); }
.rq-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; }
.rq-note { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-size: 12.5px; color: var(--text-dim); white-space: pre-wrap; }
.rq-ops { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.linklike { border: 0; background: none; padding: 0; color: var(--pink); font: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .pub-top { padding: 10px 14px; gap: 10px; }
  .pub-nav a { padding: 7px 9px; font-size: 12px; }
  .pub-nav a:not(.pub-cta) { display: none; }
  .pub-hero { min-height: 300px; border-radius: 22px; }
  .pub-hero-inner { padding: 20px 18px 22px; }
  .pub-works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pub-work img { aspect-ratio: 3 / 4; }
  .pub-cal-cell { min-height: 52px; padding: 6px; border-radius: 10px; }
  .pub-cal-cell .m { font-size: 9px; }
  .pub-sec-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pub-form { padding: 16px; }
  .pub-done { padding: 26px 18px; }
  .pub-foot { margin-top: 24px; }
}
@media (max-width: 400px) {
  .pub-cal-grid, .pub-cal-dow { gap: 5px; }
  .pub-cal-cell { min-height: 50px; padding: 6px; }
  .pub-cal-cell .d { font-size: 13px; }
  .pub-cal-cell .m { font-size: 8.5px; }
}
