/* ============================================================
   诞先云党建系统官网
   色彩令牌遵循 docs/品牌规范：红渐变 #8e1010 → #b91c1c → #cf3a1e
   金色仅作点缀（星、分隔线、徽标），页面底色米白，正文墨色
   ============================================================ */

:root {
  --red-deep: #8e1010;
  --red: #b91c1c;
  --red-bright: #cf3a1e;
  --red-accent: #c7000b;

  --gold: #f2cf8a;
  --gold-light: #f6d78a;
  --gold-line: #d9b96f;

  --bg: #fbf7f0;
  --bg-warm: #f6f0e4;
  --surface: #ffffff;
  --ink: #2b2320;
  --ink-2: #7a6e66;
  --line: #efe7db;
  --line-strong: #e2d5c2;

  --serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', SimSun, serif;
  --sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 2px 10px rgba(142, 16, 16, 0.06);
  --shadow-md: 0 10px 30px rgba(142, 16, 16, 0.1);
  --shadow-lg: 0 22px 60px rgba(142, 16, 16, 0.16);

  --gradient-red: linear-gradient(135deg, #8e1010 0%, #b91c1c 52%, #cf3a1e 100%);
  --gradient-gold: linear-gradient(135deg, #f2cf8a 0%, #e0b463 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  /* 必须显式 auto：HTML 上的 width/height 属性会被浏览器当作"表现高度"，
     若只设 width:100% 而不覆盖 height，图片会被拉成容器宽 × 固定高而压扁变形。 */
  height: auto;
  display: block;
}

/* 长英文串 / URL / 无空格文本的保护，防止撑破容器 */
h1,
h2,
h3,
h4,
p,
li,
a,
span,
strong,
small,
figcaption {
  overflow-wrap: anywhere;
  word-break: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  z-index: 999;
}

.skip-link:focus {
  left: 0;
}

/* ---------- 顶部导航 ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--gradient-red);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 42px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--red-deep);
}

.brand-sub {
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 15px;
  color: var(--ink);
  position: relative;
  padding-block: 4px;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gradient-red);
  transition: right 0.25s ease;
}

.nav-links a:hover::after {
  right: 0;
}

.nav-cta {
  background: var(--red-accent);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(199, 0, 11, 0.24);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--red-deep);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--ink);
  cursor: pointer;
}

/* ---------- 通用区块 ---------- */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-warm);
}

.section-dark {
  background: linear-gradient(160deg, #6d0c0c 0%, #8e1010 45%, #a51818 100%);
  color: #fdf6ee;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--red-accent);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '★';
  font-size: 12px;
  color: var(--gold-line);
}

.section-dark .eyebrow {
  color: var(--gold-light);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-heading h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 16px;
}

.section-heading p {
  color: var(--ink-2);
  font-size: 16px;
}

.section-dark .section-heading p {
  color: rgba(253, 246, 238, 0.78);
}

/* ---------- 按钮 ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gradient-red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(142, 16, 16, 0.26);
}

.button-primary:hover {
  box-shadow: 0 12px 30px rgba(142, 16, 16, 0.34);
}

.button-ghost {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.section-dark .button-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(246, 215, 138, 0.5);
  color: #fdf6ee;
}

.text-link {
  color: var(--red-accent);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link:hover {
  gap: 10px;
}

.section-dark .text-link {
  color: var(--gold-light);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(242, 207, 138, 0.22), transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(199, 0, 11, 0.08), transparent 45%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.28;
  margin-bottom: 22px;
}

.hero h1 .accent {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-footnote {
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-footnote::before {
  content: '★';
  color: var(--gold-line);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.hero-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.2;
  color: var(--red);
}

.hero-stats strong span {
  font-size: 14px;
  color: var(--ink-2);
  margin-left: 3px;
}

.hero-stats small {
  font-size: 13px;
  color: var(--ink-2);
}

/* Hero 视觉：大屏截图 + 悬浮卡片 */
.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(142, 16, 16, 0.2);
  background: #2b0b0b;
}

.hero-frame img {
  width: 100%;
  height: auto;
}

.hero-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(246, 215, 138, 0.25);
  pointer-events: none;
}

.hero-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-chip-a {
  left: -26px;
  bottom: 44px;
}

.hero-chip-b {
  right: -18px;
  top: 34px;
}

.hero-chip .chip-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--gradient-red);
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.hero-chip strong {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
}

.hero-chip small {
  font-size: 12px;
  color: var(--ink-2);
}

.hero-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  background: rgba(43, 35, 32, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(246, 215, 138, 0.4);
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 2px;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- 业务模块 ---------- */

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.module {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.module:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(185, 28, 28, 0.35);
}

.module-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(142, 16, 16, 0.1), rgba(207, 58, 30, 0.16));
  border: 1px solid rgba(185, 28, 28, 0.18);
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 20px;
  margin-bottom: 16px;
}

