/**
 * 全站主样式：
 * - 统一颜色、间距和卡片视觉风格。
 * - 包含响应式规则和评论/通知等模块样式。
 */

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #ffeaf3 0%, #fff5fa 100%);
  background-attachment: fixed;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
.container {
  width: min(100%, 600px);
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(255, 182, 193, 0.25);
}
h2,
h3 {
  color: #d63384;
  margin-top: 10px;
}
input,
textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ffc0d6;
  font-size: 14px;
  background: #fff8fc;
}
textarea {
  resize: none;
}
button {
  width: auto;
  min-width: 90px;
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  background: #f8cdd4;
  color: #555;
  cursor: pointer;
  transition: 0.2s ease;
}
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(255, 111, 145, 0.4);
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.bottle-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #888;
  flex-wrap: wrap;
}
#pickedName {
  color: #d63384;
  font-weight: 700;
}
#pickedTime {
  color: #999;
}
#reunionHint {
  color: #c85a84;
  white-space: normal;
  margin-top: 10px;
  text-align: left;
  font-size: 12px;
}
.reunion-inline {
  display: none;
}
.reunion-inline.show {
  display: block;
}
.voted-like {
  background: #ffd6e7 !important;
  border: 1px solid #ff7aa8 !important;
  color: #c2185b !important;
  box-shadow: 0 6px 16px rgba(255, 122, 168, 0.22);
}
.voted-dislike {
  background: #f1f1f1 !important;
  border: 1px solid #999 !important;
  color: #666 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.comment-liked {
  background: #ffd6e7 !important;
  border: 1px solid #ff7aa8 !important;
  color: #c2185b !important;
}
.comment-disliked {
  background: #f1f1f1 !important;
  border: 1px solid #999 !important;
  color: #666 !important;
}
hr {
  border: none;
  border-top: 1px solid #ffd1e3;
  margin: 18px 0;
}
#toast {
  display: none;
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8fb1, #ffb6c1);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(255, 120, 150, 0.35);
  z-index: 9999;
  opacity: 0;
  transition: all 0.35s ease;
}
#panel {
  display: none;
  margin: 12px 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 240, 246, 0.9);
  border: 1px solid #ffd1e3;
  box-shadow: 0 10px 26px rgba(255, 182, 193, 0.22);
}
.panelTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.panelLv {
  display: inline-block;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: #c27a96;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
}
.panelExpText {
  color: #b24b73;
  font-size: 13px;
}
.progressWrap {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ffd1e3;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}
.progressBar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7aa8 0%, #ffb6c1 55%, #ffd1e3 100%);
  box-shadow: 0 6px 14px rgba(255, 122, 168, 0.25);
  transition: width 0.35s ease;
}
.panelBottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.panelChance {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ffd1e3;
  color: #a83b63;
  font-size: 13px;
}
.panelHint {
  color: #b24b73;
  font-size: 13px;
}
.panelTitleWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.panelUserName {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: #a83b63;
  font-size: 15px;
  font-weight: 700;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.panelRightInline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}
