/* ============ 设计变量 ============ */
:root {
  --paper: #faf7f2;
  --paper-2: #f3ede3;
  --card: #ffffff;
  --ink: #1f1c18;
  --ink-2: #4a443c;
  --muted: #7a7166;
  --line: #e7dfd2;
  --red: #b7282e;
  --red-dark: #931f24;
  --red-soft: #f8e9e7;
  --indigo: #1c2b40;
  --indigo-soft: #e8edf3;
  --green: #2f6b3f;
  --green-soft: #e7f2ea;
  --wechat: #07c160;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 28, 24, 0.04), 0 8px 24px rgba(31, 28, 24, 0.07);
  /* 不引用 Google Fonts 等外部字体（国内访问慢），直接用系统字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Noto Serif CJK SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --container: 1120px;
  --header-offset: 84px;
}

/* ============ 基础 ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--font-serif);
  line-height: 1.35;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: 0.02em;
}
p {
  margin: 0 0 1em;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}
.muted {
  color: var(--muted);
}
.icon {
  flex-shrink: 0;
}

/* ============ 布局 ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 72px 0;
}
.section--tight {
  padding: 40px 0 64px;
}
.section--alt {
  background: var(--paper-2);
}
.section-head {
  margin-bottom: 32px;
}
.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head--row .section-title {
  margin-bottom: 0;
}
.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--red);
  font-weight: 700;
}
.eyebrow--light {
  color: #f2c9a0;
}
.section-title {
  font-size: clamp(24px, 3.2vw, 34px);
}
.section-lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0;
}
.grid {
  display: grid;
  gap: 20px;
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}
.grid--benefits {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card-title {
  font-size: 20px;
}
.more-link {
  margin: 24px 0 0;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover {
  text-decoration: underline;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.btn--lg {
  height: 52px;
  padding: 0 28px;
  font-size: 16px;
}
.btn--block {
  width: 100%;
}
.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--red-dark);
}
.btn--ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink-2);
}
.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn--wechat {
  background: var(--wechat);
  color: #fff;
}
.btn--wechat:hover {
  background: #06ad56;
}

/* ============ 页头 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 21px;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
}
.logo__text small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.logo--light .logo__text {
  color: #fff;
}
.logo--light .logo__text small {
  color: rgba(255, 255, 255, 0.5);
}
.site-nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav > a,
.nav-dd__link {
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
}
.site-nav > a:hover,
.nav-dd__link:hover {
  background: var(--paper-2);
}
.site-nav > a[aria-current='page'],
.nav-dd__link[aria-current='page'] {
  color: var(--red);
  background: var(--red-soft);
}

/* 赴日指南下拉菜单 */
.nav-dd {
  display: flex;
  align-self: stretch;
  align-items: center;
}
.nav-dd__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-right: 10px;
}
.nav-dd__link .icon {
  opacity: 0.7;
  transition: transform 0.2s;
}
.nav-dd.is-open .nav-dd__link .icon {
  transform: rotate(180deg);
}
.nav-dd__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 20px;
  right: 20px;
  z-index: 60;
  padding: 22px 26px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(31, 28, 24, 0.12);
}
.nav-dd.is-open .nav-dd__panel {
  display: block;
}
@media (hover: hover) and (min-width: 761px) {
  .nav-dd:hover .nav-dd__panel,
  .nav-dd:focus-within .nav-dd__panel {
    display: block;
  }
  .nav-dd:hover .nav-dd__link .icon,
  .nav-dd:focus-within .nav-dd__link .icon {
    transform: rotate(180deg);
  }
  .nav-dd:hover .nav-dd__link {
    background: var(--paper-2);
  }
}
.nav-dd__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px 28px;
}
.nav-dd__cat {
  display: block;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red-soft);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.nav-dd__cat:hover {
  color: var(--red);
}
.nav-dd__articles {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-dd__articles a {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
.nav-dd__articles a:hover {
  color: var(--red);
}
.nav-dd__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.nav-dd__foot a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.nav-dd__foot a:hover {
  text-decoration: underline;
}

/* ============ 首页首屏 ============ */
/* 青海波纹样（日式传统纹样） */
.pattern {
  background-color: var(--indigo);
  background-image:
    linear-gradient(100deg, #1c2b40 30%, rgba(28, 43, 64, 0.8) 62%, rgba(28, 43, 64, 0.45)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cdefs%3E%3Cg id='s' fill='none' stroke='%23ffffff' stroke-opacity='.13' stroke-width='1.2'%3E%3Ccircle r='23.4' fill='%231c2b40'/%3E%3Ccircle r='17.5'/%3E%3Ccircle r='11.5'/%3E%3Ccircle r='5.5'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23s' x='24' y='-12'/%3E%3Cuse href='%23s' x='0' y='0'/%3E%3Cuse href='%23s' x='48' y='0'/%3E%3Cuse href='%23s' x='24' y='12'/%3E%3Cuse href='%23s' x='0' y='24'/%3E%3Cuse href='%23s' x='48' y='24'/%3E%3Cuse href='%23s' x='24' y='36'/%3E%3C/svg%3E");
  background-size: auto, 48px 24px;
  color: #fff;
}
.hero {
  padding: 88px 0 96px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero__kicker {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: #f2c9a0;
}
.hero__title {
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.22;
  margin-bottom: 22px;
}
.hl {
  background: linear-gradient(transparent 68%, rgba(183, 40, 46, 0.9) 68%, rgba(183, 40, 46, 0.9) 92%, transparent 92%);
}
/* 首屏签证说明：大标题下方的醒目提示 */
.hero__visa {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 22px;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(242, 201, 160, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}
.hero__visa-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
}
.hero__visa strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.45;
}
/* 「」里的文字（如「技能」）金色突出 */
.hero__title em,
.hero__visa strong em {
  color: #ffcf7a;
  font-style: normal;
}
.hero__visa small {
  display: block;
  margin-top: 2px;
  color: #f2c9a0;
  font-size: 14px;
  line-height: 1.5;
}
.hero__lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  max-width: 560px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero__card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: 28px 28px 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.hero__card-title {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}
.seal {
  position: absolute;
  top: -20px;
  right: 24px;
  width: 64px;
  height: 64px;
  border: 3px solid var(--red);
  border-radius: 8px;
  background: var(--paper);
  color: var(--red);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transform: rotate(8deg);
}
.facts {
  margin: 0;
}
.facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.facts div:last-child {
  border-bottom: 0;
}
.facts dt {
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}
.facts dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.facts div:first-child dd {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--red);
}

/* ============ 优势卡片 ============ */
.feature__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.feature__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
}
.feature h3 {
  margin: 0;
  font-size: 19px;
}
.feature p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ============ 职位卡片 ============ */
.job-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.job-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.job-card.is-closed {
  opacity: 0.6;
}
.job-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.job-card__code {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.job-card__title {
  font-size: 20px;
  margin-bottom: 6px;
}
.job-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.job-card__restaurant {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.job-card__salary {
  margin: 12px 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge--skill {
  background: var(--indigo-soft);
  color: var(--indigo);
}
.badge--ssw {
  background: var(--green-soft);
  color: var(--green);
}
.badge--open {
  background: var(--red-soft);
  color: var(--red);
}
.badge--closed {
  background: #ececec;
  color: #777;
}
.tags {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags li {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-2);
}

/* ============ 签证卡片 ============ */
.visa-card {
  border-top: 4px solid var(--indigo);
}
.visa-card--benefit {
  border-top-color: var(--green);
}
.visa-card h3 {
  font-size: 21px;
  margin-bottom: 4px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.check-list li {
  display: flex;
  gap: 8px;
  font-size: 15px;
}
.check-list .icon {
  color: var(--red);
  margin-top: 5px;
}
.visa-card--benefit .check-list .icon {
  color: var(--green);
}

/* ============ 流程 ============ */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.step__num {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--red);
}
.step h3 {
  font-size: 17px;
  margin: 12px 0 6px;
}
.step p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.step__time {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--indigo);
  background: var(--indigo-soft);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ============ 常见问题 ============ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  color: var(--red);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
/* 常见问题页：和页面上下内容同宽 */
.faq--page {
  max-width: none;
}
/* 首页：一行两列 */
.faq--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  max-width: none;
}
@media (max-width: 760px) {
  .faq--grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.faq-more {
  margin: 28px 0 0;
  color: var(--muted);
  text-align: center;
}
.faq-more a {
  color: var(--red);
  font-weight: 600;
}
.faq details p {
  color: var(--ink-2);
  padding-bottom: 18px;
  margin: 0;
}

/* ============ 联系横幅 ============ */
.contact-band {
  background: var(--indigo);
  color: #fff;
  padding: 64px 0;
}
.contact-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.contact-band h2 {
  font-size: clamp(24px, 3vw, 32px);
}
.contact-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
}
.contact-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.qr-box {
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 10px;
  text-align: center;
  color: var(--ink);
  width: 184px;
}
.qr-box img {
  width: 156px;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  margin: 0 auto 6px;
}
.qr-box span {
  font-size: 13px;
  color: var(--muted);
}

/* ============ 内页标题区 ============ */
.page-hero {
  padding: 48px 0 44px;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 8px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}
.breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.breadcrumb a {
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============ 职位列表筛选 ============ */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.chip span {
  font-size: 12px;
  color: var(--muted);
}
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip.is-active span {
  color: rgba(255, 255, 255, 0.6);
}

/* ============ 职位详情 ============ */
.job-head__badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.job-head__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.page-hero .job-head__salary {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 700;
  color: #ffb4a8;
}
.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.job-main,
.job-aside {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.summary h2 {
  font-size: 18px;
}
/* 左侧职位概要：电脑上两列排列 */
.summary--wide dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}
.summary--wide dl div:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}
@media (max-width: 600px) {
  .summary--wide dl {
    grid-template-columns: 1fr;
  }
  .summary--wide dl div:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid var(--line);
  }
}
.job-aside h2 {
  font-size: 18px;
}
.summary dl {
  margin: 0;
}
.summary dl div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.summary dl div:last-child {
  border-bottom: 0;
}
.summary dt {
  color: var(--muted);
}
.summary dd {
  margin: 0;
  font-weight: 500;
}
.apply__closed {
  color: var(--muted);
  font-size: 14px;
}
.apply__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.prose {
  padding: 28px 32px;
}
.prose h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--red);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.prose ul > li {
  position: relative;
  padding-left: 18px;
  margin: 6px 0;
  color: var(--ink-2);
}
.prose ul > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* ============ 赴日指南 ============ */
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.guide-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.guide-card__cat {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
}
.guide-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}
.guide-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.guide-card__more {
  margin-top: auto;
  padding-top: 4px;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
}
.grid--2x2 {
  grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
}
.title-link {
  text-decoration: none;
}
.title-link:hover {
  color: var(--red);
}
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.cat-chips a {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.cat-chips a:hover,
.cat-chips a[aria-current='page'] {
  background: #fff;
  color: var(--indigo);
}
.page-hero .article-title {
  max-width: 820px;
}
.page-hero .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.article-body {
  font-size: 16px;
  line-height: 1.9;
}
.toc {
  margin-bottom: 28px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--paper-2);
}
.toc p {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--ink);
}
.toc ol {
  margin: 0;
  padding-left: 1.4em;
}
.toc li {
  margin: 4px 0;
}
.toc a {
  color: var(--ink-2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--red);
}
.prose h2 {
  scroll-margin-top: var(--header-offset);
}
.prose p {
  color: var(--ink-2);
}
.prose h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}
.prose ol > li {
  margin: 6px 0;
  padding-left: 4px;
  color: var(--ink-2);
}
.prose a {
  color: var(--red);
  text-underline-offset: 3px;
}
.prose strong {
  color: var(--ink);
}
.prose blockquote {
  margin: 1em 0;
  padding: 10px 16px;
  border-left: 4px solid var(--line);
  border-radius: 0 8px 8px 0;
  background: var(--paper);
  color: var(--muted);
}
.prose blockquote p {
  margin: 0;
}
.prose .table-scroll {
  margin: 0 0 1.2em;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.prose table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
}
.prose th,
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose thead th {
  background: var(--paper-2);
  font-weight: 700;
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose img {
  margin: 1em 0;
  border-radius: 10px;
}
.article-note {
  margin: 28px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted) !important;
}
.side-title {
  font-size: 17px;
}
.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.side-list li:last-child {
  border-bottom: 0;
}
.side-list a {
  display: block;
  font-weight: 500;
  line-height: 1.55;
  text-decoration: none;
}
.side-list a:hover {
  color: var(--red);
}
.side-list span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.side-more {
  margin-top: 8px;
  font-size: 14px;
}

