/* ============================================================
   硬件纪元 · 中文硬件论坛社区
   设计系统：Aetheric Hardware（源自 Stitch 原型）
   ============================================================ */

/* ---------- 设计 Token ---------- */
:root {
  /* 颜色 */
  --background: #f8fafa;
  --surface: #f8fafa;
  --surface-bright: #f8fafa;
  --surface-dim: #d8dada;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f2f4f4;
  --surface-container: #eceeee;
  --surface-container-high: #e6e8e8;
  --surface-container-highest: #e1e3e3;
  --on-surface: #191c1d;
  --on-surface-variant: #444748;
  --on-background: #191c1d;
  --inverse-surface: #2e3131;
  --inverse-on-surface: #eff1f1;
  --outline: #747878;
  --outline-variant: #c4c7c7;
  --surface-tint: #5f5e5e;
  --primary: #000000;
  --on-primary: #ffffff;
  --primary-container: #1c1b1b;
  --on-primary-container: #858383;
  --secondary: #00E5FF;
  --on-secondary: #ffffff;
  --secondary-container: #00e3fd;
  --on-secondary-container: #00616d;
  --tertiary: #000000;
  --on-tertiary: #ffffff;
  --error: #ba1a1a;

  /* 品牌强调色 */
  --accent: #00e5ff;
  --accent-hover: #00daf3;
  --chip-bg: #e6e8e8;

  /* 圆角 */
  --radius-sm: 0.125rem;   /* 2px */
  --radius: 0.25rem;       /* 4px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */

  /* 间距 */
  --unit: 8px;
  --stack-gap: 40px;
  --section-padding: 120px;
  --gutter: 48px;
  --container-max: 1440px;

  /* 字体 */
  --font-body: 'Inter', -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* 阴影 */
  --shadow-ambient-1: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-ambient-hover: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--on-background);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* 禁止图片被鼠标拖选/长按选中（蓝色选区）；文字仍可正常选中 */
img { display: block; max-width: 100%; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }

/* 统一焦点环：去掉默认黑色/跳动焦点框；键盘聚焦显示品牌青色环（保留无障碍） */
a:focus:not(:focus-visible), button:focus:not(:focus-visible), [role="button"]:focus:not(:focus-visible) { outline: none; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--container-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- 字体工具类 ---------- */
.display-lg { font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
.headline-lg { font-size: 32px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
.headline-md { font-size: 20px; line-height: 1.4; font-weight: 600; }
.body-lg { font-size: 18px; line-height: 1.6; font-weight: 400; }
.body-md { font-size: 16px; line-height: 1.6; font-weight: 400; }
.label-sm {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.0;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 250, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  border-bottom: 1px solid rgba(196, 199, 199, 0.55);
}
.header-inner {
  width: 100%;
  padding: 0 32px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 48px;
  gap: 40px;
  box-sizing: border-box;
}
.brand {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #24272b;                 /* logo 用中性碳黑（浅色区） */
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}
.brand:hover { color: #24272b; }  /* 品牌字 hover 保持碳黑，不变黄 */
.brand .brand-logo { width: 72px; height: 20px; margin-top: 2px; }
.brand .brand-en { color: #00E5FF; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; font-weight: 500; display: block; margin-top: 1px; text-shadow: 0 0 12px rgba(0, 229, 255, 0.5); }
.main-nav { display: flex; align-items: center; }
.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 30px;
  color: var(--on-surface-variant);
  font-size: 16px;
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--on-surface); }
.main-nav a.active {
  color: var(--on-surface);
  font-weight: 700;
  border-bottom: 3px solid #000;   /* 激活下划线由青色改为黑色 */
}
.header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.search-box { position: relative; }
.search-box svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--outline); width: 14px; height: 14px;
}
.search-box input {
  width: 192px;
  padding: 8px 16px 8px 36px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  background: var(--surface-container-lowest);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input::placeholder { color: var(--outline); }
.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn-primary { background: var(--surface-tint); color: var(--on-tertiary); padding: 8px 24px; }
.btn-primary:hover { background: var(--primary); }
.btn-action { background: var(--accent); color: var(--primary); font-weight: 600; padding: 12px 32px; }
.btn-action:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--outline);
  color: var(--on-surface);
  padding: 12px 32px;
  font-weight: 600;
}
.btn-ghost:hover { background: var(--surface-container-low); }
.btn-ghost-sm {
  background: transparent;
  border: 1px solid var(--outline);
  color: var(--on-surface);
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
}
.btn-ghost-sm:hover { background: var(--surface-container-low); }

