/* OPC运营门户 - 全局样式（浅色主题 / 响应式） */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #0ea5e9;
  --text: #1e293b;
  --text-2: #64748b;
  --bg: #f5f7fb;
  --card: #ffffff;
  --border: #e2e8f0;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 16px rgba(15, 23, 42, .06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }

/* ---------- 顶部导航 ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; white-space: nowrap; height: 64px; flex-shrink: 0; }
.logo .logo-img { height: 44px; max-height: 44px; width: auto; max-width: 176px; object-fit: contain; display: block; }
.logo .logo-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 8px 14px; border-radius: 8px; color: var(--text-2); font-size: 15px; cursor: pointer; transition: all .2s; white-space: nowrap; }
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link.active { color: var(--primary); font-weight: 600; background: var(--primary-light); }
.nav-dropdown { position: absolute; top: 100%; left: 0; min-width: 150px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: none; }
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 8px 12px; border-radius: 7px; color: var(--text); font-size: 14px; }
.nav-dropdown a:hover { background: var(--primary-light); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.badge { position: relative; }
.badge .dot { position: absolute; top: -4px; right: -6px; background: var(--danger); color: #fff; font-size: 11px; min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 20px; border-radius: 9px; border: 1px solid transparent; font-size: 14px; cursor: pointer; transition: all .2s; background: var(--primary); color: #fff; }
.btn:hover { background: var(--primary-dark); }
.btn.ghost { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn.ghost:hover { background: var(--primary-light); }
.btn.plain { background: #fff; color: var(--text-2); border-color: var(--border); }
.btn.plain:hover { color: var(--primary); border-color: var(--primary); }
.btn.sm { padding: 5px 12px; font-size: 13px; border-radius: 7px; }
.btn.lg { padding: 12px 30px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 布局 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 28px 20px 80px; }
.page-title { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.page-sub { color: var(--text-2); margin-bottom: 26px; }
.section { margin-bottom: 44px; }
.section-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: linear-gradient(var(--primary), var(--accent)); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card.hover:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(15,23,42,.12); }

/* ---------- 首页 Hero ---------- */
.hero { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 100%); color: #fff; padding: 84px 20px 70px; text-align: center; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero::before { width: 420px; height: 420px; top: -160px; right: -80px; }
.hero::after { width: 300px; height: 300px; bottom: -140px; left: -60px; }
.hero h1 { font-size: 40px; font-weight: 800; letter-spacing: 1px; margin-bottom: 14px; position: relative; }
.hero p { font-size: 18px; opacity: .92; margin-bottom: 30px; position: relative; }
.hero .quick-entries { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.quick-entry { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); border-radius: 12px; padding: 16px 30px; cursor: pointer; transition: all .2s; text-align: center; }
.quick-entry:hover { background: rgba(255,255,255,.26); transform: translateY(-3px); }
.quick-entry .qe-icon { font-size: 26px; }
.quick-entry .qe-label { font-size: 15px; font-weight: 600; margin-top: 4px; }
.hero-stats { display: flex; gap: 0; justify-content: center; margin-top: 44px; position: relative; flex-wrap: wrap; }
.hero-stat { padding: 0 40px; border-right: 1px solid rgba(255,255,255,.25); text-align: center; }
.hero-stat:last-child { border-right: none; }
.hero-stat .num { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-stat .label { font-size: 13px; opacity: .85; margin-top: 2px; }

/* ---------- 首页核心优势卡片 ---------- */
.adv-icon { text-align: center; font-size: 30px; margin-bottom: 10px; }
.adv-title { text-align: center; font-size: 16px; margin-bottom: 6px; }

/* ---------- 首页版块卡片配色（区分白底） ---------- */
.card.news-tint { background: linear-gradient(160deg, #eff6ff, #f0f9ff); border-color: #dbeafe; }
.card.case-tint { background: linear-gradient(160deg, #f0fdf4, #ecfdf5); border-color: #bbf7d0; }
.card.step-tint { background: linear-gradient(160deg, #f5f3ff, #faf5ff); border-color: #ddd6fe; }
.card.news-tint:hover, .card.case-tint:hover, .card.step-tint:hover { box-shadow: 0 6px 24px rgba(37, 99, 235, .14); }

/* ---------- 标签 / 状态 ---------- */
.tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; background: var(--primary-light); color: var(--primary); margin-right: 6px; }
.tag.gray { background: #f1f5f9; color: var(--text-2); }
.tag.green { background: #f0fdf4; color: var(--success); }
.tag.orange { background: #fffbeb; color: var(--warning); }
.tag.red { background: #fef2f2; color: var(--danger); }
.status-pending { color: var(--warning); }
.status-ok { color: var(--success); }
.status-reject { color: var(--danger); }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 16px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; font-family: inherit; background: #fff; transition: border .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.field textarea { min-height: 96px; resize: vertical; }
.form-tip { font-size: 13px; color: var(--text-2); }
.alert { padding: 12px 16px; border-radius: 9px; font-size: 14px; margin-bottom: 14px; }
.alert.success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.alert.error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert.info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #bfdbfe; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before { content: ""; position: absolute; left: -24px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.timeline-item .t-time { font-size: 13px; color: var(--primary); font-weight: 600; }
.timeline-item .t-text { color: var(--text); }

/* ---------- 实景卡片（CSS 占位图） ---------- */
.scene-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); cursor: pointer; transition: transform .2s; }
.scene-card:hover { transform: translateY(-3px); }
.scene-visual { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 46px; color: #fff; }
.scene-info { padding: 14px 16px; }
.scene-info h4 { font-size: 15px; margin-bottom: 4px; }
.scene-info p { font-size: 13px; color: var(--text-2); }

/* ---------- 案例墙 ---------- */
.case-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.case-metrics { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.case-metric { background: var(--primary-light); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.case-metric b { color: var(--primary); }
.before-after { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 14px; background: #f8fafc; border-radius: 8px; padding: 12px; font-size: 13px; }
.ba-arrow { color: var(--primary); font-size: 18px; font-weight: 700; }

/* ---------- FAQ 机器人 ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none; font-size: 26px; cursor: pointer; box-shadow: 0 6px 20px rgba(37,99,235,.4); transition: transform .2s; }
.fab:hover { transform: scale(1.08); }
.bot-panel { position: fixed; right: 24px; bottom: 96px; z-index: 200; width: 380px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 140px); background: #fff; border-radius: 16px; box-shadow: 0 12px 48px rgba(15,23,42,.25); display: flex; flex-direction: column; overflow: hidden; }
.bot-head { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.bot-head b { font-size: 15px; }
.bot-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }
.bot-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #f8fafc; }
.bot-msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 14px; white-space: pre-wrap; }
.bot-msg.ai { background: #fff; border: 1px solid var(--border); border-top-left-radius: 4px; align-self: flex-start; }
.bot-msg.me { background: var(--primary); color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.bot-suggest { display: flex; gap: 8px; flex-wrap: wrap; }
.bot-suggest button { background: var(--primary-light); border: 1px solid #bfdbfe; color: var(--primary); border-radius: 16px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.bot-foot { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.bot-foot input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; }
.bot-foot button { padding: 0 16px; }

/* ---------- 消息中心 / 列表 ---------- */
.msg-item { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.msg-item.unread { background: var(--primary-light); }
.msg-icon { width: 38px; height: 38px; border-radius: 10px; background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }

/* ---------- 人才招募：左登记表 7 : 右权益 3 ---------- */
.talent-recruit-grid { display: grid; grid-template-columns: 7fr 3fr; gap: 18px; align-items: start; }

/* ---------- 大屏 ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.stat-card .v { font-size: 30px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat-card .k { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.chart-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.chart-box h4 { font-size: 15px; margin-bottom: 8px; color: var(--text); }

/* ---------- 登录/注册（左右分屏：左品牌区 + 右表单区） ---------- */
.auth-split { display: grid; grid-template-columns: 5fr 6fr; min-height: 540px; padding: 0; overflow: hidden; max-width: 980px; margin: 30px auto; }
.auth-brand { background: linear-gradient(160deg, #1e4fb8 0%, var(--primary) 55%, #7b6cf6 100%); color: #fff; padding: 42px 36px; display: flex; flex-direction: column; }
.auth-brand .brand-logo { background: #fff; border-radius: 9px; padding: 5px 10px; align-self: flex-start; }
.auth-brand .brand-logo img { height: 22px; display: block; }
.auth-brand h2 { font-size: 20px; line-height: 1.5; margin: 36px 0 10px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.auth-brand .brand-sub { font-size: 14px; opacity: .88; margin-bottom: 34px; }
.auth-user-title { font-size: 13px; font-weight: 600; opacity: .8; margin-bottom: 16px; letter-spacing: 2px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 24px; }
.auth-user-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; font-size: 14px; line-height: 1.5; }
.auth-user-item .ico { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.auth-user-item b { display: block; font-size: 15px; }
.auth-user-item .desc { opacity: .85; font-size: 13px; }
.auth-form-pane { padding: 36px 38px; display: flex; flex-direction: column; justify-content: center; }
.auth-wrap { max-width: 440px; margin: 40px auto; }
.auth-tabs { display: flex; background: #eef2f7; border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.auth-tabs button { flex: 1; padding: 9px; border: none; background: none; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--text-2); }
.auth-tabs button.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 24px; }
  .auth-brand h2 { margin-top: 22px; font-size: 21px; }
  .auth-form-pane { padding: 26px 22px; }
}

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 14px; max-width: 680px; width: 100%; max-height: 82vh; overflow-y: auto; padding: 26px; position: relative; }
.modal-close { position: absolute; top: 14px; right: 16px; border: none; background: none; font-size: 20px; color: var(--text-2); cursor: pointer; }

/* ---------- 页脚 ---------- */
.footer { background: #0f172a; color: #94a3b8; padding: 36px 20px; text-align: center; font-size: 13px; }
.footer b { color: #e2e8f0; }
.footer .links { margin-bottom: 10px; }
.footer .links a { margin: 0 12px; cursor: pointer; }
.footer .links a:hover { color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .mobile-menu-btn { display: block !important; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .hero-stat { padding: 0 16px; }
  .before-after { grid-template-columns: 1fr; }
  .logo .logo-img { height: 34px; max-width: 136px; }
  .talent-recruit-grid { grid-template-columns: 1fr; }
}
.mobile-menu-btn { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }
.mobile-nav { position: fixed; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); z-index: 99; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
