/* ==========================================================================
   components.css —— 业务组件：栏目 / 作品卡片 / 侧栏短评 / 分页 / 详情页组件
   ========================================================================== */

/* ---------- 栏目标题 ---------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 34px 0 18px;
}

.section-head:first-child {
  margin-top: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #222b2e;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--color-accent);
}

.section-more {
  font-size: 13px;
  color: var(--color-muted);
  transition: color 0.2s;
}

.section-more:hover {
  color: var(--color-green);
}

.section-more::after {
  content: "›";
  margin-left: 4px;
}

/* ---------- 作品栅格 ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.work-grid--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* ---------- 作品卡片 ---------- */
.work-card {
  display: block;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(31, 45, 50, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(31, 45, 50, 0.1);
}

.work-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #dfe5e8;
}

.work-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 类型角标 */
.work-card__type {
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 12px;
  border-radius: 9px 0 8px 0;
  font-size: 12px;
  color: #fff;
}

.work-card__type--movie { background: var(--color-badge-movie); }
.work-card__type--series { background: var(--color-badge-series); }
.work-card__type--variety { background: var(--color-badge-variety); }
.work-card__type--anime { background: var(--color-badge-anime); }

/* 评分角标 */
.work-card__score {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(13, 18, 22, 0.72);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.work-card__score .star {
  margin-right: 3px;
  color: var(--color-star);
}

.work-card__score.is-none {
  font-weight: 400;
  font-size: 12px;
}

.work-card__body {
  padding: 12px 14px 14px;
}

.work-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #222b2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-card__meta {
  margin-top: 5px;
  font-size: 12px;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 侧栏：最新短评 ---------- */
.side-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(31, 45, 50, 0.04);
}

.side-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.side-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #222b2e;
}

.side-card__extra {
  font-size: 12px;
  color: var(--color-muted);
}

.review-item {
  margin-top: 18px;
}

.review-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-item__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e4ede6;
  color: #6a8f7b;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-item__name {
  font-size: 13px;
  color: #4a5457;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-item__score {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-star);
}

.review-item__text {
  margin: 8px 0 10px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-text-sub);
}

.review-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-item__work {
  font-size: 12.5px;
  color: #8fae9c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-item__work:hover {
  color: var(--color-green);
}

.review-item__tag {
  font-size: 11px;
  color: var(--color-faint);
  flex-shrink: 0;
}

/* ---------- 分类页标题 ---------- */
.category-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0 20px;
}

.category-head h1 {
  font-size: 30px;
  font-weight: 700;
  color: #222b2e;
}

.category-head .tip {
  padding: 5px 12px;
  border-radius: 4px;
  background: #f6ecd4;
  color: #a8821c;
  font-size: 12px;
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 8px;
}

.pagination button {
  min-width: 64px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-card);
  font-size: 13px;
  color: #556165;
  transition: color 0.2s, border-color 0.2s;
}

.pagination button:hover:not(:disabled):not(.active) {
  color: var(--color-green);
  border-color: #bcd3c6;
}

.pagination button.active {
  background: var(--color-green-deep);
  border-color: var(--color-green-deep);
  color: #fff;
  font-weight: 600;
}

.pagination button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- 详情页：作品信息卡 ---------- */
.detail-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 1px 2px rgba(31, 45, 50, 0.04);
}

.detail-card + .detail-card,
.detail-card + .section-head,
.section-head + .detail-card {
  margin-top: 24px;
}

.hero {
  display: flex;
  gap: 30px;
}

.hero__poster {
  width: 200px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #dfe5e8;
}

.hero__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__info {
  flex: 1;
  min-width: 0;
  padding-top: 6px;
}

.hero__title {
  font-size: 30px;
  font-weight: 700;
  color: #222b2e;
}

.hero__meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-muted);
}

.hero__crew {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-sub);
}

.hero__crew + .hero__crew {
  margin-top: 8px;
}

.hero__rating {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.hero__score {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: #d9971e;
}

.hero__stars-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__count {
  font-size: 12px;
  color: var(--color-muted);
}

/* 星级（支持小数填充） */
.stars {
  position: relative;
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 2px;
  color: #d8dde0;
}

.stars::before {
  content: "★★★★★";
}

.stars__fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--color-star);
}

.stars__fill::before {
  content: "★★★★★";
}

/* ---------- 详情页：通用区块标题 ---------- */
.block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #222b2e;
}

.block-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--color-accent);
}

.block-title .sub {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
}

/* ---------- 详情页：作品简介 ---------- */
.summary-text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
}

