/* ===== 凯森医学教育 官网样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: #4f6bff; --purple: #7a5bff; --red: #ff5f6d; --orange: #ff9f43;
  --ink: #1f2330; --sub: #5a6080; --muted: #8a90a3; --bg: #f4f6fb; --line: #eef0f6;
}
html { scroll-behavior: smooth; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部导航 ===== */
.site-nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.logo-badge { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 4px 12px rgba(79,107,255,0.35); flex: none; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; color: var(--sub); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); font-weight: 700; }
.nav-cta { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff !important; padding: 8px 18px; border-radius: 20px; font-weight: 600; }
.nav-cta:hover { opacity: .92; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ===== 页头横幅 ===== */
.page-banner { background: linear-gradient(135deg, #3a4fd8 0%, #4f6bff 45%, #7a5bff 100%); color: #fff; padding: 56px 20px 46px; text-align: center; }
.page-banner h1 { font-size: 34px; font-weight: 900; letter-spacing: 1px; }
.page-banner p { margin-top: 12px; opacity: .9; font-size: 15px; }

/* ===== Hero（首页） ===== */
.hero { position: relative; background: linear-gradient(135deg, #3a4fd8 0%, #4f6bff 40%, #7a5bff 100%); color: #fff; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; }
.hero::before { width: 460px; height: 460px; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%); top: -160px; right: -120px; }
.hero::after { width: 380px; height: 380px; background: radial-gradient(circle, rgba(255,159,67,.25), transparent 65%); bottom: -160px; left: -100px; }
.hero-inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 84px 20px 70px; text-align: center; }
.hero-badge { display: inline-block; font-size: 13px; padding: 6px 16px; border-radius: 20px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); margin-bottom: 22px; }
.hero h1 { font-size: 48px; line-height: 1.25; font-weight: 900; letter-spacing: 1px; }
.hero .sub { margin-top: 18px; font-size: 17px; opacity: .92; }
.hero-actions { margin-top: 38px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; padding: 14px 34px; border-radius: 30px; transition: transform .15s, box-shadow .15s; cursor: pointer; border: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-download { background: linear-gradient(135deg, var(--red), var(--orange)); color: #fff; box-shadow: 0 10px 24px rgba(255,95,109,.45); }
.btn-web { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-blue { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; box-shadow: 0 10px 24px rgba(79,107,255,.35); }
.btn-line { background: #fff; color: var(--blue); border: 1px solid #cdd6ff; }
.hero-stats { margin-top: 54px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.stat { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 16px 26px; min-width: 150px; }
.stat b { display: block; font-size: 22px; font-weight: 800; }
.stat span { display: block; margin-top: 4px; font-size: 12px; opacity: .85; }

/* ===== 通用章节 ===== */
section { padding: 62px 0; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head h2 { font-size: 30px; font-weight: 800; }
.sec-head p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.section-gray { background: var(--bg); }
.section-white { background: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; transition: transform .2s, box-shadow .2s; }
.section-gray .card { background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(80,100,200,.12); }
.card-ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 14px; }
.c1 { background: #eaf0ff; } .c2 { background: #fff1e6; } .c3 { background: #e8faf1; } .c4 { background: #f3ecff; } .c5 { background: #ffecee; } .c6 { background: #eaf6ff; }
.card h3 { font-size: 17px; font-weight: 700; }
.card p { margin-top: 8px; font-size: 13.5px; color: var(--sub); }
.card .tag { display: inline-block; margin-top: 10px; font-size: 11px; padding: 2px 10px; border-radius: 12px; font-weight: 600; }
.tag-live { background: #ffecee; color: #d9363e; }
.tag-free { background: #e8faf1; color: #00a86b; }
.tag-paid { background: #fff1e6; color: #b26a00; }
.card ul { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--sub); }
.card li { margin: 4px 0; }

/* ===== 课程预览卡 ===== */
.course-card .cover { height: 150px; border-radius: 14px; display: flex; align-items: flex-end; padding: 14px; color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.cover-blue { background: linear-gradient(135deg, #4f6bff, #7a5bff); }
.cover-red { background: linear-gradient(135deg, #ff5f6d, #ff9f43); }
.cover-green { background: linear-gradient(135deg, #00c6a7, #00a86b); }
.cover-purple { background: linear-gradient(135deg, #7a5bff, #c76bff); }

/* ===== 直播/动态 ===== */
.news-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.news-item .date { flex: none; width: 64px; text-align: center; background: var(--bg); border-radius: 12px; padding: 8px 0; }
.news-item .date b { display: block; font-size: 20px; color: var(--blue); }
.news-item .date span { font-size: 11px; color: var(--muted); }
.news-item h3 { font-size: 15px; font-weight: 700; }
.news-item p { margin-top: 5px; font-size: 13px; color: var(--sub); }

/* ===== CTA 横条 ===== */
.cta-band { background: linear-gradient(135deg, #ff5f6d, #ff9f43); color: #fff; text-align: center; padding: 54px 20px; }
.cta-band h2 { font-size: 28px; font-weight: 800; }
.cta-band p { margin-top: 10px; opacity: .92; }
.cta-band .btn { margin: 24px 8px 0; }

/* ===== 关于 ===== */
.about-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.about-block h2 { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.about-block p { color: var(--sub); margin-bottom: 12px; }
.about-visual { min-height: 260px; border-radius: 20px; background: linear-gradient(135deg, #4f6bff, #7a5bff); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 60px; }

/* ===== 表格（科目分配） ===== */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(80,100,200,.06); }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.tbl th { background: #f6f8ff; color: var(--sub); font-weight: 700; }
.tbl td:last-child { color: var(--blue); font-weight: 700; }

/* ===== 下载页 ===== */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dl-card { border-radius: 22px; padding: 36px 30px; color: #fff; position: relative; overflow: hidden; }
.dl-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.14); right: -70px; top: -70px; }
.dl-apk { background: linear-gradient(135deg, var(--red), var(--orange)); }
.dl-web { background: linear-gradient(135deg, var(--blue), var(--purple)); }
.dl-card h3 { font-size: 24px; font-weight: 800; }
.dl-card p { margin-top: 10px; font-size: 14px; opacity: .92; line-height: 1.7; }
.dl-btn { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; padding: 12px 28px; border-radius: 26px; }
.dl-apk .dl-btn { color: #e0404c; }
.dl-web .dl-btn { color: var(--blue); }
.dl-meta { margin-top: 14px; font-size: 12px; opacity: .85; }
.qr-row { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.qr-row img { width: 96px; height: 96px; border-radius: 10px; background: #fff; padding: 6px; }
.qr-tip { font-size: 12px; opacity: .9; line-height: 1.6; }

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 22px; text-align: center; }
.contact-card .card-ico { margin: 0 auto 14px; }
.contact-card h3 { font-size: 16px; font-weight: 700; }
.contact-card p { margin-top: 8px; color: var(--sub); font-size: 13.5px; }

/* ===== 底部 ===== */
.site-footer { background: #171a2a; color: #aab; margin-top: 0; }
.footer-cols { max-width: 1100px; margin: 0 auto; padding: 44px 20px 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 13px; color: #99a; margin: 7px 0; }
.footer-col a:hover { color: #9fb0ff; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding: 18px 20px 26px; border-top: 1px solid #2a2e45; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #778; }
.footer-bottom a { color: #9fb0ff; }
.beian { color: #667; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .grid, .grid-2, .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .about-block { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; position: absolute; top: 61px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 10px 0; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.06); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 20px; }
  .nav-cta { margin: 6px 16px; text-align: center; }
  .nav-toggle { display: block; }
  .grid, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero .sub { font-size: 15px; }
  .stat { min-width: 130px; padding: 12px 16px; }
  .hero-actions .btn { width: 100%; }
  .page-banner h1 { font-size: 26px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
/* ===== 训练营宣传册 ===== */
.promo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.promo-item { margin: 0; cursor: zoom-in; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.promo-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(80,100,200,.14); }
.promo-item img { width: 100%; aspect-ratio: 3 / 4.35; object-fit: cover; display: block; }
.promo-item figcaption { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 0; }
#lightbox { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.85); align-items: center; justify-content: center; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
#lightbox .lb-close { position: absolute; top: 14px; right: 18px; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; opacity: .85; }
@media (max-width: 900px) { .promo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .promo-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
/* ===== 图库网格（现场直击 / 学员见证） ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; cursor: zoom-in; transition: transform .15s; }
.gallery-grid img:hover { transform: scale(1.03); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid #e8ecf5; border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq-item summary { cursor: pointer; font-size: 16px; font-weight: 700; color: #1f2440; list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 20px; color: #ff5f6d; font-weight: 900; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 10px; color: #5a6080; line-height: 1.8; font-size: 14px; }
@media (max-width: 700px) { .faq-item { padding: 14px 16px; } }
