/* 舟山丰瀛集团 —— 公共样式（index.html / 404.html 共用） */

:root {
  --ink: #123a66;
  --ink-2: #17497e;
  --ink-3: #113d6b;
  --gold: #c08a46;
  --gold-deep: #a8763a;
  --paper: #fbf9f5;
  --paper-2: #f1ede5;
  --line: #e0dfd6;
  --text: #17497e;
  --text-2: #4e5f69;
  --text-3: #6b7a83;
  --white: #f7f3ed;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", sans-serif;
  --num: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1440px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 58, 102, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #2a5488;
}

.nav__inner {
  height: 76px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand svg { width: 30px; height: 30px; flex: none; }

.brand span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}

.navlinks a {
  font-size: 14px;
  color: #c5d6e8;
  transition: color 0.2s;
  white-space: nowrap;
}

.navlinks a:hover { color: var(--gold); }

.navtel {
  font-family: var(--num);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
  flex: none;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  padding: 0;
  flex: none;
}

.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: clamp(72px, 12vh, 150px) var(--pad) clamp(140px, 16vh, 190px);
}

.hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: stretch;
}

.hero__text { align-self: center; }

.hero__pic {
  margin: 0;
  position: relative;
  align-self: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(5, 20, 45, 0.55);
}

.hero__pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__pic figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: 11px;
  color: #b3c8dd;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(18, 58, 102, 0) 0%, rgba(18, 58, 102, 0.82) 100%);
}

.hero__glow {
  position: absolute;
  top: -10%;
  right: -8%;
  width: min(1000px, 80vw);
  height: 120%;
  background: radial-gradient(closest-side, rgba(80, 140, 230), 0.4), rgba(20, 60, 110, 0) 72%);
  pointer-events: none;
}

.hero__waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  pointer-events: none;
}

.hero__waves svg { width: 100%; height: 100%; display: block; }

.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero__text > * { max-width: 760px; }

.rule {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 24px;
}

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.28;
  color: var(--white);
  margin: 0 0 24px;
  letter-spacing: 0.01em;
}

.hero p {
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.85;
  color: #bccfe2;
  margin: 0 0 36px;
  max-width: 620px;
}

.btns { display: flex; flex-wrap: wrap; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 34px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.btn--gold { background: var(--gold); color: var(--ink); }

.btn--gold:hover { background: #d09a55; }

.btn--ghost {
  background: transparent;
  color: #e7dccb;
  border-color: rgba(192, 138, 70, 0.5);
}

.btn--ghost:hover { border-color: var(--gold); color: #fff; }

.btn--white-ghost {
  background: transparent;
  color: #dce4e9;
  border-color: rgba(255, 255, 255, 0.24);
}

.btn--white-ghost:hover { border-color: rgba(255, 255, 255, 0.5); }

/* ---------- 通用区块 ---------- */
.section { padding: clamp(72px, 9vw, 120px) var(--pad); }

.section--paper { background: var(--paper); }
.section--white { background: #fff; }

.section__head {
  max-width: var(--maxw);
  margin: 0 auto 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.eyebrow {
  font-family: var(--num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  margin-bottom: 16px;
  text-transform: uppercase;
}

h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.34;
  color: var(--text);
  margin: 0;
}

.head__desc {
  font-size: 15px;
  line-height: 1.75;
  color: #5a6b75;
  max-width: 460px;
  text-align: right;
  margin: 0;
  flex: none;
}

/* ---------- 产业卡片 ---------- */
.grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  min-height: 232px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(20, 60, 110, 0.35);
  border-color: #cdc7b8;
}

.card__num {
  font-family: var(--num);
  font-size: 12px;
  font-weight: 600;
  color: #b9a88f;
  margin-bottom: 12px;
}

.card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  margin: 0 0 12px;
}

.card p {
  font-size: 14px;
  line-height: 1.72;
  color: #5a6b75;
  margin: 0;
}

.card--dark { background: var(--ink-2); border-color: var(--ink-2); }
.card--dark .card__num { color: var(--gold); }
.card--dark h3 { color: var(--white); }
.card--dark p { color: #b3c8dd; }

/* ---------- 集团概况 ---------- */
.about {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.about__media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 560 / 520;
  display: flex;
  flex-direction: column;
  background: #1a4a7d;
}

.about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.about__render {
  margin: 0;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.about__render img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__render figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: 11px;
  color: #b3c8dd;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(18, 58, 102, 0) 0%, rgba(18, 58, 102, 0.82) 100%);
}

.about__hint {
  flex: none;
  font-size: 12px;
  color: #9db8d6;
  text-align: center;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, #22609e 0%, #1a4a7d 45%, #15406e 100%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 14px);
}

.about__text h2 { line-height: 1.42; margin-bottom: 8px; }

.about__text .rule { margin: 24px 0; }

.about__text p {
  font-size: 15px;
  line-height: 2;
  color: var(--text-2);
  margin: 0 0 16px;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 28px;
}

.pillars div { min-width: 80px; }

.pillars b {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text);
}

.pillars span {
  display: block;
  font-size: 13px;
  color: #8595a0;
  margin-top: 4px;
}

/* ---------- 人才招聘 ---------- */
.jobs {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.job {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 30px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.job:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -18px rgba(20, 60, 110, 0.35);
  border-color: #cdc7b8;
}

.job__title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.job h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
}

.job__cat {
  font-size: 11px;
  color: var(--gold-deep);
  border: 1px solid rgba(168, 118, 58, 0.4);
  border-radius: 2px;
  padding: 3px 8px;
  white-space: nowrap;
}

.job__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  font-size: 13px;
  color: #5a6b75;
  white-space: nowrap;
}

.job__pending {
  font-size: 12px;
  color: #98a5ad;
}

.jobs__note {
  max-width: var(--maxw);
  margin: 28px auto 0;
  font-size: 13px;
  color: #6b7a83;
  text-align: center;
}

.jobs__note a {
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 118, 58, 0.4);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  padding: clamp(64px, 8vw, 96px) var(--pad);
  text-align: center;
}

.cta__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 90vw);
  height: 420px;
  background: radial-gradient(closest-side, rgba(46, 112, 128, 0.5), rgba(20, 60, 110, 0) 75%);
  pointer-events: none;
}

