:root{--bg:#fff7fb;--card:#fff;--text:#302333;--muted:#7d6b7c;--main:#ff4d7d;--main-dark:#d93062;--soft:#ffe3ef;--border:#f4c9dd;--ok:#22aa72;--danger:#d54848}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;background:radial-gradient(circle at 20% 10%,#ffe2ef 0,transparent 28%),radial-gradient(circle at 90% 5%,#fff0b9 0,transparent 24%),var(--bg);color:var(--text)}.page{max-width:820px;margin:0 auto;padding:18px 14px 110px}.hero{background:linear-gradient(135deg,#05072e,#121747);border-radius:28px;padding:28px 22px;color:#fff;box-shadow:0 16px 40px rgba(13,16,64,.22)}.hero h1{margin:12px 0 8px;font-size:32px;line-height:1.15}.hero p{margin:6px 0 0;opacity:.95}.badge{display:inline-block;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.18);font-size:14px}.admin-top-link a{color:#fff;font-weight:800}.tabs{display:flex;gap:8px;overflow-x:auto;padding:18px 0 8px;position:sticky;top:0;z-index:10;background:linear-gradient(to bottom,var(--bg),rgba(255,247,251,.85));backdrop-filter:blur(8px)}.tab-btn{border:1px solid var(--border);background:#fff;color:var(--text);padding:10px 14px;border-radius:999px;white-space:nowrap;font-weight:800}.tab-btn.active{background:var(--main);color:#fff;border-color:var(--main)}.group-panel{display:none}.group-panel.active{display:block}.group-title-card{margin:16px 0 12px;padding:18px;border-radius:22px;background:#fff;border:1px solid var(--border);box-shadow:0 10px 28px rgba(61,35,52,.06)}.group-title-card h2,.form-card h2{margin:0 0 8px;font-size:22px}.group-title-card p{margin:0;color:var(--muted)}.subcategory-section h3{margin:22px 4px 12px;font-size:20px;padding-left:10px;border-left:5px solid var(--main)}.food-card,.form-card,.admin-card,.empty{background:rgba(255,255,255,.94);border:1px solid rgba(244,201,221,.75);border-radius:22px;padding:16px;margin:12px 0;box-shadow:0 10px 28px rgba(61,35,52,.08)}.food-card{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center}.food-emoji{width:52px;height:52px;display:grid;place-items:center;background:var(--soft);border-radius:18px;font-size:28px}.food-title{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.food-title strong{font-size:17px}.food-title span{color:var(--main-dark);font-size:13px;font-weight:800}.food-info p{margin:6px 0 0;color:var(--muted);font-size:13px}.qty-box{display:flex;align-items:center;gap:8px}.qty-box button{width:30px;height:30px;border:0;border-radius:50%;background:var(--main);color:#fff;font-size:19px;font-weight:900}.qty-box span{min-width:20px;text-align:center;font-weight:900}.form-card label{display:block;margin:14px 0;font-weight:800}select,input,textarea{width:100%;margin-top:8px;padding:13px 12px;border-radius:14px;border:1px solid var(--border);background:#fff;color:var(--text);font-size:15px;outline:none}textarea{resize:vertical}.cart-bar{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);width:min(792px,calc(100% - 24px));display:flex;gap:12px;justify-content:space-between;align-items:center;padding:14px;border-radius:22px;background:rgba(255,255,255,.96);box-shadow:0 18px 50px rgba(61,35,52,.18);border:1px solid var(--border);backdrop-filter:blur(10px)}.cart-bar p{max-width:480px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:4px 0 0;color:var(--muted);font-size:13px}.cart-bar button,.primary-link,.wide-btn{border:0;border-radius:16px;background:var(--main);color:#fff;font-weight:900;padding:13px 18px;text-decoration:none;display:inline-block;white-space:nowrap}.wide-btn{width:100%;margin-top:10px}.cart-bar button:hover,.primary-link:hover,.wide-btn:hover,.admin-actions button:hover{background:var(--main-dark)}.error-box,.success-box{margin:14px 0;padding:14px;border-radius:16px;font-weight:800}.error-box{background:#ffe7e7;color:#a60000}.success-box{background:#e3fff1;color:#08784c}.success{background:linear-gradient(135deg,#10b981,#8ee9bb)}.order-items{margin:14px 0;border-radius:16px;overflow:hidden;border:1px solid var(--border)}.order-line{display:flex;justify-content:space-between;gap:12px;padding:12px;background:#fff;border-bottom:1px solid var(--border)}.order-line:last-child{border-bottom:0}.admin-page{max-width:980px}.admin-card-head{display:flex;justify-content:space-between;gap:12px}.admin-card-head h2{margin:0}.admin-card-head p{margin:6px 0 0;color:var(--muted)}.admin-info p{margin:8px 0}.admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.admin-actions form{margin:0}.admin-actions button,.small-btn{border:0;border-radius:999px;padding:10px 13px;background:var(--soft);color:var(--text);font-weight:900}.admin-actions button.active{background:var(--ok);color:#fff}.admin-actions button.danger,.small-btn.danger{background:#ffe3e3;color:var(--danger)}.empty{text-align:center;color:var(--muted)}.hint{color:var(--muted);line-height:1.6}.json-editor{min-height:520px;font-family:Consolas,"Microsoft YaHei Mono",monospace;font-size:13px;line-height:1.45}.menu-preview-group{border-top:1px solid var(--border);padding-top:12px;margin-top:16px}.menu-preview-group h3{margin-bottom:8px}.menu-preview-group h4{margin:16px 0 8px;color:var(--main-dark)}.menu-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.mini-item{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;border:1px solid var(--border);border-radius:14px;padding:10px;background:#fff}.mini-item p{margin:5px 0;color:var(--muted);font-size:13px}.mini-item small{color:var(--muted)}@media(max-width:520px){.hero h1{font-size:28px}.food-card{grid-template-columns:46px 1fr}.qty-box{grid-column:2/3;justify-content:flex-end}.cart-bar{align-items:stretch}.cart-bar button{padding-left:13px;padding-right:13px}}

/* v3 后台自动刷新 + 菜单可视化管理 */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(61, 35, 52, 0.08);
}

