/* ═══════════════════════════════════════════════════════════
   平哥中标 — 泉州平哥中标教育咨询有限公司 门户网站
   Design: 暖纸白 · 深墨黑 · 印章红 · 发丝线 · 公文质感
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* 色彩 */
  --paper:        #F5F2EC;  /* 暖纸白 — 底色 */
  --paper-warm:   #EFEAE0;  /* 略深的纸色 */
  --surface:      #FFFFFF;  /* 卡片表面 */
  --ink:          #1B1B1D;  /* 深墨黑 — 主文字 */
  --ink-mid:      #5C5C60;  /* 次级文字 */
  --ink-soft:     #8A8A8E;  /* 辅助文字 */
  --seal:         #BE3A34;  /* 印章红 — 唯一强调色 */
  --seal-deep:    #9E2E29;  /* 深印章红 — hover */
  --line:         #DDD8CC;  /* 发丝线 */
  --line-soft:    #EAE6DC;  /* 更淡的发丝线 */

  /* 字体 */
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Roboto, sans-serif;

  /* 节奏 */
  --container: 1180px;
  --gutter: 24px;
  --radius: 2px;

  /* 过渡 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-alt {
  background: var(--paper-warm);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--seal);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  padding: 0 1.8rem;
}

.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 1rem;
  height: 1px;
  background: var(--seal);
  opacity: 0.5;
}

.section-label::before { left: 0; }
.section-label::after  { right: 0; }

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.section-intro {
  margin-top: 1.2rem;
  color: var(--ink-mid);
  font-size: 1.02rem;
  line-height: 1.8;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 1.5px solid transparent;
  line-height: 1;
}

.btn-sm { padding: 0.55rem 1.3rem; font-size: 0.85rem; }

.btn-primary {
  background: var(--seal);
  color: #fff;
  border-color: var(--seal);
}

.btn-primary:hover {
  background: var(--seal-deep);
  border-color: var(--seal-deep);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--seal);
  color: var(--seal);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 242, 236, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 242, 236, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.92rem;
  color: var(--ink-mid);
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--seal);
  transition: width 0.25s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  margin-left: 1rem;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.3s var(--ease);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--seal);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-text {
  max-width: 680px;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.hero-text h1 .accent {
  color: var(--seal);
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-mid);
  line-height: 1.9;
  max-width: 560px;
  margin: 0 auto 2.2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── 中标通知书 Card ───────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.notice-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2.2rem 2rem 1.8rem;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 8px 30px rgba(0,0,0,0.06);
  transform: rotate(1.2deg);
  transition: transform 0.4s var(--ease);
}

.notice-card:hover {
  transform: rotate(0deg);
}

/* 公文四角 */
.notice-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--seal);
  opacity: 0.6;
}

.notice-corner-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.notice-corner-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.notice-corner-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.notice-corner-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.notice-header {
  text-align: center;
  margin-bottom: 0.4rem;
}

.notice-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink);
}

.notice-no {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
}

.notice-line {
  height: 1px;
  background: var(--line);
  margin: 0.8rem 0 1.2rem;
  position: relative;
}

.notice-line::before,
.notice-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--seal);
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
}

.notice-line::before { left: 30%; }
.notice-line::after  { right: 30%; }

.notice-body {
  font-size: 0.86rem;
  line-height: 2;
  color: var(--ink-mid);
}

.notice-body p { margin-bottom: 0.2rem; }

.notice-fill {
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.notice-project {
  font-weight: 500;
  color: var(--ink);
}

.notice-instr {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.notice-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* 印章 */
.seal-stamp {
  position: absolute;
  bottom: 20px;
  right: 24px;
  width: 100px;
  height: 100px;
  color: var(--seal);
  opacity: 0.78;
  transform: rotate(-12deg);
  pointer-events: none;
}

.seal-stamp svg {
  width: 100%;
  height: 100%;
}

/* 印章质感 */
.seal-stamp::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, transparent 0%, var(--paper) 100%);
  mix-blend-mode: lighten;
  opacity: 0.3;
  border-radius: 50%;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.scroll-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--ink-soft), transparent);
  animation: scrollHint 2s var(--ease) infinite;
}

