/* ===== 词镜官网 - 共享样式 ===== */
:root {
  --brand: #185FA5;
  --brand-deep: #0E3E6E;
  --accent: #44C2A8;
  --ink: #1A1F2B;
  --body: #4E5969;
  --muted: #86909C;
  --line: #E8EBF0;
  --bg: #F5F7FA;
  --bg-blue: #F0F6FC;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--body);
  line-height: 1.75;
  background: #fff;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: 4px; font-weight: 600; }
.h1, h1 { font-size: 30px; color: var(--ink); font-weight: 700; letter-spacing: 1px; }
.h2, h2 { font-size: 26px; color: var(--ink); font-weight: 700; letter-spacing: 1px; }
.h3, h3 { font-size: 20px; color: var(--ink); font-weight: 700; }
.text-muted { color: var(--muted); }
.text-brand { color: var(--brand); }

/* ---- 顶部导航 ---- */
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-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 32px;
}
.nav-inner .logo { height: 40px; }
.nav-inner nav { display: flex; gap: 26px; margin-left: auto; }
.nav-inner nav a {
  font-size: 15px; color: var(--ink); font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: all .2s;
}
.nav-inner nav a:hover, .nav-inner nav a.active { color: var(--brand); border-bottom-color: var(--accent); }

/* ---- 页脚 ---- */
footer {
  background: #0A2A48; color: rgba(255,255,255,0.7);
  padding: 56px 24px 24px; margin-top: 80px;
}
.footer-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 48px;
  align-items: start;
}
.footer-brand .logo { height: 40px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.8; opacity: 0.8; }
.footer-brand .vision { margin-top: 14px; color: var(--accent); font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.footer-contact .item { margin-bottom: 14px; }
.footer-contact .k { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 2px; margin-bottom: 4px; }
.footer-contact .v { font-size: 15px; font-weight: 500; }
.footer-qr { text-align: center; }
.footer-qr img { width: 130px; margin: 0 auto 8px; border-radius: 6px; }
.footer-qr .label { font-size: 13px; color: rgba(255,255,255,0.7); letter-spacing: 1px; }
.footer-copyright {
  max-width: 1180px; margin: 40px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 13px; opacity: 0.5; letter-spacing: 1px;
}

/* ---- Hero + 轮播 ---- */
.hero {
  position: relative; height: 560px; overflow: hidden;
  color: #fff; text-align: center;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s;
}
.hero-slides .slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,61,98,.85), rgba(24,95,165,.7) 55%, rgba(68,194,168,.4));
}
.hero-content {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 0 24px;
}
.hero-content h1 { font-size: 42px; font-weight: 800; letter-spacing: 3px; line-height: 1.4; color: #fff; margin-bottom: 18px; }
.hero-content .sub { font-size: 17px; opacity: 0.92; letter-spacing: 1px; margin-bottom: 24px; }
.hero-content .slogan { font-size: 14px; color: var(--accent); letter-spacing: 6px; font-weight: 600; margin-bottom: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-tags span { border: 1px solid rgba(255,255,255,0.4); border-radius: 20px; padding: 6px 18px; font-size: 13px; letter-spacing: 1px; background: rgba(255,255,255,0.08); }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.hero-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.hero-dots .dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* ---- 通用 section ---- */
section { padding: 80px 0; }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .eyebrow { margin-bottom: 10px; }
.sec-head h2 { margin-bottom: 12px; }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---- 通用卡片 ---- */
.card {
  background: #fff; border-radius: 12px; padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(17,24,39,0.05);
  transition: all .25s;
}
.card:hover { box-shadow: 0 6px 18px rgba(17,24,39,0.1); transform: translateY(-3px); }
.card .t { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.card .d { font-size: 14px; color: var(--body); line-height: 1.75; }
.card .tag { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--brand); background: var(--bg-blue); border-radius: 4px; padding: 3px 10px; }

/* ---- 按钮 ---- */
.btn {
  display: inline-block; padding: 12px 32px; border-radius: 6px;
  font-size: 15px; font-weight: 600; letter-spacing: 1px;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-outline { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .nav-inner nav { gap: 16px; }
  .nav-inner nav a { font-size: 14px; }
  .hero { height: 480px; }
  .hero-content h1 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .nav-inner nav { display: none; }
  .hero { height: 420px; }
  .hero-content h1 { font-size: 24px; }
  .hero-content .sub { font-size: 14px; }
}
