/* ============================================================
   来个OC（givemeoc）样式
   Grid 弹性布局 · 移动端自适应 · 无横向滚动
   ============================================================ */

:root {
  --brand: #ff9f1c;
  --brand-deep: #f07f0a;
  --brand-soft: #ffe9c2;
  --bg-warm: #fff8ec;
  --bg-cream: #fffdf7;
  --ink: #2b2118;
  --ink-soft: #6b5d4f;
  --line: #f3e6cf;
  --white: #ffffff;
  --green: #1fa97a;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(190, 130, 30, 0.10);
  --shadow-hover: 0 12px 32px rgba(190, 130, 30, 0.18);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-cream);
  line-height: 1.7;
  overflow-x: hidden; /* 双保险：杜绝横向滚动 */
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.gmoc-frame {
    position: absolute;
    width: 1px;
    height: 1px;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}
.container--narrow { --maxw: 860px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 6px 16px rgba(240, 127, 10, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(240, 127, 10, 0.45); }
.btn--ghost { border-color: var(--brand); color: var(--brand-deep); background: rgba(255, 255, 255, 0.7); }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18); }
.btn--lg { padding: 0.85rem 2rem; font-size: 1.05rem; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(190, 130, 30, 0.08); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; }
.brand__logo { border-radius: 10px; flex: none; }
.brand__name { font-size: 1.2rem; letter-spacing: 0.02em; }
.brand__sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  line-height: 1;
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav__list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav__list a { padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.site-nav__list a:hover { color: var(--brand-deep); border-color: var(--brand); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 面包屑 ---------------- */
.breadcrumb { padding-top: 1.1rem; font-size: 0.85rem; color: var(--ink-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: #cbb896; }
.breadcrumb a:hover { color: var(--brand-deep); }

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(60% 80% at 85% 10%, #ffe3b0 0%, transparent 60%),
    radial-gradient(50% 60% at 5% 90%, #ffefd2 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-warm), #fff3dd);
  padding: 2rem 0 3.5rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2.5rem;
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.hero__sub { color: var(--ink-soft); font-size: 1.02rem; max-width: 34em; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.4rem 0 1.8rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 1.8rem;
  margin: 0;
}
.hero__stat dt { font-size: 0.8rem; color: var(--ink-soft); }
.hero__stat dd { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--brand-deep); }
.hero__stat small { font-size: 0.85rem; font-weight: 600; margin-left: 1px; }

.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
  background: #fff;
}

/* ---------------- 通用板块 ---------------- */
.section { padding: 3.8rem 0; }
.section--alt { background: var(--bg-warm); }
.section__head { text-align: center; max-width: 46em; margin: 0 auto 2.4rem; }
.section__title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.section__desc { color: var(--ink-soft); margin: 0; }
.section__more { text-align: center; margin: 2.2rem 0 0; }
.section__empty { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); }

/* ---------------- 岗位卡片（最近更新） ---------------- */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.2rem;
}

.job-card {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.job-card__head { display: flex; align-items: center; gap: 0.75rem; }
.job-card__logo {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-soft), #ffd48a);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 1.15rem;
}
.job-card__titlebox { min-width: 0; }
.job-card__company { font-size: 1.02rem; margin: 0 0 0.15rem; }
.job-card__meta { min-width: 0; flex-wrap: wrap; display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.8rem; color: var(--ink-soft); }

.tag {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}
.tag--campus { background: #e7f6ef; color: var(--green); }
.tag--intern { background: #e8f0fe; color: var(--blue); }
.tag--makeup { background: #f1eafe; color: var(--purple); }
.tag--talk { background: #fff1db; color: var(--brand-deep); }

.job-card__position { margin: 0; font-size: 0.95rem; font-weight: 600; }
.job-card__foot {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 0.65rem;
  margin-top: auto;
}
.job-card__city { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.job-card__date { flex-shrink: 0; white-space: nowrap; }

.job-card__cta {
  display: block;
  text-align: center;
  margin-top: 0.55rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  transition: filter 0.15s ease;
}
.job-card__cta:hover { filter: brightness(1.06); }

.job-card__company-link { color: inherit; }
.job-card__company-link:hover { color: var(--brand-deep); }

/* ---------------- 岗位详情页 ---------------- */
.section--detail { padding-top: 1.6rem; }

.detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
}
.detail-card__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.detail-card__logo {
  flex: none;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-soft), #ffd48a);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 1.7rem;
}
.detail-card__tags { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.3rem; }
.detail-card__industry { font-size: 0.82rem; color: var(--ink-soft); }
.detail-card__title { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0; }

.detail-card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
  margin: 0 0 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--bg-warm);
  border-radius: 12px;
}
.detail-card__meta dt { font-size: 0.78rem; color: var(--ink-soft); }
.detail-card__meta dd { margin: 0.15rem 0 0; font-weight: 700; font-size: 0.95rem; }

.detail-card__intro { color: var(--ink-soft); font-size: 0.95rem; }
.detail-card__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.2rem; }

/* ---------------- 核心优势 ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-card__icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  margin-bottom: 0.9rem;
}
.feature-card__icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.05rem; }
.feature-card p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------------- 使用流程 ---------------- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem 1.3rem;
  box-shadow: var(--shadow);
}
.step-card__num {
  position: absolute;
  top: -16px;
  left: 1.2rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(240, 127, 10, 0.4);
}
.step-card h3 { font-size: 1.02rem; margin-top: 0.3rem; }
.step-card p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------------- 用户评价 ---------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.review-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.review-card__stars { color: #f5a623; font-size: 1.05rem; letter-spacing: 0.12em; }
.review-card__content { margin: 0; font-size: 0.93rem; color: var(--ink); }
.review-card__author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.8rem;
  margin-top: auto;
}
.review-card__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-soft), #ffd48a);
  color: var(--brand-deep);
  font-weight: 700;
}
.review-card__who { display: flex; flex-direction: column; line-height: 1.4; }
.review-card__name { font-size: 0.92rem; }
.review-card__role { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------------- FAQ ---------------- */
.faq { display: grid; gap: 0.8rem; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.4rem 1.2rem;
  box-shadow: var(--shadow);
}
.faq__q { cursor: pointer; padding: 0.7rem 0; list-style: none; position: relative; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q h3 { display: inline; font-size: 0.98rem; margin: 0; }
.faq__q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--brand-deep);
  transition: transform 0.15s ease;
}
.faq__item[open] .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { margin: 0 0 0.9rem; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------------- CTA ---------------- */
.cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.cta__title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.cta__sub { opacity: 0.92; max-width: 36em; margin-inline: auto; }
.cta .btn { margin-top: 0.5rem; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #2b2118; color: #d8cbbc; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 2rem;
  padding: 2.8rem 0 1.8rem;
}
.site-footer .brand__name { color: #fff; }
.site-footer .brand__sub { color: #a89880; }
.site-footer__brand p { font-size: 0.86rem; margin: 0.8rem 0 0; }
.site-footer__heading { font-size: 0.95rem; color: #fff; margin-bottom: 0.7rem; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.88rem; }
.site-footer__nav a:hover { color: var(--brand); }
.site-footer__note p { font-size: 0.82rem; margin: 0; }
.site-footer__note code {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.75rem;
  word-break: break-all;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.1rem 0;
  font-size: 0.8rem;
  color: #a89880;
}
.site-footer__bottom p { margin: 0; }

/* ============================================================
   响应式：平板与手机自适应（Grid 自动降列，无横向滚动）
   ============================================================ */

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero__figure { max-width: 560px; margin-inline: auto; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* 移动端导航：汉堡菜单纵向展开 */
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.25rem 1.2rem;
    box-shadow: 0 12px 24px rgba(190, 130, 30, 0.12);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0.2rem; }
  .site-nav__list a { display: block; padding: 0.55rem 0.2rem; }
  .site-nav__cta { text-align: center; margin-top: 0.4rem; }

  .hero { padding: 1.5rem 0 2.6rem; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .section { padding: 2.8rem 0; }
  .job-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.2rem 0 1.4rem; }
}

@media (max-width: 480px) {
  .job-card__date { white-space: normal; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .btn--lg { padding: 0.8rem 1.2rem; font-size: 0.98rem; }
}

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
