:root {
  --fg: #1b1f23;
  --bg: #ffffff;
  --muted: #5f6b7a;
  --brand: #0b72ef;
  --brand-dark: #0857b8;
  --surface: #f7f9fc;
  --border: #e6eaf0;
  --shadow: 0 8px 24px rgba(14, 30, 54, 0.12);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, PingFang SC, Noto Sans SC, sans-serif;
  color: var(--fg); background: var(--bg);
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.site-header { border-bottom: 1px solid var(--border); background: linear-gradient(180deg,#ffffff,#f9fbff); }
.site-header h1 { margin: 0; padding: 18px 0; font-weight: 700; letter-spacing: .2px; }
.subtitle { color: var(--muted); margin-top: -8px; padding-bottom: 12px; font-size: 14px; }
h2 { margin-top: 28px; font-size: 24px; letter-spacing: .2px; }
.article-list { list-style: none; padding: 0; }
.article-list li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.article-list .title { color: var(--brand); text-decoration: none; font-weight: 600; }
.article-list .title:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: 14px; }
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 18px 0; color: var(--muted); }
.home-link { color: inherit; text-decoration: none; }
.content { margin-top: 12px; line-height: 1.7; }

/* 轮播 */
.hero { margin-top: 20px; }
.carousel {
  position: relative; overflow: hidden; border-radius: 16px;
  background: radial-gradient(100% 100% at 50% 0%, #f1f6ff 0%, #ffffff 100%);
  box-shadow: var(--shadow);
}
.slide { display: none; padding: 64px 32px; }
.slide.is-active { display: block; animation: fadeIn .6s ease; }
.slide-inner { min-height: 220px; display: grid; place-items: center; text-align: center; }
.slide-1 { background: linear-gradient(90deg,#e4f0ff,#f8fbff); }
.slide-2 { background: linear-gradient(90deg,#e8fff2,#f9fffc); }
.slide-3 { background: linear-gradient(90deg,#fff1e6,#fffaf7); }
.slide-inner h2 { font-size: 30px; margin: 0 0 8px; }
.slide-inner p { color: var(--muted); margin: 0; }
.carousel-controls { position: absolute; inset: 0; display:flex; justify-content: space-between; align-items:center; padding: 0 12px; }
.carousel-controls button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; box-shadow: var(--shadow); }
.dots { display:flex; gap:8px; position:absolute; left:50%; transform: translateX(-50%); bottom: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border:none; background:#cfd8ea; cursor:pointer; transition: transform .2s ease; }
.dot.is-active { background: var(--brand); transform: scale(1.15); }
@keyframes fadeIn { from { opacity:.2; transform: translateY(6px); } to { opacity:1; transform: none; } }

/* 合作机构翻转卡片 */
.partners { margin-top: 28px; }
.cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.flip-card { perspective: 1000px; }
.flip-card-inner {
  position: relative; width: 100%; height: 160px; transform-style: preserve-3d; transition: transform .6s;
}
.flip-card:hover .flip-card-inner, .flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute; inset: 0; backface-visibility: hidden; border: 1px solid var(--border); border-radius: 14px;
  display: grid; place-items: center; padding: 14px; background: #fff; box-shadow: var(--shadow);
}
.flip-card-back { background:#f7f9fc; transform: rotateY(180deg); }
.logo { font-weight:700; font-size: 20px; color: var(--brand); }
.name { color: var(--muted); }

/* 证书优势 */
.advantages { margin-top: 24px; }
.adv-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.adv-item { border:1px solid var(--border); border-radius:14px; padding: 14px; background:#fff; box-shadow: var(--shadow); }
.adv-item h3 { margin: 0 0 6px; }

/* 考试类型 */
.exam-types { margin-top: 24px; }
.type-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.type-card { border:1px solid var(--border); border-radius:14px; padding: 14px; background:#fff; display:flex; gap:12px; align-items:flex-start; box-shadow: var(--shadow); }
.type-card .icon { width:40px; height:40px; border-radius:8px; background:#eef2ff; display:grid; place-items:center; color:var(--brand); font-weight:700; }
.type-card h3 { margin: 0; }

/* 新闻资讯 */
.news { margin-top: 24px; }

/* 联系我们 */
.contact { margin-top: 24px; }
.contact-inner { display:flex; justify-content: space-between; align-items:center; gap: 12px; padding: 18px; border:1px solid var(--border); border-radius:14px; box-shadow: var(--shadow); }
.cta { padding: 12px 18px; background: var(--brand); color:#fff; border-radius:10px; text-decoration:none; display:inline-block; font-weight:600; box-shadow: var(--shadow); }
.cta:hover { background: var(--brand-dark); }

/* 响应式 */
@media (max-width: 768px) {
  .cards, .adv-grid, .type-grid { grid-template-columns: 1fr; }
  .slide { padding: 40px 20px; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
}