/* 简介按段落渲染，段与段之间留一点呼吸空间；段内继续用 1.9 的行高 */
.summary-text p + p {
  margin-top: 10px;
}

/* ---------- 详情页：你的评分 ---------- */
.rate-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-muted);
}

.rate-buttons {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.rate-buttons button {
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #f4f6f7;
  font-size: 14px;
  color: #556165;
  transition: all 0.15s;
}

.rate-buttons button:hover {
  border-color: #bcd3c6;
  color: var(--color-green);
}

.rate-buttons button.selected {
  background: var(--color-green-deep);
  border-color: var(--color-green-deep);
  color: #fff;
  font-weight: 600;
}

.rate-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

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

.btn {
  padding: 10px 24px;
  border-radius: 6px;
  background: var(--color-green-btn);
  color: #fff;
  font-size: 14px;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-green-btn-hover);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rate-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--color-faint);
}

.rate-note__link {
  color: var(--color-green);
  text-decoration: underline;
}

/* 还没有评分的作品，评分数字用更弱的样式，避免看起来像一个真实分数 */
.hero__score--none {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-muted);
}

/* ---------- 详情页：短评 ---------- */
.form-label {
  display: block;
  margin: 16px 0 8px;
  font-size: 13px;
  color: #4a5457;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #f7f8f9;
  font-size: 13px;
  color: #3a4548;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-faint);
}

.form-input:focus,
.form-textarea:focus {
  border-color: #bcd3c6;
  background: #fff;
}

.form-input--nick {
  max-width: 260px;
}

.form-textarea {
  min-height: 96px;
  resize: vertical;
}

.review-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.review-form__counter {
  font-size: 12px;
  color: var(--color-muted);
}

.review-form__note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--color-faint);
}

.review-list {
  margin-top: 22px;
  border-top: 1px solid #edf0f1;
}

.review-list__item {
  padding: 18px 0;
  border-bottom: 1px solid #edf0f1;
}

.review-list__item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.review-list__head {
  font-size: 14px;
  font-weight: 700;
  color: #333d40;
}

.review-list__head .tag {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
}

.review-list__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-sub);
}

/* ---------- 详情页：侧栏提示卡 ---------- */
.aside-note {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-sub);
}

/* ---------- 空状态 ---------- */
.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 14px;
}

/* 类型角标：库里的分类不止四大类（午夜影院、VIP蓝光影院、短剧等） */
.work-card__type--other { background: #7a8a90; }
/* ---------- 页头登录区 ---------- */
.header-user {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  font-size: 14px;
}

.header-user__name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3a4548;
}

button.header-user__link {
  padding: 0;
  border: none;
  background: none;
  font-size: 14px;
  color: #3a4548;
  cursor: pointer;
}

.header-user__link:hover {
  color: var(--color-green);
}

.header-user__link--primary {
  padding: 7px 16px;
  border-radius: 17px;
  background: var(--color-green-btn);
  color: #fff;
}

.header-user__link--primary:hover {
  color: #fff;
  background: var(--color-green-btn-hover);
}

/* ---------- 登录 / 注册 / 找回密码 ---------- */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 48px 0 64px;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  padding: 32px 28px 26px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(31, 45, 50, 0.04);
}

.auth-title {
  margin: 0 0 6px;
  font-size: 22px;
}

.auth-tip {
  margin: 0 0 20px;
  font-size: 13px;
  color: #909399;
}

.auth-card .form-input {
  width: 100%;
  height: 40px;
}

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

.auth-row .form-input {
  flex: 1;
  min-width: 0;
}

.captcha-img {
  flex: none;
  width: 110px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fafafa;
  cursor: pointer;
  object-fit: contain;
}

.auth-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #a8b1b6;
}

.auth-error {
  min-height: 18px;
  margin: 12px 0 4px;
  font-size: 13px;
  color: #d9534f;
}

.auth-submit {
  width: 100%;
  height: 42px;
}

.auth-code-btn {
  width: 100%;
  height: 40px;
  margin-top: 10px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 13px;
  color: #6b767a;
}

.auth-links a {
  color: var(--color-green);
}
/* ---------- 轻提示（评分、短评等操作反馈） ---------- */
.toast-box {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  max-width: 78vw;
  padding: 11px 20px;
  border-radius: 8px;
  background: rgba(23, 32, 36, 0.92);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

.toast--success { background: rgba(46, 125, 91, 0.95); }
.toast--error { background: rgba(176, 58, 58, 0.95); }

/* 仅给搜索引擎与读屏使用的标题 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 海报图加载失败时保留一块底色，不至于出现空白 */
.work-card__poster,
.hero__poster {
  background: #e9eef0;
}

/* ==========================================================================
   components.css 追加：Cookie 同意提示条
   ========================================================================== */

/* ---------- Cookie 同意提示条 ---------- */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 24px rgba(31, 45, 50, 0.12);
  transform: translateY(100%);
  transition: transform 0.24s ease;
}

