/* ===== 基础重置 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #1e3a5f;
  --color-primary-dark: #142844;
  --color-primary-light: #2c5282;
  --color-accent: #c9a96e;
  --color-accent-dark: #a88a4f;
  --color-bg: #ffffff;
  --color-bg-soft: #f8f9fb;
  --color-bg-dark: #0f1e35;
  --color-text: #1a1a2e;
  --color-text-soft: #4a5568;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-success: #10b981;
  --shadow-sm: 0 2px 8px rgba(15, 30, 53, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 30, 53, 0.1);
  --shadow-lg: 0 20px 48px rgba(15, 30, 53, 0.14);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1280px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* ===== 布局工具 ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--color-bg-soft);
}

.section-dark {
  background: var(--color-bg-dark);
  color: #ffffff;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;  /* 高于全局云条 (9998)，保证整条 header 永远在顶部不被任何浮层遮挡 */
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 72px;
  gap: 12px 20px;
  row-gap: 10px;
  max-width: 1720px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  flex: 1 1 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary);
  white-space: nowrap;
}

/* 品牌 logo：透明底 PNG（蓝渐变 G 标志），见 images/logo-gezhi.png */
.logo-mark {
  display: inline-block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  flex-shrink: 0;
}

/* ===== 左上角「后台编辑」入口 ===== */
.admin-launcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-soft);
  background: rgba(30, 58, 95, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-left: 4px;
}
.admin-launcher:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.18);
}
.admin-launcher:active {
  transform: translateY(0);
}
.admin-launcher.is-authed {
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.08);
  border-color: rgba(46, 125, 50, 0.3);
}
.admin-launcher.is-authed:hover {
  color: #fff;
  background: #2e7d32;
  border-color: #2e7d32;
}
.admin-launcher .gear {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}
.admin-launcher .lbl {
  font-size: 13px;
}

/* ===== 模态框（共享） ===== */
.admin-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: adminModalFadeIn 0.18s ease;
}
@keyframes adminModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.admin-modal {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 14px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  animation: adminModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes adminModalPop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.admin-modal h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-modal .sub {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.admin-modal label {
  display: block;
  font-size: 12px;
  color: var(--color-text-soft);
  margin-bottom: 6px;
  font-weight: 500;
}
.admin-modal input {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #f8fafc;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
}
.admin-modal input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
}
.admin-modal .err {
  color: #c0392b;
  font-size: 12px;
  margin: 6px 0 0;
  min-height: 16px;
}
.admin-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.admin-modal-actions button {
  flex: 1;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.admin-modal-actions .primary {
  background: var(--color-primary);
  color: #fff;
}
.admin-modal-actions .primary:hover {
  background: #142a45;
}
.admin-modal-actions .ghost {
  background: #f1f5f9;
  color: var(--color-text-soft);
}
.admin-modal-actions .ghost:hover {
  background: #e2e8f0;
}
.admin-modal .hint {
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}
.admin-modal .hint code {
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 11px;
  color: var(--color-primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-soft);
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--color-primary);
  background: rgba(30, 58, 95, 0.06);
}

.main-nav a.active {
  color: var(--color-primary);
  font-weight: 600;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

/* 顶部一级导航：本项目文件数徽章 */
.main-nav .nav-dropdown > a .nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 600;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: 9px;
  vertical-align: 1px;
}

.main-nav .nav-dropdown > a .nav-badge:empty,
.main-nav .nav-dropdown > a .nav-badge[data-empty="true"] {
  display: none;
}

/* 下拉菜单：本项目文件提示 */
.dropdown-menu .doc-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 4px;
  margin-top: 6px;
  border-top: 1px dashed var(--color-border);
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.dropdown-menu .doc-tip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.dropdown-menu .doc-tip[data-empty="true"] {
  color: var(--color-text-muted);
  font-style: italic;
}

.dropdown-menu .doc-tip[data-empty="true"] .dot {
  background: #cfd6df;
}

.dropdown-menu .menu-item {
  position: relative;
}

.dropdown-menu .menu-item.has-doc::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.18);
}

.dropdown-menu .menu-item.has-doc a {
  padding-right: 22px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--color-primary);
}

/* ===== 导航下拉菜单 ===== */
.main-nav .nav-dropdown {
  position: relative;
}

.main-nav .nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.main-nav .nav-dropdown > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
  margin-left: 2px;
  opacity: 0.7;
}

.main-nav .nav-dropdown:hover > a::after,
.main-nav .nav-dropdown.open > a::after {
  transform: rotate(-135deg) translateY(-1px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 168px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 110;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

.main-nav .nav-dropdown:hover > .dropdown-menu,
.main-nav .nav-dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-soft);
  border-radius: 6px;
  white-space: nowrap;
  transition: all var(--transition);
}

.dropdown-menu a:hover {
  background: rgba(30, 58, 95, 0.08);
  color: var(--color-primary);
}

.dropdown-menu a.active {
  color: var(--color-primary);
  background: rgba(30, 58, 95, 0.06);
  font-weight: 600;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== Hero 区域 ===== */
.hero {
  position: relative;
  padding: 120px 0 96px;
  background: linear-gradient(
      135deg,
      rgba(15, 30, 53, 0.96) 0%,
      rgba(30, 58, 95, 0.92) 100%
    ),
    radial-gradient(circle at 20% 30%, rgba(201, 169, 110, 0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201, 169, 110, 0.12), transparent 50%);
  background-color: var(--color-bg-dark);
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 24px;
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.5px;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.hero h1 .accent {
  color: var(--color-accent);
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
}

.hero-card h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.hero-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat:last-child {
  border-bottom: 0;
}

.hero-stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.hero-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

/* ===== 区块标题 ===== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 14px;
}

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

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-dark .section-header h2 {
  color: #ffffff;
}

.section-header p {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== 服务卡片网格 ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 32px 28px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  background: rgba(30, 58, 95, 0.08);
  color: var(--color-primary);
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.service-card .card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card .card-link::after {
  content: "→";
  transition: transform var(--transition);
}

.service-card:hover .card-link::after {
  transform: translateX(4px);
}

/* ===== 数据展示 ===== */
.stats-band {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: #ffffff;
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item .number {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-item .label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ===== 流程步骤 ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}

.process-step {
  padding: 28px 24px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--transition);
}

.process-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.process-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

.process-step h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===== 特性列表 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
}

.feature-item .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--color-success);
  color: #ffffff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-item p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

/* ===== CTA 区域（白底版） ===== */
.cta-section {
  background: #ffffff;
  background-image: radial-gradient(circle at 30% 50%, rgba(201, 169, 110, 0.08), transparent 55%);
  color: var(--color-text);
  text-align: center;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 0 0 3px 3px;
}

.cta-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.cta-section p {
  font-size: 17px;
  color: var(--color-text-soft);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* 白底 CTA 内的按钮：金色 accent 保持品牌感，深蓝描边次按钮 */
.cta-section .btn-accent {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.cta-section .btn-ghost-light {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.cta-section .btn-ghost-light:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* ===== 内容页面布局（白底版） ===== */
.page-hero {
  position: relative;
  padding: 88px 0 72px;
  background: #ffffff;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

/* 顶部一条金色装饰线，保留品牌识别度 */
.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-primary) 30%,
    var(--color-accent) 60%,
    var(--color-accent) 100%
  );
}

/* 右上角淡金色装饰圆斑（极淡，不抢视觉） */
.page-hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.10), transparent 65%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  max-width: 880px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent-dark);
}

