/**
 * K4电竞 - 服务页专用样式
 * 职责：服务页组件样式（Hero、价格卡片、流程时间线、案例展示等）
 * 调性：低调奢华，精致质感
 * 目标：与首页同等质感
 */

/* ===== Hero Service - 对齐首页 ===== */
.hero-service {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

/* Hero 内容容器 - 对齐首页样式 */
.hero-service .glass,
.hero-service .k4-panel {
  position: relative;
  z-index: 2;
}

/* Hero 主标题 - 对齐首页文字渲染 */
.hero-service .section-title {
  color: rgba(255, 255, 255, 1);
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.8),
    0 0 4px rgba(216, 195, 143, 0.15);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
  letter-spacing: 0.01em;
}

/* Hero 副标题 - 对齐首页 */
.hero-service .section-subtitle {
  color: rgba(220, 230, 240, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

/* ===== Service Chips（适合人群标签）- 低调奢华版 ===== */
.service-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  line-height: 1.25rem;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, rgba(216, 195, 143, 0.08), rgba(216, 195, 143, 0.04));
  border: 1px solid rgba(216, 195, 143, 0.15);
  color: rgba(216, 195, 143, 0.85);
  white-space: nowrap;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.service-chip:hover {
  border-color: rgba(216, 195, 143, 0.22);
  background: linear-gradient(135deg, rgba(216, 195, 143, 0.12), rgba(216, 195, 143, 0.06));
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
  color: rgba(245, 248, 255, 0.95);
}

a.service-chip {
  cursor: pointer;
}

a.service-chip:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 2px rgba(216, 195, 143, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===== Hero 主按钮（统一交互识别） ===== */
.k4-hero-btn {
  --hero-btn-border: rgba(216, 195, 143, 0.34);
  --hero-btn-glow: rgba(216, 195, 143, 0.28);
  --hero-btn-glow-strong: rgba(216, 195, 143, 0.46);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.75rem;
  min-height: 2.85rem;
  padding: 0.72rem 1.45rem;
  border-radius: 999px;
  border: 1px solid var(--hero-btn-border);
  background:
    linear-gradient(135deg, rgba(9, 16, 24, 0.88), rgba(9, 16, 24, 0.7));
  color: rgba(248, 250, 252, 0.96);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(216, 195, 143, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.34),
    0 10px 24px rgba(2, 6, 23, 0.42);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease,
    box-shadow 0.24s ease,
    letter-spacing 0.24s ease;
  overflow: hidden;
  isolation: isolate;
  will-change: transform, box-shadow;
  animation: k4HeroBtnBreath 2.7s ease-in-out infinite;
}

.k4-hero-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transform: scale(0.96);
  background:
    radial-gradient(65% 100% at 50% 100%, rgba(216, 195, 143, 0.3), transparent 72%);
  filter: blur(7px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.k4-hero-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 18%, rgba(216, 195, 143, 0.2) 48%, transparent 78%);
  transform: translateX(-130%);
  transition: transform 0.55s ease, opacity 0.24s ease;
  opacity: 0;
  pointer-events: none;
}

.k4-hero-btn:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(216, 195, 143, 0.52);
  color: #ffffff;
  letter-spacing: 0.035em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 14px 30px rgba(2, 6, 23, 0.5),
    0 0 18px var(--hero-btn-glow-strong);
}

.k4-hero-btn:hover::before {
  opacity: 1;
  transform: scale(1);
}

.k4-hero-btn:hover::after {
  opacity: 1;
  transform: translateX(130%);
}

.k4-hero-btn:active {
  transform: translateY(-1px) scale(0.985);
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 0 rgba(0, 0, 0, 0.36),
    0 8px 18px rgba(2, 6, 23, 0.42),
    0 0 12px rgba(216, 195, 143, 0.24);
}

.k4-hero-btn:focus-visible {
  outline: none;
  border-color: rgba(216, 195, 143, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32),
    0 0 0 2px rgba(216, 195, 143, 0.32),
    0 12px 28px rgba(2, 6, 23, 0.5);
}

