<template>
  <div class="splash">
    <!-- 红头细线 -->
    <div class="top-rule"></div>

    <!-- 顶栏 -->
    <header class="site-header">
      <div class="header-inner">
        <router-link to="/home" class="brand">
          <span class="brand-mark">招</span>
          <span class="brand-text">
            <span class="brand-cn">集团招聘平台</span>
            <span class="brand-en">GROUP TALENT RECRUITMENT</span>
          </span>
        </router-link>
        <nav class="site-nav">
          <router-link to="/home" class="nav-item">首页</router-link>
          <router-link to="/companies" class="nav-item">公司介绍</router-link>
        </nav>
        <div class="header-cta">
          <router-link to="/login" class="btn-line">登录</router-link>
          <router-link to="/register" class="btn-fill">立即注册</router-link>
        </div>
      </div>
    </header>

    <!-- Hero -->
    <section class="hero">
      <div class="hero-inner">
        <div class="hero-left">
          <div class="eyebrow"><span class="eb-rule"></span>2026届校园招聘</div>
          <h1 class="hero-title">人才创造<br/>美好未来</h1>
          <p class="hero-sub">与优秀的人一起，做有价值的事 —— 集团诚邀应届毕业生加盟，共筑国之大业。</p>
          <div class="hero-actions">
            <router-link to="/companies" class="btn-fill lg">一键进入<span class="arr">→</span></router-link>
            <router-link to="/register" class="btn-line lg">立即投递</router-link>
          </div>
          <div class="hero-mini-stats">
            <div class="ms"><b>500+</b><span>招聘职位</span></div>
            <div class="ms"><b>30+</b><span>城市布局</span></div>
            <div class="ms"><b>28+</b><span>成员企业</span></div>
          </div>
        </div>

        <aside class="bulletin">
          <div class="bulletin-head">
            <span class="bh-cn">招聘公告</span>
            <span class="bh-en">RECRUITMENT NOTICE</span>
          </div>
          <div class="bulletin-body">
            <div class="bl-row">
              <div class="bl-num">500<span>+</span></div>
              <div class="bl-label">招聘职位<small>覆盖集团全业务线</small></div>
            </div>
            <div class="bl-row">
              <div class="bl-num">10000<span>+</span></div>
              <div class="bl-label">在职员工<small>央企规模 稳健发展</small></div>
            </div>
            <div class="bl-row">
              <div class="bl-num">30<span>+</span></div>
              <div class="bl-label">城市布局<small>全国多地工作机会</small></div>
            </div>
            <div class="bl-row">
              <div class="bl-num">28<span>+</span></div>
              <div class="bl-label">成员企业<small>协同发展 多元赛道</small></div>
            </div>
          </div>
          <div class="bulletin-foot">为国家建设输送优秀人才</div>
        </aside>
      </div>
    </section>

    <!-- 为什么加入我们 -->
    <section class="why">
      <div class="why-inner">
        <div class="why-lead">
          <div class="eyebrow"><span class="eb-rule"></span>WHY JOIN US</div>
          <h2 class="why-title">筑梦平台<br/>共创未来</h2>
          <p class="why-intro">国有企业，稳定可靠。我们提供完善的成长体系与广阔的事业舞台，期待与您共同书写新时代的答卷。</p>
        </div>
        <ol class="why-list">
          <li>
            <span class="wn">01</span>
            <div class="wc">
              <h3>央企背景</h3>
              <p>国有企业，稳定可靠，福利完善，五险一金，补充公积金。</p>
            </div>
          </li>
          <li>
            <span class="wn">02</span>
            <div class="wc">
              <h3>成长空间</h3>
              <p>完善的晋升体系，多维度培训，专属导师带教，快速成长。</p>
            </div>
          </li>
          <li>
            <span class="wn">03</span>
            <div class="wc">
              <h3>全国布局</h3>
              <p>覆盖 30+ 城市，多地工作机会，灵活选择工作地点。</p>
            </div>
          </li>
          <li>
            <span class="wn">04</span>
            <div class="wc">
              <h3>创新氛围</h3>
              <p>鼓励创新探索，科研立项支持，专利奖励，技术驱动发展。</p>
            </div>
          </li>
        </ol>
      </div>
    </section>

    <!-- footer -->
    <footer class="site-footer">
      <div class="footer-inner">
        <div class="footer-brand">
          <span class="brand-mark sm">招</span>
          <span>集团招聘平台</span>
        </div>
        <p class="footer-copy">Copyright © 集团招聘平台 · All Rights Reserved · 为国家建设输送优秀人才</p>
        <div class="footer-links">
          <router-link to="/companies">公司介绍</router-link>
          <router-link to="/login">登录</router-link>
        </div>
      </div>
    </footer>
  </div>
</template>

<style scoped>
.splash {
  --serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --sans: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--text-main);
  background: #FAFAFA;
  min-height: 100vh;
}
.splash a { text-decoration: none; color: inherit; }

/* 红头细线 */
.top-rule { height: 3px; background: var(--brand-red); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 40px;
  height: 68px; display: flex; align-items: center; gap: 40px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  background: var(--brand-red); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
}
.brand-mark.sm { width: 28px; height: 28px; font-size: 15px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-cn { font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-main); }
.brand-en { font-size: 9px; letter-spacing: 0.22em; color: var(--text-muted); margin-top: 3px; }