.breadcrumb .sep {
  color: var(--color-border);
}

.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}

.page-hero .lead {
  font-size: 18px;
  color: var(--color-text-soft);
  max-width: 720px;
  line-height: 1.7;
}

.content-section {
  padding: 80px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.content-block h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.content-block p {
  font-size: 16px;
  color: var(--color-text-soft);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* 空介绍段在正常浏览时不撑空白，但编辑模式下显示占位 */
p:empty,
p[data-default-intro]:empty {
  display: none;
}

.content-block ul {
  margin-top: 20px;
}

.content-block li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.content-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 56px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 360px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-nav h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.contact-info span {
  display: flex;
  /* flex-start：地址换行成多行时，「地址：」标签与首行顶部对齐（不居中） */
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  flex-wrap: wrap; /* 长地址安全兜底 */
  line-height: 1.6;
}

.contact-info .label {
  color: rgba(255, 255, 255, 0.5);
  min-width: 56px;
}

/* ===== 海报展示 ===== */
.poster-wrap {
  display: flex;
  justify-content: center;
  padding: 24px;
}

.poster-wrap img {
  max-width: 480px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.poster-wrap img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 28px 64px rgba(15, 30, 53, 0.2);
}

/* ===== 滚动动画 ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }

  .hero,
  .page-hero {
    padding: 64px 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 16px;
    border-radius: 8px;
  }

  .main-nav a.active::after {
    display: none;
  }

  .main-nav a.active {
    background: rgba(30, 58, 95, 0.08);
  }

  .main-nav .nav-dropdown {
    display: block;
  }

  .main-nav .nav-dropdown > a {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 0 4px 12px;
    min-width: 0;
    opacity: 1;
    visibility: hidden;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .dropdown-menu::before {
    display: none;
  }

  .main-nav .nav-dropdown:hover > .dropdown-menu,
  .main-nav .nav-dropdown.open > .dropdown-menu {
    visibility: visible;
    max-height: 600px;
    transform: none;
  }

  .dropdown-menu a {
    padding: 10px 14px;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== 项目上下文条 ===== */
.project-context-bar {
  background: linear-gradient(90deg, #1e3a5f 0%, #2a4d77 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(201, 169, 110, 0.25);
  font-size: 13px;
}

.project-context-bar[hidden] {
  display: none !important;
}

.ctx-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}

.ctx-icon {
  display: inline-flex;
  align-items: center;
  color: var(--color-accent);
}

.ctx-label {
  opacity: 0.7;
  letter-spacing: 1px;
  font-size: 12px;
}

.ctx-project {
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.ctx-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.22);
}

.ctx-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ctx-meta strong {
  color: var(--color-accent);
  font-weight: 600;
}

.ctx-spacer {
  flex: 1 1 auto;
}

.ctx-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.ctx-action:hover {
  background: rgba(201, 169, 110, 0.18);
  border-color: var(--color-accent);
}

/* ===== 顶部搜索栏 ===== */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 280px;
  min-width: 180px;
  max-width: 300px;
  height: 38px;
  margin-left: 8px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0 4px 0 14px;
  transition: all var(--transition);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.header-search:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.header-search .search-icon {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.header-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 8px;
  font: inherit;
  color: var(--color-text);
}

.header-search input::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.header-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--color-text-muted);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>") no-repeat center / contain;
  cursor: pointer;
}

.header-search .search-btn {
  border: 0;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 999px;
  padding: 0 16px;
  height: 30px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.header-search .search-btn:hover {
  background: #142a45;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 120;
}

.search-suggestions[hidden] {
  display: none !important;
}

.search-suggestions .suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}

.search-suggestions .suggest-item:hover,
.search-suggestions .suggest-item.active {
  background: rgba(30, 58, 95, 0.06);
}

.search-suggestions .suggest-item .s-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(30, 58, 95, 0.08);
  color: var(--color-primary);
  flex-shrink: 0;
}

.search-suggestions .suggest-item .s-text {
  flex: 1 1 auto;
  min-width: 0;
}

.search-suggestions .suggest-item .s-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestions .suggest-item .s-meta {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.search-suggestions .suggest-item .s-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(30, 58, 95, 0.08);
  flex-shrink: 0;
}

.search-suggestions .suggest-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

.search-suggestions .suggest-empty .hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.search-suggestions .suggest-create {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 6px;
  border-top: 1px dashed var(--color-border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-primary);
  cursor: pointer;
}

.search-suggestions .suggest-create strong {
  color: var(--color-accent);
}

/* ===== 当前项目下：导航联动徽标 ===== */
.main-nav .nav-dropdown.project-active > a {
  color: var(--color-primary);
  font-weight: 600;
}

/* ===== 子页面：本项目摘要块 ===== */
.project-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0 0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.04), rgba(201, 169, 110, 0.06));
  border-left: 3px solid var(--color-accent);
  font-size: 13px;
  color: var(--color-text-soft);
}

.project-summary .ps-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-summary .ps-item .lbl {
  color: var(--color-text-muted);
}

.project-summary .ps-item .val {
  font-weight: 600;
  color: var(--color-text);
}

.project-summary .ps-item .val.accent {
  color: var(--color-accent);
}

/* ===== 响应式：移动端导航 + 搜索 ===== */
@media (max-width: 960px) {
  .header-search {
    flex: 1 1 auto;
    max-width: 280px;
  }

  .header-search input::placeholder {
    font-size: 12px;
  }

  .ctx-inner {
    gap: 8px;
  }

  .ctx-meta {
    max-width: 50vw;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
  }

  .header-inner {
    height: auto;
    flex-wrap: wrap;
    row-gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .header-search {
    order: 99;
    flex: 1 0 100%;
    max-width: none;
    height: 40px;
  }

  .ctx-action span {
    display: none;
  }

  .ctx-action {
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
  }

  .project-summary {
    padding: 12px 14px;
    gap: 8px 16px;
  }
}

/* ============================================================
   资料数据列表（公司数据库视图）
   - 由 renderDataSection() 渲染到 <section class="data-section">
   ============================================================ */
.data-section {
  padding: 56px 0 96px;
  background: #fafbfc;
}

.data-head {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.data-head::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}
.data-title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px;
}
.data-sub {
  font-size: 14px;
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.6;
}

/* ===== 统计条 ===== */
.data-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.data-stats .stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 22px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(15, 30, 53, 0.04);
  min-width: 110px;
}
.data-stats .stat .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.data-stats .stat .lbl {
  font-size: 13px;
  color: var(--color-text-muted);
}
.data-stats .stat.st-done .num { color: #2e7d32; }
.data-stats .stat.st-pending .num { color: var(--color-accent); }

/* ===== 工具条 ===== */
.data-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.data-search {
  flex: 1;
  min-width: 220px;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.data-search:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}
.data-filter-state {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--color-primary);
  cursor: pointer;
  min-width: 140px;
}
.data-filter-state:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

/* ===== 表格 ===== */
.data-table-wrap {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 30, 53, 0.04);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table thead {
  background: linear-gradient(180deg, #f5f7fa 0%, #ecf0f4 100%);
}
.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-primary);
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f4;
  vertical-align: top;
  color: var(--color-text);
  line-height: 1.5;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr {
  transition: background-color .12s;
}
.data-table tbody tr:hover {
  background: rgba(201, 169, 110, 0.05);
}
.data-table tbody tr[data-state="in-progress"] {
  background: rgba(201, 169, 110, 0.04);
}