.admin-toolbar button,
.copy-actions button,
.row-form button,
.compact-form button,
.edit-actions button,
.inline-danger-form button,
.sub-head button,
.edit-item-card button {
  border: 0;
  border-radius: 12px;
  padding: 10px 13px;
  font-weight: 900;
  background: var(--main);
  color: white;
}

.admin-toolbar span,
#pendingBadge {
  color: var(--muted);
  font-weight: 800;
}

#pendingBadge {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--main-dark);
}

.toast {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translateX(-50%) translateY(-120px);
  z-index: 9999;
  padding: 14px 18px;
  border-radius: 999px;
  background: #111827;
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  transition: transform .25s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.new-card {
  border-color: var(--main);
}

.copy-actions {
  margin-top: 10px;
}

.copy-actions button {
  background: #111827;
}

.menu-manage-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px;
  margin: 18px 0;
  box-shadow: 0 10px 28px rgba(61, 35, 52, 0.08);
}

.manage-head,
.sub-head,
.edit-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.manage-head h2,
.sub-head h3 {
  margin: 0;
}

.manage-head span,
.edit-item-card small {
  color: var(--muted);
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.grid-form label,
.compact-form label,
.edit-item-card label {
  margin: 0;
}

.full-line,
.grid-form .wide-btn,
.checkbox-line {
  grid-column: 1 / -1;
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 10px !important;
}

.checkbox-line input {
  width: auto;
  margin: 0;
}

.compact-form {
  margin-top: 14px;
}

.inline-danger-form {
  margin-top: 10px;
}

button.danger,
.inline-danger-form button.danger,
.sub-head button.danger,
.edit-item-card button.danger {
  background: #ffe3e3;
  color: var(--danger);
}

.add-sub-card,
.subcategory-manage {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #fff8fb;
  border: 1px dashed var(--border);
}

.add-sub-card h3 {
  margin: 0 0 10px;
}

.row-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.row-form input {
  flex: 1;
  min-width: 180px;
  margin-top: 0;
}

.small-row-form input {
  min-width: 120px;
}

.add-item-details {
  margin: 14px 0;
  padding: 12px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--border);
}

