/* ========================================
   阿妹阿姐 ameiajie - 初夏学院风 清新主题
   ======================================== */

:root {
  --bg: #F7F8FC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFF5F6;
  --bg-nav: rgba(255,255,255,0.92);
  --bg-input: #F0F2F8;
  --accent: #FF7B89;
  --accent-dark: #E8697A;
  --accent2: #5CB89A;
  --accent3: #6CB4EE;
  --text: #3A3A50;
  --text-muted: #9BA0B8;
  --border: #E8ECF4;
  --shadow: rgba(255,123,137,0.12);
  --radius: 10px;
  --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2); }

/* ---- 导航栏 ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.nav-logo {
  font-size: 20px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 12px; align-items: center; }
.nav-links a, .nav-links button {
  color: var(--text-muted); font-size: 14px; padding: 6px 12px;
  border-radius: 6px; border: none; background: none; cursor: pointer;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links button:hover {
  color: var(--accent); background: rgba(255,123,137,0.08);
}
.nav-links .btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 600;
}
.nav-links .btn-accent:hover { opacity: 0.9; }

/* ---- Banner / Hero ---- */
.hero {
  margin-top: 56px;
  min-height: 29.98vw;       /* 540/1801, 保持图片宽高比 */
  max-height: 540px;         /* 不超过原图高度 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('/images/hero-banner.png') center/cover no-repeat;
  position: relative; overflow: hidden;
  padding: clamp(16px, 3vw, 32px) clamp(12px, 3vw, 20px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(247,248,252,0.5) 100%);
  pointer-events: none; z-index: 0;
}
.hero h1 {
  font-size: clamp(18px, 4vw, 28px); font-weight: 800;
  position: relative; z-index: 1;
  color: var(--text);
  text-shadow: 0 1px 4px rgba(255,255,255,0.85);
  margin-bottom: clamp(4px, 1vw, 8px);
}
.hero p {
  position: relative; z-index: 1;
  color: var(--text-muted);
  font-size: clamp(11px, 1.8vw, 14px);
  text-shadow: 0 1px 3px rgba(255,255,255,0.85);
}

/* ---- 搜索栏 ---- */
.search-bar {
  max-width: 500px; margin: 20px auto 0; position: relative; z-index: 1;
}
.search-bar input {
  width: 100%; padding: 12px 48px 12px 16px; border-radius: 24px;
  border: 1px solid var(--border); background: #fff;
  color: var(--text); font-size: 14px; outline: none;
  transition: border-color var(--transition); box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.search-bar input:focus { border-color: var(--accent); box-shadow: 0 2px 16px rgba(255,123,137,0.15); }
.search-bar button {
  position: absolute; right: 4px; top: 4px; bottom: 4px;
  width: 40px; border-radius: 20px; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; cursor: pointer; font-size: 16px;
}

/* ---- 分类标签 ---- */
.cat-tabs {
  display: flex; gap: 8px; padding: 16px 16px 8px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; white-space: nowrap;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  padding: 6px 16px; border-radius: 20px; font-size: 13px;
  background: var(--bg-card); color: var(--text-muted); cursor: pointer;
  border: 1px solid var(--border); transition: all var(--transition);
  white-space: nowrap; flex-shrink: 0;
}
.cat-tab:hover, .cat-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border-color: transparent;
}

/* ---- 热门搜索 ---- */
.hot-tags { padding: 8px 16px 16px; }
.hot-tags span { color: var(--text-muted); font-size: 12px; margin-right: 8px; }
.hot-tag {
  display: inline-block; padding: 3px 10px; margin: 3px; border-radius: 12px;
  font-size: 12px; background: rgba(255,123,137,0.08); color: var(--accent);
  cursor: pointer; transition: all var(--transition);
}
.hot-tag:hover { background: rgba(255,123,137,0.16); }

/* ---- 公告条（单行滚动） ---- */
.announce-bar {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; margin: 0 16px 12px;
  background: linear-gradient(90deg, rgba(255,123,137,0.08), rgba(92,184,154,0.06));
  border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0;
  overflow: hidden;
}
.announce-icon { font-size: 14px; flex-shrink: 0; }
.announce-track {
  display: flex; gap: 48px; width: max-content;
  align-items: center;
}
.announce-track.scroll {
  animation: marquee var(--marquee-dur, 12s) linear infinite;
}
.announce-track.scroll:hover { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.announce-text {
  color: var(--text); font-size: 13px; cursor: pointer;
  white-space: nowrap; line-height: 38px;
}
.announce-text:hover { color: var(--accent); }

/* ---- 公告详情弹窗 ---- */
.announce-popup {
  display: none; position: fixed; inset: 0; z-index: 10000;
  align-items: center; justify-content: center;
}
.announce-popup.show { display: flex; }
.announce-popup-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
}
.announce-popup-card {
  position: relative; width: 90%; max-width: 420px; max-height: 80vh;
  background: var(--bg-card); border-radius: 16px; padding: 32px 24px 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  overflow-y: auto; z-index: 1;
  animation: popupIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.announce-popup-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: rgba(0,0,0,0.06); color: var(--text-muted);
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.announce-popup-close:hover {
  background: var(--accent); color: #fff;
}
.announce-popup-icon { text-align: center; font-size: 36px; margin-bottom: 12px; }
.announce-popup-title {
  font-size: 18px; font-weight: 700; color: var(--text);
  text-align: center; margin-bottom: 16px; line-height: 1.4;
}
.announce-popup-content {
  font-size: 14px; color: var(--text-muted); line-height: 1.8;
  white-space: pre-wrap; word-break: break-word;
}
.announce-popup-time {
  margin-top: 16px; text-align: center; font-size: 12px; color: var(--text-muted);
}

/* ---- 作品瀑布流 ---- */
.work-grid {
  column-count: 2; column-gap: 12px; padding: 0 12px;
}
@media (min-width: 768px) {
  .work-grid { column-count: 3; column-gap: 16px; padding: 0 24px; }
}
@media (min-width: 1024px) {
  .work-grid { column-count: 4; column-gap: 20px; padding: 0 40px; }
}

.work-card {
  break-inside: avoid; margin-bottom: 12px; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
  border: 1px solid var(--border); cursor: pointer;
  transition: all var(--transition); position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.work-card:hover {
  transform: translateY(-4px); border-color: var(--accent);
  box-shadow: 0 8px 30px var(--shadow);
}
.work-card img, .carousel-slide img, .related-card img {
  width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover;
  user-select: none; -webkit-user-select: none;
  pointer-events: auto; /* 保留点击，但禁止右键另存 */
  -webkit-touch-callout: none;
}
.work-card picture, .related-card picture, .carousel picture {
  display: block;
}
.work-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 10px 8px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.08) 20%, rgba(0,0,0,0.65) 100%);
  color: #fff;
}
.work-card-shoe {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.25); backdrop-filter: blur(4px);
  color: #fff; margin-bottom: 4px;
}
.work-card-title {
  font-size: 13px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.work-card-brief {
  font-size: 11px; line-height: 1.3; opacity: 0.85;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.work-card-time {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; opacity: 0.9;
}
.work-card-time .time-icon {
  font-size: 12px; line-height: 1;
}
.work-card-rec {
  position: absolute; top: 8px; right: 8px;
  background: var(--accent2); color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: 4px; font-weight: 700;
}

/* ---- 加载更多 ---- */
.load-more {
  text-align: center; padding: 24px;
}
.load-more button {
  padding: 10px 32px; border-radius: 24px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-muted); font-size: 14px;
  cursor: pointer; transition: all var(--transition);
}
.load-more button:hover {
  border-color: var(--accent); color: var(--accent);
}

/* ---- 详情页 ---- */
.detail-wrap { max-width: 800px; margin: 72px auto 0; padding: 0 16px; }
.detail-header { margin-bottom: 20px; }
.detail-title { font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.detail-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.detail-meta span { display: inline-flex; align-items: center; gap: 4px; }

.detail-section {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px; border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

/* ===== 图片轮播 ===== */
.carousel {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  background: #000;
}
.carousel-track {
  display: flex;
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  position: relative;
}
.carousel-slide img, .carousel-slide picture {
  display: block;
}
.carousel-slide img {
  width: 100%;
  height: auto;
}
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}
.carousel-dot.active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}
.detail-section h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}