.cookie-bar.is-show {
  transform: translateY(0);
}

.cookie-bar[hidden] {
  display: none;
}

/* 提示条出现时给页面底部留出空间，避免遮住页脚 */
body.has-cookie-bar {
  padding-bottom: 150px;
}

.cookie-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-bar__text {
  min-width: 0;
}

.cookie-bar__title {
  font-size: 15px;
  font-weight: 700;
  color: #222b2e;
}

.cookie-bar__desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-sub);
}

.cookie-bar__desc a {
  color: var(--color-green);
  text-decoration: underline;
}

.cookie-bar__current {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-muted);
}

.cookie-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 9px 18px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #4a5457;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.cookie-btn:hover {
  border-color: #bcd3c6;
  color: var(--color-green);
}

.cookie-btn--primary {
  border-color: var(--color-green-btn);
  background: var(--color-green-btn);
  color: #fff;
}

.cookie-btn--primary:hover {
  border-color: var(--color-green-btn-hover);
  background: var(--color-green-btn-hover);
  color: #fff;
}

.cookie-btn.is-active {
  border-color: var(--color-green-deep);
  font-weight: 600;
  color: var(--color-green-deep);
}

.cookie-btn--primary.is-active {
  color: #fff;
}

/* 页脚的「Cookie 设置」入口，样式与其它页脚链接一致 */
.footer-links__btn {
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  color: #8a8f99;
  cursor: pointer;
}

.footer-links__btn:hover {
  color: #f5a623;
}

.footer-links a + a::before,
.footer-links a + .footer-links__btn::before,
.footer-links .footer-links__btn::before {
  content: "｜";
  margin: 0 8px;
  color: #c9ccd2;
}

@media (max-width: 900px) {
  .cookie-bar {
    padding: 14px 0;
  }

  .cookie-bar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cookie-bar__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .cookie-btn {
    padding: 9px 8px;
    font-size: 12.5px;
  }

  body.has-cookie-bar {
    padding-bottom: 210px;
  }
}

/* ==========================================================================
   components.css 追加：菠萝看点（原创文章栏目）
   ========================================================================== */

/* ---------- 首页侧栏：看点入口 ---------- */
.blog-side__intro {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-muted);
}

.blog-side__list {
  margin-top: 12px;
}

.blog-side__item {
  display: block;
  padding: 11px 0;
  border-top: 1px solid #edf0f1;
}

.blog-side__item:first-child {
  border-top: none;
  padding-top: 2px;
}

.blog-side__cat {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  border-radius: 3px;
  background: #eef5f0;
  color: #4f7d63;
  font-size: 11px;
  vertical-align: 1px;
}

.blog-side__title {
  font-size: 13.5px;
  line-height: 1.6;
  color: #333d40;
  transition: color 0.2s;
}

.blog-side__item:hover .blog-side__title {
  color: var(--color-green);
}

.blog-side__date {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--color-faint);
}

/* ---------- 看点栏目页 ---------- */
.blog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 18px;
}

.blog-head__title {
  font-size: 30px;
  font-weight: 700;
  color: #222b2e;
}

.blog-head__desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--color-muted);
}

.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.blog-tab {
  padding: 7px 16px;
  border: 1px solid var(--color-border);
  border-radius: 17px;
  background: var(--color-card);
  font-size: 13px;
  color: #556165;
  transition: all 0.2s;
}

.blog-tab:hover {
  border-color: #bcd3c6;
  color: var(--color-green);
}

.blog-tab.active {
  border-color: var(--color-green-deep);
  background: var(--color-green-deep);
  color: #fff;
  font-weight: 600;
}

.blog-tab__num {
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.7;
}

/* 头条文章 */
.blog-pin {
  display: block;
  margin-bottom: 22px;
  padding: 24px 26px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: linear-gradient(135deg, #fbfdfb 0%, #f2f7f3 100%);
  box-shadow: 0 1px 2px rgba(31, 45, 50, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-pin:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 45, 50, 0.1);
}

.blog-pin__flag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 3px;
  background: var(--color-accent);
  color: #6b4d05;
  font-size: 11px;
  font-weight: 600;
}