.add-item-details summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--main-dark);
}

.add-item-details form {
  margin-top: 12px;
}

.editable-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.edit-item-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: white;
}

.edit-item-card input {
  margin-top: 6px;
  padding: 10px 11px;
}

.edit-item-card label {
  display: block;
  margin-top: 10px;
  font-weight: 800;
}

.edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.enabled-tag,
.disabled-tag {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.enabled-tag {
  color: #047857;
  background: #d1fae5;
}

.disabled-tag {
  color: #92400e;
  background: #fef3c7;
}

.disabled-item {
  opacity: 0.72;
  background: #fffdf7;
}

@media (max-width: 640px) {
  .grid-form {
    grid-template-columns: 1fr;
  }

  .row-form {
    align-items: stretch;
  }

  .row-form input,
  .row-form button {
    width: 100%;
  }
}


/* v3.2 订单进度反馈 */
.status-card,
.last-order-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  margin: 16px 0;
  box-shadow: 0 10px 28px rgba(61, 35, 52, 0.08);
}

.last-order-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.last-order-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.last-order-card a {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 900;
  color: white;
  background: var(--main);
  padding: 10px 14px;
  border-radius: 999px;
}

.status-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.status-head h2 {
  margin: 10px 0 6px;
  font-size: 26px;
}

.status-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.soft-badge {
  background: var(--soft);
  color: var(--main-dark);
  font-weight: 900;
}

.status-pill {
  padding: 9px 13px;
  border-radius: 999px;
  background: #111827;
  color: white;
  font-weight: 900;
  white-space: nowrap;
}

.progress-track {
  height: 12px;
  background: #f7d6e5;
  border-radius: 999px;
  margin: 18px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--main), #ff9abc);
  transition: width 0.35s ease;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff8fb;
  opacity: 0.72;
}

.timeline-step.done {
  opacity: 1;
  background: white;
}

.timeline-step.active {
  border-color: var(--main);
  box-shadow: 0 8px 22px rgba(255, 77, 125, 0.16);
}

.timeline-dot {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  font-size: 21px;
}

.timeline-step strong {
  display: block;
  margin-bottom: 4px;
}

.timeline-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.timeline.cancelled .timeline-step {
  opacity: 0.45;
}

.cancel-note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #ffe3e3;
  color: var(--danger);
  font-weight: 900;
}

.status-tools,
.success-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.status-tools span {
  color: var(--muted);
  font-size: 13px;
}

.status-tools button,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #111827;
  color: white;
  font-weight: 900;
}

.secondary-btn {
  background: var(--soft);
  color: var(--main-dark);
}

@media (max-width: 520px) {
  .status-head,
  .last-order-card {
    align-items: stretch;
    flex-direction: column;
  }

  .last-order-card a,
  .status-tools button,
  .secondary-btn,
  .success-actions .primary-link {
    width: 100%;
    text-align: center;
  }
}


/* v3.3 空进度 / 订单已删除兜底 */
.empty-progress {
  padding: 14px;
  border-radius: 16px;
  background: #fff8fb;
  border: 1px dashed var(--border);
  color: var(--muted);
  line-height: 1.6;
}

.deleted-note {
  background: #f3f4f6;
  color: #374151;
}


/* v3.4 浪漫登录页 */
.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 210, 226, 0.95) 0, transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(255, 238, 187, 0.9) 0, transparent 24%),
    linear-gradient(135deg, #fff7fb, #fff1f6 42%, #f7fbff);
  overflow-x: hidden;
}

.login-page {
  width: min(1040px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
}

.login-photo-card,
.login-card {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(61, 35, 52, 0.16);
}

.login-photo-card {
  min-height: 620px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,240,246,0.62)),
    url("{{ url_for('static', filename='login_couple.jpg') if false else 'login_couple.jpg' }}");
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,240,246,0.70)),
    url("/static/login_couple.jpg");
  background-size: cover;
  background-position: center;
}

.login-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 46, 0.05), rgba(4, 7, 46, 0.18)),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.78), transparent 28%);
}

.login-photo-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: white;
  text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.login-photo-content h1 {
  margin: 14px 0 10px;
  font-size: 42px;
  line-height: 1.12;
}

