/* ============================================
   平安工地考核评价系统 - 新版样式
   深色英雄区 + 浅色内容区 + 时间轴更新日志
   ============================================ */

:root {
  --c-bg: #f8fafc;
  --c-surface: #ffffff;
  --c-surface-alt: #f1f5f9;
  --c-text: #1e293b;
  --c-text-2: #64748b;
  --c-text-3: #94a3b8;
  --c-border: #e2e8f0;
  --c-primary: #2563eb;
  --c-primary-d: #1d4ed8;
  --c-primary-l: #3b82f6;
  --c-accent: #f59e0b;
  --c-accent-d: #d97706;
  --c-cyan: #06b6d4;
  --c-purple: #8b5cf6;
  --c-hero-bg: #0b1120;
  --c-footer: #0f172a;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --max-w: 1140px;
  --header-h: 60px;
  --t: 0.25s ease;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--c-text); background: var(--c-bg); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: var(--c-primary); transition: color var(--t); }
a:hover { color: var(--c-primary-d); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ========== 导航 ========== */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 999; transition: box-shadow var(--t), background var(--t);
}
.nav.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-brand img { height: 36px; }
.nav-brand span { font-size: 15px; font-weight: 700; color: var(--c-primary-d); white-space: nowrap; }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu a { padding: 8px 14px; font-size: 14px; color: var(--c-text-2); border-radius: var(--radius-sm); transition: all var(--t); }
.nav-menu a:hover { color: var(--c-primary); background: var(--c-surface-alt); text-decoration: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.nav-burger span { width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; transition: var(--t); }
.nav-burger.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.on span:nth-child(2) { opacity: 0; }
.nav-burger.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== 英雄区 ========== */
.hero {
  position: relative; min-height: 580px; padding: calc(var(--header-h) + 60px) 0 70px;
  background: var(--c-hero-bg); overflow: hidden; display: flex; align-items: center;
}
.hero-mesh { position: absolute; inset: 0; overflow: hidden; }
.hero-mesh::before, .hero-mesh::after {
  content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(80px); opacity: 0.4;
}
.hero-mesh::before { background: var(--c-primary); top: -100px; right: -80px; animation: float1 12s ease-in-out infinite; }
.hero-mesh::after { background: var(--c-purple); bottom: -150px; left: -100px; animation: float2 14s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-40px,40px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-40px)} }

.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 48px; width: 100%; }
.hero-left { flex: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3); border-radius: 50px; font-size: 13px; color: #93c5fd; margin-bottom: 20px; }
.hero-badge .dot { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; }
.hero h1 { font-size: 38px; font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 16px; letter-spacing: -1px; }
.hero h1 .grad { background: linear-gradient(135deg, #60a5fa, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.7; max-width: 480px; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; font-size: 15px; font-weight: 600; border-radius: var(--radius); border: none; cursor: pointer; transition: all var(--t); white-space: nowrap; }
.btn-fill { background: var(--c-primary); color: #fff; box-shadow: 0 4px 16px rgba(37,99,235,0.4); }
.btn-fill:hover { background: var(--c-primary-d); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.5); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); color: #fff; transform: translateY(-2px); }

/* 下载卡片 */
.dl-card {
  flex-shrink: 0; width: 340px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.dl-card h3 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.dl-card h3 .v-tag { font-size: 12px; font-weight: 500; padding: 2px 8px; background: rgba(34,197,94,0.2); color: #4ade80; border-radius: 50px; }
.dl-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.dl-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.dl-row .lab { color: rgba(255,255,255,0.5); }
.dl-row .val { color: rgba(255,255,255,0.9); font-weight: 500; }
.dl-options { display: flex; flex-direction: column; gap: 10px; }
.dl-options .btn { width: 100%; font-size: 14px; padding: 11px; }

/* ========== 通用 section ========== */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 28px; font-weight: 800; color: var(--c-text); margin-bottom: 10px; }
.section-head p { font-size: 15px; color: var(--c-text-2); }
.section-head .line { width: 48px; height: 3px; background: linear-gradient(90deg, var(--c-primary), var(--c-cyan)); border-radius: 3px; margin: 12px auto 0; }

/* ========== 功能特性 ========== */
.features { background: var(--c-surface); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 24px; }
.feat-card { padding: 32px 24px; border-radius: var(--radius); background: var(--c-bg); border: 1px solid var(--c-border); transition: all var(--t); text-align: center; }
.feat-card:hover { border-color: var(--c-primary-l); box-shadow: 0 8px 24px rgba(37,99,235,0.1); transform: translateY(-4px); }
.feat-ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; }
.feat-ico.f1 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.feat-ico.f2 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.feat-ico.f3 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.feat-ico.f4 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.feat-ico.f5 { background: linear-gradient(135deg, #10b981, #059669); }
.feat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: var(--c-text-2); line-height: 1.6; }

/* ========== 下载区 ========== */
.download { background: var(--c-bg); }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 24px; }
.dl-tile {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--c-surface);
  border: 1px solid var(--c-border); transition: all var(--t); position: relative; overflow: hidden;
}
.dl-tile::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--c-primary); transform: scaleX(0); transition: transform var(--t); }
.dl-tile:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.08); transform: translateY(-3px); }
.dl-tile:hover::before { transform: scaleX(1); }
.dl-tile .dl-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--c-surface-alt); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--c-primary); }
.dl-tile h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.dl-tile p { font-size: 14px; color: var(--c-text-2); margin-bottom: 12px; flex: 1; }
.dl-tile .dl-meta { font-size: 13px; color: var(--c-text-3); margin-bottom: 14px; }
.dl-tile .dl-meta span { font-weight: 600; color: var(--c-text-1); }
.dl-tile .btn { width: 100%; font-size: 14px; padding: 10px; }