/* 价格档位 */
.tier-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-radius: 8px; margin-bottom: 8px;
  background: var(--bg); border: 1px solid var(--border);
  transition: all var(--transition);
  gap: 12px;
}
.tier-card:hover { border-color: var(--accent); }
.tier-name { font-weight: 600; font-size: 14px; }
.tier-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.tier-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  flex-shrink: 0;
}
.tier-price {
  font-size: 18px; font-weight: 800; color: var(--accent);
  white-space: nowrap;
}
.tier-price small { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.tier-buy-btn {
  padding: 7px 20px; border-radius: 20px; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: opacity var(--transition); white-space: nowrap;
}
.tier-buy-btn:hover { opacity: 0.85; }

/* ===== 客服购买弹窗 ===== */
.cs-modal-mask {
  display: none; position: fixed; inset: 0; z-index: 11000;
  align-items: center; justify-content: center;
}
.cs-modal-mask.show { display: flex; }
.cs-modal-bg {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
}
.cs-modal-card {
  position: relative; z-index: 1; width: 92%; max-width: 360px;
  background: linear-gradient(180deg, #FFF5F6 0%, #FFFFFF 30%);
  border-radius: 20px; padding: 36px 28px 28px;
  box-shadow: 0 20px 60px rgba(255,123,137,0.25);
  text-align: center;
  animation: csModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes csModalIn {
  from { opacity: 0; transform: scale(0.85) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cs-modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(0,0,0,0.05); color: var(--text-muted);
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  line-height: 1;
}
.cs-modal-close:hover { background: var(--accent); color: #fff; }
.cs-modal-title {
  font-size: 20px; font-weight: 800; color: var(--accent); margin-bottom: 6px;
}
.cs-modal-subtitle {
  font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5;
}
.cs-modal-qrcode {
  width: 200px; height: 200px; border-radius: 14px;
  border: 3px solid var(--accent);
  box-shadow: 0 6px 24px rgba(255,123,137,0.2);
  object-fit: cover;
  margin-bottom: 16px;
}
.cs-modal-qrcode-placeholder {
  width: 200px; height: 200px; border-radius: 14px;
  border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--text-muted); font-size: 13px;
}
.cs-modal-nickname {
  font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px;
}
.cs-modal-wechat {
  font-size: 13px; color: var(--accent2); margin-bottom: 16px;
}
.cs-modal-divider {
  width: 48px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  margin: 0 auto 16px;
}
.cs-modal-tip {
  font-size: 12px; color: var(--text-muted); line-height: 1.6;
}
.cs-modal-loading {
  color: var(--text-muted); font-size: 14px; padding: 24px 0;
}

/* ===== 鞋型标签 ===== */
.shoe-badge-row { margin-bottom: 10px; }
.shoe-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,123,137,0.12), rgba(92,184,154,0.08));
  border: 1px solid rgba(255,123,137,0.25);
}
.shoe-emoji { font-size: 20px; line-height: 1; }
.shoe-name { font-size: 14px; font-weight: 700; color: var(--accent); }
.shoe-emoji-meta { font-size: 14px; }

/* 鞋型展示卡片 */
.shoe-display {
  display: flex; align-items: center; gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,123,137,0.05), rgba(92,184,154,0.04));
  border-radius: 10px;
  border: 1px solid rgba(255,123,137,0.12);
}
.shoe-display-icon {
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
}
.shoe-display-name {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.shoe-display-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 正文内容图片约束 */
.detail-body { font-size: 14px; line-height: 1.8; word-break: break-word; }
.detail-body img { max-width: 100%; height: auto; display: block; border-radius: 6px; }
.detail-body * { max-width: 100%; }
.detail-text { font-size: 14px; line-height: 1.8; color: var(--text-muted); }

/* 模特信息 */
.model-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.model-info-item {
  padding: 8px 12px; background: var(--bg-input); border-radius: 6px;
  font-size: 13px;
}
.model-info-item label { color: var(--text-muted); margin-right: 6px; }

/* 操作按钮 */
.action-btns { display: flex; gap: 12px; margin: 16px 0; }
.action-btn {
  flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text); font-size: 14px;
  cursor: pointer; transition: all var(--transition); text-align: center;
}
.action-btn:hover { border-color: var(--accent); color: var(--accent); }
.action-btn.liked, .action-btn.favorited {
  background: rgba(255,123,137,0.08); border-color: var(--accent); color: var(--accent);
}
.action-btn.buy {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; font-weight: 700;
}

