/* 由 php/tools/build-assets.cjs 生成，请勿手改。
   改动样式请改 client/src 下对应的 .vue / .css 源文件后重新执行生成脚本。
   注意：这里按组件作用域重建了选择器（等价于 Vue 的 <style scoped>），
   对应 class 已经写在各模板的根元素上，挪动模板时不要漏掉。 */

/* ---- styles/global.css  （全局） ---- */
/* ===== 幕创自动化 品牌设计系统 (科技感重构) ===== */
:root {
  /* 品牌红（保留主导） */
  --brand: #c8102e;
  --brand-dark: #a00d24;
  --brand-soft: #fbeaec;

  /* 深空藏蓝（替代纯黑，更科技通透） */
  --ink: #0f1b2b;
  --ink-soft: #16283c;
  --deep: #08111f;
  --deep-2: #12243c;
  --deep-3: #1a3350;

  /* 电光科技蓝 / 青蓝 */
  --tech: #22d3ee;
  --tech-2: #3b82f6;
  --tech-soft: #e6f9fd;

  /* 灰阶（带一点冷调） */
  --gray: #64748b;
  --gray-light: #b8c2d0;
  --gray-bg: #f4f7fb;
  --white: #ffffff;
  --line: #e4eaf2;

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(15, 27, 43, 0.10);
  --shadow-glow: 0 10px 40px rgba(34, 211, 238, 0.18);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, "Segoe UI", sans-serif;

  /* 渐变 */
  --grad-deep: linear-gradient(135deg, #0a1830 0%, #10264a 55%, #16395f 100%);
  --grad-tech: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
  --grad-brand: linear-gradient(120deg, #c8102e 0%, #e0344f 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  /* 固定宽度视口（width=1240）下，Chrome 安卓端会触发「字体自动放大」(font boosting)，
     把宽段落的正文随机放大，导致手机看到的版式和电脑版对不上。这里显式关掉。 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; letter-spacing: 0.5px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ===== 科技感背景纹理 ===== */
.grid-bg {
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 40px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(200, 16, 46, 0.4); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(15, 27, 43, 0.25); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ===== 区块通用 ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--gray-bg); }
.section-dark {
  background: var(--grad-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
.section-dark > * { position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-label {
  display: inline-block;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}
.section-label--tech {
  color: var(--tech-2);
  background: rgba(34, 211, 238, 0.1);
  padding: 4px 14px;
  border-radius: 20px;
}
.section-title { font-size: 34px; margin-bottom: 14px; }
.section-subtitle { color: var(--gray); font-size: 16px; }
.section-dark .section-subtitle { color: rgba(255, 255, 255, 0.7); }

/* ===== 卡片 ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ===== 滚动渐显 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-in { opacity: 1; transform: translateY(0); }

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray);
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--gray-light); }

/* ===== 页头（内页 banner）===== */
.page-hero {
  background: var(--grad-deep);
  color: #fff;
  padding: 120px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 82%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}
.page-hero > * { position: relative; }
.page-hero h1 { font-size: 40px; margin-bottom: 12px; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2); }
.page-hero p { color: rgba(255, 255, 255, 0.75); font-size: 16px; }

/* ===== 表单 ===== */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--tech-2);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ===== 表格 ===== */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.table th { background: var(--gray-bg); font-weight: 600; white-space: nowrap; color: var(--ink); }
.table tr:hover td { background: #fafcff; }
.table tbody tr:last-child td { border-bottom: none; }

/* ===== 空状态 ===== */
.empty {
  text-align: center;
  color: var(--gray);
  padding: 60px 0;
  font-size: 15px;
}

/* ===== 无障碍：视觉隐藏（屏幕阅读器与搜索引擎仍可读到） =====
   首页首屏是纯图轮播、不叠文字，需要一个隐藏的 <h1> 交代页面主题。
   注意用 clip-path 而不是 display:none / visibility:hidden —— 后两者会被搜索引擎忽略。 */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .section-title { font-size: 26px; }
  .page-hero h1 { font-size: 30px; }
  .container { padding: 0 20px; }
}

/* 手机（≤640px）：把大屏的留白与字号整体下压一档。
   直接沿用 900px 档的结果是——内页页头一大片空、区块间距过长、标题偏大，
   在 375px 宽屏上要滚很久才看到内容。另外触屏没有 hover，去掉卡片的悬浮位移。 */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }
  .section-title { font-size: 22px; }
  .section-subtitle { font-size: 14.5px; }
  .section-label { font-size: 12px; margin-bottom: 10px; }
  .page-hero { padding: 68px 0 44px; }
  .page-hero h1 { font-size: 24px; margin-bottom: 8px; }
  .page-hero p { font-size: 14.5px; }
  .page-hero::after { width: 260px; height: 260px; top: -90px; right: -70px; }
  .btn { padding: 12px 24px; font-size: 14.5px; }
  .breadcrumb { font-size: 13px; gap: 6px; }
  .card:hover { transform: none; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 10px 12px; }
  .table th { white-space: normal; }   /* 参数名允许换行，避免窄屏被 nowrap 撑破 */
}

/* ---- components/PlaceholderThumb.vue  →  作用域 .ph-thumb ---- */
.thumb.ph-thumb {
  position: relative;
  width: 100%;
  background: #1c2733;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph-thumb .glyph {
  width: 42%;
  height: 42%;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}
.ph-thumb .name {
  position: absolute;
  bottom: 10px;
  left: 14px;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}
.thumb.ph-thumb::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.thumb.ph-thumb:hover::after { transform: scaleX(1); }