.site-nav { display: flex; gap: 32px; margin-left: 8px; }
.nav-item { font-size: 15px; color: var(--text-main); position: relative; padding: 4px 0; transition: color .2s; }
.nav-item::after { content:''; position:absolute; left:0; right:0; bottom:-2px; height:2px; background: var(--brand-red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-item:hover { color: var(--brand-red); }
.nav-item:hover::after, .nav-item.router-link-active::after { transform: scaleX(1); }
.nav-item.router-link-active { color: var(--brand-red); }

.header-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.btn-line {
  padding: 8px 22px; border: 1px solid var(--border); color: var(--text-main);
  font-size: 13px; border-radius: 2px; transition: all .2s; display: inline-flex; align-items: center;
}
.btn-line:hover { border-color: var(--brand-red); color: var(--brand-red); }
.btn-fill {
  padding: 8px 22px; background: var(--brand-red); color: #fff;
  font-size: 13px; border-radius: 2px; transition: background .2s; display: inline-flex; align-items: center;
}
.btn-fill:hover { background: var(--brand-red-2); }
.btn-fill.lg, .btn-line.lg { padding: 14px 34px; font-size: 15px; }
.btn-fill.lg { box-shadow: 0 6px 18px rgba(235,44,38,0.25); }
.arr { margin-left: 8px; transition: transform .2s; }
.btn-fill.lg:hover .arr { transform: translateX(4px); }

/* hero */
.hero { border-bottom: 1px solid var(--border); background: #FAFAFA; }
.hero-inner {
  max-width: 1240px; margin: 0 auto; padding: 88px 40px 96px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 80px; align-items: center;
}
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: 0.2em; color: var(--brand-red); font-weight: 600; }
.eb-rule { width: 28px; height: 2px; background: var(--brand-red); display: inline-block; }
.hero-title {
  font-family: var(--serif); font-weight: 700;
  font-size: 68px; line-height: 1.12; letter-spacing: 0.04em;
  margin: 22px 0 20px; color: var(--text-main);
}
.hero-sub { font-size: 17px; line-height: 1.8; color: var(--text-muted); max-width: 460px; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 44px; flex-wrap: wrap; }
.hero-mini-stats { display: flex; gap: 48px; }
.ms { display: flex; flex-direction: column; }
.ms b { font-family: var(--serif); font-size: 28px; color: var(--text-main); line-height: 1; font-weight: 700; }
.ms span { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* bulletin */
.bulletin {
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 24px 60px -32px rgba(0,0,0,0.18);
}
.bulletin-head {
  background: var(--brand-red); color: #fff;
  padding: 14px 24px; display: flex; align-items: baseline; justify-content: space-between;
}
.bh-cn { font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: 0.12em; }
.bh-en { font-size: 10px; letter-spacing: 0.24em; opacity: 0.8; }
.bulletin-body { padding: 6px 24px; }
.bl-row {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 0; border-bottom: 1px dashed var(--border);
}
.bl-row:last-child { border-bottom: none; }
.bl-num { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--brand-red); line-height: 1; min-width: 92px; }
.bl-num span { font-size: 18px; }
.bl-label { font-size: 15px; color: var(--text-main); font-weight: 600; line-height: 1.4; display: flex; flex-direction: column; gap: 2px; }
.bl-label small { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.bulletin-foot { padding: 14px 24px; background: var(--brand-red-bg); color: var(--brand-red-2); font-size: 13px; letter-spacing: 0.12em; text-align: center; font-family: var(--serif); }

/* why */
.why { background: #fff; border-bottom: 1px solid var(--border); }
.why-inner {
  max-width: 1240px; margin: 0 auto; padding: 96px 40px;
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px;
}
.why-title { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1.15; margin: 18px 0 20px; color: var(--text-main); }
.why-intro { font-size: 15px; line-height: 1.9; color: var(--text-muted); max-width: 360px; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li {
  display: flex; gap: 28px; padding: 26px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left .25s;
}
.why-list li:first-child { padding-top: 4px; }
.why-list li:last-child { border-bottom: none; }
.why-list li:hover { padding-left: 10px; }
.wn { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--brand-red); line-height: 1; min-width: 56px; }
.wc h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 8px; color: var(--text-main); }
.wc p { font-size: 14px; line-height: 1.8; color: var(--text-muted); margin: 0; }

/* footer */
.site-footer { background: #1D2129; color: rgba(255,255,255,0.7); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 28px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--brand-red-3); }

/* motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-left > * { animation: rise .7s ease both; }
.hero-left > *:nth-child(1) { animation-delay: .05s; }
.hero-left > *:nth-child(2) { animation-delay: .15s; }
.hero-left > *:nth-child(3) { animation-delay: .25s; }
.hero-left > *:nth-child(4) { animation-delay: .35s; }
.hero-left > *:nth-child(5) { animation-delay: .45s; }
.bulletin { animation: rise .8s ease both; animation-delay: .3s; }

@media (max-width: 960px) {
  .hero-inner, .why-inner { grid-template-columns: 1fr; gap: 48px; padding-left: 24px; padding-right: 24px; }
  .hero-title { font-size: 48px; }
  .header-inner { padding: 0 24px; gap: 20px; }
  .site-nav { display: none; }
  .hero-inner { padding-top: 56px; padding-bottom: 64px; }
  .why-inner { padding: 64px 24px; }
}
</style>