.login-photo-content p {
  margin: 0;
  font-size: 17px;
}

.login-badge {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.login-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(244, 201, 221, 0.88);
  padding: 34px;
  position: relative;
}

.heart-lock {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffe4ef, #fff6fa);
  box-shadow: 0 10px 28px rgba(255, 77, 125, 0.16);
  font-size: 32px;
}

.login-card h2 {
  margin: 20px 0 8px;
  font-size: 30px;
}

.login-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.login-card label {
  display: block;
  margin: 16px 0;
  font-weight: 900;
}

.login-card input {
  background: #fff8fb;
}

.login-btn {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--main), #ff89ae);
  color: white;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(255, 77, 125, 0.22);
}

.love-notes {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.love-notes div {
  padding: 12px;
  border-radius: 16px;
  background: #fff8fb;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
}

.login-footer {
  text-align: center;
  color: var(--muted);
  margin: 24px 0 0;
  line-height: 1.6;
}

.floating-heart {
  position: fixed;
  color: rgba(255, 77, 125, 0.22);
  pointer-events: none;
  animation: heartFloat 5s ease-in-out infinite;
  font-size: 42px;
}

.floating-heart.h1 { left: 6%; bottom: 10%; animation-delay: 0s; }
.floating-heart.h2 { right: 8%; top: 12%; animation-delay: 1.2s; }
.floating-heart.h3 { right: 18%; bottom: 8%; animation-delay: 2.2s; }

@keyframes heartFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

@media (max-width: 820px) {
  .login-page {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .login-photo-card {
    min-height: 320px;
  }

  .login-photo-content h1 {
    font-size: 34px;
  }

  .login-card {
    padding: 24px;
  }
}


/* v3.5 产品级登录页 */
.auth-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 205, 224, 0.78) 0, transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(255, 237, 190, 0.82) 0, transparent 26%),
    linear-gradient(135deg, #fff7fb 0%, #fffdfd 42%, #eef7ff 100%);
  color: #261b2c;
  overflow-x: hidden;
}

.auth-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
  gap: 26px;
  align-items: center;
  padding: 30px 0;
}

.auth-hero,
.auth-panel {
  min-height: 680px;
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(34, 18, 40, 0.18);
  overflow: hidden;
}

.auth-hero {
  position: relative;
  background: #10142f;
}

.auth-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/static/login_couple.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.auth-hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 12, 40, 0.10) 0%, rgba(9, 12, 40, 0.34) 55%, rgba(9, 12, 40, 0.72) 100%),
    radial-gradient(circle at 78% 14%, rgba(255,255,255,0.78) 0, transparent 24%),
    linear-gradient(135deg, rgba(255, 80, 130, 0.12), rgba(255,255,255,0.04));
}

.auth-brand-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 26px;
}

.auth-logo {
  height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: white;
  font-weight: 950;
  letter-spacing: 0.04em;
  backdrop-filter: blur(14px);
}

.auth-logo span {
  color: #ffb3c9;
  margin: 0 4px;
}

.auth-secure-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

.auth-hero-copy {
  position: absolute;
  z-index: 2;
  left: 34px;
  right: 34px;
  bottom: 34px;
  color: white;
}

.auth-kicker {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  font-weight: 850;
  margin-bottom: 16px;
}

.auth-hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 34px rgba(0,0,0,0.34);
}

.auth-hero-copy p {
  max-width: 520px;
  margin: 16px 0 0;
  color: rgba(255,255,255,0.9);
  font-size: 17px;
  line-height: 1.75;
}

.auth-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.auth-feature-grid div {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(16px);
}

.auth-feature-grid strong {
  display: block;
  font-size: 20px;
}

.auth-feature-grid span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}

.auth-panel {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.76);
  backdrop-filter: blur(22px);
}

.auth-panel-inner {
  min-height: 680px;
  display: flex;
  flex-direction: column;
  padding: 36px;
}

