/* ===== 品牌色覆盖 - 暖色系搭配夕阳背景 ===== */
:root {
  --vp-brand-1: #d97706;
  --vp-brand-2: #b45309;
  --vp-brand-3: #92400e;
  --vp-c-brand-1: #d97706;
  --vp-c-brand-2: #b45309;
  --vp-c-brand-3: #92400e;
  --vp-c-brand-soft: rgba(217, 119, 6, 0.14);
  --vp-button-brand-bg: #d97706;
  --vp-button-brand-hover-bg: #b45309;
  --vp-button-brand-border: #d97706;
  --vp-button-brand-hover-border: #b45309;
}

.dark {
  --vp-brand-1: #f59e0b;
  --vp-brand-2: #d97706;
  --vp-brand-3: #b45309;
  --vp-c-brand-1: #f59e0b;
  --vp-c-brand-2: #d97706;
  --vp-c-brand-3: #b45309;
  --vp-c-brand-soft: rgba(245, 158, 11, 0.16);
  --vp-button-brand-bg: #d97706;
  --vp-button-brand-hover-bg: #b45309;
  --vp-button-brand-border: #d97706;
  --vp-button-brand-hover-border: #b45309;
}

/* ===== 详细条款标签 ===== */
.rule-clause {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.8rem 0;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--vp-c-divider);
  background: var(--vp-c-bg-soft);
  line-height: 1.7;
}

.rule-clause .clause-body {
  flex: 1;
  min-width: 0;
}

/* 永久封禁 - 红 */
.rule-clause.tier-permaban {
  border-left-color: #e5484d;
  background: rgba(229, 72, 77, 0.07);
}

/* 封号2天 - 橙 */
.rule-clause.tier-2d {
  border-left-color: #f5a623;
  background: rgba(245, 166, 35, 0.07);
}

/* 封号3天 - 黄绿 */
.rule-clause.tier-3d {
  border-left-color: #a3c53e;
  background: rgba(163, 197, 62, 0.07);
}

/* 封号5天 - 蓝 */
.rule-clause.tier-5d {
  border-left-color: #4a90d9;
  background: rgba(74, 144, 217, 0.07);
}

/* 兜底 - 灰 */
.rule-clause.tier-misc {
  border-left-color: #8a8a8a;
  background: rgba(138, 138, 138, 0.1);
}

/* 档次标签 */
.tier-tag {
  display: inline-block;
  flex-shrink: 0;
  min-width: 70px;
  text-align: center;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
}