.k4-hero-btn--secondary {
  background: linear-gradient(135deg, rgba(12, 18, 28, 0.7), rgba(12, 18, 28, 0.56));
  border-color: rgba(148, 163, 184, 0.34);
  color: rgba(226, 232, 240, 0.94);
  text-shadow: none;
}

.k4-hero-btn--secondary:hover {
  border-color: rgba(216, 195, 143, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 14px 30px rgba(2, 6, 23, 0.45),
    0 0 14px rgba(148, 163, 184, 0.22);
}

@keyframes k4HeroBtnBreath {
  0% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(0, 0, 0, 0.34),
      0 10px 24px rgba(2, 6, 23, 0.42),
      0 0 0 rgba(216, 195, 143, 0);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -1px 0 rgba(0, 0, 0, 0.32),
      0 12px 28px rgba(2, 6, 23, 0.46),
      0 0 14px rgba(216, 195, 143, 0.22);
  }
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(0, 0, 0, 0.34),
      0 10px 24px rgba(2, 6, 23, 0.42),
      0 0 0 rgba(216, 195, 143, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .k4-hero-btn {
    animation: none;
    transition: none;
  }

  .k4-hero-btn::before,
  .k4-hero-btn::after {
    transition: none;
  }
}

/* ===== 三问模板（全站服务页统一） ===== */
.three-template-shell {
  position: relative;
  overflow: hidden;
  border-color: rgba(160, 180, 214, 0.2) !important;
  background:
    linear-gradient(155deg, rgba(6, 14, 24, 0.86) 0%, rgba(6, 13, 23, 0.72) 50%, rgba(7, 17, 30, 0.84) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 16px 36px rgba(2, 8, 20, 0.34),
    0 0 24px rgba(56, 189, 248, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.three-template-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 80% at 8% 0%, rgba(56, 189, 248, 0.09), transparent 65%),
    radial-gradient(60% 80% at 100% 100%, rgba(216, 195, 143, 0.08), transparent 68%);
}

.three-template-shell #three-question-template {
  position: relative;
  z-index: 1;
  margin-top: 0.12rem;
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
}

.three-template-shell #three-question-template .three-template-item,
.three-template-shell #three-question-template > li,
.three-template-shell #three-question-template > div {
  position: relative;
  list-style: none;
  border: 1px solid rgba(160, 180, 214, 0.24);
  border-radius: 1rem;
  padding: 0.8rem 1.05rem 0.8rem 1.2rem;
  line-height: 1.6;
  color: rgba(236, 244, 255, 0.95);
  background:
    linear-gradient(96deg, rgba(18, 29, 44, 0.84) 0%, rgba(15, 25, 39, 0.7) 52%, rgba(12, 22, 36, 0.82) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(2, 8, 20, 0.24);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.three-template-shell #three-question-template .three-template-item::before,
.three-template-shell #three-question-template > li::before,
.three-template-shell #three-question-template > div::before {
  content: '';
  position: absolute;
  left: 0.58rem;
  top: 50%;
  width: 0.22rem;
  height: 55%;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(216, 195, 143, 0.9), rgba(56, 189, 248, 0.82));
  box-shadow: 0 0 10px rgba(216, 195, 143, 0.35);
}

.three-template-shell #three-question-template .three-template-item:hover,
.three-template-shell #three-question-template > li:hover,
.three-template-shell #three-question-template > div:hover {
  transform: translateX(2px);
  border-color: rgba(216, 195, 143, 0.46);
  background:
    linear-gradient(96deg, rgba(26, 38, 55, 0.86) 0%, rgba(21, 33, 50, 0.74) 52%, rgba(16, 28, 44, 0.84) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(2, 8, 20, 0.28);
}

.three-template-shell .k4-btn {
  position: relative;
  z-index: 1;
  min-width: 9.4rem;
  min-height: 2.6rem;
  padding: 0.62rem 1.1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(216, 195, 143, 0.46);
  background:
    linear-gradient(120deg, rgba(6, 16, 30, 0.95) 0%, rgba(4, 10, 20, 0.9) 100%);
  color: rgba(247, 232, 188, 0.96);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.012em;
  text-shadow: 0 0 10px rgba(216, 195, 143, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 18px rgba(2, 8, 20, 0.3);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.three-template-shell .k4-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 195, 143, 0.64);
  color: #fff7dc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 22px rgba(2, 8, 20, 0.34),
    0 0 16px rgba(216, 195, 143, 0.2);
}