.auth-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.auth-mini-title {
  color: #ff4d7d;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.auth-topline h2 {
  margin: 8px 0 0;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.auth-heart {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff4d7d, #ff9eb9);
  color: white;
  font-size: 26px;
  box-shadow: 0 16px 34px rgba(255, 77, 125, 0.28);
}

.auth-desc {
  margin: 14px 0 22px;
  color: #766574;
  line-height: 1.75;
}

.auth-error {
  margin: 0 0 16px;
  padding: 13px 14px;
  border-radius: 16px;
  background: #fff0f0;
  border: 1px solid #ffc7c7;
  color: #a13030;
  font-weight: 850;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-field {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.auth-field > span {
  font-size: 14px;
}

.auth-input-wrap {
  min-height: 54px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 6px;
  border: 1px solid #f1c6d8;
  border-radius: 18px;
  background: rgba(255, 248, 251, 0.92);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-input-wrap:focus-within {
  border-color: #ff4d7d;
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 77, 125, 0.10);
}

.auth-input-icon {
  text-align: center;
  font-size: 20px;
}

.auth-input-wrap input {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 16px;
  width: 100%;
}

.auth-eye {
  border: 0;
  background: #ffe8f0;
  color: #d93062;
  font-weight: 900;
  border-radius: 999px;
  padding: 8px 10px;
}

.auth-options {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #766574;
  font-size: 13px;
}

.auth-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 900;
  color: #261b2c;
}

.auth-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #ff4d7d;
}

.auth-submit {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff4d7d, #ff89ae);
  color: white;
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(255, 77, 125, 0.26);
}

.auth-submit:disabled {
  opacity: 0.65;
}

.auth-info-card {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 248, 251, 0.78);
  border: 1px solid #f3cedc;
}

.auth-info-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
}

.auth-info-item b {
  color: #d93062;
}

.auth-info-item span {
  color: #766574;
  line-height: 1.55;
  font-size: 13px;
}

.auth-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 22px;
  color: #766574;
  font-size: 13px;
}

