/* ====================================================
   临沂商城发展集团 — 主样式文件
   ==================================================== */

:root {
  --primary: #1a4fa0;
  --primary-dark: #0f2f6e;
  --primary-light: #2d6ed6;
  --accent: #d4960a;
  --accent-light: #f5c842;
  --text-dark: #1a1a2e;
  --text-mid: #444466;
  --text-light: #888899;
  --bg-light: #f4f6fb;
  --bg-white: #ffffff;
  --border: #e0e6f0;
  --success: #27ae60;
  --warning: #e67e22;
  --danger: #e74c3c;
  --info: #2980b9;
  --shadow-sm: 0 2px 8px rgba(26,79,160,0.08);
  --shadow-md: 0 4px 20px rgba(26,79,160,0.13);
  --shadow-lg: 0 8px 40px rgba(26,79,160,0.18);
  --radius: 10px;
  --radius-lg: 18px;
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'PingFang SC', 'Noto Sans SC', '微软雅黑', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f2f8; }
::-webkit-scrollbar-thumb { background: #b0bcd8; border-radius: 3px; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 24px; height: 68px; gap: 32px;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1.05rem; color: var(--primary-dark);
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center;
  list-style: none;
}
.nav-links a {
  padding: 6px 14px; border-radius: 6px;
  font-size: 0.93rem; color: var(--text-mid);
  transition: var(--transition); font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(26,79,160,0.08); color: var(--primary);
}

.nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* ── 语言切换按钮 ── */
.lang-switch-wrap { display: inline-flex; align-items: center; gap: 2px; }
.lang-btn {
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; background: transparent;
  color: var(--text-mid); transition: var(--transition);
  white-space: nowrap;
}
.lang-btn:hover { background: rgba(26,79,160,0.06); color: var(--primary); }
.lang-btn.active {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
}


.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 20px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: none; transition: var(--transition); text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; box-shadow: 0 2px 10px rgba(26,79,160,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,79,160,0.4); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: rgba(26,79,160,0.06); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff; box-shadow: 0 2px 10px rgba(212,150,10,0.3);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,150,10,0.4); }
.btn-ghost { background: transparent; color: var(--text-mid); }
.btn-ghost:hover { color: var(--primary); }
.btn-sm { padding: 5px 14px; font-size: 0.82rem; }
.btn-lg { padding: 12px 32px; font-size: 1rem; border-radius: 10px; }
.btn-block { width: 100%; }

.nav-menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--text-dark); padding: 4px;
}

/* ══════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d2257 0%, #1a4fa0 45%, #1e6fba 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 68px;
}

.hero-bg-shapes {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-bg-shapes span {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hero-bg-shapes span:nth-child(1) { width: 500px; height: 500px; top: -120px; right: -100px; }
.hero-bg-shapes span:nth-child(2) { width: 300px; height: 300px; bottom: -80px; left: -60px; }
.hero-bg-shapes span:nth-child(3) { width: 200px; height: 200px; top: 40%; right: 20%; opacity: 0.3; }

.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 80px 48px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  color: #fff; padding: 6px 16px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-light); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; color: #fff;
  line-height: 1.25; margin-bottom: 16px;
}
.hero-title .highlight {
  color: var(--accent-light);
  position: relative;
}

.hero-subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,0.8);
  line-height: 1.7; margin-bottom: 32px; max-width: 480px;
}

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

.hero-stat-item .num {
  display: block; font-size: 1.9rem; font-weight: 800; color: var(--accent-light);
  line-height: 1;
}
.hero-stat-item .label {
  display: block; font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 4px;
}

.hero-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: var(--transition);
}
.hero-card:hover { background: rgba(255,255,255,0.16); transform: translateY(-4px); }
.hero-card.large { grid-column: span 2; }
.hero-card-link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.hero-card-arrow {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--accent-light);
  font-weight: 600;
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
}
.hero-card-link:hover .hero-card-arrow {
  opacity: 1;
  transform: translateX(0);
}
.hero-card-icon {
  font-size: 1.6rem; margin-bottom: 8px;
}
.hero-card-title { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.hero-card-desc { font-size: 0.72rem; color: rgba(255,255,255,0.7); line-height: 1.5; }


/* ══════════════════════════════════════════
   SECTION COMMONS
══════════════════════════════════════════ */
section { padding: 80px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  background: rgba(26,79,160,0.1); color: var(--primary);
  padding: 4px 14px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--text-dark);
  line-height: 1.3; margin-bottom: 14px;
}
.section-desc {
  font-size: 1rem; color: var(--text-mid);
  max-width: 600px; margin: 0 auto; line-height: 1.7;
}

/* ══════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════ */
.about-section { background: var(--bg-white); }

.about-image-wrap {
  margin: 0 0 16px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  max-width: 100%;
}
.about-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.about-grid {
  display: grid; grid-template-columns: 3fr 2fr;
  gap: 36px; align-items: start;
}

.about-content .about-lead {
  font-size: 0.95rem; color: var(--text-mid);
  line-height: 1.75; margin-bottom: 16px;
}