/* ===== Service Include/Exclude（包含项/不包含项）- 精致版 ===== */
.service-include,
.service-exclude {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 0;
  transition: all 0.3s ease;
}

.service-include:hover {
  transform: translateX(2px);
}

.service-include-icon {
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(216, 195, 143, 0.12), rgba(216, 195, 143, 0.06));
  border: 1px solid rgba(216, 195, 143, 0.2);
  color: rgba(216, 195, 143, 0.9);
  font-weight: 600;
  font-size: 0.75rem;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.service-include:hover .service-include-icon {
  border-color: rgba(216, 195, 143, 0.28);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 3px 8px rgba(0, 0, 0, 0.25);
}

.service-exclude-icon {
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.08), rgba(156, 163, 175, 0.04));
  border: 1px solid rgba(156, 163, 175, 0.15);
  color: rgba(156, 163, 175, 0.7);
  font-weight: 600;
  font-size: 0.75rem;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ===== Pricing Cards（价格卡片）- 奢华版 ===== */
.pricing-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--panel-bg), rgba(10, 16, 22, 0.55));
  border: 1px solid var(--panel-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(216, 195, 143, 0.02) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.pricing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 195, 143, 0.22);
  box-shadow:
    inset 0 1px 0 var(--panel-hairline),
    inset 0 -18px 36px rgba(0, 0, 0, 0.52),
    0 28px 80px rgba(0, 0, 0, 0.65),
    0 0 24px rgba(216, 195, 143, 0.12);
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card-featured {
  border-color: rgba(216, 195, 143, 0.18);
  background: linear-gradient(180deg, rgba(10, 16, 22, 0.68), rgba(10, 16, 22, 0.58));
  box-shadow:
    inset 0 1px 0 var(--panel-hairline),
    inset 0 -18px 36px rgba(0, 0, 0, 0.5),
    0 24px 75px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(216, 195, 143, 0.08);
}

.pricing-card-featured:hover {
  border-color: rgba(216, 195, 143, 0.26);
  box-shadow:
    inset 0 1px 0 var(--panel-hairline),
    inset 0 -18px 36px rgba(0, 0, 0, 0.55),
    0 30px 85px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(216, 195, 143, 0.16);
}

.pricing-card-badge {
  position: absolute;
  top: -0.5rem;
  right: 1.25rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(216, 195, 143, 0.15), rgba(216, 195, 143, 0.08));
  border: 1px solid rgba(216, 195, 143, 0.22);
  color: rgba(216, 195, 143, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.pricing-card-header {
  margin-bottom: 1rem;
}

.pricing-card-body {
  font-size: 0.875rem;
}

/* ===== Process Timeline（流程时间线）- 精致版 ===== */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  position: relative;
  padding-left: 0.25rem;
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateX(4px);
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.875rem;
  top: 2.75rem;
  width: 1px;
  height: calc(100% + 0.5rem);
  background: linear-gradient(180deg, 
    rgba(216, 195, 143, 0.25) 0%,
    rgba(216, 195, 143, 0.15) 30%,
    rgba(216, 195, 143, 0.08) 60%,
    transparent 100%
  );
}