.auth-bottom a {
  color: #d93062;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 940px) {
  .auth-shell {
    grid-template-columns: 1fr;
    width: min(640px, calc(100% - 28px));
  }

  .auth-hero,
  .auth-panel,
  .auth-panel-inner {
    min-height: auto;
  }

  .auth-hero {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .auth-shell {
    width: calc(100% - 20px);
    padding: 10px 0 18px;
    gap: 14px;
  }

  .auth-hero,
  .auth-panel {
    border-radius: 26px;
  }

  .auth-hero {
    min-height: 360px;
  }

  .auth-brand-row {
    padding: 18px;
  }

  .auth-hero-copy {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .auth-feature-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel-inner {
    padding: 22px;
  }

  .auth-topline h2 {
    font-size: 28px;
  }

  .auth-options,
  .auth-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-info-item {
    grid-template-columns: 1fr;
  }
}


/* v3.6 登录策略与认识计时 */
.auth-hero-copy h1 span {
  color: #ffd2df;
  text-shadow: 0 10px 30px rgba(255, 77, 125, 0.42);
}

.love-clock-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.love-clock-card > div {
  padding: 13px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff8fb, #ffffff);
  border: 1px solid #f1c6d8;
}

.love-clock-card span {
  display: block;
  color: #766574;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 6px;
}

.love-clock-card strong {
  display: block;
  color: #261b2c;
  font-size: 15px;
}

.love-clock-card em {
  font-style: normal;
  color: #ff4d7d;
  font-size: 22px;
}

.auth-session-note {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border-radius: 18px;
  background: #fff8fb;
  border: 1px solid #f1c6d8;
  color: #766574;
  line-height: 1.55;
  font-size: 13px;
}

.auth-session-note b {
  color: #d93062;
}

.auth-session-note span {
  color: #766574;
}

.love-counter-grid strong {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .love-clock-card {
    grid-template-columns: 1fr;
  }
}


/* v3.9 登录页视觉精修：淡清新、克制、成品感 */
.auth-body-v39 {
  background:
    radial-gradient(circle at 10% 10%, rgba(248, 217, 229, 0.85) 0, transparent 34%),
    radial-gradient(circle at 92% 6%, rgba(247, 239, 214, 0.85) 0, transparent 26%),
    linear-gradient(135deg, #fffafc 0%, #fefefe 40%, #f6fbff 100%);
  color: #33283a;
}

.auth-shell-v39 {
  width: min(1180px, calc(100% - 34px));
  gap: 28px;
}

.auth-hero-v39,
.auth-panel-v39 {
  min-height: 700px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(78, 56, 76, 0.14);
}

.auth-hero-v39 {
  position: relative;
}

.auth-hero-v39 .soft-mask {
  background:
    linear-gradient(180deg, rgba(19, 21, 40, 0.08) 0%, rgba(21, 22, 42, 0.20) 44%, rgba(25, 20, 43, 0.52) 100%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 196, 218, 0.10)),
    radial-gradient(circle at 78% 14%, rgba(255,255,255,0.72) 0, transparent 26%);
}

.hero-copy-v39 {
  left: 34px;
  right: 34px;
  bottom: 34px;
}

.hero-copy-v39 h1 {
  font-size: clamp(42px, 5.3vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.hero-copy-v39 h1 span {
  color: #ffe1ea;
  text-shadow: 0 12px 28px rgba(255, 120, 165, 0.20);
}

.hero-copy-v39 p {
  max-width: 540px;
  color: rgba(255,255,255,0.92);
  font-size: 17px;
  line-height: 1.8;
}

.hero-counter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-counter-card {
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(14px);
}

.hero-counter-card strong {
  display: block;
  color: white;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.hero-counter-card span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,0.84);
  font-size: 13px;
}

.auth-panel-v39 {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.92);
  backdrop-filter: blur(22px);
}

.auth-panel-inner-v39 {
  min-height: 700px;
  padding: 38px 38px 30px;
}

.auth-topline-v39 {
  align-items: center;
}

.auth-topline-v39 h2 {
  margin: 8px 0 0;
  font-size: 36px;
  letter-spacing: -0.04em;
}

.compact-desc {
  margin-top: 14px;
  margin-bottom: 0;
  max-width: 520px;
  color: #786d7f;
  line-height: 1.8;
}

.love-clock-card-v39 {
  margin: 22px 0 20px;
  gap: 12px;
}

.love-clock-card-v39 > div {
  border-radius: 20px;
  background: linear-gradient(180deg, #fffafc, #ffffff);
  border: 1px solid #f1d8e3;
  box-shadow: 0 8px 24px rgba(255, 130, 170, 0.05);
}

.love-clock-card-v39 span {
  color: #8c8091;
  font-size: 12px;
}

.love-clock-card-v39 strong {
  font-size: 16px;
  color: #32273a;
}

.love-clock-card-v39 em {
  color: #ff6797;
  font-size: 28px;
  font-weight: 900;
}

.auth-form-v39 {
  gap: 16px;
}

.auth-form-v39 .auth-field > span {
  color: #56475a;
}

.auth-input-wrap {
  min-height: 56px;
  padding: 0 9px 0 8px;
  border-radius: 18px;
  border: 1px solid #efd7e1;
  background: rgba(255, 251, 252, 0.98);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96);
}

.auth-input-wrap:focus-within {
  border-color: #ef8eae;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(247, 144, 177, 0.10);
}

.auth-input-wrap input {
  color: #33283a;
  font-size: 16px;
}

.auth-input-wrap input::placeholder {
  color: #b3a3b2;
}

.auth-eye {
  min-width: 58px;
  background: #fff1f6;
  color: #e05e8b;
  border: 1px solid #f4c9d9;
  box-shadow: none;
}

.auth-submit-v39 {
  min-height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff6d9a, #ff8fb0);
  box-shadow: 0 14px 30px rgba(255, 118, 159, 0.22);
}

.soft-note-strip {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffafc, #fffdfd);
  border: 1px solid #f3dbe5;
  color: #7f7383;
  font-size: 13px;
  line-height: 1.7;
}

.auth-bottom-v39 {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #f2e5ec;
  color: #867889;
}

.auth-bottom-v39 a {
  color: #d85d87;
}

@media (max-width: 980px) {
  .auth-shell-v39 {
    grid-template-columns: 1fr;
    width: min(700px, calc(100% - 24px));
  }

  .auth-hero-v39,
  .auth-panel-v39,
  .auth-panel-inner-v39 {
    min-height: auto;
  }

  .auth-hero-v39 {
    min-height: 460px;
  }
}

@media (max-width: 560px) {
  .auth-shell-v39 {
    width: calc(100% - 18px);
    gap: 14px;
    padding: 10px 0 16px;
  }

  .auth-hero-v39,
  .auth-panel-v39 {
    border-radius: 26px;
  }

  .hero-copy-v39 {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .hero-counter-row,
  .love-clock-card-v39 {
    grid-template-columns: 1fr;
  }

  .auth-panel-inner-v39 {
    padding: 24px 20px 20px;
  }

  .auth-topline-v39 h2 {
    font-size: 30px;
  }
}


/* v4.0 方向 B：更有恋爱感、更温柔；单一计时器，避免信息冲突 */
.auth-body-v40 {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 226, 235, 0.92) 0, transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(250, 242, 218, 0.88) 0, transparent 26%),
    linear-gradient(135deg, #fffafc 0%, #fffdf8 48%, #f6fbff 100%);
  color: #34293a;
}

.auth-shell-v40 {
  width: min(1160px, calc(100% - 34px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(430px, 0.97fr);
  gap: 26px;
  align-items: center;
  padding: 30px 0;
}

.auth-hero-v40,
.auth-panel-v40 {
  min-height: 690px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 28px 76px rgba(78, 56, 76, 0.14);
}

.auth-hero-v40 {
  position: relative;
  background: #201c31;
}

.auth-hero-v40 .auth-hero-bg {
  filter: saturate(0.96) contrast(0.98);
}

.v40-mask {
  background:
    linear-gradient(180deg, rgba(36, 31, 49, 0.04) 0%, rgba(36, 31, 49, 0.18) 42%, rgba(36, 31, 49, 0.62) 100%),
    radial-gradient(circle at 72% 10%, rgba(255,255,255,0.72) 0, transparent 24%),
    linear-gradient(135deg, rgba(255, 201, 220, 0.08), rgba(255, 255, 255, 0.02));
}

.v40-brand-row {
  padding: 26px;
}

.v40-hero-letter {
  position: absolute;
  z-index: 2;
  left: 34px;
  right: 34px;
  bottom: 34px;
  color: white;
  max-width: 560px;
}

.v40-letter-label {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.v40-hero-letter h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  text-shadow: 0 14px 34px rgba(0,0,0,0.28);
}

.v40-hero-letter p {
  margin: 0;
  color: rgba(255,255,255,0.90);
  font-size: 17px;
  line-height: 1.85;
}

.auth-panel-v40 {
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(255,255,255,0.88);
  backdrop-filter: blur(22px);
}

.auth-panel-inner-v40 {
  min-height: 690px;
  display: flex;
  flex-direction: column;
  padding: 38px;
}

.v40-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.v40-panel-head h2 {
  margin: 8px 0 0;
  font-size: 36px;
  letter-spacing: -0.04em;
}

.v40-heart-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff7fa6, #ffabc3);
  color: white;
  font-size: 26px;
  box-shadow: 0 16px 34px rgba(255, 127, 166, 0.24);
}

.v40-love-timer {
  margin: 24px 0 20px;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 252, 0.98), rgba(255,255,255,0.98)),
    radial-gradient(circle at 90% 0%, rgba(255, 210, 226, 0.42), transparent 28%);
  border: 1px solid #f2d9e3;
  box-shadow: 0 16px 34px rgba(255, 132, 170, 0.08);
}

.v40-timer-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #8a7d8c;
}