.cta__inner { position: relative; }

.cta h2 { color: var(--white); margin-bottom: 18px; }

.cta p {
  font-size: 15px;
  color: #b3c8dd;
  margin: 0 0 32px;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #0D2C52;
  padding: 72px var(--pad) 32px;
}

.footer__top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 64px;
  flex-wrap: wrap;
  padding-bottom: 56px;
}

.footer__brand { max-width: 340px; }
.footer__brand .brand span { font-size: 17px; }

.footer__brand p {
  font-size: 13px;
  line-height: 1.85;
  color: #93aecb;
  margin: 18px 0;
}

.footer__cols {
  display: flex;
  gap: clamp(32px, 6vw, 88px);
  flex-wrap: wrap;
}

.footer__col h4 {
  font-family: var(--num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0 0 14px;
}

.footer__col a,
.footer__col span {
  display: block;
  font-size: 13px;
  color: #bccfe2;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--gold); }

.footer__line {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 1px;
  background: #26538a;
}

.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #7f9cbf;
}

/* ---------- 404 ---------- */
.err {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
}

.err__body {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--pad) 120px;
}

.err__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, 92vw);
  height: min(820px, 100%);
  background: radial-gradient(closest-side, rgba(38, 102, 122, 0.45), rgba(18, 58, 102, 0) 72%);
  pointer-events: none;
}

.err__waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  pointer-events: none;
}

.err__waves svg { width: 100%; height: 100%; display: block; }

.err__inner {
  position: relative;
  text-align: center;
  max-width: 560px;
}

.err__code {
  font-family: var(--num);
  font-weight: 600;
  font-size: clamp(120px, 16vw, 200px);
  line-height: 1;
  color: #f5f1ea;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}

.err__rule {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 24px;
}

.err__inner h1 {
  font-size: clamp(21px, 2.4vw, 28px);
  margin: 0 0 18px;
}

.err__inner p {
  font-size: 15px;
  line-height: 1.85;
  color: #a7bed4;
  margin: 0 0 32px;
}

.err__btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.err__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 32px);
}

.err__links a {
  font-size: 13px;
  color: #9cb4cc;
  transition: color 0.2s;
}

.err__links a:hover { color: var(--gold); }

.err__foot {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--pad) 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #7f9cbf;
}

.err__foot .code {
  font-family: var(--num);
  font-weight: 500;
  color: #7e9cc9;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .head__desc { display: none; }
  .jobs { grid-template-columns: 1fr; }

  .hero__split { grid-template-columns: 1fr; gap: 36px; }
  .hero__pic { aspect-ratio: 16 / 9; order: 2; max-width: 720px; }
}

@media (max-width: 860px) {
  .nav__inner { height: 64px; }
  .navlinks {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #113d6b;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--pad) 20px;
    border-bottom: 1px solid #2a5488;
  }
  .navlinks.is-open { display: flex; }
  .navlinks a { padding: 12px 0; font-size: 15px; width: 100%; }
  .menu-toggle { display: block; }
  .navtel { display: none; }
  .nav { position: relative; }

  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card { min-height: 0; padding: 26px; }

  .job { flex-wrap: wrap; gap: 12px 16px; padding: 22px 24px; }
  .job__meta { margin-left: 0; width: 100%; gap: 12px; }

  .section__head { flex-direction: column; align-items: flex-start; gap: 20px; }

  .footer__top { flex-direction: column; gap: 40px; padding-bottom: 40px; }
  .footer__cols { gap: 40px; }

  .err__btns .btn { flex: 1 1 auto; padding: 0 20px; }
  .err__body { padding-bottom: 140px; }
}

@media (max-width: 480px) {
  .brand span { font-size: 16px; }
  .hero { padding-top: 56px; padding-bottom: 140px; }
  .btns .btn { flex: 1 1 100%; }
  .footer__cols { flex-direction: column; gap: 28px; }
  .err__code { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