.blog-pin__title {
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 700;
  color: #1f2b2e;
}

.blog-pin__summary {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-sub);
}

.blog-pin__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--color-muted);
}

.blog-pin__cat {
  padding: 2px 9px;
  border-radius: 3px;
  background: #e7f0ea;
  color: #4f7d63;
}

/* 文章卡片栅格 */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-card);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(31, 45, 50, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(31, 45, 50, 0.1);
}

.blog-card__cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9eef0;
}

.blog-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  padding: 14px 16px 16px;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--color-faint);
}

.blog-card__cat {
  padding: 1px 8px;
  border-radius: 3px;
  background: #eef5f0;
  color: #4f7d63;
}

.blog-card__title {
  margin-top: 9px;
  font-size: 15.5px;
  line-height: 1.55;
  font-weight: 700;
  color: #222b2e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__summary {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 文章详情页 ---------- */
.article-layout {
  padding-top: 24px;
  padding-bottom: 8px;
}

.article-main {
  max-width: 860px;
  margin: 0 auto;
}

.article-body {
  padding: 30px 34px 26px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-card);
  box-shadow: 0 1px 3px rgba(31, 45, 50, 0.05);
}

.article-head__cat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 3px;
  background: #eef5f0;
  color: #4f7d63;
  font-size: 12px;
}

.article-head__title {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  color: #1f2b2e;
}

.article-head__summary {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--color-accent);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--color-text-sub);
}

.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf0f1;
  font-size: 12.5px;
  color: var(--color-muted);
}

.article-cover {
  margin-top: 22px;
  border-radius: 8px;
  overflow: hidden;
  background: #e9eef0;
}

.article-cover img {
  width: 100%;
  display: block;
}

.article-content {
  margin-top: 22px;
  font-size: 15.5px;
  line-height: 2;
  color: #333d40;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content h2 {
  margin: 32px 0 14px;
  font-size: 19px;
  font-weight: 700;
  color: #1f2b2e;
}

.article-content h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--color-accent);
  vertical-align: -1px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

/* 全局重置去掉了 list-style，这里补回来 */
.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content li::marker {
  color: var(--color-accent);
}

.article-content a {
  color: var(--color-green);
  text-decoration: underline;
  word-break: break-all;
}

.article-foot {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #edf0f1;
}

.article-foot__note {
  font-size: 12px;
  color: var(--color-faint);
}

.article-foot__actions {
  margin-top: 14px;
}

.article-foot__back {
  font-size: 13px;
  color: var(--color-green);
}

/* 上一篇 / 下一篇 */
.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.article-nav__item {
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-card);
  transition: border-color 0.2s;
}

.article-nav__item:hover {
  border-color: #bcd3c6;
}

.article-nav__label {
  display: block;
  font-size: 11.5px;
  color: var(--color-faint);
}

.article-nav__title {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #333d40;
}

.article-nav__item--next {
  text-align: right;
}

@media (max-width: 900px) {
  .blog-grid,
  .blog-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .blog-head__title {
    font-size: 24px;
  }

  .blog-pin {
    padding: 18px;
  }

  .blog-pin__title {
    font-size: 19px;
  }

  .article-body {
    padding: 20px 16px 18px;
  }

  .article-head__title {
    font-size: 22px;
  }

  .article-content {
    font-size: 15px;
  }

  .article-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-nav__item--next {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .blog-grid,
  .blog-grid--related {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   components.css 追加：登录页的 Cookie 说明
   ========================================================================== */

/* 未选择 / 已拒绝 Cookie 时，在登录表单上方给出说明。
   目的是让人知道「登录不依赖统计或广告 Cookie」，避免把登录失败误判成拒绝了 Cookie。 */
.auth-cookie-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #e8ddc0;
  border-radius: 6px;
  background: #fdf8ec;
}

.auth-cookie-tip[hidden] {
  display: none;
}

.auth-cookie-tip__text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #8a6d2f;
}

.auth-cookie-tip__text a {
  color: #8a6d2f;
  text-decoration: underline;
}

.auth-cookie-tip__btn {
  flex-shrink: 0;
  padding: 5px 12px;
  border: 1px solid #d8c79b;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  color: #8a6d2f;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.auth-cookie-tip__btn:hover {
  border-color: #c2ab74;
  background: #fffdf7;
}

@media (max-width: 900px) {
  .auth-cookie-tip {
    flex-direction: column;
    gap: 8px;
  }

  .auth-cookie-tip__btn {
    align-self: flex-start;
  }
}
