/* ========= 星语生日祝福墙 · 全局样式 ========= */
*{ box-sizing:border-box; margin:0; padding:0; }
:root{
  --pink:#ff7ab8; --pink2:#ff4fa3; --lav:#b48cff; --gold:#ffd166;
  --text:#f7f2ff; --muted:#c9bce0; --radius:20px;
  --shadow:0 16px 48px rgba(8,4,26,.45);
}
html{ scroll-behavior:smooth; }
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC",sans-serif;
  color:var(--text); line-height:1.6; min-height:100vh;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(197,94,255,.20), transparent 60%),
    radial-gradient(900px 640px at -10% 25%, rgba(255,94,183,.18), transparent 60%),
    linear-gradient(160deg, #140c2b 0%, #241145 48%, #180d33 100%);
  background-attachment:fixed;
  overflow-x:hidden;
}
::selection{ background:rgba(255,122,184,.4); }
body::before, body::after{ content:''; position:fixed; border-radius:50%; filter:blur(90px); pointer-events:none; z-index:0; }
body::before{ width:520px; height:520px; background:rgba(255,94,183,.22); top:-160px; right:-140px; }
body::after{ width:480px; height:480px; background:rgba(124,88,255,.20); bottom:-160px; left:-140px; }

img, video{ max-width:100%; }
button{ font-family:inherit; }
a{ color:var(--pink); text-decoration:none; }

.container{ max-width:1100px; margin:0 auto; padding:0 18px; position:relative; z-index:1; }

.glass{
  background:linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.13);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* 星空 */