.about-highlights {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px;
}
.about-highlight-item {
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--bg-light);
  border-left: 3px solid var(--primary);
}
.about-highlight-item .icon { font-size: 1.2rem; margin-bottom: 3px; }
.about-highlight-item .title { font-size: 0.85rem; font-weight: 700; color: var(--text-dark); }
.about-highlight-item .desc { font-size: 0.75rem; color: var(--text-mid); margin-top: 2px; }

.about-right { position: relative; }
.about-info-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  color: #fff;
  margin-bottom: 14px;
}
.about-info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.about-info-list { list-style: none; }
.about-info-list li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.82rem;
}
.about-info-list li:last-child { border-bottom: none; }
.about-info-list li .label { color: rgba(255,255,255,0.7); flex-shrink: 0; min-width: 72px; }
.about-info-list li .value { font-weight: 600; }

.stat-card {
  background: var(--bg-light); border-radius: var(--radius);
  padding: 14px 10px; text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.stat-card .num { font-size: 1.4rem; font-weight: 800; color: var(--primary); display: block; }
.stat-card .label { font-size: 0.72rem; color: var(--text-light); margin-top: 2px; }

/* ══════════════════════════════════════════
   BUSINESS SECTION
══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   PROJECTS SECTION
══════════════════════════════════════════ */
.projects-section { background: var(--bg-white); }

/* 项目卡片网格（类似六位一体排版） */
.project-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.proj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 28px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  overflow: hidden;
}
.proj-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(26,79,160,0.12);
  transform: translateY(-4px);
}
.proj-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}
.proj-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.proj-card-desc {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-bottom: 12px;
}
.proj-card-footer {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.proj-card-tag {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
}
.proj-card:hover .proj-card-tag { color: #1a4fa0; }
.proj-card-num {
  position: absolute;
  bottom: 6px;
  right: 18px;
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(200,210,220,0.35);
  line-height: 1;
  pointer-events: none;
}

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

.project-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
  background: var(--bg-light); border-radius: var(--radius-lg);
  padding: 40px; border: 1px solid var(--border);
}
.project-card.reverse { direction: rtl; }
.project-card.reverse > * { direction: ltr; }

.project-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.project-meta-item .icon { font-size: 1rem; }

.project-progress-area { }
.progress-card {
  background: var(--bg-white); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border); margin-bottom: 16px;
}
.progress-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; color: var(--text-dark); }
.progress-item { margin-bottom: 12px; }
.progress-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; margin-bottom: 5px;
}
.progress-label span:first-child { color: var(--text-mid); }
.progress-label span:last-child { color: var(--primary); font-weight: 700; }
.progress-bar {
  height: 6px; background: var(--bg-light); border-radius: 3px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 1s ease;
}

.update-item {
  display: flex; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.update-item:last-child { border-bottom: none; }
.update-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); margin-top: 5px; flex-shrink: 0;
}
.update-content .date { font-size: 0.75rem; color: var(--text-light); margin-bottom: 3px; }
.update-content .text { font-size: 0.85rem; color: var(--text-mid); line-height: 1.5; }

/* ══════════════════════════════════════════
   COOPERATION SECTION
══════════════════════════════════════════ */
.coop-section { background: var(--bg-light); }

.coop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.coop-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--border);
  transition: var(--transition);
}
.coop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.coop-card .header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.coop-card .coop-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; flex-shrink: 0;
}
.coop-card .coop-title { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); }
.coop-card .coop-subtitle { font-size: 0.82rem; color: var(--text-light); }

/* 可展开的合作卡片 */
.coop-expandable { cursor: pointer; }
.coop-expandable:hover { border-color: var(--primary); }
.coop-card-expanded { border-color: var(--primary) !important; box-shadow: var(--shadow-md) !important; transform: none !important; }
.coop-expand-arrow.rotate { transform: rotate(180deg); }
.coop-detail-body {
  max-height: 0; overflow: hidden; transition: max-height 0.5s ease;
}
.coop-detail-body.open {
  max-height: 1600px;
}
.coop-expandable .coop-card-main::after {
  content: '点击展开详情 ▼';
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: var(--primary);
  margin-top: 12px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.coop-expandable:hover .coop-card-main::after { opacity: 1; }
.coop-card-expanded .coop-card-main::after {
  content: '点击收起 ▲';
}

.coop-points { list-style: none; }
.coop-points li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--text-mid); padding: 6px 0;
}
.coop-points li .point-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-top: 7px; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════ */
.contact-section { background: var(--bg-white); }

