/* ============================================
   天合航空 企业官网 - 全局样式
   ============================================ */

:root {
  --red: #c8102e;
  --red-dark: #a30d24;
  --blue: #162a75;
  --blue-light: #2446a4;
  --blue-deep: #0d1b52;
  --text: #333333;
  --text-light: #666666;
  --bg-light: #f6f8fb;
  --border: #e6e9f0;
  --white: #ffffff;
  --max-width: 1200px;
  --header-h: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 顶部工具条 ---------- */
.topbar {
  height: 34px;
  background: var(--blue-deep);
  color: #c9d4f5;
  font-size: 12px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.topbar .slogan { letter-spacing: 2px; }
.topbar .contact-mini span { margin-left: 22px; }
.topbar .contact-mini i { font-style: normal; color: #ff8a9b; margin-right: 5px; }

/* ---------- 头部导航 ---------- */
.header {
  height: var(--header-h);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(12, 25, 80, 0.08);
  transition: all .25s ease;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { height: 56px; width: auto; }
.logo-text strong { display: block; font-size: 20px; color: var(--blue); letter-spacing: 2px; line-height: 1.2; }
.logo-text small { display: block; font-size: 10px; color: var(--red); letter-spacing: 3px; margin-top: 3px; }

.nav { display: flex; height: 100%; align-items: stretch; }
.nav > li { position: relative; display: flex; align-items: stretch; }
.nav > li > a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color .2s;
  white-space: nowrap;
}
.nav > li > a::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav > li:hover > a, .nav > li.active > a { color: var(--red); }
.nav > li:hover > a::after, .nav > li.active > a::after { transform: scaleX(1); }
.nav > li.has-drop > a::before {
  content: '';
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-top: -4px;
}

/* 下拉菜单 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 180px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(10, 25, 80, .15);
  border-top: 3px solid var(--red);
  opacity: 0;
  visibility: hidden;
  transition: all .22s ease;
  padding: 6px 0;
}
.nav > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 14px;
  color: #444;
  transition: all .18s;
  white-space: nowrap;
}
.dropdown a:hover { background: var(--bg-light); color: var(--red); padding-left: 26px; }

.nav-apply {
  display: inline-flex !important;
  align-items: center;
  background: var(--red) !important;
  color: #fff !important;
  padding: 0 18px !important;
  height: 38px;
  border-radius: 3px;
  margin-left: 10px;
  align-self: center;
  font-weight: 500 !important;
}
.nav-apply::after { display: none !important; }
.nav-apply:hover { background: var(--red-dark) !important; }

/* 移动端菜单按钮 */
.menu-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--blue); margin: 5px auto; transition: .25s; }

/* ---------- 首页大图轮播 ---------- */
.hero { position: relative; height: 520px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,22,70,.88) 0%, rgba(15,35,100,.65) 45%, rgba(15,35,100,.1) 100%);
}
.hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-content { max-width: 660px; }
.hero-content .tag { font-size: 14px; letter-spacing: 4px; color: #ff9aab; margin-bottom: 14px; }
.hero-content h1 { font-size: 46px; line-height: 1.3; font-weight: 700; letter-spacing: 2px; margin-bottom: 18px; }
.hero-content h1 em { font-style: normal; color: #ffd166; }
.hero-content p { font-size: 16px; color: #dce5ff; line-height: 1.9; margin-bottom: 28px; max-width: 560px; }
.hero-btns { display: flex; gap: 14px; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 3px;
  font-size: 15px;
  transition: all .25s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-outline { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--blue); }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dots span { width: 28px; height: 4px; background: rgba(255,255,255,.45); cursor: pointer; border-radius: 2px; transition: .25s; }
.hero-dots span.active { background: var(--red); width: 44px; }

/* ---------- 通用区块标题 ---------- */
.section { padding: 76px 0; }
.section-light { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .en { font-size: 12px; letter-spacing: 3px; color: var(--red); text-transform: uppercase; margin-bottom: 8px; }
.section-head h2 { font-size: 32px; color: var(--blue); position: relative; display: inline-block; padding-bottom: 16px; }
.section-head h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 56px; height: 3px; background: var(--red);
}
.section-head p { color: var(--text-light); margin-top: 16px; font-size: 15px; }

/* ---------- 首页：数字统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat-item { text-align: center; padding: 30px 20px; background: #fff; border-radius: 6px; box-shadow: 0 4px 20px rgba(20,40,100,.06); transition: transform .3s; }
.stat-item:hover { transform: translateY(-6px); }
.stat-num { font-size: 48px; font-weight: 700; color: var(--red); line-height: 1; }
.stat-num small { font-size: 18px; }
.stat-label { margin-top: 12px; color: var(--blue); font-size: 16px; font-weight: 600; }
.stat-en { font-size: 11px; color: #aaa; letter-spacing: 2px; margin-top: 4px; text-transform: uppercase; }

/* ---------- 首页：业务卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 20px rgba(20,40,100,.07); transition: all .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(20,40,100,.14); }
.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.07); }
.card-body { padding: 22px 24px; }
.card-body h3 { font-size: 18px; color: var(--blue); margin-bottom: 10px; }
.card-body p { color: var(--text-light); font-size: 14px; line-height: 1.8; }
.card-link { display: inline-block; margin-top: 14px; color: var(--red); font-size: 13px; font-weight: 600; }
.card-link:hover { text-decoration: underline; }

/* ---------- 图文分栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-img { border-radius: 6px; overflow: hidden; box-shadow: 0 10px 34px rgba(15,30,90,.12); }
.split-img img { width: 100%; height: 420px; object-fit: cover; }
.split-content h3 { font-size: 26px; color: var(--blue); margin-bottom: 6px; }
.split-content .sub-en { font-size: 12px; color: var(--red); letter-spacing: 2px; margin-bottom: 20px; text-transform: uppercase; }
.split-content p { color: var(--text-light); line-height: 2; margin-bottom: 14px; }
.split-content .quote {
  border-left: 3px solid var(--red);
  padding-left: 18px;
  margin: 22px 0;
  color: var(--blue);
  font-size: 17px;
  font-weight: 600;
}

/* ---------- 关于页：资质 ---------- */
.qual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.qual-item { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 12px; text-align: center; transition: .3s; }
.qual-item:hover { box-shadow: 0 8px 24px rgba(20,40,100,.12); transform: translateY(-4px); }
.qual-item img { width: 100%; height: 240px; object-fit: contain; background: #fafbfc; }
.qual-item p { margin-top: 12px; font-size: 14px; color: var(--blue); font-weight: 600; }

/* ---------- 合作单位 ---------- */
.partner-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 40px; }
.partner-list li { padding: 12px 16px; background: #fff; border-left: 3px solid var(--red); font-size: 15px; color: #444; }
.partner-list li:hover { background: var(--bg-light); }
.client-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 36px; }
.client-logos .logo-box { background: #fff; border: 1px solid var(--border); height: 110px; display: flex; align-items: center; justify-content: center; padding: 14px; border-radius: 4px; }
.client-logos img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* ---------- 时间线 / 流程 ---------- */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flow-step { text-align: center; position: relative; }
.flow-step .num {
  width: 54px; height: 54px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.flow-step h4 { font-size: 16px; color: var(--blue); margin-bottom: 8px; }
.flow-step p { font-size: 13px; color: var(--text-light); }
.flow-step:not(:last-child)::after {
  content: ''; position: absolute; top: 26px; left: calc(50% + 36px); right: -34%;
  border-top: 2px dashed #c9d2e8;
}

/* ---------- 优势列表 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.adv-item { background: #fff; padding: 34px 28px; border-radius: 6px; text-align: center; box-shadow: 0 4px 20px rgba(20,40,100,.06); transition: .3s; }
.adv-item:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(20,40,100,.13); }
.adv-item .icon-num { width: 60px; height: 60px; margin: 0 auto 18px; background: linear-gradient(135deg, var(--red), #e8425b); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.adv-item h3 { font-size: 18px; color: var(--blue); margin-bottom: 10px; }
.adv-item p { color: var(--text-light); font-size: 14px; }

/* ---------- 图片画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery .g-item { overflow: hidden; border-radius: 4px; position: relative; height: 220px; cursor: pointer; }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery .g-item:hover img { transform: scale(1.08); }
.gallery .g-item span { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(8,18,60,.85)); color: #fff; padding: 26px 12px 10px; font-size: 13px; }

/* ---------- 内页Banner ---------- */
.page-banner {
  height: 260px;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue-light));
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
.page-banner::after {
  content: ''; position: absolute; right: -60px; top: -80px;
  width: 460px; height: 460px; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: 36px; letter-spacing: 3px; }
.page-banner .en { color: #8fa8ef; font-size: 13px; letter-spacing: 4px; margin-top: 8px; text-transform: uppercase; }
.breadcrumb { font-size: 13px; color: #c2cdf0; margin-top: 14px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; }

/* ---------- 招聘页 ---------- */
.recruit-hero {
  background: linear-gradient(135deg, var(--red) 0%, #e0324c 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.recruit-hero h1 { font-size: 40px; letter-spacing: 4px; }
.recruit-hero p { margin-top: 12px; font-size: 17px; color: #ffe4e9; }
.recruit-hero .stats-inline { display: flex; justify-content: center; gap: 70px; margin-top: 30px; }
.recruit-hero .stats-inline div { font-size: 14px; color: #ffe4e9; }
.recruit-hero .stats-inline b { display: block; font-size: 30px; color: #fff; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; justify-content: center; }
.filter-bar button {
  padding: 9px 22px; border: 1px solid var(--border); background: #fff;
  border-radius: 30px; font-size: 14px; color: #555; cursor: pointer; transition: .2s;
}
.filter-bar button.active, .filter-bar button:hover { background: var(--red); border-color: var(--red); color: #fff; }

.job-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.job-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 26px 28px; transition: .3s; }
.job-card:hover { border-color: var(--red); box-shadow: 0 8px 26px rgba(20,40,100,.10); }
.job-card .job-head { display: flex; justify-content: space-between; align-items: flex-start; }
.job-card h3 { font-size: 19px; color: var(--blue); }
.job-card .badge { background: #fff0f3; color: var(--red); font-size: 12px; padding: 4px 12px; border-radius: 20px; }
.job-card .job-meta { display: flex; gap: 18px; margin: 14px 0; color: #888; font-size: 13px; }
.job-card .job-meta span::before { content: '◆'; color: var(--red); font-size: 9px; margin-right: 6px; }
.job-card .job-desc { color: var(--text-light); font-size: 14px; line-height: 1.9; }
.job-card .job-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 16px; }
.job-card .salary { color: var(--red); font-weight: 700; font-size: 16px; }
.job-card .apply-btn { background: var(--red); color: #fff; border: 0; padding: 8px 20px; border-radius: 3px; cursor: pointer; font-size: 13px; }
.job-card .apply-btn:hover { background: var(--red-dark); }

.apply-banner { background: linear-gradient(120deg, var(--blue-deep), var(--blue-light)); color: #fff; padding: 48px 0; text-align: center; }
.apply-banner h2 { font-size: 28px; }
.apply-banner p { color: #c9d6fa; margin: 10px 0 22px; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; background: #fff; padding: 34px; border-radius: 8px; box-shadow: 0 10px 40px rgba(10,20,70,.2); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 3px; font-size: 14px; font-family: inherit; outline: none; transition: .2s;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--red); }
.form-grid textarea { resize: vertical; min-height: 90px; }
.form-grid label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.form-submit { grid-column: 1 / -1; background: var(--red); color: #fff; border: 0; padding: 13px; font-size: 16px; border-radius: 3px; cursor: pointer; }
.form-submit:hover { background: var(--red-dark); }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h3 { font-size: 24px; color: var(--blue); margin-bottom: 22px; }
.contact-info .item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-info .item img { width: 30px; height: 30px; object-fit: contain; }
.contact-info .item div b { display: block; color: var(--blue); margin-bottom: 4px; }
.contact-info .item div span { color: var(--text-light); }
.contact-map { background: #e8edf6; min-height: 360px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #8895b5; text-align: center; padding: 30px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--blue-deep); color: #b8c5e8; padding: 54px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.footer-grid h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--red); }
.footer-grid p { line-height: 2; }
.footer-grid .logo img { height: 62px; background: #fff; padding: 6px; border-radius: 4px; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: 12px; color: #8b9bc9; }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 28px; bottom: 32px;
  width: 44px; height: 44px; background: var(--red); color: #fff;
  border: 0; border-radius: 3px; font-size: 20px; cursor: pointer;
  opacity: 0; visibility: hidden; transition: .3s; z-index: 999;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--red-dark); }

/* ---------- 滚动淡入动画 ---------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .nav > li > a { padding: 0 11px; font-size: 14px; }
  .logo-text strong { font-size: 17px; }
  .cards, .qual-grid, .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .header { height: 66px; }
  .logo img { height: 46px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; flex-direction: column; height: auto;
    max-height: 0; overflow: hidden; transition: max-height .3s;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
  }
  .nav.open { max-height: 80vh; overflow-y: auto; }
  .nav > li { display: block; border-bottom: 1px solid var(--border); }
  .nav > li > a { padding: 14px 20px; justify-content: space-between; }
  .nav > li > a::after { display: none; }
  .dropdown { position: static; transform: none; min-width: 0; box-shadow: none; opacity: 1; visibility: visible; display: none; border-top: 0; background: var(--bg-light); padding: 0; }
  .nav > li:hover .dropdown { transform: none; }
  .nav > li.open-menu .dropdown { display: block; }
  .nav-apply { margin: 12px 20px; justify-content: center; }
  .hero { height: 440px; }
  .hero-content h1 { font-size: 30px; }
  .hero-content p { font-size: 14px; }
  .section { padding: 54px 0; }
  .section-head h2 { font-size: 26px; }
  .stats, .cards, .qual-grid, .adv-grid, .job-list, .flow-grid, .split, .contact-grid, .form-grid { grid-template-columns: 1fr; }
  .gallery, .client-logos { grid-template-columns: repeat(2, 1fr); }
  .flow-step:not(:last-child)::after { display: none; }
  .split-img img { height: 260px; }
  .page-banner { height: 200px; }
  .page-banner h1 { font-size: 27px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .recruit-hero .stats-inline { gap: 24px; }
  .recruit-hero h1 { font-size: 28px; }
}