.proj-name {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 14.5px;
  margin-bottom: 4px;
}
.proj-meta {
  font-size: 12px;
  color: var(--color-text-muted);
}
.proj-code {
  display: inline-block;
  padding: 2px 8px;
  background: #f1f5f9;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--color-primary);
}
.phase-tag {
  display: inline-block;
  padding: 3px 10px;
  background: #ecf0f4;
  color: var(--color-primary);
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}
.state-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.state-tag.st-done {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}
.state-tag.st-pending {
  background: rgba(201, 169, 110, 0.18);
  color: #8a6d2a;
}
.file-name {
  display: inline-block;
  font-size: 13px;
  color: var(--color-text);
  background: #f6f8fa;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e8ebef;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-empty { color: var(--color-text-muted); }

/* ===== 空态 ===== */
.data-empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--color-text-muted);
}
.data-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.data-empty h3 {
  font-size: 18px;
  color: var(--color-primary);
  margin: 0 0 8px;
}
.data-empty p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* ===== 底部说明 ===== */
.data-foot {
  margin-top: 20px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.7;
}

/* ===== 一级导航页：子项索引网格 ===== */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.data-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all .18s ease;
  position: relative;
  overflow: hidden;
}
.data-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity .18s;
}
.data-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 18px rgba(15, 30, 53, 0.1);
  transform: translateY(-2px);
}
.data-card:hover::before {
  opacity: 1;
}
.data-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.data-card-icon {
  font-size: 22px;
}
.data-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}
.data-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.data-card-total {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-right: 4px;
}
.data-card-total strong {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  margin-right: 2px;
}
.data-card-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.data-card-pill.st-pending {
  background: rgba(201, 169, 110, 0.18);
  color: #8a6d2a;
}
.data-card-pill.st-done {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}