/* ============ 微信卡片 ============ */
.wechat-card {
  text-align: center;
}
.wechat-card img {
  width: 168px;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  margin: 4px auto 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.wechat-card__hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.wechat-card__id {
  margin-bottom: 14px;
}
.wechat-card__note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ============ 赴日指南 ============ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.compare {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: var(--card);
  font-size: 15px;
}
.compare th,
.compare td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}
.compare thead th {
  background: var(--indigo);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 16px;
}
.compare--single {
  min-width: 0;
}
.compare tbody th {
  background: var(--paper-2);
  width: 110px;
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
}
.notice {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff8ec;
  border: 1px solid #f0dcb8;
  color: #7a5a20;
  font-size: 14px;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 12px;
}
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
}
.checklist .icon {
  color: var(--red);
  margin-top: 4px;
}

/* ============ 联系我们 ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
  align-items: start;
}
.template {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--paper-2);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.9;
  white-space: pre-wrap;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child {
  border-bottom: 0;
}
.contact-list .icon {
  color: var(--red);
  margin-top: 4px;
}
.contact-list span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.contact-list a {
  font-weight: 600;
  text-decoration: none;
}

.empty {
  padding: 40px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted);
  text-align: center;
}

/* ============ 404 ============ */
.not-found {
  text-align: center;
  padding: 96px 0;
}
.not-found__code {
  font-family: var(--font-serif);
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  color: var(--red);
  margin-bottom: 12px;
}
.not-found__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ============ 页脚 ============ */
.site-footer {
  background: #15202f;
  color: rgba(255, 255, 255, 0.68);
  padding: 56px 0 24px;
  font-size: 14px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer h3 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  margin-bottom: 14px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
}
.footer__about {
  margin: 16px 0 0;
}
.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* ============ 手机底部咨询栏 & 提示 ============ */
section[id] {
  scroll-margin-top: var(--header-offset);
}
.mobile-bar {
  display: none;
}
.mobile-bar__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 46px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-decoration: none;
}
.mobile-bar__tab[aria-current='page'] {
  color: var(--red);
  font-weight: 600;
}
.mobile-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 44px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.mobile-bar__btn--wechat {
  background: var(--wechat);
}
.mobile-bar__btn--phone {
  background: var(--red);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 70;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(31, 28, 24, 0.92);
  color: #fff;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============ 响应式 ============ */
@media (max-width: 1060px) {
  .grid--benefits {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 56px 0 64px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
  }
  /* minmax(0, 1fr)：防止文章里的表格把整页撑宽 */
  .job-layout,
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__inner {
    gap: 48px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .grid--benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 52px 0;
  }
  /* 顶部导航在手机上同样悬浮，压缩高度少占屏幕 */
  .site-header__inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 8px;
    padding-bottom: 4px;
    gap: 4px;
  }
  .logo__mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
  }
  .logo__text small {
    display: none;
  }
  :root {
    --header-offset: 100px;
  }
  .header-cta {
    display: none;
  }
  .site-nav {
    width: calc(100% + 16px);
    margin: 0 -8px;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  /* 手机底部栏已有「首页」，顶部导航省掉，保证小屏也放得下 */
  .site-nav > .nav-home {
    display: none;
  }
  .site-nav > a,
  .nav-dd__link {
    flex-shrink: 0;
    padding: 6px 7px;
    font-size: 14px;
    white-space: nowrap;
  }
  .nav-dd__link {
    padding-right: 4px;
  }
  .nav-dd__link .icon {
    width: 13px;
    height: 13px;
  }
  /* 手机上只列分类，点进分类再看文章 */
  .nav-dd__panel {
    left: 16px;
    right: 16px;
    padding: 16px 18px 12px;
  }
  .nav-dd__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
  }
  .nav-dd__cat {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav-dd__articles {
    display: none;
  }
  .nav-dd__foot {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 0;
  }
  .hero__lead {
    font-size: 16px;
  }
  /* 手机上按屏幕宽度缩放标题，保证「办「技能」工作签证」一行放得下 */
  .hero__title {
    font-size: clamp(30px, 9vw, 40px);
    letter-spacing: 0;
  }
  .hero__visa {
    display: flex;
    padding: 10px 14px 10px 10px;
  }
  .hero__visa strong {
    font-size: 16px;
  }
  .hero__visa small {
    font-size: 13px;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__actions .btn {
    flex: 1 1 auto;
  }
  .prose {
    padding: 22px 20px;
  }
  .contact-band__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .qr-box {
    margin: 0 auto;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
  /* 底部栏：首页、招聘信息 + 两个咨询按钮 */
  .mobile-bar {
    display: grid;
    grid-template-columns: 56px 56px 1fr 1fr;
    align-items: center;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
  }
  .mobile-bar--no-phone {
    grid-template-columns: 56px 56px 1fr;
  }
  .toast {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}
