/* 日本招聘网 前台样式 —— 手机优先，768px / 1024px 两个断点 */
:root {
  --brand: #2778f8;        /* 主色：沿用旧站的蓝 */
  --brand-dark: #1a62d6;
  --brand-soft: #eef4ff;
  --accent: #f0473c;       /* 薪资、置顶等需要醒目的地方 */
  --accent-soft: #fff1f0;
  --wechat: #07c160;
  --text: #1f2329;
  --text-2: #4e5969;
  --muted: #86909c;
  --line: #e9ebef;
  --bg: #f4f5f7;
  --card: #fff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
  --header-h: 62px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; margin-top: 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; white-space: nowrap; background: #fff; color: var(--text);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { color: inherit; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-wechat { background: var(--wechat); color: #fff; }
.btn-wechat:hover { background: #06ad56; color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { color: var(--brand-dark); }
.btn-light-outline { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-text { background: none; color: var(--muted); padding: 0 8px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; border-color: var(--line); }
.btn-block { width: 100%; }

/* ---------- 头部 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 16px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 44px; width: auto; display: block; }
.logo strong { font-size: 20px; color: var(--brand); }
.main-nav {
  display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,.06);
  flex-direction: column; padding: 6px 16px 12px;
}
.main-nav.open { display: flex; }
.main-nav a { padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
.main-nav a:last-child { border-bottom: 0; }
.main-nav a.active { color: var(--brand); font-weight: 600; }
.header-phone { display: none; }
.nav-toggle { margin-left: auto; background: none; border: 0; padding: 8px; font-size: 24px; color: var(--text); display: flex; }

/* ---------- 通用块 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.card-title { font-size: 17px; margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--brand); line-height: 1.2; }
.section { padding: 22px 0 6px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; }
.more { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 14px; }
.more:hover { color: var(--brand); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; padding: 14px 0 10px; }
.breadcrumb span:last-child { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius); }
.badge { display: inline-block; font-size: 12px; line-height: 18px; padding: 0 6px; border-radius: 4px; font-weight: 500; vertical-align: 2px; }
.badge-top { background: var(--accent); color: #fff; margin-right: 6px; }
.badge-closed { background: #f2f3f5; color: var(--muted); }

/* ---------- 首页 ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--bg) 100%); padding: 0 0 8px; }
.hero-inner { display: flex; flex-direction: column; gap: 16px; }
.hero-banner { margin: 0 -16px; }
.slider { position: relative; overflow: hidden; aspect-ratio: 675 / 300; background: #eef0f4; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-dots { position: absolute; z-index: 2; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.slider-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: rgba(255,255,255,.6); transition: width .2s; }
.slider-dots button.active { width: 20px; background: #fff; }
.hero-side { padding: 4px 0 8px; }
.hero-title { font-size: 22px; }
.hero-sub { color: var(--text-2); font-size: 14px; margin: 4px 0 14px; }
.hero-sub strong { color: var(--accent); }
.search-box {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--brand);
  border-radius: 999px; padding: 4px 4px 4px 14px;
}
.search-box .icon { color: var(--muted); font-size: 18px; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; background: none; }
.search-box .btn { height: 38px; }
.hot-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.hot-cats a { font-size: 13px; padding: 3px 12px; border-radius: 999px; background: var(--bg); color: var(--text-2); }
.hot-cats a:hover { background: var(--brand-soft); color: var(--brand); }
.hero-contact { display: flex; gap: 10px; }
.hero-contact .btn { flex: 1; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-tile {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); transition: transform .15s;
}
.cat-tile:hover { transform: translateY(-2px); color: inherit; }
.cat-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.cat-icon { background: var(--brand-soft); color: var(--brand); }
.cat-tile:hover .cat-icon { background: var(--brand); color: #fff; }
.cat-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-count { font-size: 12px; color: var(--muted); }

.cta { background: linear-gradient(120deg, #1a62d6, #3d9af6); color: #fff; margin: 22px 0 0; }
.cta-inner { padding: 26px 16px; display: flex; flex-direction: column; gap: 16px; }
.cta h2 { font-size: 20px; }
.cta p { opacity: .92; margin-top: 4px; font-size: 14px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.article-mini { list-style: none; margin: 0; padding: 4px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-mini.single { padding: 0; box-shadow: none; }
.article-mini li { display: flex; gap: 12px; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.article-mini li:last-child { border-bottom: 0; }
.article-mini a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-mini time { color: var(--muted); font-size: 13px; flex: none; }

/* ---------- 职位卡片 ---------- */
.job-grid, .job-list { display: grid; gap: 12px; }
.job-card {
  display: block; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  border: 1px solid transparent; transition: border-color .15s, box-shadow .15s;
}
.job-card:hover { color: inherit; border-color: #bcd4fd; box-shadow: 0 6px 20px rgba(39, 120, 248, .1); }
.job-card:hover h3 { color: var(--brand); }
.job-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.job-card h3 { font-size: 16px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.salary { color: var(--accent); font-weight: 700; white-space: nowrap; font-size: 15px; }
.salary-lg { font-size: 22px; margin: 6px 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; line-height: 22px; padding: 0 8px; border-radius: 4px; background: #f2f3f5; color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-loc { background: #eef4ff; color: #2f5bd3; }
.job-card-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f2f3f5; color: var(--muted); font-size: 12px; }
.job-card-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-list.compact .job-card { box-shadow: none; border: 1px solid var(--line); }

/* ---------- 列表页 ---------- */
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.list-head h1 { font-size: 22px; }
.list-head p { color: var(--muted); font-size: 14px; white-space: nowrap; }
.list-head strong { color: var(--accent); }
/* 分类标签自动换行，全部直接显示（不横向滚动） */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cat-tabs a { padding: 4px 12px; border-radius: 999px; background: #fff; font-size: 13px; line-height: 22px; color: var(--text-2); border: 1px solid var(--line); }
.cat-tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.job-filter { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; background: #fff; padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; }
.filter-search { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; height: 40px; }
.filter-search .icon { color: var(--muted); }
.filter-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; }
.job-filter select { height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; font: inherit; font-size: 14px; background: #fff; color: var(--text); min-width: 0; }
.job-filter .btn { grid-column: span 2; height: 38px; border-radius: 8px; }
.job-filter .btn-text { grid-column: span 1; }
.list-layout, .detail-layout { display: grid; gap: 16px; }
.list-side, .detail-side { display: none; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 20px 0 8px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; font-size: 14px; border: 1px solid var(--line); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .ellipsis { border: 0; background: none; min-width: 20px; padding: 0; }

/* ---------- 职位详情 ---------- */
.closed-banner { display: flex; gap: 10px; background: #fff7e6; border: 1px solid #ffd591; color: #ad6800; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.closed-banner .icon { font-size: 20px; margin-top: 2px; }
.closed-banner p { font-size: 13px; color: #8c5a00; }
.job-head h1 { font-size: 21px; }
.job-head-top { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.job-head.is-closed h1, .job-head.is-closed .salary { color: var(--muted); }
.job-meta { color: var(--muted); font-size: 13px; margin-top: 12px; }
.job-meta span { margin: 0 6px; }
.job-head-actions { display: flex; gap: 10px; margin-top: 14px; }
.job-head-actions .btn { flex: 1; }
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.facts div { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); width: 72px; flex: none; }
.facts dd { margin: 0; }
.facts.facts-stack { grid-template-columns: 1fr; }
.facts-stack dt { width: 9.5em; }
.facts-stack div:nth-last-child(2):nth-child(odd) { border-bottom: 1px dashed var(--line); }
.rich { font-size: 15px; line-height: 1.85; color: #2b2f36; word-wrap: break-word; overflow-wrap: anywhere; }
.rich p, .rich div { margin: 0 0 .4em; }
.rich ul, .rich ol, .rich blockquote, .rich table { margin: 0 0 .8em; }
.article-body .rich p { margin-bottom: .8em; }
.apply-tip .icon { margin-top: 4px; color: var(--wechat); }
.tip-copy { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.job-desc, .article-content { font-size: 16px; line-height: 2; }   /* 职位描述、文章正文比通用正文大一号 */
.rich h2, .rich h3, .rich h4 { margin: 1.2em 0 .5em; font-size: 17px; }
.rich ul, .rich ol { padding-left: 1.4em; }
.rich img { border-radius: 6px; margin: 6px 0; }
.rich a { color: #2f5bd3; text-decoration: underline; }
.rich table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.rich td, .rich th { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }
.rich th { background: #f7f8fa; text-align: left; font-weight: 600; white-space: nowrap; color: var(--text-2); width: 1%; }
.rich table { display: table; }
@media (max-width: 480px) { .rich th { white-space: normal; min-width: 5.5em; } }
.rich blockquote { border-left: 3px solid var(--line); padding-left: 12px; color: var(--text-2); }
.apply-tip { display: flex; gap: 6px; align-items: flex-start; margin-top: 16px; padding: 10px 12px; background: var(--brand-soft); color: #1a4fa8; border-radius: 8px; font-size: 14px; }

/* ---------- 联系卡片 ---------- */
.contact-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-align: center; }
.contact-card h3 { font-size: 17px; }
.contact-note { color: var(--muted); font-size: 13px; margin-top: 4px; }
.contact-name { margin-top: 10px; font-weight: 600; color: var(--text-2); }
.contact-phone { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 22px; font-weight: 700; color: var(--brand); letter-spacing: .5px; }
.contact-qr { margin: 12px auto 0; }
.contact-qr img { width: 160px; height: 160px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }
.contact-qr figcaption { font-size: 13px; color: var(--muted); }
.copy-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; font-size: 14px; flex-wrap: wrap; }
.contact-hours { display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 13px; margin-top: 10px; }
.side-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-top: 14px; }
.side-box h3 { font-size: 16px; margin-bottom: 8px; }
.side-job { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.side-job span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-job em { font-style: normal; color: var(--accent); white-space: nowrap; font-size: 13px; }
.side-box .more { margin-top: 10px; }

/* ---------- 资讯 / 单页 ---------- */
.article-list { display: grid; gap: 12px; }
.article-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.article-item h2 { font-size: 17px; }
.article-item p { color: var(--text-2); font-size: 14px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; margin-top: 8px; }
.article-meta a { color: var(--brand); }
.article-body h1 { font-size: 22px; }
.article-body .article-meta { margin: 8px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.page-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.page-nav a { padding: 6px 14px; border-radius: 999px; background: #fff; font-size: 14px; border: 1px solid var(--line); }
.page-nav a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 联系我们 */
.contact-hero h1 { font-size: 22px; margin-bottom: 8px; }
.contact-hero .rich { color: var(--text-2); }
.contact-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.contact-box { margin: 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.contact-box h2 { font-size: 17px; }
.contact-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; margin-bottom: 2px; }
.icon-phone { background: var(--brand); }
.icon-wechat { background: var(--wechat); }
.contact-person { color: var(--text-2); font-size: 14px; }
.contact-big { font-size: 26px; font-weight: 700; color: var(--brand); letter-spacing: .5px; line-height: 1.3; }
.contact-sub { color: var(--muted); font-size: 13px; }
.contact-box .btn { margin-top: 6px; min-width: 160px; }
.contact-box .contact-hours { margin-top: 4px; }
.contact-box .copy-row { margin-top: 2px; }
.contact-box .copy-row .btn { min-width: 0; margin-top: 0; }
.contact-qr-img { width: 168px; height: 168px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-icon { width: 34px; height: 34px; flex: none; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.info-list small { color: var(--muted); font-size: 12px; }
.info-list p { color: var(--text); font-size: 15px; line-height: 1.6; word-break: break-all; }
.notfound { text-align: center; padding: 48px 20px; margin-top: 20px; }
.notfound h1 { font-size: 26px; }
.notfound p { color: var(--muted); margin: 8px 0 20px; }
.notfound-actions { display: flex; gap: 10px; justify-content: center; }

/* ---------- 页脚 ---------- */
.site-footer { background: #1f2329; color: #a9aeb8; margin-top: 32px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 28px 16px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand strong { color: #fff; font-size: 18px; }
.footer-brand p { margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-links a { display: block; padding: 3px 0; }
.footer-cats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; align-content: start; }
.footer-cats h4 { grid-column: 1 / -1; }
.footer-cats a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-cats { grid-column: 1 / -1; }
.footer-contact p { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.footer-qr { margin-top: 8px; border-radius: 6px; background: #fff; padding: 4px; }
.footer-friends { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 14px; padding-bottom: 14px; border-top: 1px solid #2f343c; font-size: 13px; }
.footer-friends span { color: #7d838d; }
.footer-friends a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2f343c; padding: 14px 0; font-size: 13px; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; text-align: center; }
.footer-cert { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; }

/* ---------- 手机底部联系条 / 弹窗 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.04);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 12px; }
.tab .icon { font-size: 22px; }
.tab.active, .tab:hover { color: var(--brand); }
.tabbar-job .tab-call, .tabbar-job .tab-wechat { color: #fff; margin: 6px 4px; border-radius: 10px; flex-direction: row; gap: 4px; font-size: 14px; font-weight: 600; }
.tabbar-job .tab-call .icon, .tabbar-job .tab-wechat .icon { font-size: 18px; }
.tabbar-job .tab-call { background: var(--brand); margin-left: 6px; }
.tabbar-job .tab-wechat { background: var(--wechat); margin-right: 8px; }
.tabbar-job .tab-call:hover, .tabbar-job .tab-wechat:hover { color: #fff; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.modal-card { position: relative; background: #fff; border-radius: 16px; padding: 26px 22px 20px; width: 100%; max-width: 340px; text-align: center; animation: pop .18s ease-out; }
.modal-card h3 { font-size: 18px; margin-bottom: 12px; }
.modal-card img { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.modal-tip { color: var(--muted); font-size: 13px; margin-top: 6px; }
.modal-card .copy-row { margin: 12px 0 16px; }
.modal-close { position: absolute; top: 10px; right: 10px; background: none; border: 0; font-size: 22px; color: var(--muted); padding: 4px; display: flex; }
@keyframes pop { from { transform: scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 120; background: rgba(0,0,0,.8); color: #fff; padding: 8px 18px; border-radius: 999px; font-size: 14px; }
.toast[hidden] { display: none; }

/* 手机端页脚精简：只留友情链接（仅首页有）和版权备案 */
@media (max-width: 767px) {
  .footer-inner { display: none; }
  .site-footer { margin-top: 20px; }
  .footer-friends { border-top: 0; font-size: 12px; gap: 4px 12px; }
  .footer-bottom { font-size: 12px; padding: 12px 0 14px; line-height: 1.8; }
  .footer-friends + .footer-bottom { border-top: 1px solid #2f343c; }
}

/* ======================= 平板及以上 ======================= */
@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .job-grid { grid-template-columns: repeat(2, 1fr); }
  .job-filter { grid-template-columns: 2fr 1fr 1fr 1fr auto auto; align-items: center; }
  .filter-search { grid-column: auto; }
  .job-filter .btn, .job-filter .btn-text { grid-column: auto; padding: 0 22px; }
  .facts { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .facts div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .footer-inner { grid-template-columns: 1.3fr 1.7fr 0.9fr 1.1fr; }
  .footer-brand, .footer-cats { grid-column: auto; }
  .footer-bottom .container { justify-content: space-between; }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 16px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-box { padding: 26px 20px; }
}

/* ======================= 电脑 ======================= */
@media (min-width: 1024px) {
  :root { --header-h: 78px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .logo img { height: 56px; }
  .nav-toggle { display: none; }
  .main-nav { display: flex; position: static; flex-direction: row; background: none; border: 0; box-shadow: none; padding: 0; margin-left: 24px; gap: 4px; }
  .main-nav a { border: 0; padding: 8px 14px; border-radius: 8px; font-size: 16px; }
  .main-nav a:hover { background: var(--bg); }
  .main-nav a.active { background: var(--brand-soft); }
  .header-phone { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 700; color: var(--brand); font-size: 17px; }

  .hero { padding: 20px 0 8px; }
  .hero-inner { flex-direction: row; gap: 20px; padding: 0 16px; align-items: stretch; }
  .hero-banner { flex: 0 0 58%; margin: 0; }
  .slider { border-radius: var(--radius); height: 100%; aspect-ratio: auto; min-height: 315px; }
  .hero-side { flex: 1; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 26px 22px; display: flex; flex-direction: column; justify-content: center; }
  .hero-title { font-size: 26px; }
  .cat-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .job-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .article-mini { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; padding: 8px 24px; }
  .article-mini.single { display: block; }
  .article-mini li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }

  .list-layout, .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
  .page-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .list-side, .detail-side { display: block; }
  .list-side, .sticky { position: sticky; top: calc(var(--header-h) + 16px); }
  .job-list { grid-template-columns: 1fr; }
  .cat-tabs a { padding: 5px 14px; font-size: 14px; }
  .job-list.compact { grid-template-columns: 1fr 1fr; }
  .card { padding: 24px; }
  .job-head h1 { font-size: 24px; }
  .job-head-actions { display: none; }
  .page-nav { flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; position: sticky; top: calc(var(--header-h) + 16px); }
  .page-nav a { border: 0; border-radius: 8px; padding: 9px 14px; }
}