.contact-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; color: var(--text-dark); }
.contact-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .ci-icon {
  width: 40px; height: 40px;
  background: rgba(26,79,160,0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item .ci-label { font-size: 0.78rem; color: var(--text-light); margin-bottom: 2px; }
.contact-item .ci-value { font-size: 0.92rem; color: var(--text-dark); font-weight: 600; }

/* 项目联系方式 */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.9rem; color: var(--text-dark);
  background: var(--bg-white); transition: var(--transition);
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,79,160,0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ══════════════════════════════════════════
   RICH TEXT EDITOR
══════════════════════════════════════════ */
.rte-wrap { border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg-white); transition: var(--transition); }
.rte-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,79,160,0.1); }
.rte-toolbar {
  display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 8px;
  background: #f7f8fa; border-bottom: 1.5px solid var(--border);
}
.rte-toolbar .rte-sep { width: 1px; background: var(--border); margin: 2px 4px; align-self: stretch; }
.rte-btn {
  width: 32px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 4px; background: transparent; cursor: pointer;
  font-size: 14px; color: var(--text-mid); transition: background 0.15s;
}
.rte-btn:hover { background: #e8ecf2; }
.rte-btn.active { background: #d0d8e8; color: var(--primary); }
.rte-undo-btn, .rte-redo-btn { font-size: 16px; color: var(--text-dark); }
.rte-undo-btn:hover, .rte-redo-btn:hover { background: #dde3ed; }
.rte-select {
  height: 30px; padding: 2px 6px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 0.78rem; background: #fff; color: var(--text-dark); cursor: pointer;
}
.rte-color {
  width: 30px; height: 30px; padding: 2px; border: 1px solid var(--border); border-radius: 4px;
  cursor: pointer; background: transparent;
}
.rte-body {
  min-height: 200px; max-height: 500px; overflow-y: auto;
  padding: 14px 16px; font-size: 0.92rem; line-height: 1.7;
  color: var(--text-dark); outline: none;
}
.rte-body:empty::before {
  content: attr(data-placeholder); color: var(--text-light); pointer-events: none;
}
.rte-body h4 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin: 12px 0 6px; }
.rte-body b, .rte-body strong { font-weight: 700; color: var(--text-dark); }
.rte-body p { margin: 0 0 8px; }
.rte-body ul, .rte-body ol { padding-left: 24px; margin: 4px 0; }
.rte-body img { max-width: 100%; width: 100%; height: auto; border-radius: 8px; margin: 8px 0; display: block; cursor: pointer; transition: outline 0.15s; }
.rte-body img.rte-img-selected { outline: 3px solid var(--primary); outline-offset: 2px; }
.rte-img-actions { display: flex; gap: 6px; justify-content: center; padding: 6px 0; }
.rte-img-action-btn {
  padding: 4px 12px; border: 1px solid var(--border); border-radius: 4px;
  background: var(--bg-white); color: var(--text-dark); font-size: 0.8rem;
  cursor: pointer; transition: background 0.15s;
}
.rte-img-action-btn:hover { background: #e8ecf2; }
.rte-img-del-btn { color: #d32f2f; border-color: #d32f2f; }
.rte-img-del-btn:hover { background: #ffebee; }

/* ══════════════════════════════════════════
   LOG CARD ACTIONS & FILTER BAR
══════════════════════════════════════════ */
.employee-log-card {
  background: var(--bg-white); border-radius: 10px; padding: 16px 20px;
  margin-bottom: 12px; border: 1px solid var(--border); transition: box-shadow 0.2s;
}
.employee-log-card:hover { box-shadow: 0 2px 12px rgba(26,79,160,0.08); }
.employee-log-card .el-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px;
}
.employee-log-card .el-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(26,79,160,0.1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: var(--primary); flex-shrink: 0;
}
.employee-log-card .el-meta { flex: 1; min-width: 0; }
.employee-log-card .el-name { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); }
.employee-log-card .el-info { font-size: 0.78rem; color: var(--text-light); margin-top: 2px; }
.employee-log-card .el-actions {
  display: flex; gap: 4px; flex-shrink: 0; opacity: 0.6; transition: opacity 0.2s;
}
.employee-log-card:hover .el-actions { opacity: 1; }
.employee-log-card .el-content {
  font-size: 0.9rem; line-height: 1.7; color: var(--text-mid); padding-left: 48px;
}
.filter-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 20px; padding: 12px 16px; background: var(--bg-light);
  border-radius: 8px; border: 1px solid var(--border);
}
.filter-bar select, .filter-bar input[type="date"] {
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.85rem; background: var(--bg-white); color: var(--text-dark);
}

/* ══════════════════════════════════════════
   PROJECT IMAGE THUMBNAILS (DRAG SORT)
══════════════════════════════════════════ */
.proj-img-thumb {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 120px; height: 80px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--border); cursor: grab; transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  user-select: none; margin-right: 8px; margin-bottom: 8px; vertical-align: top;
}
.proj-img-thumb:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(26,79,160,0.15); }
.proj-img-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.proj-img-thumb .proj-img-del {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; border: none; font-size: 12px; cursor: pointer; line-height: 20px;
  opacity: 0; transition: opacity 0.2s;
}
.proj-img-thumb:hover .proj-img-del { opacity: 1; }
.proj-img-thumb .proj-img-drag {
  position: absolute; bottom: 0; left: 0; right: 0; height: 18px; line-height: 18px;
  background: rgba(0,0,0,0.5); color: #fff; font-size: 10px; text-align: center;
  opacity: 0; transition: opacity 0.2s; letter-spacing: 2px;
}
.proj-img-thumb:hover .proj-img-drag { opacity: 1; }
.proj-img-thumb.dragging { opacity: 0.4; border-style: dashed; }
.proj-img-thumb.drag-over { border-color: var(--primary); border-style: solid; box-shadow: 0 0 0 3px rgba(26,79,160,0.25); transform: scale(1.05); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--text-dark); color: rgba(255,255,255,0.8);
  padding: 60px 0 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }

.footer-brand .logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .logo .icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; font-weight: 800;
}
.footer-brand .logo .name { font-size: 1rem; font-weight: 700; color: #fff; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 { font-size: 0.92rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.85rem; color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ══════════════════════════════════════════
   INTERNAL ONLY (公开展示时隐藏)
══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d2257 0%, #1a4fa0 60%, #1e6fba 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-box {
  background: var(--bg-white); border-radius: var(--radius-lg);
  padding: 40px; width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.login-logo {
  text-align: center; margin-bottom: 28px;
}
..login-logo h2 { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); }
.login-logo p { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

.login-tab {
  flex: 1; padding: 10px; text-align: center; font-size: 0.88rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  background: var(--bg-white); color: var(--text-mid); border: none;
}
.login-tab.active { background: var(--primary); color: #fff; }

/* ══════════════════════════════════════════
   INTERNAL / ADMIN PAGES
══════════════════════════════════════════ */
.app-layout {
  display: flex; min-height: 100vh;
}

.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--primary-dark); color: #fff;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  transition: var(--transition);
}
.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.95rem;
}
.sidebar-logo .icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary-light), #4a9fe8);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800;
}
.sidebar-role-badge {
  display: inline-block; font-size: 0.7rem;
  background: rgba(255,255,255,0.15); border-radius: 4px;
  padding: 2px 8px; margin-top: 6px; margin-left: 46px;
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.sidebar-section { margin-bottom: 20px; }
.sidebar-section-title {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4); padding: 0 8px; margin-bottom: 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: 8px;
  font-size: 0.88rem; color: rgba(255,255,255,0.75);
  cursor: pointer; transition: var(--transition); margin-bottom: 2px; border: none;
  background: none; width: 100%; text-align: left;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,255,255,0.12); color: #fff;
}
.sidebar-link .icon { font-size: 1rem; flex-shrink: 0; }

.sidebar-footer {
  padding: 16px; border-top: 1px solid rgba(255,255,255,0.1);
}
.user-info {
  display: flex; align-items: center; gap: 10px;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff; flex-shrink: 0;
}
.user-name { font-size: 0.88rem; font-weight: 600; }
.user-dept { font-size: 0.72rem; color: rgba(255,255,255,0.5); }

.main-content {
  margin-left: 240px; flex: 1; display: flex; flex-direction: column;
  min-height: 100vh;
}
.topbar {
  background: var(--bg-white); border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 90;
  box-shadow: var(--shadow-sm);
}
.topbar-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.page-body { padding: 24px; flex: 1; }

.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.page-header p { font-size: 0.88rem; color: var(--text-light); }

/* Dashboard stats */
.dashboard-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px;
}
.ds-card {
  background: var(--bg-white); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  transition: var(--transition);
}
.ds-card:hover { box-shadow: var(--shadow-md); }
.ds-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.ds-icon.blue { background: rgba(26,79,160,0.1); }
.ds-icon.green { background: rgba(39,174,96,0.1); }
.ds-icon.orange { background: rgba(230,126,34,0.1); }
.ds-info .value { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.ds-info .label { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }
.ds-info .trend { font-size: 0.75rem; color: var(--success); margin-top: 2px; }

/* Cards and panels */
.card {
  background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); }
.card-body { padding: 20px; }

/* Project kanban */
.kanban {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.kanban-col { }
.kanban-col-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 8px; margin-bottom: 12px;
}
.kanban-col-header .status-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.kanban-col-header .count {
  background: rgba(0,0,0,0.1); border-radius: 100px;
  padding: 1px 8px; font-size: 0.72rem; font-weight: 700; margin-left: auto;
}
.kanban-item {
  background: var(--bg-white); border-radius: var(--radius);
  padding: 14px; border: 1px solid var(--border);
  margin-bottom: 10px; cursor: pointer; transition: var(--transition);
}
.kanban-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.kanban-item .k-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; color: var(--text-dark); }
..kanban-item .k-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; color: var(--text-light);
}
.kanban-item .k-tag {
  background: rgba(26,79,160,0.08); color: var(--primary);
  padding: 2px 8px; border-radius: 100px; font-size: 0.7rem; font-weight: 600;
}