/* ========== 更新日志（时间轴） ========== */
.changelog { background: var(--c-surface); }
.timeline { max-width: 720px; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--c-border); }
.tl-item { position: relative; padding-left: 56px; padding-bottom: 32px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 14px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-surface); border: 3px solid var(--c-primary); z-index: 1; }
.tl-date { font-size: 13px; font-weight: 600; color: var(--c-primary); margin-bottom: 4px; }
.tl-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.tl-body { font-size: 14px; color: var(--c-text-2); line-height: 1.7; }
.tl-body ul { padding-left: 18px; margin-top: 6px; }
.tl-body ul li { list-style: disc; margin-bottom: 3px; }

/* ========== 联系方式 ========== */
.contact { background: var(--c-bg); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.contact-card { display: flex; align-items: flex-start; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); transition: all var(--t); }
.contact-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.contact-ico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-ico.c1 { background: #dbeafe; color: #2563eb; }
.contact-ico.c2 { background: #d1fae5; color: #059669; }
.contact-ico.c3 { background: #fef3c7; color: #d97706; }
.contact-ico.c4 { background: #ede9fe; color: #7c3aed; }
.contact-card .ct-label { font-size: 13px; color: var(--c-text-3); margin-bottom: 2px; }
.contact-card .ct-value { font-size: 14px; font-weight: 600; color: var(--c-text); line-height: 1.5; }

/* ========== 栏目/内容页 ========== */
.page-head { padding: calc(var(--header-h) + 40px) 0 36px; background: var(--c-hero-bg); text-align: center; }
.page-head h1 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.page-head .crumb { font-size: 14px; color: rgba(255,255,255,0.5); }
.page-head .crumb a { color: rgba(255,255,255,0.8); }
.page-head .crumb a:hover { color: #fff; }
.content-body { padding: 48px 0; }
.art-list { display: flex; flex-direction: column; gap: 16px; }
.art-item { display: flex; gap: 20px; padding: 22px; background: var(--c-surface); border-radius: var(--radius); border: 1px solid var(--c-border); transition: all var(--t); }
.art-item:hover { border-color: var(--c-primary-l); box-shadow: 0 6px 20px rgba(0,0,0,0.06); transform: translateX(3px); }
.art-thumb { width: 160px; height: 110px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-surface-alt); }
.art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-main { flex: 1; min-width: 0; }
.art-main h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-main h3 a { color: inherit; }
.art-main h3 a:hover { color: var(--c-primary); }
.art-main .art-sum { font-size: 14px; color: var(--c-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.art-main .art-meta { font-size: 13px; color: var(--c-text-3); display: flex; gap: 14px; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; font-size: 14px; border-radius: var(--radius-sm); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-2); transition: all var(--t); }
.pager a:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; }
.pager .cur { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.art-detail { padding: 48px 0; }
.art-detail .ad-head { text-align: center; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--c-border); }
.art-detail .ad-head h1 { font-size: 24px; font-weight: 800; margin-bottom: 12px; line-height: 1.4; }
.art-detail .ad-head .art-meta { font-size: 14px; color: var(--c-text-3); display: flex; justify-content: center; gap: 18px; }
.art-detail .ad-content { font-size: 16px; line-height: 1.85; }
.art-detail .ad-content p { margin-bottom: 14px; }
.art-detail .ad-content img { border-radius: var(--radius-sm); margin: 14px 0; }
.art-detail .ad-content h2, .art-detail .ad-content h3 { margin: 22px 0 10px; font-weight: 700; }
.art-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--c-border); }
.art-nav a { font-size: 14px; color: var(--c-text-2); max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-nav a:hover { color: var(--c-primary); }

/* ========== 页脚 ========== */
.footer { background: var(--c-footer); color: rgba(255,255,255,0.5); padding: 36px 0 20px; }
.footer-nav { text-align: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-nav a { color: rgba(255,255,255,0.7); font-size: 14px; margin: 0 10px; transition: color var(--t); }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-nav .sep { color: rgba(255,255,255,0.15); }
.footer-info { text-align: center; font-size: 13px; line-height: 1.9; }
.footer-info p { margin: 0; }

/* ========== 滚动动画 ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; gap: 36px; }
  .dl-card { width: 100%; max-width: 380px; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; background: var(--c-surface); padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); gap: 0; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 16px; border-radius: 0; border-bottom: 1px solid var(--c-border); }
  .nav-burger { display: flex; }
  .hero h1 { font-size: 26px; }
  .hero-desc { font-size: 15px; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 22px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .art-item { flex-direction: column; }
  .art-thumb { width: 100%; height: 160px; }
  .art-nav { flex-direction: column; gap: 8px; }
  .art-nav a { max-width: 100%; }
}
@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 22px; }
  .btn { width: 100%; }
  .hero-btns { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