/* 移动端菜单按钮 */
.menu-toggle { display: none; background: none; border: none; color: var(--on-surface); padding: 8px; }
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-container-lowest);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), calc(100% - 64px) 100%, 0 100%);
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.55));
}
.hero-bg-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-bg {
  background-size: cover;
  background-position: center 30%;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  background-image: radial-gradient(rgba(22,22,22,0.87) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.8;
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}
.hero-tag {
  display: block;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}
.hero-title { color: var(--primary); margin-bottom: 24px; }
.hero-desc {
  color: var(--on-surface-variant);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- 区块通用 ---------- */
.section { padding: var(--section-padding) 0; }
.section-alt {
  background: var(--surface-container-lowest);
  border-top: 1px solid var(--surface-variant, #e1e3e3);
  border-bottom: 1px solid var(--surface-variant, #e1e3e3);
}
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 72px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { color: var(--primary); }
.section-head p { color: var(--on-surface-variant); margin-top: 8px; }
.see-all {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--secondary); font-size: 14px; font-weight: 600;
  transition: color 0.2s;
  white-space: nowrap;
}
.see-all:hover { color: var(--secondary-container); }
.see-all svg { width: 14px; height: 14px; }

/* ---------- 简报卡片 ---------- */
.brief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.brief-card { cursor: pointer; }
.brief-media {
  aspect-ratio: 16/9;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-ambient-1);
  border: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.brief-card:hover .brief-media {
  border-color: #000;
}
.brief-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.brief-card:hover .brief-media img { transform: scale(1.05); }
.chip-row { display: flex; gap: 8px; margin-bottom: 12px; }
.chip {
  background: var(--chip-bg);
  color: var(--on-surface-variant);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.brief-title { color: var(--primary); margin-bottom: 8px; transition: color 0.2s; }
.brief-card:hover .brief-title { color: var(--primary); }   /* hover 标题保持黑色，不再变青 */
.brief-desc {
  color: var(--on-surface-variant);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 活跃主题 ---------- */
.threads-list { display: flex; flex-direction: column; gap: var(--stack-gap); }
.thread-item {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-ambient-1);
  border: 1px solid var(--surface-container);
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.thread-item:hover { box-shadow: var(--shadow-ambient-hover); border-color: #000; }
.thread-main { flex: 1; }
.thread-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.chip-dark { background: var(--inverse-surface); color: var(--inverse-on-surface); }
.meta-author { display: inline-flex; align-items: center; gap: 4px; color: var(--on-surface-variant); }
.meta-author svg { width: 14px; height: 14px; }
.meta-time { color: var(--outline); }
.thread-title { color: var(--primary); margin-bottom: 8px; cursor: pointer; transition: color 0.2s; }
.thread-title:hover { color: var(--primary); }   /* hover 标题保持黑色，不再变青 */
.thread-excerpt {
  color: var(--on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thread-stats { display: flex; align-items: center; gap: 24px; color: var(--on-surface-variant); min-width: 150px; justify-content: flex-end; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat .num { font-size: 20px; font-weight: 600; color: var(--primary); line-height: 1.4; }
.stat .lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; }
.load-more-wrap { margin-top: 64px; text-align: center; }

/* ---------- 社区图库 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 16px;
}
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-ambient-1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0.8;
}
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item.large .shade { background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2) 60%, transparent); }
.gallery-item.wide { grid-column: span 2; }
.gallery-caption { position: absolute; bottom: 0; left: 0; width: 100%; }
.gallery-caption.p-lg { padding: 32px; }
.gallery-caption.p-sm { padding: 16px; }
.gallery-caption.p-md { padding: 24px; }
.gallery-caption .chip-white {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  display: inline-block;
  margin-bottom: 12px;
}
.gallery-caption h3, .gallery-caption h4 { color: #fff; }
.gallery-caption .by { color: var(--inverse-primary, #c8c6c5); margin-top: 4px; }
.gallery-more { margin-top: 32px; text-align: center; }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: var(--stack-gap);
  background: #24272b;
  color: #ffffff;
  opacity: 1;
  transition: opacity 0.2s;
}
.site-footer:hover { opacity: 1; }
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-padding) var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--stack-gap);
}
.site-footer.footer-fade::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #F8FAFA;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 81% 100%, 79% 68.5%, 0 68.5%);
  pointer-events: none;
}
.footer-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.footer-brand::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #00e5ff;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  flex-shrink: 0;
}
.footer-desc { color: #c3c7cc; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: #ffffff; margin-bottom: 8px; }
.footer-col a { color: #c3c7cc; transition: color 0.2s; }
.footer-col a:hover { color: var(--secondary); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .brand-en { display: none; }
  .brief-grid { grid-template-columns: repeat(2, 1fr); }
  .brief-card:nth-child(3) { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-item.large { grid-column: span 2; grid-row: span 2; min-height: 400px; }
  .gallery-item { min-height: 250px; }
  .gallery-item.wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --section-padding: 48px; --gutter: 20px; }
  .display-lg { font-size: 32px; }
  .headline-lg { font-size: 24px; }
  .hero { height: 320px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface-container-lowest);
    border-bottom: 1px solid var(--outline-variant);
    flex-direction: column;
    padding: 16px var(--gutter) 24px;
    gap: 16px;
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .search-box { display: none; }
  .brief-grid { grid-template-columns: 1fr; }
  .brief-card:nth-child(3) { display: block; }
  .thread-item { flex-direction: column; align-items: flex-start; }
  .thread-stats { min-width: 0; justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large, .gallery-item.wide { grid-column: span 1; }
  .header-actions { gap: 12px; }
}



/* ---------- 销量排行榜 ---------- */
.rank-boards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.rank-board {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient-1);
  border: 1px solid var(--surface-container);
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.rank-board:hover {
  border-color: var(--accent);
}
.rank-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--surface-container);
}
.rank-board-head h3 { color: var(--primary); }
.rank-board-head .see-all {
  font-size: 13px;
  color: var(--outline);
}
.rank-board-head .see-all:hover { color: var(--secondary); }
.rank-board-list { padding: 8px 0; }
.rank-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  transition: background-color 0.2s;
}
.rank-row:hover { background-color: var(--surface-container-lowest); }
.rank-rank {
  width: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--outline);
  line-height: 1;
}
.rank-rank.top1 { color: #b8860b; }
.rank-rank.top2 { color: #7a7a7a; }
.rank-rank.top3 { color: #a0522d; }
.rank-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rank-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-sub { color: var(--outline); }
.rank-deal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 64px;
}
.rank-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.rank-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}
.rank-tag--low {
  background: var(--error-container);
  color: var(--on-error-container);
}
.rank-badge {
  min-width: 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  background: var(--surface-container-low);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

@media (max-width: 1024px) {
  .brand-en { display: none; }
  .rank-boards { grid-template-columns: 1fr; }
}


/* ---------- 限时特惠 ---------- */
.deal-countdown {
  color: var(--on-surface-variant);
  background: var(--surface-container-low);
  padding: 8px 16px;
  border-radius: var(--radius);
}
/* 官网同款切角包边：外层垫管线灰底 + 同款遮罩 + 1px padding，形成沿切角走的 1px 边框 */
.deal-card-wrap {
  background: transparent;
  padding: 1px;
  box-sizing: border-box;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 1169 461' preserveAspectRatio='none' fill='black'><path fill='white' d='M12 0L1157 0Q1169 0 1169 12L1169 449L1157 461L12 461Q0 461 0 449L0 12Q0 0 12 0Z'/></svg>");
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 1169 461' preserveAspectRatio='none' fill='black'><path fill='white' d='M12 0L1157 0Q1169 0 1169 12L1169 449L1157 461L12 461Q0 461 0 449L0 12Q0 0 12 0Z'/></svg>");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.06));
}
.deal-card {
  display: grid;
  grid-template-columns: 6fr 4fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #24272b 0%, #1f2a31 55%, #1b2b33 100%);
}
.deal-media {
  position: relative;
  min-height: 380px;
}
.deal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deal-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-weight: 700;
}
.deal-info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  color: #fff;
}
.deal-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.deal-tags .chip {
  background: rgba(255,255,255,0.14);
  color: #e8e6f0;
  border: 1px solid rgba(255,255,255,0.18);
}
.deal-title { font-size: 32px; font-weight: 800; letter-spacing: -0.01em; }
.deal-price { display: flex; align-items: center; gap: 12px; }
.deal-now { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: #fff; }
.deal-was {
  font-family: var(--font-mono);
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  text-decoration: line-through;
}
.deal-off {
  background: var(--error-container);
  color: var(--on-error-container);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.deal-desc { color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.7; }
.deal-shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.deal-shots img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
}
.deal-cta { margin-top: 8px; align-self: flex-start; }

@media (max-width: 900px) {
  /* 官网同款切角包边：外层垫管线灰底 + 同款遮罩 + 1px padding，形成沿切角走的 1px 边框 */
.deal-card-wrap {
  background: transparent;
  padding: 1px;
  box-sizing: border-box;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 1169 461' preserveAspectRatio='none' fill='black'><path fill='white' d='M12 0L1157 0Q1169 0 1169 12L1169 449L1157 461L12 461Q0 461 0 449L0 12Q0 0 12 0Z'/></svg>");
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 1169 461' preserveAspectRatio='none' fill='black'><path fill='white' d='M12 0L1157 0Q1169 0 1169 12L1169 449L1157 461L12 461Q0 461 0 449L0 12Q0 0 12 0Z'/></svg>");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
}
.deal-card { grid-template-columns: 1fr; }
  .deal-media { min-height: 260px; }
  .deal-info { padding: 28px 22px; }
  .deal-title { font-size: 24px; }
}
/* ---------- 外设展示板块（Stitch 硬件外设滑动展示板块 还原） ---------- */
.periph-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1737px;
  background: linear-gradient(135deg, #74a8c9 0%, #5d92b5 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #8bb8d4;
  box-shadow: 0 24px 48px rgba(10, 25, 47, 0.18);
  position: relative;
  margin-bottom: 40px;
}
.periph-brand {
  flex-shrink: 0;
  width: 100%;
  padding: 40px 40px 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
}
.periph-logo {
  width: 128px; height: 128px;
  background: #0f172a;
  border-radius: 24px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid #334155;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px; position: relative; overflow: hidden;
}
.periph-logo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, #1e293b, #000);
  opacity: 0.8;
}
.periph-logo svg {
  position: relative; z-index: 1; width: 64px; height: 64px;
  color: #00d2ff; filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.8));
}
.periph-title {
  font-family: 'Orbitron', var(--font-body), sans-serif;
  font-size: 40px; font-weight: 700; color: #fff;
  letter-spacing: 0.01em; margin: 0 0 8px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.periph-subtitle {
  font-size: 24px; font-weight: 700; color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.15em; margin: 0;
}
.periph-price-row { margin: 24px 0 0; }
.periph-price {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px; padding: 6px 12px; margin-bottom: 24px;
}
.periph-price svg { width: 16px; height: 16px; color: #fff; }
.periph-price .cur { color: #fff; font-weight: 700; font-size: 20px; }
.periph-price .old { color: rgba(255, 255, 255, 0.6); font-size: 14px; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.4); }
.periph-price .tag { color: rgba(255, 255, 255, 0.8); font-size: 12px; margin-left: 8px; }
.periph-tags { display: flex; gap: 16px; color: rgba(255, 255, 255, 0.7); font-size: 14px; font-weight: 500; }
.periph-tags span { cursor: pointer; transition: color 0.2s; }
.periph-tags span:hover { color: #fff; }
.periph-more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff; font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.periph-more:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.periph-more svg { width: 14px; height: 14px; }
.periph-carousel {
  flex: 1 1 auto;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 24px 0;
  position: relative; z-index: 0;
  width: 100%;
}
.periph-track {
  display: flex; gap: 24px; align-items: center;
  height: auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 100%;
  padding: 0 24px 0 8px;
}
.periph-track::-webkit-scrollbar { display: none; }
.periph-track { -ms-overflow-style: none; scrollbar-width: none; }
.periph-card {
  flex-shrink: 0; width: 320px; min-width: 320px; aspect-ratio: 1.52 / 1;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  scroll-snap-align: start;
  transition: transform 0.3s;
  cursor: pointer;
}
.periph-card:hover { transform: scale(1.02); }
.periph-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.periph-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 42%, transparent 74%);
  opacity: 1; transition: opacity 0.3s;
}
.periph-card:hover .periph-grad { opacity: 1; }
.periph-cap {
  position: absolute; bottom: 24px; left: 24px;
  opacity: 1; transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.periph-card:hover .periph-cap { opacity: 1; transform: translateY(0); }
.periph-cap h3 {
  font-family: 'Orbitron', var(--font-body), sans-serif;
  font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 4px; text-shadow: 0 2px 8px rgba(0,0,0,0.85);
}
.periph-cap p { margin: 0; font-size: 14px; color: #7fe8ff; text-shadow: 0 1px 6px rgba(0,0,0,0.9); font-weight: 600; }
@media (min-width: 1024px) {
  .periph-shell { flex-direction: row; aspect-ratio: 3.22 / 1; height: auto; }
  .periph-brand { flex: 0 0 33.333%; width: 33.333%; padding: 24px 40px; }
  .periph-price-row { margin: 0; }
  .periph-carousel { padding: 0; }
  .periph-track { height: auto; gap: 32px; padding: 0 40px 0 0; }
  .periph-card { width: 360px; min-width: 360px; }
  .periph-logo { width: 112px; height: 112px; margin-bottom: 24px; }
  .periph-title { font-size: 34px; }
  .periph-subtitle { font-size: 21px; }
  .periph-price { margin-bottom: 16px; }
}

/* ---------- 顶栏操作：分享 + 登录 ---------- */
.btn-login {
  /* 官网 CommonButton 同款：双层 clip-path 边框 + 滑动切角背景 */
  --cb-clip: polygon(9.65723px .999985px, calc(100% - 4px) .999985px, calc(100% - 4px) .999985px, calc(100% - 3.432281px) 1.045794373px, calc(100% - 2.893728px) 1.178417824px, calc(100% - 2.391547px) 1.390649251px, calc(100% - 1.932944px) 1.675282552px, calc(100% - 1.525125px) 2.025111625px, calc(100% - 1.175296px) 2.432930368px, calc(100% - .890663px) 2.891532679px, calc(100% - .678432px) 3.393712456px, calc(100% - .545809px) 3.932263597px, calc(100% - .5px) 4.49998px, calc(100% - .5px) calc(100% - 10.1572px), calc(100% - .5px) calc(100% - 10.1572px), calc(100% - .510988px) calc(100% - 9.8800535px), calc(100% - .543624px) calc(100% - 9.606324px), calc(100% - .597416px) calc(100% - 9.3371965px), calc(100% - .671872px) calc(100% - 9.073856px), calc(100% - .7665px) calc(100% - 8.8174875px), calc(100% - .880808px) calc(100% - 8.569276px), calc(100% - 1.014304px) calc(100% - 8.3304065px), calc(100% - 1.166496px) calc(100% - 8.102064px), calc(100% - 1.336892px) calc(100% - 7.8854335px), calc(100% - 1.525px) calc(100% - 7.6817px), calc(100% - 7.182px) calc(100% - 2.0254px), calc(100% - 7.182px) calc(100% - 2.0254px), calc(100% - 7.385652px) calc(100% - 1.8371836px), calc(100% - 7.602216px) calc(100% - 1.6667008px), calc(100% - 7.830504px) calc(100% - 1.5144412px), calc(100% - 8.069328px) calc(100% - 1.3808944px), calc(100% - 8.3175px) calc(100% - 1.26655px), calc(100% - 8.573832px) calc(100% - 1.1718976px), calc(100% - 8.837136px) calc(100% - 1.0974268px), calc(100% - 9.106224px) calc(100% - 1.0436272px), calc(100% - 9.379908px) calc(100% - 1.0109884px), calc(100% - 9.657px) calc(100% - 1px), 4px calc(100% - 1px), 4px calc(100% - 1px), 3.432281px calc(100% - 1.045809px), 2.893728px calc(100% - 1.178432px), 2.391547px calc(100% - 1.390663px), 1.932944px calc(100% - 1.675296px), 1.525125px calc(100% - 2.025125px), 1.175296px calc(100% - 2.432944px), .890663px calc(100% - 2.891547px), .678432px calc(100% - 3.393728px), .545809px calc(100% - 3.932281px), .5px calc(100% - 4.5px), .5px 10.1572px, .5px 10.1572px, .510988741px 9.88004128px, .543628368px 9.60630424px, .597428987px 9.33717256px, .671900704px 9.07382992px, .766553625px 8.81746px, .880897856px 8.56924648px, 1.014443503px 8.33037304px, 1.166700672px 8.10202336px, 1.337179469px 7.88538112px, 1.52539px 7.68163px, 7.18164px 2.02538px, 7.18164px 2.02538px, 7.38539384px 1.8371686px, 7.60203832px 1.666689px, 7.83038988px 1.5144311px, 8.06926496px 1.3808848px, 8.31748px 1.26654px, 8.57385144px 1.1718866px, 8.83719572px 1.0974145px, 9.10632928px 1.0436136px, 9.38006856px 1.0109738px, 9.65723px .999985px);
  position: relative;
  display: inline-flex;
  padding: 1px;
  text-decoration: none;
  cursor: pointer;
  background: #24272b;
  clip-path: var(--cb-clip);
  transition: background 0.6s ease-in-out;
}
.btn-login .btn-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #24272b;
  clip-path: var(--cb-clip);
}
.btn-login .btn-frame::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: #fff;
  z-index: 2;
  transition: all 0.4s ease-in-out;
}
.btn-login:hover .btn-frame::before {
  left: 0;
  width: 100%;
}
.btn-login .btn-contents {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.4s ease-in-out;
}
.btn-login .btn-contents > svg:first-child { width: 16px; height: 16px; }
.btn-login .btn-arrow { width: 10px; height: 12px; transition: transform 0.4s ease-in-out; }
.btn-login:hover { background: #aeaeae; }
.btn-login:hover .btn-contents { color: #24272b; }
.btn-login:hover .btn-arrow { transform: translateX(3px); }
.btn-login svg { width: 16px; height: 16px; }
.btn-share {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--on-surface);
  border: 1px solid var(--outline); border-radius: 10px;
  padding: 8px 20px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer; transition: all 0.2s;
}
.btn-share:hover { border-color: var(--accent); color: var(--primary); background: rgba(0,229,255,0.08); }
.btn-share svg { width: 16px; height: 16px; }
.share-toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(16px);
  background: var(--inverse-surface, #2e3131); color: var(--inverse-on-surface, #eff1f1);
  font-size: 13px; font-weight: 600; padding: 10px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 999;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 导航二级 tab 条（双排导航 · 配色沿用站点浅色主题） ---------- */
.sub-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 32px;
  height: 42px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.30);
  border-top: 1px solid rgba(236, 238, 238, 0.55);
  overflow-x: auto;
}
.sub-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  color: var(--on-surface-variant);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  white-space: nowrap;
}
.sub-nav a:hover { color: var(--on-surface); }
.sub-nav a.active {
  color: var(--on-surface);
  font-weight: 700;
}
.sub-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--secondary);
}
@media (max-width: 900px) {
  .sub-nav { gap: 24px; padding: 0 20px; height: 40px; }
}



.hero.hero-fade::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.5px;          /* 向下沉降，盖住底部像素 */
  height: 56px;
  z-index: 2;
  pointer-events: none;
  /* ========================================================
     Gundam 官网同款：单个 SVG 内【fill 填充块 + stroke 描边线】
     fill = 下一节底色（白/浅灰），stroke = 管线浅灰 #AEAEAE
     坐标同源，天然对齐，不依赖 clip-path，不会出两条线
     ======================================================== */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 56' preserveAspectRatio='none'%3E%3Cpath d='M0 38H79L82 14H100V56H0Z' fill='%23f8fafa'/%3E%3Cpath d='M0 38H79L82 14H100' fill='none' stroke='%232a2a2a' stroke-width='1.25' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.hero.hero-fade {
  background: var(--background);
}


/* ============================================================
   销量排行榜 · 高达官网「三段式」改造
   碳黑深色区 #222 + 机甲切角卡片 + SVG 覆盖层分割线
   ============================================================ */

/* 深色精选区（碳黑 #222，官网 Featured_container 同款） */
.section-featured {
  background-color: #24272b !important;
  color: #fff !important;
  position: relative;
  padding-bottom: 200px;               /* 官网大留白 */
}
.section-featured .section-head { margin-bottom: 72px; }
.section-featured .headline-lg { color: #fff !important; }
.section-featured .rank-desc {
  color: #c3c7cc;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
}

/* 模块编号标签 MODULE.002 //（官网 customLabelM + 6x6 切角图标） */
.module-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: #00e5ff;                      /* 亮青，黑暗中更醒目 */
  margin-bottom: 14px;
}
.module-tag svg { color: #00e5ff; }

/* 榜内子编号 A // B // C // */
.rank-subtag {
  display: inline-block;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #00e5ff;
  margin-right: 10px;
  vertical-align: middle;
}

/* 三块榜构成 3 列，用细竖线分隔（官网管线灰） */
.rank-boards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;                              /* 用分隔线，不用大间距 */
  border: 1px solid rgba(255,255,255,0.14);   /* 完整外边框：上 下 左 右 */
}
.rank-board {
  background: transparent;             /* 透明，挂在深色区上 */
  border: none;
  border-right: 1px solid rgba(255,255,255,0.14);  /* 细竖线（低调） */
  border-radius: 0;
  box-shadow: none;
  padding: 36px 28px 40px;
  transition: background-color 0.3s;
}
.rank-board:last-child { border-right: none; }
.rank-board:hover {
  background-color: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
  box-shadow: none;
}
.rank-board-head {
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding: 0 0 18px;
  margin-bottom: 8px;
}
.rank-board-head h3 { color: #fff !important; }
.rank-board-head .see-all { color: #dcdcdc; }
.rank-board-head .see-all:hover { color: #00e5ff; }

/* 榜单行 */
.rank-row:hover { background-color: rgba(255,255,255,0.05); }
.rank-rank { color: #9aa1a8; }
.rank-rank.top1 { color: #ffd166; }
.rank-rank.top2 { color: #c8c8c8; }
.rank-rank.top3 { color: #e0956b; }
.rank-title { color: #fff !important; }
.rank-sub { color: #c3c7cc; }
.rank-price { color: #fff !important; }
.rank-tag {
  background: #0b5c66;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.14);
}
.rank-tag--low {
  background: rgba(255,80,80,0.12);
  color: #ff9d9d;
  border: 1px solid rgba(255,120,120,0.35);
}
.rank-badge {
  background: #1a1d20;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.14);
}

/* section-featured 与上方内容之间的机甲分割（SVG 覆盖层，向上顶） */


/* section-featured 与下方内容之间的机甲分割（向下贴边） */


/* 移动端：深色区三榜改单列，去掉竖分隔线改横线 */
@media (max-width: 900px) {
  .rank-boards { grid-template-columns: 1fr; border-top: none; border-bottom: none; }
  .rank-board { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.16); padding: 24px 16px; }
  .rank-board:last-child { border-bottom: none; }
}

/* 深色区 hover 时不冒上下边框色差 */
.section-featured::before, .section-featured::after { transition: none; }




/* ============================================================
   排行榜顶/底 机甲分割线（banner 同款路径，fill 用各自底色，top/bottom 偏移探入）
   ============================================================ */
.footer-divider {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -56px;                /* 顶部：黑色斜边向上探入白底 */
  height: 56px;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 56' preserveAspectRatio='none'%3E%3Cpath d='M0 38H79L82 14H100V56H0Z' fill='%2324272b'/%3E%3Cpath d='M0 38H79L82 14H100' fill='none' stroke='%232a2a2a' stroke-width='1.25' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.footer-divider--bottom {
  top: auto;
  bottom: 0;                 /* 底部：白带在深色区底缘、右端上抬 */
  height: 56px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 56' preserveAspectRatio='none'%3E%3Cpath d='M0 38H79L82 14H100V56H0Z' fill='%23f8fafa'/%3E%3Cpath d='M0 38H79L82 14H100' fill='none' stroke='%232a2a2a' stroke-width='1.25' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

/* ============ 官网 CommonButton 通用组件（浅色区按钮：投稿 / 加载更多） ============ */
.cb-btn {
  --cb-clip: polygon(9.65723px .999985px, calc(100% - 4px) .999985px, calc(100% - 4px) .999985px, calc(100% - 3.432281px) 1.045794373px, calc(100% - 2.893728px) 1.178417824px, calc(100% - 2.391547px) 1.390649251px, calc(100% - 1.932944px) 1.675282552px, calc(100% - 1.525125px) 2.025111625px, calc(100% - 1.175296px) 2.432930368px, calc(100% - .890663px) 2.891532679px, calc(100% - .678432px) 3.393712456px, calc(100% - .545809px) 3.932263597px, calc(100% - .5px) 4.49998px, calc(100% - .5px) calc(100% - 10.1572px), calc(100% - .5px) calc(100% - 10.1572px), calc(100% - .510988px) calc(100% - 9.8800535px), calc(100% - .543624px) calc(100% - 9.606324px), calc(100% - .597416px) calc(100% - 9.3371965px), calc(100% - .671872px) calc(100% - 9.073856px), calc(100% - .7665px) calc(100% - 8.8174875px), calc(100% - .880808px) calc(100% - 8.569276px), calc(100% - 1.014304px) calc(100% - 8.3304065px), calc(100% - 1.166496px) calc(100% - 8.102064px), calc(100% - 1.336892px) calc(100% - 7.8854335px), calc(100% - 1.525px) calc(100% - 7.6817px), calc(100% - 7.182px) calc(100% - 2.0254px), calc(100% - 7.182px) calc(100% - 2.0254px), calc(100% - 7.385652px) calc(100% - 1.8371836px), calc(100% - 7.602216px) calc(100% - 1.6667008px), calc(100% - 7.830504px) calc(100% - 1.5144412px), calc(100% - 8.069328px) calc(100% - 1.3808944px), calc(100% - 8.3175px) calc(100% - 1.26655px), calc(100% - 8.573832px) calc(100% - 1.1718976px), calc(100% - 8.837136px) calc(100% - 1.0974268px), calc(100% - 9.106224px) calc(100% - 1.0436272px), calc(100% - 9.379908px) calc(100% - 1.0109884px), calc(100% - 9.657px) calc(100% - 1px), 4px calc(100% - 1px), 4px calc(100% - 1px), 3.432281px calc(100% - 1.045809px), 2.893728px calc(100% - 1.178432px), 2.391547px calc(100% - 1.390663px), 1.932944px calc(100% - 1.675296px), 1.525125px calc(100% - 2.025125px), 1.175296px calc(100% - 2.432944px), .890663px calc(100% - 2.891547px), .678432px calc(100% - 3.393728px), .545809px calc(100% - 3.932281px), .5px calc(100% - 4.5px), .5px 10.1572px, .5px 10.1572px, .510988741px 9.88004128px, .543628368px 9.60630424px, .597428987px 9.33717256px, .671900704px 9.07382992px, .766553625px 8.81746px, .880897856px 8.56924648px, 1.014443503px 8.33037304px, 1.166700672px 8.10202336px, 1.337179469px 7.88538112px, 1.52539px 7.68163px, 7.18164px 2.02538px, 7.18164px 2.02538px, 7.38539384px 1.8371686px, 7.60203832px 1.666689px, 7.83038988px 1.5144311px, 8.06926496px 1.3808848px, 8.31748px 1.26654px, 8.57385144px 1.1718866px, 8.83719572px 1.0974145px, 9.10632928px 1.0436136px, 9.38006856px 1.0109738px, 9.65723px .999985px);
  position: relative;
  display: inline-flex;
  padding: 1px;
  border: none;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  background: #24272b;
  clip-path: var(--cb-clip);
  transition: background 0.6s ease-in-out;
  font-family: inherit;
}
.cb-btn .cb-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #24272b;
  clip-path: var(--cb-clip);
}
.cb-btn .cb-frame::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: #fff;
  z-index: 2;
  transition: all 0.4s ease-in-out;
}
.cb-btn:hover .cb-frame::before { left: 0; width: 100%; }
.cb-btn .cb-contents {
  line-height: normal;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.4s ease-in-out;
}
.cb-btn:hover { background: #aeaeae; }
.cb-btn:hover .cb-contents { color: #24272b; }
.cb-btn .cb-contents svg { width: 14px; height: 14px; }
/* 白色变体（次按钮：白底黑字灰边，hover 黑滑入白字） */
.cb-btn.cb-white { background: #aeaeae; }
.cb-btn.cb-white .cb-frame { background: #fff; }
.cb-btn.cb-white .cb-frame::before { background: #24272b; }
.cb-btn.cb-white .cb-contents { color: #24272b; }
.cb-btn.cb-white:hover { background: #24272b; }
.cb-btn.cb-white:hover .cb-contents { color: #fff; }


/* Hero 后首个 section 增加顶部留白，缓冲折线过渡 */
.hero + .section { padding-top: 140px; }

/* ============ 官网同款：三圆角一个切角（CSS mask 遮罩，右下 45° 斜切） ============ */
/* 官方标准切角固定 12px：每种卡片按其实际宽高比单独出遮罩，切角不随卡片宽度放大 */
/* 切角：gundam 官网同款 clip-path 对角切角（大卡 12px / 中卡 8px），各变体见下 */
.clip-cut {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 240 339' fill='black'><path fill='white' d='M0 5.00001C0 2.23859 2.23858 0 5 0L235 0C237.761 0 240 2.23858 240 5L240 322.088C240 323.395 239.488 324.65 238.575 325.584L226.925 337.496C225.985 338.458 224.696 339 223.351 339L5 339C2.23857 339 0 336.761 0 334L0 5.00001Z'/></svg>");
  mask-repeat: no-repeat;
  mask-size: cover;
  mask-position: right bottom;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 240 339' fill='black'><path fill='white' d='M0 5.00001C0 2.23859 2.23858 0 5 0L235 0C237.761 0 240 2.23858 240 5L240 322.088C240 323.395 239.488 324.65 238.575 325.584L226.925 337.496C225.985 338.458 224.696 339 223.351 339L5 339C2.23857 339 0 336.761 0 334L0 5.00001Z'/></svg>");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  -webkit-mask-position: right bottom;
}
.brief-media.clip-cut {
}
.thread-item.clip-cut {
  /* 横版列表卡专用：匹配 1344x140 宽高比，右下切角固定 20px，避免 cover 拉伸竖版 mask 导致切角过大 */
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 1344 140' fill='black'><path fill='white' d='M0 0 L1344 0 L1344 120 L1324 140 L0 140 Z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 1344 140' fill='black'><path fill='white' d='M0 0 L1344 0 L1344 120 L1324 140 L0 140 Z'/></svg>");
}
.gallery-item.clip-cut {
}
.gallery-item.large.clip-cut {
}
.gallery-item.wide.clip-cut {
}
.deal-media.clip-cut {
}
.deal-card.clip-cut {
  /* 仅填补左下角：在竖版切角 mask 上叠加左下角 64px 方块（多层 mask 默认 union 合成），
     使左下角圆角与左上角一致；右下对角切角与其余三边原样保留 */
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 240 339' fill='black'><path fill='white' d='M0 5.00001C0 2.23859 2.23858 0 5 0L235 0C237.761 0 240 2.23858 240 5L240 322.088C240 323.395 239.488 324.65 238.575 325.584L226.925 337.496C225.985 338.458 224.696 339 223.351 339L5 339C2.23857 339 0 336.761 0 334L0 5.00001Z'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 56 56' fill='black'><rect width='56' height='56' fill='white'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 240 339' fill='black'><path fill='white' d='M0 5.00001C0 2.23859 2.23858 0 5 0L235 0C237.761 0 240 2.23858 240 5L240 322.088C240 323.395 239.488 324.65 238.575 325.584L226.925 337.496C225.985 338.458 224.696 339 223.351 339L5 339C2.23857 339 0 336.761 0 334L0 5.00001Z'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' viewBox='0 0 56 56' fill='black'><rect width='56' height='56' fill='white'/></svg>");
  mask-size: cover, 64px 64px;
  -webkit-mask-size: cover, 64px 64px;
  mask-position: right bottom, left bottom;
  -webkit-mask-position: right bottom, left bottom;
  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-repeat: no-repeat, no-repeat;
}
.brief-media {
  border-radius: 5px;
  overflow: hidden;
}
.deal-media {
  overflow: hidden;
}