/* Logs table */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th {
  padding: 10px 14px; background: var(--bg-light);
  color: var(--text-mid); font-weight: 600; text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  color: var(--text-dark);
}
tr:hover td { background: rgba(26,79,160,0.03); }
tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block; padding: 2px 10px;
  border-radius: 100px; font-size: 0.72rem; font-weight: 700;
}
.badge-warning { background: rgba(230,126,34,0.1); color: var(--warning); }
.badge-info { background: rgba(41,128,185,0.1); color: var(--info); }
.badge-danger { background: rgba(231,76,60,0.1); color: var(--danger); }
.badge-primary { background: rgba(26,79,160,0.1); color: var(--primary); }
.badge-success { background: rgba(39,174,96,0.12); color: var(--success, #27ae60); }

/* Forms */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-white); border-radius: var(--radius-lg);
  width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  transform: translateY(20px); transition: transform 0.25s ease;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
  padding: 20px 24px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close {
  background: none; border: none; font-size: 1.3rem; cursor: pointer;
  color: var(--text-light); transition: var(--transition);
}
.modal-close:hover { color: var(--text-dark); }
.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* Notification */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--text-dark); color: #fff;
  padding: 12px 20px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 500;
  box-shadow: var(--shadow-lg); z-index: 9999;
  transform: translateX(120%); transition: transform 0.3s ease;
  display: flex; align-items: center; gap: 10px; min-width: 200px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }

/* ══════════════════════════════════════════
   RESPONSIVE — 移动端 & 平板适配
   APP端 / 公众号 WebView / 手机浏览器
══════════════════════════════════════════ */

/* ── 平板 (768px - 1024px) ── */
@media (max-width: 1024px) {
  .nav-inner { gap: 16px; }
  .nav-logo { font-size: 0.9rem; }
  .nav-links a { font-size: 0.82rem; padding: 6px 10px; }
  
  .hero-inner { grid-template-columns: 1fr; padding: 60px 32px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { grid-template-columns: repeat(2, 1fr); max-width: 500px; margin: 0 auto; }
  
  .about-grid { grid-template-columns: 1fr; }
  .section-inner { padding: 0 20px; }
  
  .project-card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  
  .coop-grid { grid-template-columns: 1fr 1fr; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: 1fr 1fr; }

  /* 后台侧边栏：≤1024px 完全收起，仅保留汉堡菜单（覆盖平板/大屏手机横屏/微信 web-view 等宽度段） */
  .sidebar {
    position: fixed; top: 0; left: -280px; bottom: 0;
    width: 250px; z-index: 200;
    transition: left 0.3s ease;
  }
  .sidebar.mobile-open { left: 0; }
  .sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 199;
  }
  .sidebar.mobile-open + .sidebar-overlay { display: block; }
  .main-content { margin-left: 0; }
  #mobileMenuBtn, .nav-menu-toggle {
    display: flex !important; align-items: center; justify-content: center;
    width: 40px; height: 40px; font-size: 1.25rem; background: none;
    border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
    color: var(--text-dark); flex-shrink: 0;
  }
}

/* 后台侧边栏：769px–1199px 同样完全收起，仅保留汉堡菜单（覆盖大屏手机横屏/平板/微信 web-view 等宽度段） */
@media (min-width: 769px) and (max-width: 1199px) {
  .sidebar {
    position: fixed; top: 0; left: -280px; bottom: 0;
    width: 250px; z-index: 200;
    transition: left 0.3s ease;
  }
  .sidebar.mobile-open { left: 0; }
  .sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 199;
  }
  .sidebar.mobile-open + .sidebar-overlay { display: block; }
  .main-content { margin-left: 0; }
  #mobileMenuBtn, .nav-menu-toggle {
    display: flex !important; align-items: center; justify-content: center;
    width: 40px; height: 40px; font-size: 1.25rem; background: none;
    border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
    color: var(--text-dark); flex-shrink: 0;
  }
}

