:root {
  --accent: #df7faa;
  --accent-deep: #c45d91;
  --accent-soft: #fff4f9;
  --accent-surface: #fff0f6;
  --accent-line: #f6cfe0;
  --accent-shadow: rgba(223, 127, 170, 0.16);
}

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

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #fff0f6 0%, #fff8fc 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(223, 127, 170, 0.14);
}
h2,
h3 {
  color: var(--accent);
  margin-top: 10px;
}
input,
textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--accent-line);
  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: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px var(--accent-shadow);
}
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: var(--accent);
  font-weight: 700;
}
#pickedTime {
  color: #999;
}
#reunionHint {
  color: var(--accent-deep);
  white-space: normal;
  margin-top: 10px;
  text-align: left;
  font-size: 12px;
}
.reunion-inline {
  display: none;
}
.reunion-inline.show {
  display: block;
}
.voted-like {
  background: var(--accent-soft) !important;
  border: 1px solid var(--accent) !important;
  color: var(--accent-deep) !important;
  box-shadow: 0 6px 16px var(--accent-shadow);
}
.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: var(--accent-soft) !important;
  border: 1px solid var(--accent) !important;
  color: var(--accent-deep) !important;
}
.comment-disliked {
  background: #f1f1f1 !important;
  border: 1px solid #999 !important;
  color: #666 !important;
}
hr {
  border: none;
  border-top: 1px solid var(--accent-line);
  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, var(--accent), #f0a4c3);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(223, 127, 170, 0.18);
  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 var(--accent-line);
  box-shadow: 0 10px 26px rgba(223, 127, 170, 0.1);
}
.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: var(--accent-deep);
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
}
.panelExpText {
  color: var(--accent-deep);
  font-size: 13px;
}
.progressWrap {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--accent-line);
  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, var(--accent) 0%, #f0a4c3 62%, var(--accent-soft) 100%);
  box-shadow: 0 6px 14px var(--accent-shadow);
  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 var(--accent-line);
  color: var(--accent-deep);
  font-size: 13px;
}
.panelHint {
  color: var(--accent-deep);
  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: var(--accent-deep);
  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: var(--accent-deep);
  font-size: 12px;
  font-weight: 400;
  box-shadow: none;
}
.logout-inline:hover {
  transform: none;
  box-shadow: none;
  color: var(--accent-deep);
  text-decoration: underline;
}
#loginStatus {
  color: var(--accent-deep);
  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(223, 127, 170, 0.1);
  border: 1px solid rgba(223, 127, 170, 0.12);
}
.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 var(--accent-line);
  color: var(--accent-deep);
}
.btnDanger {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.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(223, 127, 170, 0.1);
}
.comment-reply {
  margin-left: 22px;
  border-left: 3px solid var(--accent-soft);
  padding-left: 10px;
}
.comment-name {
  font-weight: 700;
  color: var(--accent);
}
.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 var(--accent-line);
  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 var(--accent-line);
  background: #fff8fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.notice-preview-title {
  font-size: 12px;
  color: var(--accent-deep);
  margin-bottom: 8px;
}
.notice-preview .comment {
  background: #fff;
}
.notice-detail-title {
  font-size: 13px;
  color: var(--accent-deep);
  margin-bottom: 8px;
}
.notice-related-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-surface);
  border: 1px solid var(--accent-line);
  color: var(--accent-deep);
  font-size: 11px;
  vertical-align: middle;
}
.notice-comment-related {
  border: 1px solid var(--accent);
  box-shadow: 0 8px 18px var(--accent-shadow);
  background: linear-gradient(180deg, #fff7fb 0%, #fff 100%);
}
.notice-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(223, 127, 170, 0.12);
  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 var(--accent-line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 40px var(--accent-shadow);
}
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}
.tabBtn {
  border-radius: 999px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--accent-line);
  color: var(--accent-deep);
}
.tabBtn.on {
  background: linear-gradient(90deg, var(--accent), #f472b6);
  border: none;
  color: #fff;
  box-shadow: 0 10px 24px rgba(223, 127, 170, 0.16);
}
.small {
  font-size: 12px;
  color: var(--accent-deep);
}
.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 var(--accent-line);
  color: var(--accent-deep);
  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: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  cursor: help;
  vertical-align: middle;
  user-select: none;
  flex: 0 0 auto;
}
.help-tip:hover {
  background: var(--accent-surface);
  box-shadow: 0 4px 10px rgba(223, 127, 170, 0.12);
}
.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 var(--accent-line);
  box-shadow: 0 10px 24px rgba(223, 127, 170, 0.1);
  color: var(--accent-deep);
  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;
}
@media (hover: none) {
  .help-tip:hover .help-pop {
    display: none;
  }
  .help-tip.open .help-pop {
    display: block;
  }
}
.site-footer {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px dashed var(--accent-soft);
  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 {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 16px;
    transform: none;
    width: auto;
    max-width: none;
  }
}
