/* ============================================================
   巴州中小企业服务平台 - 前台样式
   ============================================================ */

:root {
    --primary: #185FA5;
    --primary-dark: #0C447C;
    --primary-deep: #08294F;
    --accent: #ff6b35;
    --accent-dark: #e84e1b;
    --success: #0f9b6c;
    --text: #1f2d3d;
    --text-2: #4b5a6b;
    --muted: #8a97a8;
    --bg: #f5f6f8;
    --bg-2: #eef2f9;
    --card: #ffffff;
    --border: #e7ecf4;
    --shadow-sm: 0 1px 3px rgba(16, 32, 64, .06);
    --shadow: 0 8px 30px rgba(16, 42, 110, .08);
    --shadow-lg: 0 20px 50px rgba(16, 42, 110, .14);
    --radius: 14px;
    --radius-sm: 8px;
    --gradient: linear-gradient(135deg, #378ADD 0%, #185FA5 50%, #0C447C 100%);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 通用 ---------- */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.narrow { max-width: 900px; }
.muted { color: var(--muted); }
.link { color: var(--primary); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.section-title { font-size: 28px; font-weight: 700; letter-spacing: .5px; position: relative; padding-left: 14px; }
.section-title::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 3px; background: var(--gradient); }
.section-sub { color: var(--muted); font-size: 14px; }
.section-more { color: var(--primary); font-size: 14px; flex-shrink: 0; }
.section-more:hover { color: var(--primary-dark); }

/* ---------- 顶部条 ---------- */
.topbar { background: var(--primary-deep); color: rgba(255,255,255,.9); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-right a { color: rgba(255,255,255,.9); }
.topbar-right a:hover { color: #fff; }
.topbar-hotline strong { color: #ffd166; font-weight: 600; margin-left: 2px; }
.topbar-user { color: #ffd166; }

/* ---------- 页头 ---------- */
.header { background: #fff; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 20px; font-weight: 700; color: var(--primary-deep); letter-spacing: 1px; }
.brand-text small { font-size: 12px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a { padding: 8px 13px; font-size: 15px; color: var(--text-2); border-radius: 8px; transition: .2s; white-space: nowrap; }
.nav a:hover { color: var(--primary); background: var(--bg-2); }
.nav a.active { color: #fff; background: var(--gradient); font-weight: 600; }

.header-search { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; height: 42px; flex-shrink: 0; }
.header-search .search-select { border: none; background: transparent; color: var(--text-2); font-size: 13px; padding: 0 8px; outline: none; cursor: pointer; flex-shrink: 0; }
.header-search input { border: none; background: transparent; outline: none; width: 170px; padding: 0 10px; color: var(--text); min-width: 0; }
.header-search button { border: none; background: var(--gradient); color: #fff; width: 46px; height: 100%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.header-search svg { flex-shrink: 0; display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: 10px; padding: 11px 22px; font-size: 15px; font-weight: 600; transition: .2s; line-height: 1.4; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 18px rgba(30, 94, 255, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30, 94, 255, .36); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #f0f4ff; }
.btn-ghost { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-plain { background: #fff; color: var(--text-2); border: 1px solid var(--border); }
.btn-plain:hover { border-color: var(--primary); color: var(--primary); }
.link-btn { background: none; border: none; color: rgba(255,255,255,.9); font-size: 13px; padding: 0; }
.link-btn:hover { color: #fff; }
.inline-form { display: inline; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #0C447C 0%, #185FA5 50%, #378ADD 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%); }
.hero::before { content: ""; position: absolute; left: -80px; bottom: -140px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,209,102,.2), transparent 65%); }
.hero-carousel { position: relative; z-index: 1; }
.hero-slide { display: none; padding: 45px 0 96px; text-align: center; }
.hero-slide.active { display: block; animation: heroFade .6s ease; }
.hero-slide.has-image { position: relative; background-size: cover; background-position: center; }
.hero-slide.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(12, 68, 124, .94), rgba(24, 95, 165, .78)); }
.hero-slide.has-image .hero-content { position: relative; z-index: 1; }
@keyframes heroFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-content { max-width: 720px; margin: 0 auto; }
.hero-eyebrow { display: inline-block; background: rgba(255,255,255,.15); padding: 5px 14px; border-radius: 20px; font-size: 13px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,.25); }
.hero-content h1 { font-size: 46px; line-height: 1.2; font-weight: 800; letter-spacing: 2px; margin-bottom: 18px; }
.hero-content p { font-size: 18px; color: rgba(255,255,255,.92); margin-bottom: 30px; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; }
.hero-dots { display: flex; gap: 10px; justify-content: center; padding-bottom: 58px; position: relative; z-index: 1; }
.hero-dot { width: 30px; height: 5px; border-radius: 3px; border: none; background: rgba(255,255,255,.35); transition: .3s; }
.hero-dot.active { background: #ffd166; width: 44px; }

/* ---------- 快捷服务 ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px; }
.quick-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: .25s; text-align: center; }
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.quick-icon { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--primary); background: linear-gradient(135deg, #eef3ff, #e2ebff); transition: .25s; }
.quick-card:hover .quick-icon { color: #fff; background: var(--gradient); }
.quick-name { font-size: 14px; font-weight: 600; color: var(--text-2); }

/* ---------- 数据带 ---------- */
.stats-band { background: var(--gradient); color: #fff; padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-item { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid rgba(255,255,255,.2); }
.stat-item:last-child { border-right: none; }
.stat-item strong { font-size: 34px; font-weight: 800; }
.stat-item span { font-size: 14px; opacity: .9; }

/* ---------- 两栏面板 ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px 26px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.panel-head h3 { font-size: 19px; font-weight: 700; color: var(--primary-deep); position: relative; padding-left: 12px; }
.panel-head h3::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: var(--gradient); }
.panel-head a { color: var(--muted); font-size: 13px; }
.panel-head a:hover { color: var(--primary); }

.news-list li { border-bottom: 1px dashed var(--border); }
.news-list li:last-child { border-bottom: none; }
.news-list a { display: flex; align-items: center; gap: 10px; padding: 12px 0; transition: .15s; }
.news-list a:hover .news-title { color: var(--primary); }
.news-tag { flex-shrink: 0; font-size: 12px; background: #eef3ff; color: var(--primary); padding: 2px 8px; border-radius: 4px; }
.news-title { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-date { flex-shrink: 0; color: var(--muted); font-size: 13px; }

/* ---------- 服务卡片 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; transition: .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.service-cat { font-size: 12px; background: var(--bg-2); color: var(--text-2); padding: 3px 10px; border-radius: 6px; }
.service-price { font-size: 13px; font-weight: 600; color: var(--accent); }
.service-price.free { color: var(--success); }
.service-card h4 { font-size: 17px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 13px; flex: 1; margin-bottom: 14px; }
.service-card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; }
.service-card-foot .go { color: var(--primary); font-weight: 600; }

/* ---------- 专家 ---------- */
.expert-mini-list { display: flex; flex-direction: column; gap: 4px; }
.expert-mini { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.expert-mini:last-child { border-bottom: none; }
.expert-mini strong { display: block; font-size: 15px; }
.expert-mini small { color: var(--muted); }
.expert-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; flex-shrink: 0; }
.expert-avatar.lg { width: 56px; height: 56px; font-size: 22px; }
img.expert-avatar { object-fit: cover; }

/* ---------- 机构 ---------- */
.org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.org-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; align-items: flex-start; transition: .25s; position: relative; }
.org-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.org-logo { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, #eef3ff, #e2ebff); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
img.org-logo { object-fit: cover; }
.org-detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.org-detail-head strong { font-size: 18px; display: block; }
.org-detail-head small { color: var(--primary); }
.org-info strong { display: block; font-size: 16px; margin-bottom: 2px; }
.org-info small { color: var(--primary); }
.org-info p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.verified-badge { position: absolute; top: 14px; right: 14px; font-size: 11px; background: #e6f7f0; color: var(--success); padding: 2px 8px; border-radius: 4px; }

/* ---------- 内页 Hero ---------- */
.inner-hero { background: var(--gradient); color: #fff; padding: 44px 0; position: relative; overflow: hidden; }
.inner-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%); }
.crumb { font-size: 13px; opacity: .9; margin-bottom: 10px; }
.crumb a:hover { text-decoration: underline; }
.inner-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: 1px; }
.inner-hero p { margin-top: 8px; opacity: .92; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 13px; opacity: .95; }

/* ---------- 筛选 ---------- */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.filter-search { display: flex; gap: 8px; width: 100%; max-width: 460px; }
.filter-search input { flex: 1; min-width: 0; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tabs a { padding: 7px 16px; border-radius: 8px; background: #fff; border: 1px solid var(--border); font-size: 14px; color: var(--text-2); transition: .2s; }
.filter-tabs a:hover { color: var(--primary); border-color: var(--primary); }
.filter-tabs a.active { background: var(--gradient); color: #fff; border-color: transparent; }
.filter-search { display: flex; gap: 8px; }
.filter-search input { border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; outline: none; min-width: 220px; }
.filter-search input:focus { border-color: var(--primary); }

/* ---------- 文章列表 ---------- */
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; transition: .2s; }
.article-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.article-main h3 { font-size: 18px; margin-bottom: 8px; transition: .2s; }
.article-item:hover h3 { color: var(--primary); }
.article-main p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; background: var(--bg-2); color: var(--text-2); padding: 2px 10px; border-radius: 4px; }
.tag-hot { background: #fff3e0; color: #e65100; }
.tag-rec { background: #e3f2fd; color: #0c4a8a; }
.tag-blue { background: #eef3ff; color: var(--primary); }
.tag-red { background: #fff0ec; color: var(--accent); }
.tag-green { background: #e6f7f0; color: var(--success); }
.tag-orange { background: #fff3e6; color: #e8590c; }

/* ---------- 政策卡片 ---------- */
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.policy-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; transition: .25s; }
.policy-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.policy-card-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.policy-card h3 { font-size: 17px; line-height: 1.5; margin-bottom: 10px; transition: .2s; }
.policy-card:hover h3 { color: var(--primary); }
.policy-card p { color: var(--muted); font-size: 13px; flex: 1; margin-bottom: 14px; }
.policy-card-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; }

/* ---------- 详情页 ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.article-content, .prose-card, .service-detail-card, .apply-card, .publish-card, .message-card, .side-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.article-content { padding: 34px 38px; }
.prose { color: var(--text-2); font-size: 15px; line-height: 1.9; }
.prose h1, .prose h2, .prose h3 { color: var(--text); margin: 20px 0 12px; }
.prose h3 { font-size: 18px; }
.prose p { margin-bottom: 14px; }
.article-nav { display: flex; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-nav-item { flex: 1; background: var(--bg); border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; transition: .2s; }
.article-nav-item span { font-size: 12px; color: var(--muted); }
.article-nav-item:hover { background: #eef3ff; color: var(--primary); }
.article-nav-item.disabled { color: var(--muted); }

.article-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.side-box { padding: 22px; }
.side-box h4 { font-size: 16px; margin-bottom: 12px; padding-left: 10px; border-left: 4px solid var(--primary); }
.side-list li { border-bottom: 1px dashed var(--border); }
.side-list li:last-child { border-bottom: none; }
.side-list a { display: block; padding: 10px 0; font-size: 14px; color: var(--text-2); transition: .15s; }
.side-list a:hover { color: var(--primary); }

/* ---------- 服务详情 ---------- */
.service-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.service-detail-main { display: flex; flex-direction: column; gap: 22px; }
.service-detail-card { padding: 30px 34px; }
.service-price-box { display: flex; align-items: baseline; gap: 12px; background: linear-gradient(135deg, #eef3ff, #e2ebff); padding: 14px 20px; border-radius: 10px; margin-bottom: 20px; }
.service-price-box span { font-size: 13px; color: var(--text-2); }
.service-price-box strong { font-size: 22px; color: var(--primary); }
.service-price-box em { font-size: 14px; color: var(--accent); font-style: normal; }
.service-org { margin-top: 24px; padding: 18px 20px; background: var(--bg); border-radius: 10px; }
.service-org h4 { margin-bottom: 8px; }
.service-org p { font-size: 14px; color: var(--text-2); }

/* ---------- 表单 ---------- */
.apply-card, .publish-card, .message-card { padding: 28px; }
.apply-card h3, .publish-card h3, .message-card h3 { font-size: 20px; margin-bottom: 6px; }
.apply-card > p, .publish-card > p, .message-card > p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.apply-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.form-group label em { color: #e5484d; font-style: normal; }
.form-group input, .form-group select, .form-group textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 13px; outline: none; transition: .2s; color: var(--text); background: #fff; }
.form-group textarea { resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,94,255,.12); }

/* ---------- 需求 ---------- */
.demand-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.demand-side { position: sticky; top: 96px; }
.demand-list { display: flex; flex-direction: column; gap: 14px; }
.demand-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; display: block; transition: .2s; }
.demand-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.demand-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.demand-item-head h3 { font-size: 17px; transition: .2s; }
.demand-item:hover h3 { color: var(--primary); }
.demand-item p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.demand-item-foot { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }

.status { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.status-pending { background: #fff3e6; color: #e8590c; }
.status-processing { background: #eef3ff; color: var(--primary); }
.status-done { background: #e6f7f0; color: var(--success); }

.publish-login-tip { text-align: center; padding: 12px 0; }
.publish-login-tip p { margin-bottom: 14px; }

/* ---------- 详情卡片 ---------- */
.prose-card { padding: 30px 34px; }
.prose-card h3 { font-size: 19px; margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--primary); }
.lead { font-size: 16px; color: var(--primary-dark); margin-bottom: 14px; }
.demand-facts { background: var(--bg); border-radius: 10px; padding: 16px 20px; margin: 16px 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.reply-box { background: #eef9f4; border-left: 3px solid var(--success); padding: 14px 18px; border-radius: 8px; margin-top: 20px; font-size: 14px; }
.reply-box.muted { background: var(--bg); border-left-color: var(--muted); color: var(--muted); }
.org-intro { margin-bottom: 10px; color: var(--text-2); }

/* ---------- 专家网格 ---------- */
.expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.expert-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: .25s; }
.expert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.expert-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.expert-card-head h3 { font-size: 18px; }
.expert-title { color: var(--primary); font-size: 13px; }
.expert-field { display: inline-block; background: var(--bg-2); color: var(--text-2); font-size: 12px; padding: 3px 12px; border-radius: 20px; margin-bottom: 10px; }
.expert-org { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.expert-intro { font-size: 13px; color: var(--muted); }
.expert-phone { font-size: 13px; color: var(--primary); margin-top: 6px; font-weight: 600; }

/* ---------- 人才列表 ---------- */
.talent-list { display: flex; flex-direction: column; gap: 12px; }
.talent-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: .2s; }
.talent-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.talent-main h3 { font-size: 17px; margin-bottom: 8px; }
.talent-main h3:hover { color: var(--primary); }
.talent-tags { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }
.talent-date { flex-shrink: 0; color: var(--muted); font-size: 13px; }

/* ---------- 联系我们 ---------- */
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.contact-info { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; }
.contact-info h3 { font-size: 19px; margin-bottom: 18px; padding-left: 12px; border-left: 4px solid var(--primary); }
.contact-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.contact-item:last-child { border-bottom: none; }
.contact-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.contact-item strong { display: block; font-size: 15px; }
.contact-item p { color: var(--muted); font-size: 14px; }

/* ---------- 认证 ---------- */
.auth-section { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 40px 38px; }
.auth-card-wide { max-width: 620px; }
.auth-card h2 { font-size: 26px; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 26px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--primary); }

/* ---------- 用户中心 ---------- */
.user-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.user-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.user-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; display: flex; align-items: center; gap: 14px; }
.user-card strong { display: block; font-size: 16px; }
.user-card small { color: var(--muted); }
.user-nav { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.user-nav a { padding: 11px 16px; border-radius: 8px; color: var(--text-2); transition: .15s; }
.user-nav a:hover { background: var(--bg); color: var(--primary); }
.user-nav a.active { background: var(--gradient); color: #fff; font-weight: 600; }
.user-main { display: flex; flex-direction: column; gap: 20px; }
.user-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.user-stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; text-align: center; transition: .2s; }
.user-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.user-stat strong { display: block; font-size: 30px; color: var(--primary); }
.user-stat span { color: var(--muted); font-size: 14px; }

/* ---------- 表格 ---------- */
.table-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--bg); color: var(--text-2); font-weight: 600; white-space: nowrap; }
.data-table tr:hover td { background: #fafbfe; }
.data-table a { color: var(--primary); }
.empty-cell { text-align: center !important; color: var(--muted); padding: 30px 0 !important; }

/* ---------- 留言列表 ---------- */
.message-list { display: flex; flex-direction: column; gap: 14px; }
.message-item { background: var(--bg); border-radius: 10px; padding: 16px 20px; }
.message-item-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.message-item-head span { color: var(--muted); font-size: 13px; }
.message-item p { color: var(--text-2); }

/* ---------- 空状态 / 提示 ---------- */
.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px; }
.alert { padding: 12px 18px; border-radius: 8px; margin: 16px 0; font-size: 14px; }
.alert-success { background: #e6f7f0; color: #0b6b4d; }
.alert-error { background: #fff0ec; color: #c2341a; }
.alert-info { background: #eef3ff; color: var(--primary); }
.alert-warning { background: #fff3e6; color: #b86a0a; }

/* ---------- 分页 ---------- */
.pagination { margin-top: 26px; display: flex; justify-content: center; }
.pagination ul { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination li a, .pagination li span { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 8px; border-radius: 8px; background: #fff; border: 1px solid var(--border); color: var(--text-2); font-size: 14px; }
.pagination li a:hover { border-color: var(--primary); color: var(--primary); }
.pagination li.active span { background: var(--gradient); color: #fff; border-color: transparent; }
.pagination li.disabled span { color: #c3ccd8; }

/* ---------- 数据看板（叠放卡片） ---------- */
.data-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -46px; position: relative; z-index: 5; }
.data-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--border); padding: 26px 16px; text-align: center; transition: .2s; }
.data-card:hover { transform: translateY(-4px); }
.data-card strong { font-size: 34px; font-weight: 800; color: var(--primary); }
.data-card strong span { font-size: 15px; font-weight: 600; }
.data-card span.label { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

/* ---------- 核心服务 8 大模块 ---------- */
.core-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.core-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 26px 20px; display: block; transition: .25s; }
.core-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.core-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.core-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.core-card p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.core-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-top: 10px; }

/* ---------- 案例列表 ---------- */
.case-list li { border-bottom: 1px dashed var(--border); }
.case-list li:last-child { border-bottom: none; }
.case-list a { display: flex; align-items: center; gap: 10px; padding: 12px 0; transition: .15s; }
.case-list a:hover .case-text { color: var(--primary); }
.case-tag { flex-shrink: 0; font-size: 11px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.case-text { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.case-date { flex-shrink: 0; color: var(--muted); font-size: 12px; }

/* ---------- AI 智能助手 ---------- */
.ai-section { background: linear-gradient(135deg, #EEEDFE 0%, #E4E1FB 100%); border: 1px solid #D9D5F7; border-radius: 18px; padding: 44px 40px; text-align: center; }
.ai-avatar { width: 60px; height: 60px; background: linear-gradient(135deg, #6A5AE0, #534AB7); border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 700; box-shadow: 0 8px 20px rgba(83, 74, 183, .35); }
.ai-section h3 { font-size: 20px; font-weight: 700; color: #3C3489; margin-bottom: 8px; }
.ai-section > p { font-size: 13px; color: #6a5ae0; margin-bottom: 22px; }
.ai-questions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 22px; }
.ai-q { background: #fff; border: 1px solid #CECBF6; border-radius: 20px; padding: 8px 16px; font-size: 13px; color: #534AB7; cursor: pointer; transition: .15s; }
.ai-q:hover { background: #534AB7; color: #fff; }
.ai-input { max-width: 520px; margin: 0 auto; display: flex; gap: 8px; }
.ai-input input { flex: 1; height: 44px; border: 1px solid #CECBF6; border-radius: 10px; padding: 0 16px; font-size: 14px; outline: none; }
.ai-input input:focus { border-color: #534AB7; box-shadow: 0 0 0 3px rgba(83, 74, 183, .15); }
.ai-input button { padding: 0 24px; background: linear-gradient(135deg, #6A5AE0, #534AB7); color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s; }
.ai-input button:hover { opacity: .92; transform: translateY(-1px); }

/* ---------- 企业诉求入口横幅 ---------- */
.demand-cta { background: var(--gradient); border-radius: 16px; padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; box-shadow: var(--shadow-lg); }
.demand-cta h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.demand-cta p { font-size: 14px; color: rgba(255,255,255,.9); }
.demand-cta .btn-light { flex-shrink: 0; }
@media (max-width: 560px) {
    .demand-cta { flex-direction: column; text-align: center; padding: 28px 20px; }
}

/* ---------- 首页企业发布两列网格 ---------- */
.home-demand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home-demand-grid .demand-item { margin-bottom: 0; }
@media (max-width: 860px) {
    .home-demand-grid { grid-template-columns: 1fr; }
}

/* ---------- 待审核需求卡片（管理员前台） ---------- */
.audit-card { background: #fff8e6; border: 1px solid #f5d78e; border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.audit-card h3 { font-size: 15px; color: #8a5a00; margin-bottom: 12px; }
.audit-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px dashed #ead9ae; }
.audit-item:first-of-type { border-top: none; }
.audit-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.audit-item-info strong { font-size: 14px; color: var(--text); }
.audit-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: #f0f4ff; }
@media (max-width: 560px) {
    .audit-item { flex-direction: column; align-items: flex-start; }
}

/* ---------- 页脚 ---------- */
.footer { background: #0e1c3a; color: rgba(255,255,255,.78); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 36px; padding: 52px 20px 40px; }
.footer-brand { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-slogan { color: #ffd166; margin-bottom: 14px; font-size: 14px; }
.footer-desc { font-size: 13px; margin-bottom: 10px; }
.footer-company { font-size: 13px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; position: relative; padding-left: 12px; }
.footer-col h4::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: var(--primary); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; transition: .15s; }
.footer-col a:hover { color: #fff; }
.footer-contact p { font-size: 14px; margin-bottom: 8px; }
.footer-links { padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13px; }
.footer-links-label { color: #fff; }
.footer-links a { color: rgba(255,255,255,.6); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom p { text-align: center; margin-bottom: 4px; }

/* ---------- 错误页 ---------- */
.error-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.error-box { text-align: center; }
.error-code { font-size: 90px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.error-box h1 { font-size: 24px; margin: 14px 0 8px; }
.error-box p { color: var(--muted); margin-bottom: 24px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .nav a { padding: 8px 9px; font-size: 14px; }
    .header-search input { width: 120px; }
    .quick-grid { grid-template-columns: repeat(3, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .policy-grid, .expert-grid { grid-template-columns: repeat(2, 1fr); }
    .org-grid { grid-template-columns: repeat(2, 1fr); }
    .core-grid { grid-template-columns: repeat(2, 1fr); }
    .data-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .header-inner { height: 64px; gap: 14px; }
    .nav { position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px; box-shadow: var(--shadow); display: none; }
    body.nav-open .nav { display: flex; }
    .header-search { display: none; }
    .nav-toggle { display: flex; margin-left: auto; }
    .hero-slide { padding: 56px 0 76px; }
    .hero-content h1 { font-size: 32px; }
    .two-col, .article-layout, .service-detail-layout, .demand-layout, .user-layout, .contact-layout { grid-template-columns: 1fr; }
    .article-side, .demand-side, .user-side { position: static; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
    .stat-item:nth-child(2) { border-right: none; }
    .apply-form .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .quick-grid { grid-template-columns: repeat(3, 1fr); }
    .service-grid, .policy-grid, .expert-grid, .org-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 26px; }
    .core-grid, .data-cards { grid-template-columns: repeat(2, 1fr); }
    .ai-section { padding: 32px 18px; }
}
