/* Huxiaowei corporate site draft styles */
:root {
  --primary: #0f4c81;
  --primary-dark: #0b3b63;
  --accent: #ff7a00;
  --text: #1f2a37;
  --muted: #666666;
  --bg: #f5f7fa;
  --card: #ffffff;
  --line: #e6e9ee;
  --shadow: 0 10px 30px rgba(15, 76, 129, 0.12);
  --title: #152238;
  --lead: #445266;
  --cap: #7b8798;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  font-family: "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.2px;
  font-size: 16px;
}

/* 全局标题体系 */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--title);
  letter-spacing: 0.5px;
  font-weight: 700;
}

h1 {
  font-size: 36px;
  line-height: 1.35;
  margin-bottom: 16px;
}

h2 {
  font-size: 28px;
  line-height: 1.42;
  margin-bottom: 14px;
}

h3 {
  font-size: 22px;
  line-height: 1.45;
  margin-bottom: 12px;
}

h4 {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 10px;
}

h5 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
}

h6 {
  font-size: 14px;
  line-height: 1.57;
  margin-bottom: 6px;
}

/* 全局正文 */
p {
  margin: 0 0 14px 0;
  color: var(--lead);
  font-size: 16px;
  line-height: 1.75;
}

p:last-child {
  margin-bottom: 0;
}

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

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--title);
  margin: 0 0 14px;
  letter-spacing: 0.6px;
}

.section-desc {
  color: var(--lead);
  margin: 0 0 34px;
  font-size: 16px;
  line-height: 1.75;
}

.badge {
  display: inline-block;
  background: rgba(15, 76, 129, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid var(--primary);
  letter-spacing: 0.4px;
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
}

.btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-accent:hover {
  filter: brightness(0.95);
}

.topbar {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.4px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar a {
  color: #fff;
  opacity: 0.9;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.navbar.shrink {
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.logo img {
  width: 190px;
  max-width: 48vw;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-weight: 600;
  color: #1f2d3d;
  padding-bottom: 4px;
  letter-spacing: 0.4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  background: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #0f4c81;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15), transparent 40%);
  pointer-events: none;
}

.hero-slider {
  position: relative;
  min-height: 420px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  padding: 100px 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(120deg, rgba(15, 76, 129, 0.95), rgba(11, 59, 99, 0.95));
}

.hero-slide.has-image {
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 36px;
  margin: 10px 0 16px;
  line-height: 1.35;
  letter-spacing: 0.6px;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.hero-dots button {
  width: 36px;
  height: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--accent);
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 22px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 18px rgba(15, 76, 129, 0.08);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-line {
  width: 64px;
  height: 4px;
  background: var(--accent);
  margin: 12px 0 20px;
}

.surface {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--title);
  letter-spacing: 0.4px;
}

.card p {
  margin: 0 0 14px 0;
  color: var(--lead);
  font-size: 16px;
}

.card p:last-child {
  margin-bottom: 0;
}

.media {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.media.tall img {
  height: 280px;
}

.highlight {
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.08), rgba(255, 122, 0, 0.1));
  border: 1px solid rgba(15, 76, 129, 0.1);
  padding: 20px 24px;
  border-radius: var(--radius);
  color: var(--lead);
}

.stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}

.stats .stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--line);
}

.stat h4 {
  margin: 6px 0;
  font-size: 18px;
  color: var(--title);
  font-weight: 700;
}

.stat span {
  font-size: 12px;
  color: var(--cap);
  letter-spacing: 0.4px;
}

.timeline {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  display: grid;
  gap: 20px;
}

.timeline-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--line);
}

.timeline-item h4 {
  margin: 0 0 6px;
  color: var(--title);
  font-size: 18px;
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.table th {
  background: #f0f4f8;
  color: var(--title);
  letter-spacing: 0.4px;
}

.form {
  display: grid;
  gap: 16px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: inherit;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.captcha-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--title);
  min-width: 140px;
  justify-content: space-between;
}

.captcha-box img {
  width: 90px;
  height: 34px;
  object-fit: cover;
  border-radius: 4px;
}

.captcha-refresh {
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: #fff;
}

.faq-item button {
  background: none;
  border: none;
  font-weight: 600;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  margin-top: 10px;
  display: none;
  color: var(--muted);
}

.footer {
  background: linear-gradient(180deg, #082b47 0%, #0a3558 100%);
  color: #eaf2ff;
  padding: 56px 0 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
}

.footer-grid > div {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 8px;
}

.footer-grid > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 28px;
}

.footer h3 {
  color: #ffffff;
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.footer small {
  color: rgba(239, 246, 255, 0.86);
  line-height: 1.95;
}

.footer a {
  color: #d5e8ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(213, 232, 255, 0.35);
}

.footer a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

.notice {
  font-size: 12px;
  color: #fff;
  opacity: 0.9;
  letter-spacing: 0.4px;
}

.page-hero {
  background: #0f4c81;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: 36px;
  letter-spacing: 0.6px;
  color: #fff;
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

.article-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--cap);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.article-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.article-nav .btn {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 20px;
  }
  .hero-title {
    font-size: 28px;
  }
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 720px) {
  html,
  body {
    font-size: 15px;
  }
  h1 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  p {
    font-size: 15px;
    line-height: 1.7;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 62px;
    right: 4%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: min(320px, 90vw);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > div {
    padding: 0;
  }
  .footer-grid > div + div {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 0;
    padding-top: 18px;
  }
  .hero {
    padding: 60px 0;
  }
  .hero-title {
    font-size: 20px;
  }
  .hero-sub {
    font-size: 14px;
  }
  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}