.v40-timer-top span {
  font-weight: 950;
  color: #d85d87;
}

.v40-timer-top small {
  color: #948796;
}

.v40-timer-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  color: #34293a;
}

.v40-timer-main span {
  font-size: 22px;
  font-weight: 900;
}

.v40-timer-main strong {
  font-size: clamp(58px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: #ff6797;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.v40-love-timer p {
  margin: 12px 0 0;
  color: #746879;
  line-height: 1.7;
  font-size: 15px;
}

.v40-timer-clock {
  margin-top: 10px;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff1f6;
  color: #d85d87;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.v40-login-hint {
  margin: 0 0 18px;
  color: #7f7383;
  line-height: 1.8;
}

.auth-form-v40 {
  gap: 16px;
}

.v40-input {
  min-height: 58px;
  border-radius: 20px;
  background: rgba(255, 251, 252, 0.98);
  border: 1px solid #f0d7e1;
}

.v40-input:focus-within {
  border-color: #ee90ae;
  box-shadow: 0 0 0 4px rgba(238, 144, 174, 0.10);
}

.v40-eye {
  background: #fff2f7;
  border: 1px solid #f4cddd;
  color: #d85d87;
}

.auth-submit-v40 {
  min-height: 58px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff7aa4, #ff9bb8);
  box-shadow: 0 16px 34px rgba(255, 122, 164, 0.22);
}

.v40-soft-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 22px;
  color: #8a7d8c;
  border-top: 1px solid #f3e3ea;
  font-size: 13px;
}