.module h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.module p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

.module-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(142, 16, 16, 0.06), rgba(242, 207, 138, 0.14));
  border: 1px dashed rgba(185, 28, 28, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  font-size: 14px;
  color: var(--ink-2);
}

.module-more b {
  color: var(--red);
  font-family: var(--serif);
  font-size: 16px;
}

/* ---------- 三端展示 ---------- */

.terminal-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.tab-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.22s ease;
}

.tab-button:hover {
  border-color: var(--red);
  color: var(--red);
}

.tab-button[aria-selected='true'] {
  background: var(--gradient-red);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(142, 16, 16, 0.22);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.panel-intro {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.panel-intro h3 {
  font-size: 26px;
  margin-bottom: 14px;
}

.panel-intro p {
  color: var(--ink-2);
  margin-bottom: 20px;
}

.panel-points {
  display: grid;
  gap: 10px;
}

.panel-points li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink);
}

.panel-points li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red-accent);
  font-weight: 700;
}

.panel-stacked {
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.panel-stacked > div:first-child {
  max-width: 860px;
}

.panel-stacked h3 {
  font-size: 28px;
}

.shot {
  position: relative;
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
}

.shot figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-2);
  text-align: center;
}

/* 手机截图（轮播内单张显示） */
.phone {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.phone:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.phone figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- AI 能力 ---------- */

.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.ai-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.ai-item {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(246, 215, 138, 0.26);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.ai-item .ai-num {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold-light);
  line-height: 1.4;
  flex-shrink: 0;
}

.ai-item h4 {
  font-size: 17px;
  margin-bottom: 4px;
  color: #fdf6ee;
}

.ai-item p {
  font-size: 14px;
  color: rgba(253, 246, 238, 0.76);
  line-height: 1.7;
}

/* 聊天卡片位于 .section-dark 内，必须显式重置为深色文字，
   否则会继承外层的浅色字，白字压在浅色气泡上等于隐形。 */
.chat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--ink);
}

.chat-head {
  /* 用渐变中段偏深的红，保证白字对比 ≥7:1，在红底上不发虚 */
  background: linear-gradient(135deg, #7d0c0c 0%, #a51818 60%, #b91c1c 100%);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.chat-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
}

.chat-body {
  padding: 22px;
  display: grid;
  gap: 14px;
  background: #fffdfa;
  color: var(--ink);
}

.bubble {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  /* 气泡独立设定背景，必须同时给出深色文字 */
  word-break: break-word;
}

.bubble-q {
  background: var(--bg-warm);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  justify-self: end;
}

.bubble-a {
  background: #fff;
  border: 1px solid rgba(185, 28, 28, 0.2);
  border-left: 3px solid var(--red);
  color: var(--ink);
  justify-self: start;
}

.bubble b {
  color: var(--red);
}

.bubble-meta {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-2);
}

/* ---------- 灯箱：点击放大看原始截图 ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 8, 8, 0.92);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(246, 215, 138, 0.3);
}

.lightbox-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  color: rgba(253, 246, 238, 0.86);
  font-size: 14px;
  padding: 0 24px;
}

.lightbox-cap strong {
  color: var(--gold-light);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(246, 215, 138, 0.45);
  background: rgba(43, 17, 16, 0.7);
  color: #fdf6ee;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-close:hover {
  background: var(--red);
  border-color: var(--gold-light);
}

/* 可放大的截图给出手型光标 */
[data-zoom] {
  cursor: zoom-in;
}

/* ---------- 截图轮播 ---------- */

.carousel {
  max-width: 820px;
  margin-inline: auto;
}

/* 大屏轮播：给到 1000px，1600px 原图缩放比约 0.62 */
.carousel-wide {
  max-width: 1000px;
}

.carousel-stage {
  position: relative;
}

.carousel-stage .shot {
  margin: 0;
}

.carousel-stage .shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
}

.carousel-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.carousel-arrow {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--red);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--gradient-red);
  border-color: transparent;
  color: #fff;
}

/* 缩略图用 flex 自适应：各轮播的图数不同（后台4/ 大屏 2），不写死列数 */
.carousel-thumbs {
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.carousel-thumb {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 6px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  width: 120px;
  transition: all 0.2s ease;
}

.carousel-thumb img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  opacity: 0.62;
  transition: opacity 0.2s ease;
}

.carousel-thumb span {
  font-size: 12px;
  color: var(--ink-2);
}

.carousel-thumb:hover {
  border-color: var(--red);
}

.carousel-thumb:hover img {
  opacity: 0.85;
}