.logout-inline {
  min-width: auto;
  padding: 0;
  background: none;
  border: none;
  color: #b24b73;
  font-size: 12px;
  font-weight: 400;
  box-shadow: none;
}
.logout-inline:hover {
  transform: none;
  box-shadow: none;
  color: #c2185b;
  text-decoration: underline;
}
#loginStatus {
  color: #c2185b;
  font-weight: 500;
}
#loginArea {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .container {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
.section {
  display: none;
}
.section.on {
  display: block;
}
.bottle-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 0 8px 20px rgba(255, 182, 193, 0.22);
  border: 1px solid rgba(255, 209, 227, 0.55);
}
.bottle-content {
  font-size: 15px;
  line-height: 1.65;
  margin: 10px 0 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bottle-meta {
  color: #888;
  font-size: 13px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.btnRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.btnGhost {
  background: #fff;
  border: 1px solid #ffd1e3;
  color: #a83b63;
}
.btnDanger {
  background: #ffd1e3;
  color: #7a2342;
}
.comment {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 209, 227, 0.45);
}
.comment-reply {
  margin-left: 22px;
  border-left: 3px solid #ffd6e7;
  padding-left: 10px;
}
.comment-name {
  font-weight: 700;
  color: #d63384;
}
.comment-time {
  font-size: 12px;
  color: #999;
  margin-left: 8px;
}
.comment-actions {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.comment-actions button {
  min-width: auto;
  padding: 6px 12px;
  border-radius: 999px;
}
.comment-box {
  margin-top: 10px;
}
.comment-box textarea {
  width: 100%;
  height: 78px;
  border-radius: 12px;
  border: 1px solid #ffd1e3;
  padding: 10px;
  resize: none;
  margin-bottom: 8px;
  background: #fff8fc;
}
.comment-text {
  margin-top: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.notice-preview {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ffdbe8;
  background: #fff8fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.notice-preview-title {
  font-size: 12px;
  color: #b24b73;
  margin-bottom: 8px;
}
.notice-preview .comment {
  background: #fff;
}
.notice-detail-title {
  font-size: 13px;
  color: #b24b73;
  margin-bottom: 8px;
}
.notice-related-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffecf4;
  border: 1px solid #ff9fc2;
  color: #c2185b;
  font-size: 11px;
  vertical-align: middle;
}
.notice-comment-related {
  border: 1px solid #ff7aa8;
  box-shadow: 0 8px 18px rgba(255, 122, 168, 0.2);
  background: linear-gradient(180deg, #fff7fb 0%, #fff 100%);
}
.notice-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 182, 193, 0.18);
  backdrop-filter: blur(2px);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.notice-modal-card {
  width: min(100%, 680px);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #fff;
  border: 1px solid #ffd1e3;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(255, 120, 150, 0.22);
}
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}
.tabBtn {
  border-radius: 999px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #ffd1e3;
  color: #a83b63;
}
.tabBtn.on {
  background: linear-gradient(90deg, #ff8fb1, #ffb6c1);
  border: none;
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 120, 150, 0.25);
}
.small {
  font-size: 12px;
  color: #b24b73;
}
.bottle-card,
.comment,
.comment-box,
.bottle-content,
.comment-text {
  min-width: 0;
  max-width: 100%;
}
.bottle-meta-top,
.bottle-meta,
.btnRow,
.panelTop,
.panelBottom,
#loginArea,
.tabs {
  min-width: 0;
}
.bottle-content,
.comment-text {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-break: anywhere;
}
.comment-name,
#pickedName {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
input,
textarea,
button {
  max-width: 100%;
}
.chance-inline {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ffd1e3;
  color: #a83b63;
  font-size: 13px;
}
.help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  background: #ffd6e7;
  border: 1px solid #ffb3cc;
  color: #c2185b;
  font-size: 12px;
  font-weight: 700;
  cursor: help;
  vertical-align: middle;
  user-select: none;
  flex: 0 0 auto;
}
.help-tip:hover {
  background: #ffc7dd;
  box-shadow: 0 4px 10px rgba(255, 122, 168, 0.18);
}
.help-pop {
  position: absolute;
  top: 24px;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ffd1e3;
  box-shadow: 0 10px 24px rgba(255, 182, 193, 0.25);
  color: #a83b63;
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
  white-space: normal;
  display: none;
  line-height: 1.75;
}
.help-tip:hover .help-pop,
.help-tip.open .help-pop {
  display: block;
}
.site-footer {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px dashed #ffd6e7;
  font-size: 11px;
  line-height: 1.7;
  color: #b98ea0;
  text-align: center;
}
.site-footer a {
  color: #b98ea0;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .help-pop {
    left: auto;
    right: 0;
    transform: none;
    max-width: calc(100vw - 32px);
  }
}
