/* china-hrm.com 前台样式 — 深空科技风 v2.0 */
:root {
  --bg: #0a0e17; --bg-alt: #0d1220;
  --surface: rgba(255,255,255,.03); --surface-hover: rgba(255,255,255,.05);
  --border: rgba(255,255,255,.06); --border-light: rgba(255,255,255,.1);
  --accent: #00d4ff; --accent2: #6366f1; --accent-glow: #38bdf8;
  --success: #10b981; --warn: #f59e0b;
  --text: #e2e8f0; --text2: #94a3b8; --text3: #64748b;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
  --glow: 0 0 20px rgba(0,212,255,.12);
  --glow-strong: 0 0 30px rgba(0,212,255,.2);
  --font-display: 'Georgia','Noto Serif SC','SimSun',serif;
  --font-body: -apple-system,'PingFang SC','Microsoft YaHei','Segoe UI',sans-serif;
  --max-width: 1280px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.7;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* BG grid pattern */
body::before {
  content:''; position:fixed; inset:0; z-index:-1; opacity:.025; pointer-events:none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 40px 40px;
}

a { color: var(--accent); text-decoration:none; transition: color .2s; }
a:hover { color: var(--accent-glow); }
img { max-width:100%; height:auto; display:block; }

/* ============ HEADER ============ */
.site-header {
  background: rgba(10,14,23,.85);
  border-bottom: 1px solid var(--border);
  position: sticky; top:0; z-index: 100;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.header-inner {
  max-width: var(--max-width); margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding: 0 32px; height: 72px;
}
.logo { display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; }
.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px; display:flex; align-items:center; justify-content:center;
  color: #fff; font-weight:bold; font-size:16px; flex-shrink:0;
  box-shadow: 0 0 15px rgba(99,102,241,.4);
}
.logo-text { line-height:1.2; }
.logo-main { font-family:var(--font-display); font-size:20px; font-weight:bold; letter-spacing:1px; display:block; }
.logo-sub { font-size:11px; color:var(--text2); display:block; margin-top:-1px; }
.site-nav { display:flex; align-items:center; gap:2px; }
.site-nav a {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; color: var(--text2);
  font-weight: 500; transition: all .2s;
}
.site-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.mobile-menu-btn { display:none; background:none; border:none; font-size:24px; cursor:pointer; color:var(--text); }

/* ============ HERO ============ */
.hero {
  background: var(--bg);
  position: relative; overflow: hidden;
  min-height: 520px; display:flex; align-items:center;
}
.hero::before {
  content: '';
  position: absolute; inset:0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(99,102,241,.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(0,212,255,.07) 0%, transparent 50%);
}
.hero-inner {
  max-width: var(--max-width); margin:0 auto; padding: 80px 32px;
  display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center;
  position: relative; z-index:1;
}
.hero-text h1 {
  font-family: var(--font-display); font-size: 44px; color: #fff;
  line-height: 1.15; margin-bottom: 20px; letter-spacing: 1px;
}
.hero-text h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p { color: var(--text2); font-size: 17px; line-height: 1.8; margin-bottom: 32px; }
.hero-btns { display:flex; gap:12px; flex-wrap:wrap; }
.hero-stats {
  display:grid; grid-template-columns: repeat(3, 1fr); gap:20px;
}
.stat-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; text-align:center;
  backdrop-filter: blur(10px);
}
.stat-num {
  font-family:var(--font-display); font-size:32px; font-weight:bold;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size:13px; color:var(--text2); margin-top:4px; }

/* ============ SECTION ============ */
.section { padding: 72px 32px; }
.section-inner { max-width: var(--max-width); margin:0 auto; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align:center; margin-bottom: 48px; }
.section-head h2 { font-family:var(--font-display); font-size:30px; color:#fff; margin-bottom:8px; letter-spacing:1px; }
.section-head p { color: var(--text2); font-size:15px; }
.section-head .line {
  width:48px; height:3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  margin:16px auto 0; border-radius:2px;
}

/* ============ BUSINESS GRID ============ */
.biz-grid {
  display:grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.biz-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 20px; text-align:center;
  cursor:pointer; transition: all .3s; position:relative; overflow:hidden;
  backdrop-filter: blur(10px);
}
.biz-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform:scaleX(0); transition:transform .3s;
}
.biz-card:hover {
  border-color: rgba(0,212,255,.25); transform:translateY(-6px);
  box-shadow: var(--glow);
}
.biz-card:hover::before { transform:scaleX(1); }
.biz-icon { font-size: 36px; margin-bottom: 12px; display:block; }
.biz-card h3 { font-size:15px; font-weight:600; color:var(--text); margin-bottom:6px; }
.biz-card p { font-size:12px; color:var(--text2); line-height:1.6; }