.carousel-thumb.is-active {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.18);
}

.carousel-thumb.is-active img {
  opacity: 1;
}

.carousel-thumb.is-active span {
  color: var(--red);
  font-weight: 600;
}

/* 手机端轮播：一次显示一张手机图。
   限宽 360px —— 原图 375px 宽，略小于原生尺寸保证不放大模糊。 */
.carousel-phone {
  max-width: 360px;
}

.carousel-phone .carousel-stage {
  display: flex;
  justify-content: center;
}

.carousel-phone .phone {
  width: 100%;
  margin: 0;
  box-shadow: var(--shadow-md);
}

.carousel-phone .phone img {
  width: 100%;
  height: auto;
}

/* 手机端用文字圆点，6 个缩略图太占地方 */
.carousel-dots {
  display: flex;
  flex: 1;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-dot {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-family: var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot:hover {
  border-color: var(--red);
  color: var(--red);
}

.carousel-dot.is-active {
  background: var(--gradient-red);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

/* ---------- 发展插件入口 ---------- */

.plugin-entry {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  box-shadow: var(--shadow-md);
}

.plugin-entry-copy {
  padding: 48px;
}

.plugin-entry-copy .eyebrow {
  margin-bottom: 14px;
}

.plugin-entry-copy h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  margin-bottom: 16px;
}

.plugin-entry-copy > p {
  color: var(--ink-2);
  margin-bottom: 26px;
}

.plugin-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-bottom: 30px;
}

.plugin-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
}

.plugin-points li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--gold-line);
  font-size: 13px;
}

.plugin-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.plugin-version {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-2);
}

.plugin-entry-visual {
  background: linear-gradient(150deg, #7d0f0f 0%, #a51818 60%, #c02a1a 100%);
  padding: 40px;
  display: grid;
  align-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.plugin-entry-visual::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 207, 138, 0.26), transparent 68%);
}

.stage-card {
  background: rgba(255, 255, 255, 0.95);
  /* 位于 .section-dark 内，必须显式深色文字，否则白字压白底不可读 */
  color: var(--ink);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.stage-card .idx {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient-red);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 14px;
  flex-shrink: 0;
}

.stage-card strong {
  display: block;
  font-size: 15px;
}

.stage-card small {
  font-size: 12px;
  color: var(--ink-2);
}

.stage-card.is-current {
  box-shadow: 0 0 0 2px var(--gold-light);
}

/* ---------- 技术与部署 ---------- */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tech {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}

.tech h4 {
  font-size: 17px;
  margin-bottom: 10px;
}

.tech p {
  font-size: 14px;
  color: var(--ink-2);
}

.tech-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--red);
  background: rgba(199, 0, 11, 0.08);
  border: 1px solid rgba(199, 0, 11, 0.16);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 12px;
}

/* ---------- 页脚 ---------- */

.footer {
  position: relative;
  background: #2b1110;
  color: rgba(253, 246, 238, 0.76);
  padding: 56px 0 0;
  overflow: hidden;
}

/* 页脚底纹：登录页视觉素材，压暗后作为质感层 */
.footer::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -40px;
  width: 420px;
  height: 320px;
  background: url('images/login-backdrop.jpg') center/cover no-repeat;
  opacity: 0.16;
  filter: grayscale(0.3);
  border-radius: 50%;
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
  background: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.9;
}

.footer h5 {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold-light);
  margin: 0 0 16px;
  font-weight: 700;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(246, 215, 138, 0.18);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(253, 246, 238, 0.6);
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .module-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-visual {
    max-width: 760px;
  }

  .ai-layout,
  .plugin-entry {
    grid-template-columns: 1fr;
  }

  .plugin-entry-copy {
    padding: 38px;
  }
}

@media (max-width: 880px) {
  .container {
    width: calc(100% - 40px);
  }

  .section {
    padding: 68px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 14px;
    text-align: center;
  }

  .module-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel-intro {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
  }

  .hero-chip-a {
    left: -8px;
  }

  .hero-chip-b {
    right: -6px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 44px 0 60px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-desc {
    font-size: 15.5px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }

  .hero-stats strong {
    font-size: 28px;
  }

  .hero-chip {
    padding: 9px 12px;
  }

  .hero-chip strong {
    font-size: 14px;
  }

  .hero-chip small {
    font-size: 11px;
  }

  .module-grid,
  .tech-grid,
  .plugin-points {
    grid-template-columns: 1fr;
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .module-more {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .plugin-entry-copy {
    padding: 28px 22px;
  }

  .plugin-entry-visual {
    padding: 28px 22px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ---------- 无障碍与打印 ---------- */

:focus-visible {
  outline: 2px solid var(--red-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}