@keyframes scrollHint {
  0%, 100% { transform: scaleY(0.5); transform-origin: top; opacity: 0.3; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

/* ── About ─────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.about-text p {
  font-size: 1.02rem;
  color: var(--ink-mid);
  line-height: 1.95;
  margin-bottom: 1.2rem;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.about-point {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.point-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--seal);
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
}

.about-point h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.about-point p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* ── Services ──────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2.2rem 2rem;
  position: relative;
  transition: all 0.3s var(--ease);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--seal);
  transition: height 0.35s var(--ease);
}

.service-card:hover {
  border-color: var(--line-soft);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--seal);
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-num {
  position: absolute;
  top: 1.6rem;
  right: 1.8rem;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--ink-mid);
  line-height: 1.8;
}

/* ── Process ───────────────────────────────────────────────── */
.process-track {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.process-line {
  position: absolute;
  top: 1.5rem;
  left: 5%;
  right: 5%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--line) 0,
    var(--line) 6px,
    transparent 6px,
    transparent 12px
  );
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 0 0.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--seal);
  background: var(--paper);
  border: 1.5px solid var(--seal);
  border-radius: 50%;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s var(--ease);
}

.process-step:hover .step-num {
  background: var(--seal);
  color: #fff;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* ── Advantages ────────────────────────────────────────────── */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.adv-item {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.8rem;
}

.adv-marker {
  position: absolute;
  top: 0.7rem;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--seal);
  transform: rotate(45deg);
  opacity: 0.85;
}

.adv-item h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.adv-item p {
  font-size: 0.92rem;
  color: var(--ink-mid);
  line-height: 1.8;
}

/* ── Contact ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 3.5rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info .section-label {
  padding-left: 0;
}

.contact-info .section-label::before { display: none; }

.contact-info .section-title {
  text-align: left;
}

.contact-intro {
  color: var(--ink-mid);
  font-size: 1rem;
  line-height: 1.85;
  margin: 1.2rem 0 2rem;
  max-width: 420px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.contact-label {
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  flex-shrink: 0;
  width: 5rem;
}

.contact-value {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}

.contact-cta-card {
  background: var(--ink);
  color: #fff;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(190, 58, 52, 0.2);
  border-radius: 50%;
}

.cta-seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  color: var(--seal);
}

.cta-seal svg {
  width: 100%;
  height: 100%;
}

.contact-cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.contact-cta-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

.contact-cta-card .btn-primary {
  background: var(--seal);
  border-color: var(--seal);
}

.contact-cta-card .btn-primary:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.cta-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: #161618;
  color: rgba(255,255,255,0.5);
  padding-top: 3.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 380px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--seal);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.3rem 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s var(--ease);
}

.footer-bottom a:hover {
  color: var(--seal);
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .notice-card {
    max-width: 340px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-points {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav, .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* 移动端菜单 */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--paper);
    flex-direction: column;
    padding: 90px 2rem 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
    margin-left: 0;
  }

  .nav.open {
    display: flex;
    transform: translateX(0);
  }

  .nav a {
    padding: 1rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav a::after {
    display: none;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero {
    padding: 90px 0 3rem;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 2.3rem;
  }

  .hero-sub {
    font-size: 0.98rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .process-line {
    display: none;
  }

  .process-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 0;
  }

  .process-step .step-num {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.95rem;
  }

  .adv-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-scroll-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.9rem;
  }

  .notice-card {
    padding: 1.8rem 1.4rem 1.4rem;
  }

  .notice-title {
    font-size: 1.3rem;
  }

  .seal-stamp {
    width: 80px;
    height: 80px;
    bottom: 14px;
    right: 14px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* ── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Focus ─────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
  border-radius: 2px;
}