/* ── 手机横屏 / 小平板 (480px - 768px) ── */
@media (max-width: 768px) {
  html { font-size: 15px; }
  
  /* 导航栏 */
  .nav-inner { padding: 0 16px; height: 60px; gap: 12px; }
  .nav-logo { font-size: 0.85rem; }
  .nav-logo img { height: 36px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 60px; left: 0; right: 0; background: var(--bg-white);
    padding: 12px 20px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); z-index: 999; gap: 0;
  }
  .nav-links.open a { padding: 10px 12px; width: 100%; }
  .nav-menu-toggle { display: flex; }
  
  /* 语言切换按钮在手机端缩小 */
  .lang-btn { padding: 3px 8px; font-size: 0.75rem; }
  .lang-switch-wrap { margin-right: 2px; }
  
  /* Hero区 */
  .hero { padding-top: 60px; min-height: auto; }
  .hero-inner { padding: 40px 16px 50px; gap: 24px; }
  .hero-tag { font-size: 0.75rem; padding: 4px 12px; }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.9rem; line-height: 1.6; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-card { padding: 12px; }
  .hero-card-icon { font-size: 1.3rem; }
  .hero-card-title { font-size: 0.78rem; }
  .hero-card-desc { font-size: 0.68rem; }
  
  /* 各板块 */
  section { padding: 50px 0; }
  .section-title { font-size: 1.3rem; }
  .section-desc { font-size: 0.9rem; }
  .section-header { margin-bottom: 32px; }
  
  /* 集团介绍 */
  .about-highlights { grid-template-columns: 1fr; gap: 8px; }
  .about-lead { font-size: 0.88rem; }
  .about-info-card { padding: 16px 18px; }
  .about-info-list li { font-size: 0.78rem; }
  
  /* 项目卡片网格 */
  .project-card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .proj-card { padding: 16px 14px 20px; }
  .proj-card-icon { font-size: 1.5rem; margin-bottom: 10px; }
  .proj-card-title { font-size: 0.9rem; }
  .proj-card-desc { font-size: 0.76rem; -webkit-line-clamp: 6; }
  .proj-card-num { font-size: 1.8rem; right: 10px; }
  
  /* 合作方式 */
  .coop-grid { grid-template-columns: 1fr; gap: 16px; }
  .coop-card { padding: 20px; }
  .coop-card .coop-title { font-size: 0.95rem; }
  .coop-detail-body [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .coop-detail-body [style*="gap:16px"] { gap: 10px !important; }
  
  /* 联系我们 */
  .contact-info { flex-direction: column !important; gap: 16px !important; align-items: center !important; }
  .contact-info [style*="font-size:1.2rem"] { display: none; }
  .contact-item { padding: 10px 0; }
  .contact-item .ci-icon { width: 36px; height: 36px; font-size: 1rem; }
  
  /* 页脚 */
  .footer { padding: 40px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { text-align: center; }
  .footer-brand .logo { justify-content: center; }
  .footer-brand p { max-width: 100%; }
  .footer-col { text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  
  /* 表单 */
  .form-row { grid-template-columns: 1fr; }
  
  /* 登录页 */
  .login-box { padding: 28px 20px; max-width: 100%; margin: 0 12px; }
  
  /* 侧边栏 */
  .sidebar {
    position: fixed; top: 0; left: -260px; bottom: 0;
    width: 240px; z-index: 200;
    transition: left 0.3s ease;
  }
  .sidebar.mobile-open { left: 0; }
  .sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 199;
  }
  .sidebar.mobile-open + .sidebar-overlay { display: block; }
  .main-content { margin-left: 0; }
  .page-body { padding: 14px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .topbar { padding: 0 14px; }
  .card-body [style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
  .modal { max-width: 100%; max-height: 100vh; border-radius: 0; }
  .modal-overlay { padding: 0; }
  table { font-size: 0.78rem; }
  th, td { padding: 8px 10px; }
}

/* ── 手机竖屏 (< 480px) — iPhone / Android 主力 ── */
@media (max-width: 480px) {
  html { font-size: 14px; }
  
  .nav-inner { height: 54px; padding: 0 12px; }
  .nav-logo { font-size: 0.78rem; gap: 8px; }
  .nav-logo img { height: 32px; }
  .btn { padding: 7px 16px; font-size: 0.85rem; }
  .btn-sm { padding: 4px 10px; font-size: 0.75rem; }
  .btn-lg { padding: 10px 24px; font-size: 0.92rem; }
  .lang-btn { padding: 3px 6px; font-size: 0.72rem; }
  
  /* Hero */
  .hero { padding-top: 54px; }
  .hero-inner { padding: 30px 14px 40px; }
  .hero-title { font-size: 1.3rem; line-height: 1.3; }
  .hero-subtitle { font-size: 0.82rem; }
  .hero-visual { grid-template-columns: 1fr 1fr; gap: 6px; }
  .hero-card { padding: 10px; border-radius: 12px; }
  .hero-card-title { font-size: 0.72rem; }
  .hero-card-desc { font-size: 0.65rem; }
  
  /* 板块标题 */
  .section-title { font-size: 1.15rem; }
  .section-tag { font-size: 0.72rem; }
  .section-header { margin-bottom: 24px; }
  section { padding: 36px 0; }
  
  /* 项目卡片 — 单列 */
  .project-card-grid { grid-template-columns: 1fr; gap: 10px; }
  .proj-card { padding: 14px 12px 18px; border-radius: 12px; }
  .proj-card-title { font-size: 0.88rem; }
  .proj-card-desc { font-size: 0.76rem; }
  .proj-card-tag { font-size: 0.72rem; }
  
  /* 合作 */
  .coop-card { padding: 16px; }
  .coop-card .coop-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .coop-points li { font-size: 0.8rem; }
  
  /* 关于 */
  .about-highlight-item { padding: 10px 12px; }
  .about-highlight-item .title { font-size: 0.8rem; }
  .about-highlight-item .desc { font-size: 0.72rem; }
  
  /* 统计卡片 */
  .dashboard-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ds-card { padding: 12px; }
  .ds-info .value { font-size: 1.2rem; }
  .ds-icon { width: 36px; height: 36px; font-size: 1rem; }
  
  /* 管理界面 */
  .card-header { flex-direction: column; align-items: flex-start !important; gap: 8px; }
  .page-header h2 { font-size: 1.05rem; }
  .topbar-title { font-size: 0.9rem; }
  
  /* Toast */
  .toast { bottom: 16px; right: 16px; left: 16px; min-width: auto; max-width: 100%; }
}

/* ── 小屏手机 / 公众号 WebView (< 375px) ── */
@media (max-width: 375px) {
  html { font-size: 13px; }
  .hero-title { font-size: 1.15rem; }
  .hero-subtitle { font-size: 0.78rem; }
  .hero-visual { grid-template-columns: 1fr; }
  .hero-card { padding: 8px 10px; }
  .login-box { padding: 20px 16px; }
  .form-input, .form-select, .form-textarea { padding: 8px 10px; font-size: 0.82rem; }
  .btn { padding: 6px 14px; font-size: 0.8rem; }
  .lang-btn { padding: 2px 5px; font-size: 0.7rem; }
}

/* ── 安全区域适配（iPhone X+ 刘海屏 / 微信小程序 web-view） ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .sidebar-footer { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .navbar { padding-top: env(safe-area-inset-top); }
  /* 底部浮动提示避开 iPhone Home 指示条 */
  .toast { bottom: calc(24px + env(safe-area-inset-bottom)); right: calc(24px + env(safe-area-inset-right)); }
}

/* ── 微信小程序 web-view 体验优化（去点击高亮、禁止文字自动放大） ── */
* { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ── 触控优化（移动端） ── */
@media (pointer: coarse) {
  .btn, .nav-links a, .lang-btn, .proj-card, .coop-expandable {
    min-height: 44px;
    min-width: 44px;
  }
  a, button { cursor: default; }
  .nav-links a { padding: 10px 16px; }
}

/* ── 集团动态 ── */
.news-section { background: #f8fafc; }
.news-list { display: flex; flex-direction: column; gap: 14px; max-width: 960px; margin: 0 auto; }
.news-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: var(--transition); text-decoration: none; color: inherit;
}
.news-card:hover { box-shadow: var(--shadow-sm); border-color: rgba(26,79,160,0.25); transform: translateY(-2px); }
.news-card-link { cursor: pointer; }
.news-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 64px; padding: 8px; background: var(--bg-light); border-radius: 8px;
  border: 1px solid var(--border); text-align: center; flex-shrink: 0;
}
.news-date .day { font-size: 0.95rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.news-date .year { font-size: 0.72rem; color: var(--text-light); margin-top: 2px; }
.news-body { flex: 1; min-width: 0; }
.news-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; line-height: 1.4; }
.news-summary { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; margin: 0; }
.news-arrow { color: var(--primary); font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }

/* ── 资料下载 ── */
.downloads-section { background: #fff; }
.downloads-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; max-width: 960px; margin: 0 auto; }
.download-card {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: var(--transition); text-decoration: none; color: inherit;
}
.download-card:hover { box-shadow: var(--shadow-sm); border-color: rgba(26,79,160,0.25); transform: translateY(-2px); }
.download-icon { font-size: 1.6rem; flex-shrink: 0; }
.download-info { flex: 1; min-width: 0; }
.download-title { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; line-height: 1.4; }
.download-meta { font-size: 0.78rem; color: var(--text-light); }
.download-btn {
  flex-shrink: 0; padding: 6px 14px; border-radius: 6px; background: var(--primary); color: #fff;
  font-size: 0.82rem; font-weight: 600;
}
.download-card:hover .download-btn { background: #0d3a8a; }

@media (max-width: 768px) {
  .news-card { padding: 14px; }
  .news-date { min-width: 54px; }
  .news-title { font-size: 0.95rem; }
  .news-summary { font-size: 0.8rem; }
  .downloads-list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   管理后台 — 移动端界面适配增强 (2026-07-13)
   仅在窄屏生效，桌面布局不受影响
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* 顶部汉堡菜单按钮显示（覆盖内联 display:none） */
  #mobileMenuBtn, .nav-menu-toggle {
    display: flex !important; align-items: center; justify-content: center;
    width: 40px; height: 40px; font-size: 1.25rem; background: none;
    border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
    color: var(--text-dark); flex-shrink: 0;
  }

  /* 后台内容区所有内联多列网格 → 单列（含仪表盘 2fr 1fr、CMS/报告等） */
  .page-body [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  /* 页头「标题 + 操作按钮」行：纵向堆叠，按钮铺满 */
  .page-header[style*="flex"] {
    flex-direction: column; align-items: stretch !important; gap: 12px;
  }
  .page-header[style*="flex"] > .btn,
  .page-header[style*="flex"] > a.btn {
    width: 100%; justify-content: center;
  }

  /* 数据看板顶部「大屏展示 + 大屏日志天数」控制：换行不溢出 */
  #screenLogDaysBtns { flex-wrap: wrap; }
  .page-header [style*="margin-top"] { flex-wrap: wrap; }

  /* 筛选栏：选择器/输入框自适应两列铺满，重置按钮独占一行 */
  .filter-bar { gap: 8px; }
  .filter-bar select,
  .filter-bar input {
    flex: 1 1 46%; min-width: 0; max-width: none !important;
  }
  .filter-bar .btn { flex: 1 1 100%; }

  /* card-body 内裸表格（如工作排名表）可横向滚动 */
  .card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrapper { -webkit-overflow-scrolling: touch; }

  /* CMS / 项目管理卡片内边距收紧 */
  .cms-section-nav { gap: 6px; padding-bottom: 12px; }
  .cms-nav-btn { padding: 7px 12px; font-size: 0.82rem; }
  .cms-edit-card { padding: 18px 14px; }
  .cms-edit-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
  .cms-sub-item { padding: 10px 12px; }
  .user-add-form { padding: 16px; }

  /* 项目/进度详情网格单列 */
  .project-detail-grid { grid-template-columns: 1fr; gap: 12px; }

  /* 表单行单列（保险） */
  .form-row { grid-template-columns: 1fr !important; }

  /* 员工日志卡图片略缩 */
  .employee-log-card .el-images img { width: 72px; height: 72px; }
}

@media (max-width: 480px) {
  /* 侧边栏触控目标增高，滑出更好点按 */
  .sidebar { width: 82vw; max-width: 300px; }
  .sidebar-link { padding: 12px 10px; font-size: 0.92rem; }

  /* 数据看板日志天数按钮更紧凑 */
  #screenLogDaysBtns .btn-sm { padding: 4px 8px; font-size: 0.74rem; }

  /* 表格字号/内边距收紧，配合横向滚动 */
  table { font-size: 0.76rem; }
  th, td { padding: 7px 8px; }

  /* 卡片/表单内边距收紧 */
  .card-body { padding: 14px; }
  .employee-log-card { padding: 12px; }
  .cms-edit-card { padding: 14px 12px; }
  .user-add-form { padding: 14px 12px; }

  /* 筛选栏选择器改为单列铺满，避免拥挤 */
  .filter-bar select,
  .filter-bar input { flex: 1 1 100%; }

  /* 页头标题字号 */
  .page-header h2 { font-size: 1.05rem; }
}

/* ═══════════════════════════════════════════════════════
   后台侧边栏收起 — 彻底根治「左侧蓝条」(2026-07-13)
   根因：480px 断点把侧边栏加宽到 82vw(≤300px)，但收起位移仍是
   为 240px 设计的 left:-260px，导致右边缘露出约 40px 蓝条。
   解决：收起态一律用 transform: translateX(-100%)，无论宽度多少
   都完全移出屏幕；此块置于文件末尾，确保覆盖前面所有断点规则。
═══════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .sidebar {
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    will-change: transform;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-content { margin-left: 0 !important; }
}

/* ════════════════════════════════════════
   数据看板界面优化：减少 PC 端下方留白
   ════════════════════════════════════════ */
#apage-dashboard {
  /* 抵消 .page-body 的 24px padding，让内容区域更大 */
  margin: -24px;
  padding: 20px;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
#apage-dashboard .page-header {
  margin-bottom: 0;
  flex-shrink: 0;
}
#apage-dashboard .page-header h2 { font-size: 1.2rem; }
#apage-dashboard .page-header p { font-size: 0.82rem; }
#apage-dashboard .dashboard-stats {
  margin-bottom: 0;
  gap: 12px;
  flex-shrink: 0;
}
#apage-dashboard .dashboard-stats .ds-card {
  padding: 14px;
}
#apage-dashboard .dashboard-stats .ds-icon {
  width: 42px; height: 42px; font-size: 1.2rem;
}
#apage-dashboard .dashboard-stats .ds-info .value { font-size: 1.4rem; }
#apage-dashboard .dashboard-stats .ds-info .label { font-size: 0.72rem; }
#apage-dashboard .dashboard-stats .ds-info .trend { font-size: 0.7rem; }
#apage-dashboard .card-header { padding: 12px 16px; }
#apage-dashboard .card-header h3 { font-size: 0.9rem; }
#apage-dashboard .card-body { padding: 14px 16px; }
#adminRecentLogs { max-height: 460px; overflow-y: auto; }
#apage-dashboard .dashboard-row {
  align-items: stretch;
}
#apage-dashboard .dashboard-row > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
#apage-dashboard .dashboard-row > .card > .card-body {
  flex: 1;
  overflow-y: auto;
}
#apage-dashboard .dashboard-row #adminRecentLogs {
  max-height: none;
  flex: 1;
  overflow-y: auto;
}
#apage-dashboard .kanban { gap: 12px; }
#apage-dashboard .kanban-item { padding: 12px; margin-bottom: 8px; }
#apage-dashboard .kanban-col-header { padding: 8px 12px; margin-bottom: 10px; }
#employeeWorkloadArea {
  align-items: start;
  margin-bottom: 0 !important;
}
#employeeWorkloadArea .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#employeeWorkloadArea .card-body {
  flex: 1;
  overflow-y: auto;
}
#dashboardProjectProgressCard .card-body {
  flex: 1;
  overflow-y: auto;
}
#adminRecentLogs {
  max-height: 320px;
  overflow-y: auto;
}

