/* ============================================================
   COS 招聘站 - 多页面扩展样式
   覆盖：顶部条 / 导航 / 页面深蓝 Hero / 职位门户 / 关于 / 联系 / FAQ / 法律页
   与 style.css 配合使用（本文件后加载，可覆盖基础样式）
   ============================================================ */

/* ---------- 顶部联系条（深蓝，对齐参考站） ---------- */
.topbar { background: #0a2142; font-size: 12.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 20px; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; color: #c9daf0; }
.topbar .ti-ico { font-size: 12px; opacity: .9; }
.topbar-phone { color: #e4eefb; }
.topbar-policy { color: #7fd4a8; font-weight: 700; }
.topbar-link { color: #9dc3ee; text-decoration: underline; text-underline-offset: 2px; }
.topbar-link:hover { color: #fff; }
.topbar a { color: #cfe1f7; }

/* ---------- 导航 ---------- */
.nav-inner { gap: 20px; }
.nav { gap: 26px; }
.nav a { position: relative; padding: 6px 0; }
.nav a.is-active { color: var(--primary); }
.nav a.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--primary); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { box-shadow: 0 2px 6px rgba(11, 40, 80, .14); }
.nav-track .ico-search { font-size: 13px; }

/* 汉堡按钮（移动端） */
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- 首页 Hero（与内页深蓝统一） ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(155deg, #081b36 0%, #0c2f5c 48%, #114a8c 100%);
    padding: 76px 0 84px;
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 80% 15%, rgba(64, 156, 255, .28), transparent 46%),
        radial-gradient(circle at 10% 90%, rgba(16, 185, 129, .16), transparent 42%);
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 46px; letter-spacing: -.8px; margin: 0 0 16px; }
.hero-lead { font-size: 17.5px; color: #d3e3f7; margin-bottom: 24px; }
.hero-eyebrow {
    display: inline-block; padding: 6px 16px; border-radius: 20px; margin: 0 0 16px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .26);
    color: #a9d3ff; font-size: 11.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}
.hero-badges { justify-content: center; }
.hero-cta { justify-content: center; }
.hero-note { color: rgba(255, 255, 255, .78); }

/* ---------- 页面深蓝 Hero ---------- */
.page-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(155deg, #081b36 0%, #0c2f5c 48%, #114a8c 100%);
    color: #fff; text-align: center; padding: 64px 0 68px;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 82% 18%, rgba(64, 156, 255, .26), transparent 46%),
        radial-gradient(circle at 12% 88%, rgba(16, 185, 129, .16), transparent 42%);
}
.page-hero::after {
    content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
    width: 120%; height: 140px; pointer-events: none;
    background: radial-gradient(ellipse at center bottom, rgba(255, 255, 255, .07), transparent 62%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-sm { padding: 48px 0 52px; }
.page-badge {
    display: inline-block; margin-bottom: 16px; padding: 6px 16px; border-radius: 20px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .26);
    color: #a9d3ff; font-size: 11.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
    backdrop-filter: blur(4px);
}
.page-hero h1 { font-size: 40px; margin: 0 0 14px; letter-spacing: -.5px; }
.page-hero-sub { max-width: 760px; margin: 0 auto; font-size: 16.5px; color: #d3e3f7; opacity: .95; }
.hero-badges.center { justify-content: center; margin-top: 22px; margin-bottom: 0; }
.hero-note { margin: 18px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .8); }

/* ---------- 区块头部横排 ---------- */
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.section-head-row .section-sub { margin-bottom: 0; }
.section-title.left { text-align: left; margin: 0 0 14px; }

/* ---------- CTA 深色条 ---------- */
.cta-band { background: linear-gradient(120deg, #0a2142 0%, #123a6b 60%, #0f4d8f 100%); color: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 27px; margin: 0 0 8px; }
.cta-inner p { margin: 0; color: #c6d9f0; max-width: 620px; font-size: 15px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .38); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .2); }

/* ---------- 职位门户 ---------- */
.filters-card {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
    box-shadow: 0 8px 24px rgba(11, 40, 80, .07); margin-bottom: 18px;
}
.results-count { font-size: 14px; color: var(--ink-2); margin: 0 0 20px; }
.results-count strong { color: var(--ink); }
.job-cat {
    display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 20px;
    background: var(--primary-soft); color: var(--primary); font-size: 11.5px; font-weight: 700;
    letter-spacing: .3px; text-transform: uppercase;
}
.job-card { display: flex; flex-direction: column; gap: 0; }
.job-card .btn-block { margin-top: 16px; }
.job-benefits { flex: 1 0 auto; }

.empty-state {
    background: #fff; border: 1px dashed #c9d8ea; border-radius: 16px;
    padding: 54px 24px; text-align: center; box-shadow: var(--shadow);
}
.empty-ico { font-size: 40px; margin-bottom: 10px; }
.empty-state h3 { font-size: 21px; margin: 0 0 8px; }
.empty-state p { color: var(--ink-2); max-width: 520px; margin: 0 auto 20px; font-size: 14.5px; }
.empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.35fr .95fr; gap: 40px; align-items: start; }
.about-copy .lead-p { font-size: 17px; color: var(--ink); font-weight: 500; }
.about-copy p { color: var(--ink-2); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.about-stat {
    background: linear-gradient(160deg, #f4f9ff 0%, #eaf2fd 100%);
    border: 1px solid #dbe8f8; border-radius: 14px; padding: 20px 22px;
}
.about-stat-value { display: block; font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.about-stat-label { display: block; font-size: 13px; color: var(--ink-2); margin-top: 6px; }

.gov-card {
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px;
    box-shadow: 0 10px 30px rgba(11, 40, 80, .09), 0 28px 60px rgba(11, 40, 80, .06);
    position: sticky; top: 90px;
}
.gov-card h3 { font-size: 20px; margin: 0 0 20px; }
.gov-row { display: flex; gap: 13px; padding: 13px 0; border-top: 1px solid #eef2f8; }
.gov-row:first-of-type { border-top: 0; }
.gov-ico {
    flex: 0 0 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft); font-size: 16px;
}
.gov-label { margin: 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-2); font-weight: 700; }
.gov-value { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.charter { background: #f7fafd; border: 1px solid #e6eef8; border-radius: 12px; padding: 16px; margin: 18px 0; }
.charter h4 { margin: 0 0 6px; font-size: 14px; color: var(--primary); }
.charter p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 400px 1fr; gap: 24px; align-items: start; margin-bottom: 26px; }
.office-card, .contact-form-card {
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px;
    box-shadow: 0 10px 30px rgba(11, 40, 80, .08), 0 26px 54px rgba(11, 40, 80, .05);
}
.office-card h2, .contact-form-card h2 { font-size: 22px; margin: 0 0 6px; }
.form-sub { color: var(--ink-2); font-size: 14px; margin: 0 0 22px; }
.office-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0f4f9; }
.office-row:last-of-type { border-bottom: 0; }
.office-ico {
    flex: 0 0 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ico-blue   { background: #e8f2ff; color: #1266c9; }
.ico-green  { background: #e7f8f1; color: #0f8a4a; }
.ico-amber  { background: #fff6e5; color: #b7791f; }
.ico-violet { background: #f1ecff; color: #6b46c1; }
.office-label { margin: 0 0 2px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-2); font-weight: 700; }
.office-value { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.55; }
.office-value a { color: var(--primary); }
.office-wa { margin-top: 20px; }

.contact-form .grid-2 { gap: 16px 20px; }
.contact-form .field { margin-bottom: 4px; }
.contact-form-card .notice { margin-bottom: 18px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.privacy-note { font-size: 12.5px; color: var(--ink-2); margin: 12px 0 0; text-align: center; }
.form-success { text-align: center; padding: 12px 6px; }

/* 地图卡 */
.map-card {
    display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden;
    border: 1px solid var(--line); border-radius: 18px; background: #fff;
    box-shadow: 0 10px 30px rgba(11, 40, 80, .07);
}
.map-art {
    position: relative; min-height: 230px; display: flex; align-items: center; justify-content: center;
    background-color: #eef4fb;
    background-image:
        linear-gradient(rgba(147, 178, 214, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 178, 214, .35) 1px, transparent 1px),
        linear-gradient(rgba(147, 178, 214, .18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 178, 214, .18) 1px, transparent 1px),
        radial-gradient(circle at 65% 35%, #d8e9ff 0%, #eef4fb 60%);
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px, 100% 100%;
}
.map-pin { font-size: 40px; filter: drop-shadow(0 6px 10px rgba(11, 40, 80, .25)); }
.map-label {
    position: absolute; left: 16px; bottom: 16px; background: #fff; color: var(--ink);
    padding: 7px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 700;
    box-shadow: 0 4px 14px rgba(11, 40, 80, .12);
}
.map-info { padding: 28px; }
.map-info h3 { font-size: 19px; margin: 0 0 8px; }
.map-addr { font-size: 14.5px; font-weight: 600; margin: 0 0 8px; }
.map-note { font-size: 13.5px; color: var(--ink-2); margin: 0 0 18px; }

/* ---------- FAQ 页 ---------- */
.faq-layout { display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: start; }
.faq-side {
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px;
    box-shadow: 0 10px 26px rgba(11, 40, 80, .07); position: sticky; top: 90px;
}
.faq-side h3 { font-size: 18px; margin: 0 0 8px; }
.faq-side p { font-size: 14px; color: var(--ink-2); margin: 0 0 18px; }
.faq-side-actions { display: grid; gap: 10px; }
.faq-search {
    display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.faq-search input { border: 0; outline: none; flex: 1; font-size: 15px; font-family: inherit; background: transparent; }
.faq-item { box-shadow: var(--shadow); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-size: 20px; font-weight: 700; line-height: 1; flex: 0 0 auto; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item[open] { border-color: #c3d8f2; }
.faq-empty { color: var(--ink-2); font-size: 14px; padding: 18px 4px; }

/* ---------- Track 页说明卡 ---------- */
.track-help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.track-help-card {
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow);
}
.th-ico {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 14px; margin-bottom: 10px;
}
.track-help-card h3 { font-size: 16px; margin: 0 0 6px; }
.track-help-card p { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* ---------- 法律页 ---------- */
.legal-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 34px; align-items: start; }
.legal-updated { font-size: 13px; color: var(--ink-2); margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.legal-body h2 { font-size: 19px; margin: 26px 0 8px; color: var(--primary); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--ink-2); font-size: 15px; line-height: 1.75; margin: 0 0 12px; }
.legal-side {
    background: #f7fafd; border: 1px solid #e4edf8; border-radius: 14px; padding: 20px;
    position: sticky; top: 90px; display: grid; gap: 10px;
}
.legal-side h4 { margin: 0; font-size: 15px; }
.legal-side p { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- 成功页 ---------- */
.success-hint { font-size: 13.5px; color: var(--ink-2); max-width: 520px; margin: 8px auto 0; }
.success-card .success-actions { margin-top: 22px; }
.trust-box { display: flex; gap: 14px; align-items: flex-start; }
.trust-ico {
    flex: 0 0 42px; height: 42px; border-radius: 12px; background: #e7f8f1;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}

/* ---------- 页脚（多栏） ---------- */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 44px; width: auto; max-width: 200px; object-fit: contain; filter: brightness(0) invert(1); opacity: .95; }
.footer-about { font-size: 13.5px; color: #a9bdd6; margin: 0 0 10px; line-height: 1.7; }
.footer-addr { font-size: 13px; color: #8fa6c2; margin: 0; }
.footer-col h4 {
    font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px;
    color: #7f9ab8; margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: #c7d4e5; font-size: 14px; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-hours { color: #8fa6c2; }

/* ---------- 悬浮 WhatsApp 增强 ---------- */
.wa-float {
    display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(180deg, #2ee06f, #17a74e);
    padding: 13px 20px; border-radius: 30px; color: #fff; font-weight: 800; font-size: 14px;
    box-shadow: 0 8px 22px rgba(23, 167, 78, .38), 0 2px 6px rgba(0, 0, 0, .12);
    transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 14px 30px rgba(23, 167, 78, .45); }
.wa-float-ico { font-size: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
    .contact-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .gov-card { position: static; }
    .faq-layout { grid-template-columns: 1fr; }
    .faq-side { position: static; }
    .legal-wrap { grid-template-columns: 1fr; }
    .legal-side { position: static; }
    .map-card { grid-template-columns: 1fr; }
    .track-help { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 860px) {
    .page-hero h1 { font-size: 30px; }
    .page-hero { padding: 46px 0 50px; }
    .page-hero-sub { font-size: 15px; }
    .section-head-row { align-items: flex-start; }
    .nav-toggle { display: flex; }
    .nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 14px;
        box-shadow: 0 16px 30px rgba(11, 40, 80, .12);
    }
    body.nav-open .nav { display: flex; }
    .nav a:not(.btn) { display: block; padding: 11px 0; border-bottom: 1px solid #f1f5fa; font-size: 15px; }
    .nav a.is-active::after { display: none; }
    .nav-actions { margin-left: auto; }
    .nav-track { display: none; }
    .nav-inner { position: relative; flex-wrap: wrap; }
}
@media (max-width: 620px) {
    .topbar-right { display: none; }
    .topbar-inner { padding: 8px 20px; }
    .topbar-item { font-size: 11.5px; }
    .about-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .office-card, .contact-form-card { padding: 22px; }
    .wa-float-text { display: none; }
    .wa-float { padding: 14px; }
}