.v40-soft-footer a {
  color: #d85d87;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .auth-shell-v40 {
    grid-template-columns: 1fr;
    width: min(700px, calc(100% - 24px));
  }

  .auth-hero-v40,
  .auth-panel-v40,
  .auth-panel-inner-v40 {
    min-height: auto;
  }

  .auth-hero-v40 {
    min-height: 430px;
  }
}

@media (max-width: 560px) {
  .auth-shell-v40 {
    width: calc(100% - 18px);
    gap: 14px;
    padding: 10px 0 16px;
  }

  .auth-hero-v40,
  .auth-panel-v40 {
    border-radius: 26px;
  }

  .v40-brand-row {
    padding: 18px;
  }

  .v40-hero-letter {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .v40-hero-letter h1 {
    font-size: 38px;
  }

  .auth-panel-inner-v40 {
    padding: 24px 20px 20px;
  }

  .v40-panel-head h2 {
    font-size: 30px;
  }

  .v40-love-timer {
    padding: 18px;
  }

  .v40-timer-top,
  .v40-soft-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .v40-timer-main strong {
    font-size: 70px;
  }
}


/* v4.1 暗号框不预填：让每次亲手输入更有仪式感 */
.v41-secret-note {
  margin-top: -4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 248, 251, 0.88);
  border: 1px dashed #f2cddc;
  color: #8a7d8c;
  font-size: 13px;
  line-height: 1.65;
}

.v40-input input[name="love_secret"] {
  letter-spacing: 0.08em;
}


/* v4.2 登录页 100 条情话艺术循环 */
.v42-love-quote {
  position: relative;
  margin: 18px 0 18px;
  padding: 18px 18px 16px 56px;
  min-height: 118px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 252, 253, 0.96), rgba(255, 247, 250, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(255, 210, 226, 0.34), transparent 30%);
  border: 1px solid #f2dce5;
  box-shadow: 0 16px 32px rgba(255, 132, 170, 0.08);
  overflow: hidden;
}

.v42-love-quote::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: rgba(255, 210, 226, 0.24);
  pointer-events: none;
}

.v42-quote-mark {
  position: absolute;
  left: 18px;
  top: 12px;
  color: rgba(255, 103, 151, 0.30);
  font-size: 58px;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
}

.v42-quote-content {
  position: relative;
  z-index: 1;
}

.v42-quote-label {
  margin-bottom: 8px;
  color: #d85d87;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.v42-love-quote p {
  margin: 0;
  color: #4d4053;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.v42-love-quote p.quote-out {
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.v42-love-quote p.quote-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.v42-quote-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.v42-quote-meta span {
  color: #a896a5;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.v42-quote-progress {
  height: 4px;
  border-radius: 999px;
  background: #f5e3eb;
  overflow: hidden;
}

.v42-quote-progress i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8fb0, #ffd1df);
}

.v42-quote-progress i.running {
  animation: quoteProgress 5.2s linear forwards;
}

@keyframes quoteProgress {
  from { width: 0%; }
  to { width: 100%; }
}

@media (max-width: 560px) {
  .v42-love-quote {
    padding: 16px 16px 15px 48px;
    min-height: 112px;
    border-radius: 22px;
  }

  .v42-quote-mark {
    left: 15px;
    top: 11px;
    font-size: 50px;
  }

  .v42-love-quote p {
    font-size: 15px;
  }
}