/* ===== 移动端 ===== */
@media (max-width: 880px) {
  .data-section { padding: 40px 0 64px; }
  .data-stats { gap: 10px; }
  .data-stats .stat {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
  }
  .data-stats .stat .num { font-size: 22px; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td {
    padding: 10px 8px;
  }
  .data-table th:nth-child(2),
  .data-table td:nth-child(2),
  .data-table th:nth-child(4),
  .data-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 560px) {
  .data-table th:nth-child(3),
  .data-table td:nth-child(3) {
    display: none;
  }
  .data-toolbar { flex-direction: column; }
  .data-search, .data-filter-state { width: 100%; min-width: 0; }
}

/* 子页面顶部 hero 精简版：去掉 grid 背景和渐变叠加，仅留 padding */
.page-hero.compact {
  padding: 48px 0 28px;
}
.page-hero.compact::before { display: none; }
.page-hero.compact .page-hero-inner { max-width: 100%; }
.page-hero.compact h1 {
  font-size: clamp(24px, 3.2vw, 32px);
  margin-bottom: 0;
}

/* tab 切换时 panel 顶部高亮动效，视觉确认"切过去了" */
.tab-panel.active {
  animation: tabFlash 0.6s ease-out;
}
@keyframes tabFlash {
  0%   { box-shadow: inset 0 0 0 4px rgba(201, 169, 110, 0.7); background: rgba(201, 169, 110, 0.05); }
  60%  { box-shadow: inset 0 0 0 2px rgba(201, 169, 110, 0.4); background: rgba(201, 169, 110, 0.02); }
  100% { box-shadow: inset 0 0 0 0 rgba(201, 169, 110, 0); background: transparent; }
}
/* tab 自身激活态视觉强化 */
.tabs .tab.active {
  background: rgba(30, 58, 95, 0.06);
}

/* ============================================================ */
/* 产值 / 签证 / 批价 xlsx 工作表 */
/* ============================================================ */
.ledger-section {
  padding: 56px 0 96px;
  background: #fafbfc;
  border-top: 1px solid var(--color-border);
}
.ledger-section .data-head {
  text-align: left;
  margin-bottom: 20px;
}
.ledger-section .data-head .data-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.ledger-section .data-head .data-sub {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.ledger-section .data-head .data-sub code {
  background: rgba(201, 169, 110, 0.15);
  color: #8a6f30;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.ledger-project-line {
  font-size: 14px;
  color: var(--color-text-soft);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
}
.ledger-project-line.warn {
  border-left-color: #d97706;
  background: #fffbeb;
  color: #92400e;
}
.ledger-project-line strong {
  color: var(--color-primary);
  margin-right: 4px;
}

.ledger-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.ledger-tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ledger-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}
.ledger-tab:hover {
  background: rgba(201, 169, 110, 0.08);
  color: var(--color-primary);
}
.ledger-tab.active {
  background: var(--color-primary);
  color: #fff;
}
.ledger-tab.active .ic { filter: brightness(0) invert(1); }
.ledger-tab .ledger-count {
  display: inline-block;
  min-width: 22px;
  padding: 1px 6px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.ledger-tab.active .ledger-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.ledger-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ledger-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.ledger-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.ledger-btn-file {
  position: relative;
  cursor: pointer;
}
.ledger-btn-ghost {
  color: var(--color-text-muted);
  border-style: dashed;
}
.ledger-btn-danger {
  color: #b91c1c;
  border-color: #fecaca;
}
.ledger-btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.ledger-table-wrap {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: auto;
  max-height: 70vh;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.ledger-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 800px;
}
.ledger-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
  border-bottom: 2px solid var(--color-primary-dark);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.ledger-table thead th.op-th {
  width: 50px;
  text-align: center;
  background: var(--color-primary-dark);
}
.ledger-table thead th[contenteditable="true"] {
  cursor: text;
  outline: 0;
  min-width: 70px;
}
.ledger-table thead th[contenteditable="true"]:hover {
  background: var(--color-primary-dark);
}
.ledger-table thead th[contenteditable="true"]:focus {
  background: #fff;
  color: var(--color-primary);
  box-shadow: inset 0 0 0 2px var(--color-accent);
}
.ledger-table tbody tr:nth-child(even) {
  background: #fafbfc;
}
.ledger-table tbody tr:hover {
  background: rgba(201, 169, 110, 0.06);
}
.ledger-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  min-width: 100px;
  max-width: 280px;
  word-break: break-all;
  vertical-align: top;
  line-height: 1.5;
}
.ledger-table tbody td[contenteditable="true"] {
  cursor: text;
  outline: 0;
  position: relative;
  transition: background .1s;
}
.ledger-table tbody td[contenteditable="true"]:hover {
  background: rgba(201, 169, 110, 0.08);
}
.ledger-table tbody td[contenteditable="true"]:focus {
  background: #fffbeb;
  box-shadow: inset 0 0 0 2px var(--color-accent);
  z-index: 1;
}
.ledger-table tbody td.op-td {
  text-align: center;
  padding: 4px;
  min-width: 50px;
  max-width: 50px;
}
.ledger-row-del {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 18px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s;
}
.ledger-row-del:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.ledger-empty {
  padding: 80px 20px;
  text-align: center;
  color: var(--color-text-muted);
}
.ledger-empty .ic {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.ledger-empty h3 {
  font-size: 18px;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.ledger-empty p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}
.ledger-section .data-foot {
  margin-top: 16px;
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: left;
  line-height: 1.7;
}
.ledger-section .data-foot kbd {
  display: inline-block;
  padding: 1px 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #334155;
}

@media (max-width: 720px) {
  .ledger-toolbar { flex-direction: column; align-items: stretch; }
  .ledger-tabs { overflow-x: auto; }
  .ledger-actions { justify-content: flex-start; }
  .ledger-btn { font-size: 12px; padding: 6px 10px; }
}
/* ============== 图片插入画廊（img-store.js） ============== */
.img-gallery-wrap {
  margin: 40px auto 0;
  max-width: 1200px;
  padding: 0 24px;
}

.img-gallery {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.img-gallery-head {
  margin-bottom: 18px;
}

.img-gallery-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #1e3a5f;
  display: flex;
  align-items: center;
  gap: 10px;
}

.img-count {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
}

.img-gallery-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

.img-gallery-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.img-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.img-btn:hover { border-color: #94a3b8; background: #f8fafc; }
.img-btn-primary {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4f7c 100%);
  border-color: #1e3a5f;
  color: #fff;
}
.img-btn-primary:hover { background: linear-gradient(135deg, #16304d 0%, #1e3a5f 100%); }
.img-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.img-tip {
  font-size: 11px;
  color: #94a3b8;
}

.img-gallery-empty, .img-gallery-empty-inner {
  padding: 40px 20px;
  text-align: center;
  color: #94a3b8;
}
.img-gallery-empty {
  background: #f8fafc;
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
}
.img-gallery-empty-inner {
  background: #fafbfc;
  border: 1px dashed #e2e8f0;
  border-radius: 10px;
  margin-top: 8px;
}
.img-empty-icon {
  font-size: 48px;
  margin-bottom: 8px;
  opacity: 0.4;
}
.img-gallery-empty h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #475569;
}
.img-gallery-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.img-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.15s;
  position: relative;
}
.img-card:hover {
  border-color: #c9a96e;
  box-shadow: 0 4px 12px rgba(201, 169, 110, 0.15);
  transform: translateY(-2px);
}

.img-thumb {
  width: 100%;
  height: 140px;
  background-color: #f1f5f9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  cursor: zoom-in;
}
.img-thumb-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 24px;
}

.img-card-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.img-card-info {
  padding: 8px 10px;
}
.img-card-name {
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.img-card-meta {
  font-size: 10px;
  color: #94a3b8;
}

.img-card-actions {
  display: flex;
  gap: 4px;
  padding: 0 8px 8px;
  justify-content: flex-end;
}
.img-btn-mini {
  width: 26px;
  height: 26px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  color: #475569;
}
.img-btn-mini:hover { background: #f1f5f9; border-color: #cbd5e1; }
.img-btn-mini.danger:hover { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }

@media (max-width: 720px) {
  .img-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .img-thumb { height: 110px; }
  .img-gallery { padding: 20px 16px; }
  .img-gallery-actions { flex-direction: column; align-items: stretch; }
  .img-btn { justify-content: center; }
}

/* ============== 主图区（按比例显示在子页面顶部） ============== */
.img-main-wrap {
  margin: 32px auto 0;
  max-width: 1200px;
  padding: 0 24px;
}

.img-main-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.img-main-frame {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  cursor: zoom-in;
  position: relative;
}

.img-main-loading {
  color: #94a3b8;
  font-size: 14px;
}

.img-main-img {
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  width: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.img-main-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  gap: 12px;
  flex-wrap: wrap;
}

.img-main-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.img-main-badge {
  background: linear-gradient(135deg, #c9a96e 0%, #b89456 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.img-main-name {
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.img-main-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* 主图卡片高亮 */
.img-card.is-main {
  border-color: #c9a96e;
  box-shadow: 0 4px 12px rgba(201, 169, 110, 0.18);
}

.img-card.is-main::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #c9a96e;
  border-radius: 10px;
  pointer-events: none;
}

.img-card { position: relative; }

.img-card-main-pin {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #c9a96e 0%, #b89456 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.img-btn-mini.main-on {
  background: linear-gradient(135deg, #c9a96e 0%, #b89456 100%);
  color: #fff;
  border-color: #b89456;
}
.img-btn-mini.main-on:hover {
  background: linear-gradient(135deg, #b89456 0%, #a37f48 100%);
}

@media (max-width: 720px) {
  .img-main-wrap { padding: 0 16px; margin-top: 24px; }
  .img-main-frame { min-height: 180px; padding: 8px; }
  .img-main-img { max-height: 50vh; }
  .img-main-toolbar { padding: 8px 12px; }
  .img-main-name { font-size: 12px; max-width: 160px; }
}

/* ============================================================
   doc-editor.js · Word 式文档编辑器样式
   ============================================================ */
.doc-editor-section {
  padding: 56px 0 96px;
  background: #fff;
  border-top: 1px solid var(--color-border);
}
.doc-editor-section .data-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.doc-tag {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  vertical-align: middle;
}

.doc-project-line {
  font-size: 14px;
  color: var(--color-text-soft);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #f8f9fb;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
}
.doc-project-line.warn {
  border-left-color: #d97706;
  background: #fffbeb;
  color: #92400e;
}
.doc-project-line strong { color: var(--color-primary); margin-right: 4px; }

/* ---- 工具栏 ---- */
.doc-toolbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(15, 30, 53, 0.08);
  margin-bottom: 20px;
}
.dt-group {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-right: 8px;
  border-right: 1px solid var(--color-border);
}
.dt-group:last-child { border-right: none; padding-right: 0; }

.dt-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.dt-btn:hover { background: #eef2f7; color: var(--color-primary); border-color: var(--color-border); }
.dt-btn:active { background: #e2e8f0; }
.dt-btn.dt-bold b { font-weight: 800; }
.dt-btn.dt-italic i { font-family: Georgia, serif; }
.dt-btn.dt-under u { text-underline-offset: 2px; }

.dt-font, .dt-size {
  height: 32px;
  padding: 0 6px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text-soft);
  font-size: 13px;
  cursor: pointer;
}
.dt-size { width: 64px; }
.dt-font { width: 100px; }

.dt-color {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.dt-color:hover { border-color: var(--color-accent); }
.dt-color input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
}
.dt-color .hl-ic { font-size: 14px; line-height: 1; color: var(--color-accent); }

/* ---- A4 纸张 ---- */
.doc-page-wrap {
  background: #eef1f5;
  padding: 32px 16px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}
.doc-page {
  max-width: 850px;
  min-height: 1000px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 6px 28px rgba(15, 30, 53, 0.14);
  padding: 60px 70px;
  font-family: "宋体", SimSun, "PingFang SC", "Microsoft YaHei", serif;
  font-size: 16px;
  line-height: 1.85;
  color: #1a1a2e;
  outline: none;
  transition: box-shadow 0.2s ease;
}
.doc-page:focus {
  box-shadow: 0 8px 36px rgba(30, 58, 95, 0.22);
}
.doc-page:empty::before {
  content: attr(data-placeholder);
  color: #b0b8c4;
  font-style: italic;
}
.doc-page h1 { font-size: 26px; margin: 18px 0 12px; color: var(--color-primary); line-height: 1.4; }
.doc-page h2 { font-size: 22px; margin: 16px 0 10px; color: var(--color-primary); line-height: 1.4; }
.doc-page h3 { font-size: 18px; margin: 14px 0 8px; color: var(--color-primary); line-height: 1.4; }
.doc-page p { margin: 0 0 12px; }
.doc-page ul, .doc-page ol { margin: 0 0 12px 22px; }
.doc-page ul { list-style: disc; }
.doc-page ol { list-style: decimal; }
.doc-page li { margin: 4px 0; }
.doc-page blockquote {
  margin: 12px 0;
  padding: 6px 16px;
  border-left: 3px solid var(--color-accent);
  color: var(--color-text-soft);
  background: #f8f9fb;
}
.doc-page hr { border: none; border-top: 1px solid #cbd5e1; margin: 18px 0; }
.doc-page a { color: var(--color-primary); text-decoration: underline; }
.doc-page img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0; }
.doc-page table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.doc-page td, .doc-page th { border: 1px solid #cbd5e1; padding: 6px 10px; font-size: 14px; }
/* 插入文档的 Excel 表格：按源文件列宽/行高排版，宽度自适应不撑破页面 */
.doc-page .xls-wrap { margin: 14px 0; }
.doc-page table.xls-table { width: auto; }
.doc-page table.xls-table td,
.doc-page table.xls-table th { font-size: 12px; padding: 2px 5px; border-color: #b9c4d4; }

/* ---- 底部操作栏 ---- */
.doc-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
}
.doc-status { font-size: 13px; color: #2e7d32; font-weight: 500; }
.doc-status.flash { color: var(--color-accent); }
.doc-cloud { font-size: 13px; font-weight: 500; }
.doc-cloud[data-state="ok"] { color: #2e7d32; }
.doc-cloud[data-state="syncing"] { color: #64748b; }
.doc-cloud[data-state="warn"] { color: #c9a96e; }
.doc-cloud[data-state="none"] { color: #94a3b8; }
.doc-count { font-size: 13px; color: var(--color-text-muted); }
.doc-count strong { color: var(--color-primary); font-variant-numeric: tabular-nums; }
.doc-spacer { flex: 1; }
.doc-act {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-soft);
  transition: all 0.15s ease;
}
.doc-act:hover { border-color: var(--color-primary); color: var(--color-primary); }
.doc-act.primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.doc-act.primary:hover { background: var(--color-primary-dark); }
.doc-act.ghost { background: #f8f9fb; }

/* ---- 文档里的「资料库附件卡片」（PDF / 压缩包等不能直接内联的文件）---- */
.doc-attach {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 12px 14px;
  background: #f8f9fb;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.doc-attach:hover {
  background: #eef2f7;
  border-left-color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(15, 30, 53, 0.08);
}
.doc-attach-ic { font-size: 24px; line-height: 1; flex: 0 0 auto; }
.doc-attach-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.doc-attach-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  word-break: break-all;
}
.doc-attach-meta { font-size: 12px; color: var(--color-text-muted); }

/* ---- 工具栏「📎 资料库」下拉面板 ---- */
.doc-libpanel {
  position: relative;
  z-index: 60;
  margin-top: 8px;
  min-width: 320px;
  max-width: min(520px, 92vw);
  max-height: 340px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 30, 53, 0.16);
  padding: 6px;
}
.dlp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4px;
}
.dlp-close {
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0 4px;
}
.dlp-close:hover { color: #c0392b; }
.dlp-empty {
  padding: 18px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.7;
}
.dlp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: transparent;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  transition: background 0.12s ease;
}
.dlp-item:hover { background: #eef2f7; }
.dlp-ic {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.3px;
}
.dlp-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-text-soft);
}
.dlp-size { flex: 0 0 auto; font-size: 12px; color: var(--color-text-muted); }

@media (max-width: 720px) {
  .doc-page { padding: 28px 22px; min-height: 600px; }
  .doc-page-wrap { padding: 16px 8px; }
  .doc-toolbar { top: 4px; gap: 6px; }
  .dt-font { width: 82px; }
  .doc-libpanel { min-width: 260px; max-height: 280px; }
}

/* ---- 首页：工程文件列表 ---- */
.home-files-body { max-width: 900px; margin: 0 auto; }

.home-files-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-muted);
  background: var(--color-bg-soft);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
}

.home-file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.home-file-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.home-file-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  font-size: 18px;
  color: var(--color-primary);
}

.home-file-info { flex: 1; min-width: 0; }
.home-file-name {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-file-name:hover { color: var(--color-accent); text-decoration: underline; }
.home-file-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.home-file-actions { flex: none; display: flex; gap: 8px; }
.home-file-btn {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.home-file-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

@media (max-width: 720px) {
  .home-file-item { flex-wrap: wrap; }
  .home-file-actions { width: 100%; justify-content: flex-end; }
}

/* ============================================================
   file-upload.js · 子页面「附件文件」样式
   ============================================================ */
.file-upload-section {
  padding: 48px 0 72px;
  background: #fbfcfe;
  border-top: 1px solid var(--color-border);
}
.file-upload-section .data-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fu-tag {
  font-size: 12px;
  font-weight: 600;
  color: #8a6f30;
  background: rgba(201, 169, 110, 0.18);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  vertical-align: middle;
}
.fu-project-line {
  font-size: 14px;
  color: var(--color-text-soft);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #f8f9fb;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
}
.fu-project-line.warn {
  border-left-color: #d97706;
  background: #fffbeb;
  color: #92400e;
}
.fu-project-line strong { color: var(--color-primary); margin-right: 4px; }

.fu-dropzone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  text-align: center;
  padding: 34px 24px;
  cursor: pointer;
  transition: all var(--transition);
}
.fu-dropzone:hover, .fu-dropzone.dragover {
  border-color: var(--color-accent);
  background: #fdfaf3;
}
.fu-dropzone.dragover { box-shadow: inset 0 0 0 3px rgba(201, 169, 110, 0.15); }
.fu-dropzone .icon { font-size: 38px; line-height: 1; }
.fu-dropzone .hint { font-size: 14px; color: var(--color-text-soft); margin: 8px 0 0; }
.fu-dropzone .sub { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }
.fu-accent { color: var(--color-accent); }

.fu-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fu-empty {
  text-align: center;
  padding: 28px 20px;
  color: var(--color-text-muted);
  background: #fff;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.fu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.fu-item:hover { border-color: var(--color-accent); box-shadow: var(--shadow-sm); }
.fu-icon { flex: none; font-size: 22px; width: 26px; text-align: center; }
.fu-info { flex: 1; min-width: 0; }
.fu-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  word-break: break-all;
}
.fu-name:hover { color: var(--color-accent); text-decoration: underline; }
.fu-meta { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }
.fu-actions { flex: none; display: flex; gap: 6px; }
.fu-btn {
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.fu-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.fu-btn-danger:hover { border-color: #c0392b; color: #c0392b; }
/* 「插入到 Word 文档」是这个列表里的主操作，用主色实心突出 */
.fu-btn-insert {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
}
.fu-btn-insert:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.fu-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-soft);
}
.fu-footer .fu-count strong { color: var(--color-primary); }
.fu-cloud { font-size: 13px; font-weight: 500; }
.fu-cloud[data-state="ok"] { color: #2e7d32; }
.fu-cloud[data-state="syncing"] { color: #64748b; }
.fu-cloud[data-state="error"] { color: #c0392b; }
.fu-cloud[data-state="none"] { color: #94a3b8; }

@media (max-width: 720px) {
  .fu-item { flex-wrap: wrap; }
  .fu-actions { width: 100%; justify-content: flex-end; }
}

/* ---- 打印：只打印文档页 ---- */
@media print {
  body.doc-printing > *:not(.doc-editor-section) { display: none !important; }
  body.doc-printing .doc-editor-section:not(.print-target) { display: none !important; }
  body.doc-printing .doc-editor-section { padding: 0; border: none; background: #fff; }
  body.doc-printing .doc-editor-section .container { max-width: none; padding: 0; }
  body.doc-printing .doc-editor-section .data-head,
  body.doc-printing .doc-editor-section .doc-project-line,
  body.doc-printing .doc-editor-section .doc-toolbar,
  body.doc-printing .doc-editor-section .doc-footer { display: none !important; }
  body.doc-printing .doc-page-wrap { background: #fff; padding: 0; border: none; border-radius: 0; }
  body.doc-printing .doc-page {
    max-width: none;
    min-height: 0;
    box-shadow: none;
    padding: 0;
    font-size: 12pt;
  }
  @page { size: A4; margin: 2cm; }
}

/* ============================================================
 * 全局「任务 / 急事」模块样式
 * ============================================================ */
/* 右上角入口 */
.header-todo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
  flex-shrink: 0;
  position: relative;
  z-index: 160;  /* 高于下拉菜单 110，确保 任务/急事 始终可点击 */
  pointer-events: auto;
}
.header-todo .todo-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-soft);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
  pointer-events: auto !important;  /* 关键：强制可点击，防止任何祖先拦截 */
  cursor: pointer;
  text-decoration: none;
  z-index: 1;
}
.header-todo .todo-link:hover {
  color: var(--color-primary);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
.header-todo .todo-link .todo-ic { font-size: 14px; line-height: 1; }
.header-todo .todo-link .todo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e11d48;
  flex-shrink: 0;
}
.header-todo .todo-link.has-new {
  color: #e11d48;
  border-color: #e11d48;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}
.header-todo .todo-link.urgent.has-new {
  animation: todoPulse 1.6s ease-in-out infinite;
}
@keyframes todoPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12); }
  50% { box-shadow: 0 0 0 6px rgba(225, 29, 72, 0.2); }
}

/* 全局任务 / 急事 页面 */
.todo-section {
  padding: 24px 0 60px;
}
.todo-head { margin-bottom: 20px; }
.todo-title {
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.todo-sub { color: var(--color-text-soft); font-size: 14px; }
.todo-add {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.todo-add input {
  flex: 1 1 auto;
  height: 46px;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  outline: none;
  transition: all var(--transition);
}
.todo-add input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}
.todo-add button {
  height: 46px;
  padding: 0 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.todo-add button:hover { background: #2a4d7a; }
.todo-count { color: var(--color-text-soft); font-size: 13px; margin-bottom: 12px; }
.todo-count strong { color: var(--color-primary); }
.todo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: all 0.2s ease;
}
.todo-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.todo-check {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  background: #fff;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}
.todo-item.done .todo-check {
  background: #2e7d32;
  border-color: #2e7d32;
}
.todo-text {
  flex: 1 1 auto;
  font-size: 15px;
  color: var(--color-text);
  word-break: break-word;
}
.todo-item.done .todo-text {
  text-decoration: line-through;
  color: #94a3b8;
}
.todo-del {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  color: #94a3b8;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.todo-del:hover { color: #e11d48; background: #fff5f5; }
.todo-empty {
  padding: 40px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* ===== 任务页：按人名分组的成员卡片 ===== */
.todo-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.todo-member {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}
.todo-member:hover {
  border-color: var(--color-accent);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
}
.todo-member-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.todo-member-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1e3a5f 0%, #2a4d7a 100%);
  border-radius: 50%;
}
.todo-member-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.todo-member-name:hover {
  background: rgba(201, 169, 110, 0.15);
  text-decoration: underline;
}
.todo-member-stat {
  font-size: 12px;
  color: #94a3b8;
  margin-left: auto;
  white-space: nowrap;
}
.todo-member-del {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  color: #94a3b8;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.todo-member-del:hover { color: #e11d48; background: #fff5f5; }
.todo-member-add {
  display: flex;
  gap: 8px;
}
.todo-member-add input {
  flex: 1 1 auto;
  height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  outline: none;
  transition: all var(--transition);
}
.todo-member-add input:focus {
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}
.todo-member-add button {
  height: 40px;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.todo-member-add button:hover { background: #2a4d7a; }
@media (max-width: 720px) {
  .todo-members { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-todo { margin-left: auto; }
  .header-todo .todo-link { padding: 6px 10px; }
  .todo-add { flex-wrap: wrap; }
  .todo-add button { flex: 1 1 100%; }
}

/* ===== 首页全屏海报（占首屏，文档流） ===== */
.hero-poster {
  position: relative;
  width: 100%;
  height: calc(100vh - 72px);
  min-height: 560px;
  overflow: hidden;
  background: #fafafa;
}
.hero-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
@media (max-width: 720px) {
  .hero-poster { height: 78vh; min-height: 420px; }
}

/* ===== 海报中上部叠加品牌标题（复刻公司名横幅） ===== */
.poster-brand {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0 20px;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
.poster-brand-cn {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  font-size: clamp(26px, 4.2vw, 56px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: #1e3a5f;
  white-space: nowrap;
}
.poster-brand-en {
  margin-top: 12px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(12px, 1.4vw, 19px);
  letter-spacing: 0.22em;
  font-weight: 600;
  color: #5b6b7f;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .poster-brand { top: 26%; }
  .poster-brand-cn { font-size: clamp(24px, 7.5vw, 40px); letter-spacing: 0.05em; }
  .poster-brand-en { letter-spacing: 0.12em; margin-top: 8px; }
}

/* 全局云端状态条：右下角紧凑胶囊，不遮挡导航与页面内容 */
.gezhi-cloud-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
  animation: gezhiCloudBarIn .3s ease;
  pointer-events: auto;
}
.gezhi-cloud-bar[hidden] { display: none; }
.gezhi-cloud-bar-ic {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}
.gezhi-cloud-bar-msg {
  flex: 0 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gezhi-cloud-bar-hint {
  font-weight: 400;
  font-size: 12px;
  opacity: .92;
  white-space: nowrap;
}
.gezhi-cloud-bar[data-state="ok"] {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.25);
}
.gezhi-cloud-bar[data-state="syncing"] {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid rgba(21, 101, 192, 0.25);
}
.gezhi-cloud-bar[data-state="warn"] {
  background: #fff3e0;
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.25);
}
.gezhi-cloud-bar[data-state="blocked"] {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  border: 1px solid rgba(127, 29, 29, 0.3);
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.35);
  font-weight: 600;
  animation: gezhiCloudBarBlocked 2s ease-in-out infinite;
}
.gezhi-cloud-bar[data-state="blocked"] .gezhi-cloud-bar-ic { font-size: 17px; }
.gezhi-cloud-bar[data-state="blocked"] .gezhi-cloud-bar-hint {
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
@keyframes gezhiCloudBarIn {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes gezhiCloudBarBlocked {
  0%, 100% { box-shadow: 0 4px 18px rgba(220, 38, 38, 0.35); }
  50% { box-shadow: 0 4px 26px rgba(220, 38, 38, 0.6); }
}
@media (max-width: 720px) {
  .gezhi-cloud-bar { right: 10px; bottom: 10px; max-width: calc(100vw - 20px); font-size: 12px; padding: 8px 12px; }
}

/* 全站访问密码门 */
.gezhi-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: gezhiAuthIn .3s ease;
}
.gezhi-auth-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,169,110,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.gezhi-auth-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  text-align: center;
}
.gezhi-auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #1e3a5f;
  font-weight: 600;
}
.gezhi-auth-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}
.gezhi-auth-name {
  font-size: 14px;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.gezhi-auth-title {
  font-size: 22px;
  color: #1e3a5f;
  margin: 0 0 8px;
  font-weight: 600;
}
.gezhi-auth-sub {
  color: #64748b;
  font-size: 13px;
  margin: 0 0 24px;
}
.gezhi-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.gezhi-auth-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-sizing: border-box;
  background: #f8fafc;
  color: #1e293b;
  font-family: inherit;
}
.gezhi-auth-input:focus {
  border-color: #c9a96e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}
.gezhi-auth-btn {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4f7c 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .1s, box-shadow .2s;
  font-family: inherit;
}
.gezhi-auth-btn:hover { box-shadow: 0 4px 12px rgba(30,58,95,0.3); }
.gezhi-auth-btn:active { transform: translateY(1px); }
.gezhi-auth-remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}
.gezhi-auth-remember input { margin: 0; cursor: pointer; }
.gezhi-auth-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 12px;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 6px;
  border: 1px solid #fecaca;
}
.gezhi-auth-shake { animation: gezhi-auth-shake 0.4s; }
@keyframes gezhi-auth-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.gezhi-auth-success { animation: gezhi-auth-out 0.38s forwards; pointer-events: none; }
@keyframes gezhi-auth-out {
  to { opacity: 0; transform: scale(0.96); }
}
@keyframes gezhiAuthIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 退出登录按钮（注入到 header-inner） */
.gezhi-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-left: 8px;
  background: rgba(255,255,255,0.1);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  white-space: nowrap;
}
.gezhi-logout-btn:hover {
  background: rgba(220,38,38,0.15);
  color: #fca5a5;
  border-color: rgba(220,38,38,0.3);
}
@media (max-width: 720px) {
  .gezhi-auth-card { padding: 28px 20px; }
  .gezhi-auth-name { font-size: 12px; }
  .gezhi-auth-title { font-size: 18px; }
  .gezhi-logout-btn span { display: none; }
  .gezhi-logout-btn { padding: 6px 8px; }
}


/* ==========================================================================
   文件在线预览器  .gp-*   （window.__GEZHI_PREVIEW__）
   图片 / PDF / Excel / Word / 文本 直接在站内浏览，无需下载
   ========================================================================== */
.gp-mask {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(11, 20, 35, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gp-mask[hidden] { display: none; }

.gp-box {
  width: min(1180px, 100%);
  height: min(88vh, 900px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(8, 17, 32, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #1e3a5f, #2c5282);
  color: #fff;
  flex-shrink: 0;
}
.gp-ficon { font-size: 20px; }
.gp-title {
  font-size: 15px;
  font-weight: 700;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gp-badge {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(201, 169, 110, 0.22);
  color: #f4e6c8;
  border: 1px solid rgba(201, 169, 110, 0.5);
  white-space: nowrap;
}
.gp-spacer { flex: 1; }
.gp-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.18s;
  white-space: nowrap;
  font-family: inherit;
}
.gp-btn:hover { background: rgba(255, 255, 255, 0.24); border-color: #c9a96e; }
.gp-x { font-size: 15px; padding: 6px 11px; }

.gp-body {
  flex: 1;
  overflow: auto;
  background: #f6f7f9;
  position: relative;
}
.gp-foot {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 12px;
  color: #6b7a90;
  background: #fafbfc;
  border-top: 1px solid #e6e9ef;
}

.gp-loading,
.gp-empty { padding: 60px 20px; text-align: center; color: #7b8798; font-size: 14px; }

/* 图片 */
.gp-imgwrap { padding: 18px; text-align: center; }
.gp-img {
  max-width: calc(100% * var(--gp-z, 1));
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* PDF：占满内容区，用浏览器内置阅读器 */
.gp-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #525659;
}

/* 文本 */
.gp-scroll { padding: 14px; }
.gp-pre {
  margin: 0;
  font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
  font-size: calc(13px * var(--gp-z, 1));
  line-height: 1.65;
  color: #24303f;
  white-space: pre-wrap;
  word-break: break-all;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  padding: 14px 16px;
}

/* Excel 工作表 */
.gp-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 14px 0;
  background: #fff;
  border-bottom: 1px solid #e6e9ef;
  position: sticky;
  top: 0;
  z-index: 2;
}
.gp-tab {
  border: 1px solid #d8dee7;
  background: #fff;
  color: #41506a;
  border-radius: 8px 8px 0 0;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.gp-tab.on { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }

.gp-sheet {
  background: #fff;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  overflow: auto;
}
.gp-sheet table { border-collapse: collapse; width: 100%; }
.gp-sheet td,
.gp-sheet th {
  border: 1px solid #e2e6ee;
  padding: 6px 10px;
  white-space: nowrap;
  font-size: calc(13px * var(--gp-z, 1));
  color: #263447;
}
.gp-sheet tr:first-child td,
.gp-sheet thead th {
  background: #eef2f8;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}
.gp-sheet tr:nth-child(even) td { background: #fbfcfe; }
.gp-sheet tr:nth-child(even) td:first-child { background: #f4f7fb; }

/* Excel 高保真表格（预览 + 插入 Word 文档共用）
   列宽/行高由 JS 按源文件写入 <colgroup> / <tr>，配合 table-layout:fixed
   严格按原比例排版，不会被单元格内容撑变形。
   换行策略也由 JS 按列宽决定：放得下 → nowrap（数字绝不拆行），放不下 → pre-wrap。 */
.xls-wrap { overflow-x: auto; margin: 12px 0; }
table.xls-table { table-layout: fixed; border-collapse: collapse; }
table.xls-table td,
table.xls-table th {
  border: 1px solid #c9d2de;
  padding: 2px 5px;
  font-size: calc(13px * var(--gp-z, 1));
  line-height: 1.45;
  color: #263447;
  vertical-align: middle;
  overflow-wrap: break-word;
}
table.xls-table td { background: #fff; }
table.xls-table tr:first-child td,
table.xls-table thead th { background: #eef2f8; font-weight: 700; }
.gp-sheet table.xls-table { width: auto; }

/* Word（mammoth 转出） */
.gp-doc {
  background: #fff;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  padding: 26px 30px;
  font-size: 15px;
  line-height: 1.9;
  color: #22303f;
}
.gp-doc img { max-width: 100%; height: auto; }
.gp-doc table { border-collapse: collapse; margin: 10px 0; max-width: 100%; }
.gp-doc td,
.gp-doc th { border: 1px solid #dfe4ec; padding: 6px 10px; }
.gp-doc h1, .gp-doc h2, .gp-doc h3 { color: #1e3a5f; margin: 18px 0 10px; }
.gp-doc p { margin: 8px 0; }

/* 预览器自带提示条（无全局 toast 时兜底） */
.gp-toast {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translate(-50%, -14px);
  background: rgba(24, 38, 58, 0.95);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 10060;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}
.gp-toast.show { opacity: 1; transform: translate(-50%, 0); }

body.gp-open { overflow: hidden; }

@media (max-width: 720px) {
  .gp-mask { padding: 0; }
  .gp-box { width: 100%; height: 100%; border-radius: 0; }
  .gp-title { max-width: 36%; font-size: 13px; }
  .gp-badge { display: none; }
  .gp-btn { padding: 5px 9px; font-size: 12px; }
  .gp-doc { padding: 16px; font-size: 14px; }
  .gp-scroll { padding: 10px; }
}

/* ===== 左下角「一键瘦身」按钮（在「进入编辑」按钮正上方）=====
   基础样式由 script.js 内联写入，这里只做状态与移动端微调。
   低调白胶囊为常态；检测到有内联 base64 图未搬迁时，JS 会切成金色并显示张数。 */
.storage-slim-btn:hover { box-shadow: 0 6px 18px rgba(15, 23, 42, .18); }
.storage-slim-btn:disabled { cursor: default; }
.storage-slim-btn[data-pending="0"] { opacity: .82; }
.storage-slim-btn[data-pending="0"]:hover { opacity: 1; }

@media (max-width: 720px) {
  /* 小屏上两个固定按钮竖排会更挤，整体缩一号并贴边 */
  .storage-slim-btn {
    left: 12px !important;
    bottom: 72px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
  }
}

/* ============================================================
   前台净化（09-clean.js）
   1) .clean-doc-section —— 后台编辑好的文档内容以「干净文字」展示，
      不带 Word 模式标题 / 工具栏 / 项目行 / 底栏
   2) .gf-sidebar —— 页面左侧「文件列表」，点「查看」整页显示
   ============================================================ */
.clean-doc-section {
  padding: 48px 0 80px;
  background: transparent;
}
.clean-doc-body {
  max-width: 960px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
  overflow-wrap: break-word;
}
.clean-doc-body h1 { font-size: 26px; margin: 20px 0 12px; color: var(--color-primary); line-height: 1.4; }
.clean-doc-body h2 { font-size: 22px; margin: 18px 0 10px; color: var(--color-primary); line-height: 1.4; }
.clean-doc-body h3 { font-size: 18px; margin: 15px 0 8px; color: var(--color-primary); line-height: 1.4; }
.clean-doc-body p { margin: 10px 0; }
.clean-doc-body ul,
.clean-doc-body ol { list-style: disc outside; padding-left: 1.6em; margin: 10px 0; }
.clean-doc-body ol { list-style: decimal outside; }
.clean-doc-body li { margin: 4px 0; }
.clean-doc-body a { color: var(--color-primary-light); text-decoration: underline; }
.clean-doc-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.clean-doc-body table { border-collapse: collapse; margin: 12px 0; max-width: 100%; }
.clean-doc-body td,
.clean-doc-body th { border: 1px solid var(--color-border); padding: 7px 11px; }
.clean-doc-body blockquote {
  margin: 12px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-soft);
  color: var(--color-text-soft);
}

/* ---- 左侧「文件列表」 ---- */
.gf-sidebar {
  position: fixed;
  left: 12px;
  top: 96px;
  width: 230px;
  max-height: calc(100vh - 176px);
  z-index: 960;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gf-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px 10px 14px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.04), rgba(201, 169, 110, 0.08));
}
.gf-side-title { font-size: 13px; font-weight: 700; color: var(--color-primary); }
.gf-side-count {
  font-size: 11px;
  color: var(--color-accent-dark);
  background: rgba(201, 169, 110, 0.16);
  border-radius: 999px;
  padding: 1px 8px;
  font-weight: 700;
}
.gf-fold {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
}
.gf-fold:hover { background: #eef2f7; color: var(--color-primary); }
.gf-side-list { overflow-y: auto; padding: 6px; }
.gf-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.gf-file:hover { background: #f2f5f9; }
.gf-file + .gf-file { margin-top: 2px; }
.gf-file-icon { font-size: 17px; line-height: 1; flex: none; }
.gf-file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gf-file-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gf-file-meta { font-size: 11px; color: #94a3b8; }
.gf-file-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.gf-view {
  border: 1px solid var(--color-accent);
  color: var(--color-accent-dark);
  background: #fffdf7;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s;
}
.gf-view:hover { background: var(--color-accent); color: #fff; }
.gf-down {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  padding: 3px 4px;
  border-radius: 6px;
}
.gf-down:hover { color: var(--color-primary); background: #eef2f7; }
.gf-side-foot {
  padding: 8px 14px 9px;
  border-top: 1px solid var(--color-border);
  font-size: 11px;
  color: #94a3b8;
}

/* 收起态：桌面 = 左缘细条 */
.gf-sidebar.collapsed {
  width: 44px;
  max-height: none;
  padding: 0;
  border-radius: 12px;
}
.gf-sidebar.collapsed .gf-unfold {
  width: 100%;
  height: 100%;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-primary);
  padding: 10px 0;
}
.gf-unfold-icon { font-size: 18px; line-height: 1; }
.gf-unfold-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; writing-mode: vertical-lr; }
.gf-unfold-count {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  border-radius: 999px;
  min-width: 16px;
  padding: 1px 4px;
}
.gf-sidebar.collapsed .gf-unfold:hover { background: #f2f5f9; }

/* 文件列表展开时，给主内容让位（标题 / 干净文字不被面板压住） */
body.gf-sidebar-on:not(.gf-sidebar-collapsed) .page-hero .container,
body.gf-sidebar-on:not(.gf-sidebar-collapsed) .clean-doc-section .container,
body.gf-sidebar-on:not(.gf-sidebar-collapsed) .data-section .container {
  padding-left: 264px;
}
@media (max-width: 1200px) {
  body.gf-sidebar-on:not(.gf-sidebar-collapsed) .page-hero .container,
  body.gf-sidebar-on:not(.gf-sidebar-collapsed) .clean-doc-section .container,
  body.gf-sidebar-on:not(.gf-sidebar-collapsed) .data-section .container {
    padding-left: 24px;
  }
}

@media (max-width: 900px) {
  /* 移动端：收起态 = 左下角圆形悬浮按钮；展开态 = 左侧抽屉 */
  .gf-sidebar {
    left: 10px;
    right: auto;
    top: auto;
    bottom: 88px;
    width: min(78vw, 300px);
    max-height: 58vh;
  }
  .gf-sidebar.collapsed {
    width: 52px;
    bottom: 14px;
    left: 12px;
    border-radius: 999px;
  }
  .gf-sidebar.collapsed .gf-unfold { min-height: 52px; padding: 8px 0; }
  .gf-unfold-label { writing-mode: horizontal-tb; letter-spacing: 0; font-size: 10px; }
  .clean-doc-section { padding: 36px 0 64px; }
}

/* ============================================================
   前台净化（09-clean.js）—— 就地内嵌查看器
   点左侧文件列表「查看」后，文件内容就地显示在页面主内容区
   ============================================================ */
/* 当前正在查看的文件高亮 */
.gf-file.on {
  background: rgba(201, 169, 110, 0.14);
  box-shadow: inset 3px 0 0 var(--color-accent);
}
.gf-file.on .gf-file-name { color: var(--color-primary); }

.gf-inline {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.gf-inline-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(135deg, #1e3a5f, #2c5282);
  color: #fff;
  flex-shrink: 0;
}
.gf-inline-ico { font-size: 16px; line-height: 1; }
.gf-inline-title {
  font-size: 14px;
  font-weight: 700;
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gf-inline-head .gf-spacer { flex: 1; }
.gf-inline-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12.5px;
  cursor: pointer;
  transition: 0.18s;
  white-space: nowrap;
  font-family: inherit;
}
.gf-inline-btn:hover { background: rgba(255, 255, 255, 0.24); border-color: #c9a96e; }
.gf-inline-x { font-size: 13px; }
.gf-inline-body {
  flex: 1;
  overflow: auto;
  background: #f6f7f9;
  position: relative;
  min-height: 420px;
}
.gf-inline-foot {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 12px;
  color: #6b7a90;
  background: #fafbfc;
  border-top: 1px solid #e6e9ef;
}
/* 内嵌查看时，主内容区上下留白收紧 */
.clean-doc-section.gf-viewing { padding: 32px 0 64px; }

@media (max-width: 900px) {
  .gf-inline { min-height: 360px; border-radius: 10px; }
  .gf-inline-body { min-height: 300px; }
  .gf-inline-title { max-width: 40%; }
}