/* 评论区 */
.comment-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-user { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.comment-avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  background: var(--accent3);
}
.comment-name { font-size: 13px; font-weight: 600; }
.comment-time { font-size: 11px; color: var(--text-muted); margin-left: auto; }
.comment-text { font-size: 14px; line-height: 1.6; }
.comment-reply { margin-left: 40px; padding: 8px 0; }
.reply-item { padding: 6px 0; font-size: 13px; }
.reply-item .reply-name { color: var(--accent); font-weight: 600; }

.comment-input {
  display: flex; gap: 8px; margin-top: 12px;
}
.comment-input input {
  flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-input); color: var(--text); font-size: 14px; outline: none;
}
.comment-input input:focus { border-color: var(--accent); }
.comment-input button {
  padding: 10px 20px; border-radius: 8px; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 600; cursor: pointer;
}

/* ---- 登录 / 注册 ---- */
.auth-wrap {
  max-width: 400px; margin: 120px auto 0; padding: 0 16px;
}
.auth-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.auth-card h2 {
  text-align: center; margin-bottom: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.form-group input {
  width: 100%; padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-input);
  color: var(--text); font-size: 14px; outline: none;
}
.form-group input:focus { border-color: var(--accent); }
.btn-submit {
  width: 100%; padding: 12px; border-radius: 8px; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: opacity var(--transition);
}
.btn-submit:hover { opacity: 0.9; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* ---- 个人中心 ---- */
.profile-wrap { max-width: 600px; margin: 72px auto 0; padding: 0 16px 40px; }

/* ---- 更新记录 ---- */
.record-list { max-width: 700px; margin: 72px auto 0; padding: 0 16px 40px; }
.record-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--bg-card); border-radius: 8px; margin-bottom: 8px;
  border: 1px solid var(--border); transition: all var(--transition);
  box-shadow: 0 1px 8px rgba(0,0,0,0.03);
}
.record-item:hover { border-color: var(--accent); }
.record-shoe-tag {
  padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; white-space: nowrap;
}
.record-title { flex: 1; font-size: 14px; }
.record-time { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* ---- 上一篇 / 下一篇 ---- */
.detail-prev-next {
  display: flex; gap: 10px; margin: 24px 0 12px;
}
.pn-item {
  flex: 1;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: all var(--transition);
  min-width: 0;
}
a.pn-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateY(-2px);
}
.pn-item.pn-disabled { opacity: 0.4; cursor: default; pointer-events: none; }
.pn-label {
  font-size: 11px; color: var(--accent); letter-spacing: 1px; font-weight: 600;
}
.pn-label-right { text-align: right; }
.pn-disabled .pn-label { color: var(--text-muted); }
.pn-title {
  font-size: 15px; font-weight: 600;
  color: var(--text);
}
.pn-brief {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- 猜你喜欢 ---- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.related-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; text-decoration: none; position: relative;
  transition: all var(--transition);
  aspect-ratio: 3 / 4;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.related-card:hover {
  transform: translateY(-4px); border-color: var(--accent);
  box-shadow: 0 8px 30px var(--shadow);
}
.related-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ---- Footer ---- */
.footer {
  text-align: center; padding: 24px 16px; margin-top: 40px;
  border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted);
}
.footer a { color: var(--text-muted); margin: 0 8px; }
.footer a:hover { color: var(--accent); }

/* ---- Toast ---- */
.toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  padding: 10px 24px; border-radius: 8px; font-size: 14px; z-index: 9999;
  background: var(--accent); color: #fff; opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 4px 20px rgba(255,123,137,0.3);
}
.toast.show { opacity: 1; }

/* ---- Loading ---- */
.loading-spinner {
  text-align: center; padding: 20px; color: var(--text-muted); font-size: 14px;
}
.loading-spinner::after {
  content: ""; display: inline-block; width: 20px; height: 20px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
  margin-left: 8px; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- 分页 ---- */
.pagination {
  display: flex; justify-content: center; gap: 8px; padding: 20px;
}
.pagination a, .pagination span {
  padding: 6px 14px; border-radius: 6px; font-size: 13px;
  background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border);
  cursor: pointer; transition: all var(--transition);
}
.pagination a:hover, .pagination .active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border-color: transparent;
}

/* ---- 工具类 ---- */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none; }

@media (max-width: 767px) {
  .hero { padding: 40px 16px 24px; }
  .hero h1 { font-size: 22px; }
  .detail-title { font-size: 18px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}