/* ============ CARD GRID ============ */
.card-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap:24px; }
.card {
  background: var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); overflow:hidden; transition:all .3s;
  backdrop-filter: blur(10px);
}
.card:hover {
  border-color: rgba(0,212,255,.25); transform:translateY(-4px);
  box-shadow:var(--glow);
}
.card-img {
  height:200px; background: rgba(255,255,255,.02);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.card-img img { width:100%; height:100%; object-fit:cover; }
.card-body { padding:20px; }
.card-body h3 { font-size:16px; font-weight:600; color:var(--text); margin-bottom:6px; }
.card-body h3 a { color:inherit; }
.card-body h3 a:hover { color:var(--accent); }
.card-body p { font-size:13px; color:var(--text2); line-height:1.6; }
.card-meta {
  margin-top:12px; padding-top:12px; border-top:1px solid var(--border);
  font-size:12px; color:var(--text3); display:flex; gap:16px;
}

/* ============ BUTTONS ============ */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 24px; border-radius:var(--radius-sm); font-size:14px;
  font-weight:600; cursor:pointer; border:none; transition:all .2s;
  text-decoration:none; white-space:nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#fff; box-shadow: 0 0 20px rgba(99,102,241,.25);
}
.btn-primary:hover { opacity:.9; color:#fff; transform:translateY(-1px); }
.btn-outline { background:transparent; border:1px solid rgba(255,255,255,.15); color:#fff; }
.btn-outline:hover { border-color:rgba(255,255,255,.35); color:#fff; background:rgba(255,255,255,.04); }
.btn-ghost { background:transparent; border:1px solid var(--border); color:var(--text2); }
.btn-ghost:hover { border-color:var(--border-light); background:var(--surface-hover); }
.btn-sm { padding:6px 14px; font-size:12px; }

/* ============ PAGE CONTENT ============ */
.page-container { max-width: var(--max-width); margin:0 auto; padding:32px; }
.page-layout { display:flex; gap:32px; }
.page-sidebar { width:240px; flex-shrink:0; }
.page-sidebar h3 {
  font-size:15px; font-weight:600; padding:14px 20px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color:#fff; border-radius:var(--radius) var(--radius) 0 0;
}
.sub-nav { list-style:none; background:var(--surface); border:1px solid var(--border); border-radius:0 0 var(--radius) var(--radius); overflow:hidden; }
.sub-nav li { border-bottom:1px solid var(--border); }
.sub-nav li:last-child { border-bottom:none; }
.sub-nav a { display:block; padding:12px 20px; font-size:13px; color:var(--text2); transition:all .2s; }
.sub-nav a:hover, .sub-nav a.active { color:var(--accent); background:var(--surface-hover); padding-left:24px; }
.page-main { flex:1; min-width:0; }

/* ============ ARTICLE LIST ============ */
.article-list { list-style:none; }
.article-item { padding:20px 0; border-bottom:1px solid var(--border); }
.article-item:first-child { padding-top:0; }
.article-item h3 { font-size:17px; font-weight:600; margin-bottom:4px; }
.article-item h3 a { color:var(--text); }
.article-item h3 a:hover { color:var(--accent); }
.article-meta { font-size:12px; color:var(--text3); margin-top:4px; display:flex; gap:16px; }
.article-desc { font-size:13px; color:var(--text2); margin-top:6px; line-height:1.7; }

/* ============ ARTICLE DETAIL ============ */
.article-detail h1 { font-family:var(--font-display); font-size:28px; color:#fff; margin-bottom:12px; letter-spacing:.5px; }
/* ============ ARTICLE CONTENT DARK NORMALIZE ============ */
.article-content { margin:28px 0; line-height:2; font-size:15px; color:var(--text); }
.article-content p { margin-bottom:16px; }
.article-content img { max-width:100%; margin:16px 0; border-radius:var(--radius); }
.article-content a { color:var(--accent); }
.article-content h2,.article-content h3,.article-content h4 { color:#fff; margin:24px 0 12px; }
.article-content table { border-collapse:collapse; width:100%; margin:16px 0; }
.article-content td,.article-content th { border:1px solid var(--border); padding:8px 12px; color:var(--text); }
.article-content blockquote { border-left:3px solid var(--accent2); padding-left:16px; margin:16px 0; color:var(--text2); }
.article-content ul,.article-content ol { padding-left:24px; margin:12px 0; }
.article-content li { margin-bottom:6px; }
.article-content pre,.article-content code { background:var(--surface); border:1px solid var(--border); border-radius:4px; padding:2px 8px; font-size:13px; }
.article-content pre { padding:16px; overflow-x:auto; }
/* Override old DedeCMS inline styles */
.article-content font,.article-content span { color:inherit !important; }
.article-content * { background:transparent !important; }
.article-content center { text-align:center; }
.article-nav { display:flex; justify-content:space-between; padding:20px 0; border-top:1px solid var(--border); font-size:14px; }

/* ============ BREADCRUMB ============ */
.breadcrumb { padding:0 0 20px; font-size:13px; color:var(--text3); display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.breadcrumb a { color:var(--text2); }
.breadcrumb a:hover { color:var(--accent); }
.breadcrumb span { color:var(--text3); }

/* ============ PAGINATION ============ */
.pagination { display:flex; align-items:center; justify-content:center; gap:8px; padding:32px 0 0; }
.pagination a, .pagination span {
  padding:8px 16px; border:1px solid var(--border); border-radius:var(--radius-sm);
  font-size:13px; color:var(--text2); text-decoration:none; transition:all .2s;
}
.pagination a:hover { border-color:var(--accent); color:var(--accent); background:var(--surface); }
.pagination span.current { background: linear-gradient(135deg, var(--accent), var(--accent2)); color:#fff; border-color:transparent; }

/* ============ FOOTER ============ */
.site-footer { background: var(--bg-alt); color:var(--text3); padding:56px 32px 0; border-top:1px solid var(--border); }
.footer-inner { max-width:var(--max-width); margin:0 auto; display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; padding-bottom:40px; }
.footer-col h4 { color:#fff; font-size:14px; font-weight:600; margin-bottom:16px; }
.footer-col p { font-size:13px; line-height:2; }
.footer-col a { color:var(--text3); font-size:13px; display:block; margin-bottom:8px; transition:color .2s; }
.footer-col a:hover { color:var(--accent); }
.footer-bottom { border-top:1px solid var(--border); padding:20px 32px; text-align:center; font-size:12px; }
.footer-bottom a { color:inherit; }

/* ============ EMPTY STATE ============ */
.empty { text-align:center; padding:60px 20px; color:var(--text3); }
.empty-icon { font-size:48px; margin-bottom:16px; }

/* ============ SEARCH ============ */
.search-box { display:flex; gap:8px; margin-bottom:32px; }
.search-box input {
  flex:1; padding:12px 16px; border:1px solid var(--border); border-radius:var(--radius-sm);
  font-size:15px; font-family:inherit; color:var(--text); background:var(--surface);
  transition:border-color .2s;
}
.search-box input:focus { outline:none; border-color:var(--accent); }
.search-box button { padding:12px 24px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .header-inner { padding:0 16px; height:60px; }
  .site-nav { display:none; position:absolute; top:60px; left:0; right:0; background:var(--bg); flex-direction:column; padding:8px; border-bottom:1px solid var(--border); box-shadow:var(--shadow-md); }
  .site-nav.open { display:flex; }
  .mobile-menu-btn { display:block; }
  .hero-inner { grid-template-columns:1fr; padding:48px 16px; gap:32px; }
  .hero-text h1 { font-size:28px; }
  .hero-stats { grid-template-columns: repeat(3,1fr); gap:12px; }
  .stat-num { font-size:22px; }
  .section { padding:40px 16px; }
  .section-head h2 { font-size:24px; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns:1fr; }
  .page-layout { flex-direction:column; }
  .page-sidebar { width:100%; }
  .footer-inner { grid-template-columns:1fr 1fr; gap:24px; }
}
@media (max-width: 400px) {
  .biz-grid { grid-template-columns:1fr; }
  .footer-inner { grid-template-columns:1fr; }
}