.twinkle{ position:fixed; border-radius:50%; background:#fff; z-index:0; pointer-events:none; animation:twinkle 3s ease-in-out infinite; }
@keyframes twinkle{ 0%,100%{ opacity:.12; transform:scale(.7);} 50%{ opacity:.85; transform:scale(1.05);} }

/* 顶栏 */
.site-header{ position:sticky; top:0; z-index:50; background:rgba(18,10,40,.55); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom:1px solid rgba(255,255,255,.07); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; height:60px; }
.logo{ font-weight:800; font-size:18px; color:var(--text); display:flex; align-items:center; gap:8px; }
.logo span{ background:linear-gradient(120deg,#ffd6ea,#ff7ab8 55%,#c86bff); -webkit-background-clip:text; background-clip:text; color:transparent; }
.nav{ display:flex; gap:6px; }
.nav a{ padding:8px 16px; border-radius:999px; color:var(--muted); font-size:14px; font-weight:600; transition:.2s; }
.nav a:hover{ color:var(--text); background:rgba(255,255,255,.08); }
.nav a.active{ color:#fff; background:linear-gradient(135deg,#ff7ab8,#c86bff); box-shadow:0 6px 18px rgba(255,90,180,.3); }

/* Hero */
.hero{ text-align:center; padding:56px 10px 30px; animation:rise .6s both; }
.hero-eyebrow{ letter-spacing:5px; font-size:12px; color:var(--muted); margin-bottom:14px; }
.hero-title{ font-size:clamp(30px,6vw,54px); line-height:1.25; font-weight:900; letter-spacing:1px;
  background:linear-gradient(120deg,#ffe3f1,#ff7ab8 38%,#c86bff 72%,#ffd166);
  -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-sub{ margin:16px auto 0; color:var(--muted); font-size:15px; max-width:600px; }

/* 按钮 */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:11px 22px; border-radius:999px; font-weight:700; font-size:15px; border:1px solid transparent; cursor:pointer; transition:.25s; text-decoration:none; white-space:nowrap; }
.btn-primary{ background:linear-gradient(135deg,#ff7ab8,#c86bff); color:#fff; box-shadow:0 8px 24px rgba(255,90,180,.32); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 32px rgba(255,90,180,.48); }
.btn-ghost{ background:rgba(255,255,255,.08); color:var(--text); border-color:rgba(255,255,255,.16); }
.btn-ghost:hover{ background:rgba(255,255,255,.15); }
.btn.small{ padding:7px 14px; font-size:13px; }
.icon-btn{ width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.07); color:var(--text); font-size:18px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; transition:.2s; }
.icon-btn:hover{ background:rgba(255,255,255,.15); }

/* 日期条 */
.day-strip{ display:flex; gap:10px; overflow-x:auto; padding:10px 4px 16px; margin:6px -4px 0; scrollbar-width:thin; }
.day-chip{ flex:0 0 auto; width:74px; display:flex; flex-direction:column; align-items:center; gap:2px; padding:12px 6px 10px; cursor:pointer; color:var(--text); transition:.22s; border-radius:18px; }
.day-chip:hover{ transform:translateY(-3px); background:rgba(255,255,255,.13); }
.day-chip.sel{ background:linear-gradient(160deg,#ff7ab8,#c86bff); border-color:transparent; box-shadow:0 10px 26px rgba(255,90,180,.4); }
.day-chip.today:not(.sel){ border-color:rgba(255,209,102,.55); }
.chip-week{ font-size:11px; color:var(--muted); }
.day-chip.sel .chip-week{ color:#ffe9f4; }
.chip-day{ font-size:22px; font-weight:800; line-height:1.1; }
.chip-count{ font-size:10px; color:var(--muted); }
.chip-count.has{ color:var(--gold); }
.day-chip.sel .chip-count{ color:#fff; }

/* 布局面板 */
.grid-2{ display:grid; grid-template-columns:1fr 1.15fr; gap:18px; margin-top:6px; }
.panel{ padding:20px; margin-top:18px; }
.panel-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; gap:10px; flex-wrap:wrap; }
.panel-head h2{ font-size:18px; font-weight:800; }
.panel-tip{ font-size:12px; color:var(--muted); }
.cal-nav{ display:flex; align-items:center; gap:8px; font-weight:700; color:#fff; }

/* 日历 */
.cal-week{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; margin-bottom:6px; }
.cal-week span{ text-align:center; font-size:11px; color:var(--muted); }
.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.cal-day{ position:relative; aspect-ratio:1; border-radius:12px; border:1px solid transparent; background:rgba(255,255,255,.05); color:var(--text); font-size:14px; font-weight:600; cursor:pointer; transition:.18s; }
.cal-day:hover{ background:rgba(255,255,255,.13); transform:translateY(-1px); }
.cal-day.empty{ cursor:default; color:rgba(255,255,255,.35); background:transparent; }
.cal-day.empty:hover{ background:transparent; transform:none; }
.cal-day.sel{ background:linear-gradient(140deg,#ff7ab8,#c86bff); border-color:transparent; color:#fff; box-shadow:0 8px 20px rgba(255,90,180,.4); }
.cal-day.today:not(.sel){ border-color:rgba(255,209,102,.6); color:var(--gold); }
.cal-blank{ aspect-ratio:1; }
.cal-dot{ position:absolute; right:4px; top:4px; min-width:15px; height:15px; padding:0 3px; border-radius:99px; background:var(--gold); color:#4a2a00; font-size:9px; font-style:normal; display:flex; align-items:center; justify-content:center; font-weight:800; }
.cal-day.sel .cal-dot{ background:#fff; color:#d0478c; }

/* 明星卡片 */
.day-stars{ display:flex; flex-direction:column; gap:14px; }
.star-card{ display:flex; align-items:center; gap:14px; padding:16px; transition:.25s; border-radius:18px; }
.star-card:hover{ transform:translateY(-3px); box-shadow:0 18px 44px rgba(8,4,26,.5); }
.star-avatar{ width:62px; height:62px; flex:0 0 auto; border-radius:20px; display:flex; align-items:center; justify-content:center; font-size:30px; box-shadow:inset 0 0 0 2px rgba(255,255,255,.25), 0 8px 20px rgba(0,0,0,.25); }
.star-avatar.big{ width:88px; height:88px; font-size:44px; border-radius:26px; }
.star-info{ flex:1; min-width:0; }
.star-name-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.star-name-row h2, .star-name-row h3{ font-size:18px; font-weight:800; }
.star-tags{ display:flex; gap:6px; margin:6px 0; flex-wrap:wrap; }
.tag{ font-size:11px; padding:3px 10px; border-radius:999px; background:rgba(255,122,184,.16); color:#ffc7e0; border:1px solid rgba(255,122,184,.3); }
.star-bio{ font-size:13px; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.star-meta{ font-size:12px; color:var(--muted); margin-top:4px; }
.chip{ font-size:11px; padding:4px 12px; border-radius:999px; background:rgba(255,255,255,.1); color:var(--muted); border:1px solid rgba(255,255,255,.14); white-space:nowrap; }
.chip.birthday{ background:linear-gradient(135deg,#ffd166,#ff9e6d); color:#4a2a00; font-weight:800; border:none; }
.chip.hot{ background:rgba(255,122,184,.2); color:#ffb3d1; border-color:rgba(255,122,184,.4); }
.chip b{ color:var(--gold); }
.star-cta{ flex:0 0 auto; }
.empty-state{ text-align:center; padding:36px 16px; color:var(--muted); font-size:15px; line-height:2; }
.empty-state span{ font-size:13px; color:rgba(201,188,224,.7); }
.empty-state .btn{ margin-top:10px; }

/* 倒计时 */
.countdown-list{ display:flex; flex-direction:column; gap:10px; }
.cd-item{ display:flex; align-items:center; gap:14px; padding:12px 14px; border-radius:16px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); transition:.2s; color:var(--text); }
.cd-item:hover{ background:rgba(255,255,255,.1); transform:translateX(4px); }
.cd-avatar{ width:44px; height:44px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:22px; flex:0 0 auto; }
.cd-info{ flex:1; display:flex; flex-direction:column; min-width:0; }
.cd-info strong{ font-size:15px; }
.cd-info small{ font-size:12px; color:var(--muted); }
.cd-num{ font-weight:800; font-size:14px; color:var(--lav); }
.cd-num.hot{ color:var(--gold); font-size:15px; }

/* 热度榜 */
.hot-list{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.hot-item{ display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:16px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); transition:.2s; }
.hot-item:hover{ background:rgba(255,255,255,.1); transform:translateX(4px); }
.hot-item.first{ background:linear-gradient(120deg, rgba(255,209,102,.16), rgba(255,122,184,.12)); border-color:rgba(255,209,102,.4); }
.hot-rank{ font-size:20px; width:32px; text-align:center; }
.hot-avatar{ width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:20px; }
.hot-name{ flex:1; font-weight:700; color:var(--text); }
.hot-likes{ font-size:13px; color:var(--pink); font-weight:700; }

/* 页脚 */
.site-footer{ text-align:center; padding:36px 16px 26px; color:rgba(201,188,224,.6); font-size:13px; position:relative; z-index:1; }

/* 动效 */
.reveal{ animation:rise .6s both; }
@keyframes rise{ from{ opacity:0; transform:translateY(18px);} to{ opacity:1; transform:none;} }

/* ========= 明星祝福墙页 ========= */
.back-link{ display:inline-flex; align-items:center; gap:6px; margin:18px 0 14px; color:var(--muted); font-size:14px; font-weight:600; transition:.2s; }
.back-link:hover{ color:var(--pink); }
.star-head-top{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding:4px; }
.star-head-info{ flex:1; min-width:220px; }
.star-actions{ display:flex; gap:10px; }
.star-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:20px; padding-top:18px; border-top:1px dashed rgba(255,255,255,.16); }
.stat{ text-align:center; }
.stat b{ display:block; font-size:22px; color:var(--gold); }
.stat span{ font-size:12px; color:var(--muted); }

.controls{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:14px 16px; margin-top:18px; }
.filter-tabs{ display:flex; gap:6px; background:rgba(255,255,255,.05); padding:5px; border-radius:999px; }
.tab{ border:0; background:transparent; color:var(--muted); padding:8px 16px; border-radius:999px; cursor:pointer; font-size:13px; font-weight:600; transition:.2s; }
.tab:hover{ color:var(--text); }
.tab.active{ background:linear-gradient(135deg,#ff7ab8,#c86bff); color:#fff; box-shadow:0 6px 16px rgba(255,90,180,.3); }
.sort-select{ background:rgba(255,255,255,.08); color:var(--text); border:1px solid rgba(255,255,255,.16); border-radius:999px; padding:9px 14px; font-size:13px; cursor:pointer; outline:none; }
.sort-select option{ background:#241145; }

.msg-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; margin-top:18px; }
.msg-card{ padding:16px; display:flex; flex-direction:column; gap:12px; transition:.25s; }
.msg-card:hover{ transform:translateY(-3px); box-shadow:0 18px 44px rgba(8,4,26,.5); }
.msg-head{ display:flex; align-items:center; gap:10px; }
.msg-avatar{ width:42px; height:42px; flex:0 0 auto; border-radius:50%; background:linear-gradient(135deg,rgba(255,122,184,.35),rgba(180,140,255,.35)); display:flex; align-items:center; justify-content:center; font-size:22px; }
.msg-user{ flex:1; min-width:0; display:flex; flex-direction:column; }
.msg-user strong{ font-size:14px; }
.msg-time{ font-size:11px; color:var(--muted); }
.like-btn{ display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); padding:6px 12px; border-radius:999px; cursor:pointer; font-size:14px; color:var(--text); transition:.2s; }
.like-btn:hover{ background:rgba(255,255,255,.14); }
.like-btn.liked{ background:rgba(255,120,190,.2); border-color:rgba(255,120,190,.5); }
.like-btn .heart{ display:inline-block; transition:.2s; }
.like-btn.liked .heart{ animation:pop .45s; }
@keyframes pop{ 35%{ transform:scale(1.55);} }
.msg-text{ font-size:14px; white-space:pre-wrap; word-break:break-word; color:#f1eaff; }
.media-wrap video{ width:100%; border-radius:12px; max-height:250px; background:#000; }
.media-wrap audio{ width:100%; height:40px; }
.media-label{ font-size:11px; color:var(--muted); margin-top:6px; }

/* ========= 弹窗 ========= */
.modal-overlay{ position:fixed; inset:0; background:rgba(12,6,30,.62); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); display:none; align-items:flex-end; justify-content:center; z-index:60; }
.modal-overlay.open{ display:flex; }
.modal{ width:100%; max-width:580px; max-height:92vh; overflow-y:auto; padding:22px; border-radius:26px 26px 0 0; animation:slideUp .32s cubic-bezier(.2,.8,.3,1); }
@media(min-width:720px){ .modal{ border-radius:26px; margin:auto; } }
@keyframes slideUp{ from{ transform:translateY(46px); opacity:0;} to{ transform:none; opacity:1;} }
.modal-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.modal-head h3{ font-size:19px; }
.modal-head h3 span{ color:var(--pink); }
.field{ margin-bottom:14px; }
.field label{ display:block; font-size:13px; font-weight:700; color:#e8dcff; margin-bottom:7px; }
.field input[type=text], .field textarea{ width:100%; padding:11px 14px; border-radius:14px; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.07); color:var(--text); font-size:14px; outline:none; resize:vertical; font-family:inherit; transition:.2s; }
.field input[type=text]:focus, .field textarea:focus{ border-color:var(--pink); box-shadow:0 0 0 3px rgba(255,122,184,.18); }
.field textarea::placeholder{ color:rgba(201,188,224,.6); }
.field input[type=file]{ width:100%; padding:12px; border-radius:14px; border:1px dashed rgba(255,255,255,.22); background:rgba(255,255,255,.05); color:var(--muted); font-size:13px; cursor:pointer; }
.text-count{ font-size:11px; color:var(--muted); text-align:right; margin-top:4px; }
.avatar-pick{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.av{ width:40px; height:40px; font-size:20px; border-radius:12px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.06); cursor:pointer; transition:.18s; display:flex; align-items:center; justify-content:center; }
.av:hover{ transform:scale(1.1); background:rgba(255,255,255,.14); }
.av.on{ border-color:var(--pink); background:rgba(255,122,184,.2); box-shadow:0 0 0 3px rgba(255,122,184,.18); }
.modal .tabs{ display:flex; gap:6px; margin:0 0 12px; background:rgba(255,255,255,.05); padding:5px; border-radius:999px; width:fit-content; }
.hidden{ display:none!important; }
.rec-box{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
#rec-btn.recording{ background:linear-gradient(135deg,#ff5c7a,#ff2e63); animation:pulse 1.2s infinite; }
@keyframes pulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(255,46,99,.55);} 50%{ box-shadow:0 0 0 14px rgba(255,46,99,0);} }
#rec-timer{ font-size:18px; font-weight:800; color:var(--gold); font-variant-numeric:tabular-nums; }
.hint{ font-size:12px; color:var(--muted); margin-top:10px; }
.rec-done{ display:flex; flex-direction:column; gap:10px; margin-top:12px; font-size:13px; color:#bfffd6; }
.rec-done audio{ width:100%; }
.rec-done video{ width:100%; border-radius:12px; max-height:200px; background:#000; }
.modal-foot{ display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }

/* Toast */
#toast{ position:fixed; left:50%; bottom:34px; transform:translateX(-50%) translateY(20px); background:rgba(24,12,44,.92); border:1px solid rgba(255,122,184,.4); color:#fff; padding:12px 22px; border-radius:999px; font-size:14px; font-weight:600; box-shadow:0 14px 40px rgba(0,0,0,.5); z-index:80; opacity:0; pointer-events:none; transition:.3s; max-width:86vw; text-align:center; }
#toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* ========= 关于页 ========= */
.about{ padding-top:30px; }
.about-title{ font-size:clamp(24px,4vw,34px); text-align:center; background:linear-gradient(120deg,#ffd6ea,#ff7ab8,#c86bff); -webkit-background-clip:text; background-clip:text; color:transparent; }
.about-lead{ text-align:center; color:var(--muted); max-width:640px; margin:14px auto 26px; font-size:15px; }
.about .panel{ margin-bottom:18px; }
.about .panel h2{ font-size:18px; margin-bottom:10px; }
.about .panel p, .about .panel li{ font-size:14px; color:#e6dbff; margin:6px 0; }
.about .panel ul{ padding-left:20px; }
.about .panel li{ margin:4px 0; }
.about .panel b{ color:var(--pink); }
.steps{ list-style:none; padding:0!important; display:flex; flex-direction:column; gap:8px; counter-reset:st; }
.steps li{ counter-increment:st; display:flex; gap:10px; align-items:flex-start; }
.steps li::before{ content:counter(st); flex:0 0 26px; height:26px; border-radius:50%; background:linear-gradient(135deg,#ff7ab8,#c86bff); color:#fff; font-size:13px; font-weight:800; display:flex; align-items:center; justify-content:center; margin-top:2px; }

/* ========= 响应式 ========= */
@media(max-width:840px){
  .grid-2{ grid-template-columns:1fr; }
  .star-head-top{ flex-direction:column; align-items:flex-start; }
  .star-actions{ width:100%; }
  .star-actions .btn{ flex:1; }
  .star-avatar.big{ width:72px; height:72px; font-size:36px; }
}
@media(max-width:520px){
  .container{ padding:0 14px; }
  .nav a{ padding:7px 12px; font-size:13px; }
  .logo span{ display:none; }
  .logo{ font-size:15px; }
  .hero{ padding-top:36px; }
  .day-chip{ width:66px; }
  .star-card{ flex-wrap:wrap; }
  .star-cta{ width:100%; }
  .star-stats{ grid-template-columns:repeat(4,1fr); gap:6px; }
  .stat b{ font-size:18px; }
  .controls{ flex-direction:column; align-items:stretch; }
  .filter-tabs{ width:100%; justify-content:space-between; }
  .tab{ padding:8px 12px; font-size:12px; }
  .sort-select{ width:100%; }
  .msg-grid{ grid-template-columns:1fr; }
}