.tier-permaban .tier-tag { background: #e5484d; }
.tier-2d .tier-tag { background: #f5a623; }
.tier-3d .tier-tag { background: #a3c53e; }
.tier-5d .tier-tag { background: #4a90d9; }
.tier-misc .tier-tag { background: #8a8a8a; }

/* 关键词高亮 */
.kw-permaban {
  color: #e5484d;
  font-weight: 600;
}
.kw-ban {
  color: #4a90d9;
  font-weight: 600;
}
.kw-asset {
  color: #f5a623;
  font-weight: 600;
}
.kw-compensate {
  color: #a3c53e;
  font-weight: 600;
}

/* ===== 处罚速查表 ===== */
.penalty-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.penalty-table {
  display: table !important;
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.penalty-table th,
.penalty-table td {
  border: 1px solid var(--vp-c-divider);
  padding: 0.6rem 1rem;
  text-align: left;
  word-break: break-word;
}

.penalty-table thead th {
  background: var(--vp-c-bg-soft);
  font-weight: 600;
}

.penalty-table .col-level {
  text-align: center;
  width: 60px;
}

.penalty-table td:first-child {
  text-align: center;
  font-weight: 600;
}

.penalty-table td:last-child {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

/* 档次单元格颜色 */
.penalty-table td.lv1 { color: #e5484d; }
.penalty-table td.lv2 { color: #f5a623; }
.penalty-table td.lv3 { color: #a3c53e; }
.penalty-table td.lv4 { color: #4a90d9; }

/* 移动端 */
@media (max-width: 768px) {
  .rule-clause {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem 0.8rem;
  }

  .rule-clause .tier-tag {
    align-self: flex-start;
  }

  .penalty-table th,
  .penalty-table td {
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
  }

  .penalty-table td:last-child {
    white-space: normal;
    font-size: 0.85rem;
  }
}

/* ===== 首页 Hero 背景图 ===== */
.VPHero {
  position: relative;
  margin-top: calc(-1 * var(--vp-nav-height));
  padding-top: calc(var(--vp-nav-height) + 5rem) !important;
  padding-bottom: 8rem !important;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

/* 限制 Hero 文字宽度，避免两侧过度延伸 */
.VPHome .VPHero .container {
  max-width: 820px;
}

/* ===== 首页导航栏 - 深色半透明背景保证可读性 ===== */
.VPHome .VPNav .VPNavBar {
  background-color: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 导航栏所有文字统一白色 */
.VPHome .VPNav .VPNavBar,
.VPHome .VPNav .VPNavBar * {
  color: #fff !important;
}

.VPHome .VPNav .VPNavBar .VPImage,
.VPHome .VPNav .VPNavBar svg {
  filter: brightness(0) invert(1);
}

/* 搜索框边框 */
.VPHome .VPNav .VPNavBar .search-button {
  border-color: rgba(255, 255, 255, 0.25) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.VPHero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

/* ===== 亮色模式遮罩 - 顶部轻暗保证文字可读，底部渐变到页面背景 ===== */
.VPHero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.08) 30%,
    rgba(0, 0, 0, 0.12) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    rgba(255, 255, 255, 0.55) 90%,
    var(--vp-c-bg) 100%
  );
  z-index: -1;
}

/* ===== 暗色模式遮罩 - 深色基调，底部渐变到暗色背景 ===== */
.dark .VPHero::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.28) 50%,
    rgba(0, 0, 0, 0.15) 75%,
    rgba(0, 0, 0, 0.3) 90%,
    var(--vp-c-bg) 100%
  );
}

.VPHero .name,
.VPHero .text {
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 0, 0, 0.3);
}

.VPHero .tagline {
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.VPHero .actions .VPButton {
  transition: all 0.3s ease;
}

.VPHero .actions .VPButton:hover {
  transform: translateY(-3px);
}

.VPHome .VPHero .image-container {
  display: none;
}

/* ===== Features 区域 - 参考 example.html 卡片风格 ===== */
.VPHome .VPFeatures {
  position: relative;
  background: var(--vp-c-bg);
  padding: 4rem 1.5rem 2rem;
  margin-top: -3rem;
  z-index: 1;
}

.VPHome .VPFeatures .container {
  max-width: 1100px;
  margin: 0 auto;
}

.VPHome .VPFeatures .VPFeature .icon {
  display: none;
}

.VPHome .VPFeatures .VPFeature .title {
  font-size: 1.2rem;
  font-weight: 700;
}

.VPHome .VPFeatures .VPFeature .details {
  line-height: 1.7;
}

.VPHome .VPFeatures .VPFeature {
  border-radius: 12px;
  border: 1px solid var(--vp-c-divider);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.VPHome .VPFeatures .VPFeature:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* ===== 首页简介区 ===== */
.home-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
  text-align: center;
}

.home-intro p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--vp-c-text-2);
  margin: 0.6rem 0;
}

/* ===== 首页数据条 ===== */
.home-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2.5rem 1.5rem;
  background: rgba(217, 119, 6, 0.05);
  border-radius: 12px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.home-stat {
  text-align: center;
}

.home-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #d97706;
}

.home-stat-label {
  font-size: 0.85rem;
  color: var(--vp-c-text-2);
  margin-top: 0.3rem;
}

/* ===== 首页通用区块 ===== */
.home-extra {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.home-section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 4rem 0 0.5rem;
  border-top: none;
  padding-top: 0;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.home-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: #d97706;
}

.home-section-desc {
  text-align: center;
  color: var(--vp-c-text-2);
  font-size: 1rem;
  margin: 0 0 2.5rem;
}

/* ===== 截图画廊 ===== */
.home-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.home-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--vp-c-divider);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}

.home-gallery-item:hover {
  transform: scale(1.03);
}

.home-gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
}

.home-gallery-title {
  font-weight: 700;
  font-size: 1rem;
}

.home-gallery-desc {
  font-size: 0.8rem;
  opacity: 0.85;
}

.home-gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vp-c-bg);
  border: 2px dashed var(--vp-c-divider);
}

.home-placeholder-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--vp-c-text-3);
  font-size: 0.9rem;
}

.home-placeholder-icon {
  font-size: 2.5rem;
}

/* ===== 加入步骤 ===== */
.home-steps {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.home-step {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  text-align: left;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--vp-c-bg-soft);
  border: 1px solid var(--vp-c-divider);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.home-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d97706;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.home-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  border-top: none;
  padding-top: 0;
}

.home-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--vp-c-text-2);
  line-height: 1.6;
}

/* ===== CTA 区域 ===== */
.home-cta {
  text-align: center;
  padding: 2.5rem 1.5rem 1rem;
  margin-top: 1rem;
}

.home-cta p {
  font-size: 0.95rem;
  color: var(--vp-c-text-2);
  margin: 0 0 1.2rem;
}

.home-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--vp-c-brand-1);
  color: #fff !important;
  border: none;
  transition: all 0.25s;
}

.home-cta-btn:hover {
  background: var(--vp-c-brand-2);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
}

/* ===== 首页移动端 ===== */
@media (max-width: 768px) {
  .home-stats {
    gap: 1.5rem;
  }

  .home-extra {
    padding: 2rem 1rem;
  }

  .home-section-title {
    font-size: 1.5rem;
  }
}
