/* ============================================================
   仁信教育 · 纯静态官网共享样式
   黄石市仁信教育培训有限公司
   移动优先（375px 起步），桌面在 768px 以上扩展
   ============================================================ */

:root {
  --ink: #12365a;        /* 主色·深藏蓝 */
  --ink-deep: #0b2440;   /* 更深蓝 */
  --ink-soft: #1e4a7a;
  --gold: #c9a227;       /* 强调·金 */
  --gold-soft: #e8cf7a;
  --paper: #fbfaf7;      /* 页面背景·暖白 */
  --card: #ffffff;
  --line: #e6e3da;
  --text: #26313d;
  --muted: #6b7684;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 36, 64, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink-deep);
  letter-spacing: 1px;
  white-space: nowrap;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(18, 54, 90, 0.08);
  color: var(--ink);
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--ink-soft); }

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink-deep);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端下拉菜单 */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 20px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.mobile-menu.show { display: flex; }

.mobile-menu a {
  padding: 12px 12px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.mobile-menu a:hover,
.mobile-menu a.active { background: rgba(18, 54, 90, 0.07); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--ink-deep) 0%, var(--ink) 62%, #1d5689 100%);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.35) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 64px 20px 72px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.hero-copy { min-width: 0; }

.hero-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(4, 18, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  aspect-ratio: 4 / 3;
  background: var(--ink-deep);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo .photo-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(11, 36, 64, 0.82);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 2px solid rgba(201, 162, 39, 0.55);
  border-radius: 18px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-soft);
}

.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  font-family: var(--font);
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--ink-deep);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35);
}

.btn-gold:hover { background: var(--gold-soft); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* Hero 数据条 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 16px 14px;
  backdrop-filter: blur(4px);
}

.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-soft);
  line-height: 1.2;
}

.stat-num small { font-size: 14px; font-weight: 600; }

.stat-label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 4px;
}

/* ---------- 通用区块 ---------- */
.section { padding: 56px 0; }

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 2.5px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink-deep);
  letter-spacing: 0.5px;
}

.section-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 卡片栅格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid.cols-3 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(18, 54, 90, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--ink);
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
}

.card .card-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- 案例卡 ---------- */
.case-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  border-top: 3px solid var(--gold);
  transition: box-shadow 0.25s, transform 0.25s;
}

.case-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.case-score {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.case-score span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.case-school {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-deep);
}

.case-detail {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- 荣誉 ---------- */
.honor-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}

.honor-card .card-icon {
  margin: 0 auto 12px;
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
}

.honor-card h3 { font-size: 15.5px; }

/* ---------- 实拍图 ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.photo-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--line);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.photo-item:hover img { transform: scale(1.05); }

.photo-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 14px 10px;
  background: linear-gradient(transparent, rgba(11, 36, 64, 0.75));
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- 九位一体 ---------- */
.philosophy-band {
  position: relative;
  background: linear-gradient(150deg, var(--ink-deep) 0%, var(--ink) 62%, #1d5689 100%);
  border-radius: 20px;
  padding: 30px 16px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(11, 36, 64, 0.18);
}

.philosophy-band::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.philosophy-band::after {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -140px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  padding: 14px 6px;
  text-align: center;
  backdrop-filter: blur(3px);
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.step:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
  border-color: rgba(232, 207, 122, 0.6);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 100%);
  color: var(--ink-deep);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
}

.step-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}

/* ---------- CTA 区 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--ink-deep), var(--ink));
  color: #fff;
  border-radius: 18px;
  padding: 36px 24px;
  text-align: center;
}

.cta-band h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 22px;
}

.cta-band .btn { margin: 0 6px 8px; }

/* ---------- 关于页 ---------- */
.about-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  margin-bottom: 20px;
}

.about-block h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-deep);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-block h2::before {
  content: "";
  width: 5px;
  height: 20px;
  border-radius: 3px;
  background: var(--gold);
}

.about-block p { margin-bottom: 12px; font-size: 15px; }

.about-block ul { padding-left: 20px; margin-bottom: 12px; }

.about-block li { margin-bottom: 6px; font-size: 15px; }

.license-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.license-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.license-item img { width: 100%; }

.license-item .license-cap {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* ---------- 产品详情页 ---------- */
.product-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
}

.contact-item .card-icon { margin-bottom: 0; flex-shrink: 0; }

.contact-item h3 {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item .contact-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-deep);
  word-break: break-all;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
}

.form-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink-deep);
  margin-bottom: 16px;
}

.form-row { margin-bottom: 14px; }

.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  font-family: var(--font);
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 3px rgba(18, 54, 90, 0.12);
}

.form-row textarea { min-height: 96px; resize: vertical; }

.form-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 40px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand .brand { color: #fff; }

.footer-brand p {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink-deep);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 桌面端增强 ---------- */
@media (min-width: 768px) {
  body { font-size: 16px; }

  .nav { height: 72px; }

  .nav-links { display: flex; }

  .nav-cta { display: inline-flex; }

  .nav-toggle { display: none; }

  .mobile-menu { display: none !important; }

  .hero-inner {
    padding: 96px 20px 104px;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
  }

  .hero h1 { font-size: 52px; }

  .hero-sub { font-size: 18px; }

  .hero-stats { grid-template-columns: repeat(4, 1fr); }

  .section { padding: 76px 0; }

  .section-title { font-size: 34px; }

  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }

  .steps { grid-template-columns: repeat(9, 1fr); gap: 12px; }

  .step { padding: 20px 6px; }

  .philosophy-band { padding: 40px 28px; }

  .cta-band { padding: 52px 40px; }

  .cta-band h2 { font-size: 30px; }

  .license-grid { grid-template-columns: repeat(2, 1fr); }

  .product-feature { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .contact-grid { grid-template-columns: 1fr; gap: 20px; }

  .contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 无障碍与动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

:focus-visible {
  outline: 3px solid rgba(201, 162, 39, 0.7);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-bottom { text-align: center; }
.footer-bottom p { margin: 6px 0; }
.icp-beian a { color: inherit; text-decoration: none; opacity: .85; }
.icp-beian a:hover { opacity: 1; text-decoration: underline; }
.gongan-beian { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; color: inherit; text-decoration: none; }
.gongan-beian img { height: 16px; width: auto; vertical-align: middle; }
.lead-hint { min-height: 1.2em; margin: 10px 0 0; font-size: 13px; color: var(--gold, #E8CF7A); }