.process-step-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(216, 195, 143, 0.12), rgba(216, 195, 143, 0.06));
  border: 1px solid rgba(216, 195, 143, 0.2);
  color: rgba(216, 195, 143, 0.9);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: -0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.process-step:hover .process-step-number {
  border-color: rgba(216, 195, 143, 0.28);
  background: linear-gradient(135deg, rgba(216, 195, 143, 0.16), rgba(216, 195, 143, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 3px 10px rgba(0, 0, 0, 0.3);
}

.process-step-content {
  flex: 1;
  padding-top: 0.125rem;
}

/* ===== Case Items（案例展示）- 精致版 ===== */
.case-item {
  position: relative;
  transition: all 0.4s ease;
}

.case-item:hover {
  transform: translateY(-4px);
}

.case-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(216, 195, 143, 0.1);
  text-align: center;
  color: rgba(156, 163, 175, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.case-item:hover .case-image-placeholder {
  border-color: rgba(216, 195, 143, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 16px rgba(0, 0, 0, 0.4);
}

.case-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  border: 1px solid rgba(216, 195, 143, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
}

.case-item:hover img {
  border-color: rgba(216, 195, 143, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ===== 移动端适配 ===== */
@media (max-width: 767px) {
  .hero-service {
    padding-top: 1rem;
  }

  .service-chip {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .k4-hero-btn {
    min-width: 7.8rem;
    min-height: 2.65rem;
    padding: 0.64rem 1.18rem;
    font-size: 0.84rem;
  }

  .three-template-shell {
    padding: 0.88rem !important;
    border-radius: 1rem !important;
  }

  .three-template-shell #three-question-template {
    gap: 0.6rem;
  }

  .three-template-shell #three-question-template .three-template-item,
  .three-template-shell #three-question-template > li,
  .three-template-shell #three-question-template > div {
    padding: 0.64rem 0.8rem 0.64rem 1.04rem;
    border-radius: 0.84rem;
    font-size: 0.88rem;
    line-height: 1.58;
  }

  .three-template-shell #three-question-template .three-template-item::before,
  .three-template-shell #three-question-template > li::before,
  .three-template-shell #three-question-template > div::before {
    left: 0.5rem;
    width: 0.19rem;
  }

  .pricing-card {
    padding: 1.25rem;
  }

  .process-step {
    gap: 0.75rem;
  }

  .process-step-number {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
  }

  .case-image-placeholder {
    aspect-ratio: 16 / 9;
  }
}

/* ===== 按钮优化 - 奢华版 ===== */
body.theme-obsidian .k4-btn {
  background: linear-gradient(135deg, 
    rgba(10, 16, 22, 0.75) 0%,
    rgba(10, 16, 22, 0.65) 100%
  );
  border: 1px solid rgba(216, 195, 143, 0.18);
  color: rgba(245, 248, 255, 0.9);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.5rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 0 8px rgba(216, 195, 143, 0.12);
}

body.theme-obsidian .k4-btn:hover {
  border-color: rgba(216, 195, 143, 0.28);
  background: linear-gradient(135deg, 
    rgba(10, 16, 22, 0.85) 0%,
    rgba(10, 16, 22, 0.75) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 6px 16px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(216, 195, 143, 0.1);
  text-shadow: 0 0 12px rgba(216, 195, 143, 0.18);
  transform: translateY(-1px);
}

/* 移除默认glow效果，使用更精致的阴影 */
body.theme-obsidian .glass.glow,
body.theme-obsidian .k4-panel.k4-glow {
  box-shadow:
    inset 0 1px 0 var(--panel-hairline),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    inset 0 -24px 48px rgba(0, 0, 0, 0.52),
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.2) inset;
}

body.theme-obsidian .glass.glow:hover,
body.theme-obsidian .k4-panel.k4-glow:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    inset 0 -24px 48px rgba(0, 0, 0, 0.58),
    0 28px 90px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.3) inset,
    0 0 24px rgba(216, 195, 143, 0.08);
}

/* ===== 文字渲染优化 ===== */
body.theme-obsidian {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.theme-obsidian .section-title,
body.theme-obsidian h1,
body.theme-obsidian h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
}

/* ===== 间距优化 - 对齐首页节奏系统 ===== */
.rhythm-section {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Section 头部结构 - 对齐首页 */
.rhythm-section .section-header {
  margin-bottom: 1.5rem;
}

.rhythm-section .section-title {
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.rhythm-section .section-subtitle {
  color: rgba(168, 213, 226, 0.8);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Section 分隔线 - 对齐首页 */
.rhythm-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1200px);
  max-width: calc(100% - 2rem);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(216, 195, 143, 0.12) 20%,
    rgba(216, 195, 143, 0.18) 50%,
    rgba(216, 195, 143, 0.12) 80%,
    transparent 100%
  );
  opacity: 0.3;
  pointer-events: none;
}

.rhythm-section:last-child::after {
  display: none;
}

@media (max-width: 767px) {
  .rhythm-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
