/* DQ AI 数据工程 · 首页样式。无构建步骤，直接部署。 */
:root {
  --bg: #F5F8FC;
  --surface: #FFFFFF;
  --ink: #10203A;
  --muted: #4A5B75;
  --line: #DCE3EC;
  --brand: #D93A1B;
  --brand-ink: #A82B12;
  --brand-soft: #FDECE8;
  --teal: #0E7C78;
  --blue: #1456C0;
  --chip: #EAF0F7;
  --navy-muted: #B6C4DA;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 80px 32px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
h2 { font-size: 36px; line-height: 1.3; font-weight: 900; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 40px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }
.section-head p { max-width: 520px; color: var(--muted); font-size: 16px; line-height: 1.8; }

.chip { display: inline-block; font-family: var(--mono); font-size: 12.5px; line-height: 1.4; padding: 4px 9px; border-radius: 4px; background: var(--chip); color: var(--ink); }
.chip.hot { background: var(--brand-soft); color: var(--brand-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 24px; border-radius: 6px; font-weight: 700; font-size: 15px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }
.btn:hover { filter: brightness(.94); }
.btn:focus-visible, a:focus-visible { outline: 3px solid #1456C0; outline-offset: 2px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 顶部导航 */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .bar { max-width: 1200px; margin: 0 auto; padding: 12px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.hex { width: 44px; height: 44px; flex: none; background: var(--brand); clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 16px; letter-spacing: .5px; }
.brand-name { font-size: 22px; font-weight: 900; letter-spacing: 1px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.nav a { padding: 10px 0; }
.nav a:hover { color: var(--brand); }

/* 首屏 */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 50px; line-height: 1.25; font-weight: 900; text-wrap: balance; }
.hero p.lead { font-size: 18px; line-height: 1.8; color: var(--muted); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.pipeline { flex: 1 1 400px; max-width: 520px; background: var(--ink); color: #fff; border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.pipeline .top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: #9FB2CE; }
.pipeline .top .ok { color: #5FD3A5; }
.pipeline ol { margin: 0 0 0 8px; padding: 0 0 0 24px; list-style: none; border-left: 2px solid #2E4468; }
.pipeline li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #22385A; font-size: 15px; }
.pipeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.pipeline li b { font-family: var(--mono); font-weight: 500; color: #FFB4A2; }
.pipeline .note { font-size: 13px; line-height: 1.7; color: #9FB2CE; }

/* 课程内容 */
.syllabus { border-top: 1px solid var(--line); }
.stats { display: flex; flex-wrap: wrap; gap: 20px 48px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 40px; font-weight: 900; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted); }
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; }
.week0 { padding: 28px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; margin: 32px 0 24px; }
.week0 .intro { flex: 0 1 300px; display: flex; flex-direction: column; gap: 8px; }
.week0 h3 { font-size: 22px; line-height: 1.3; font-weight: 900; }
.week0 p { font-size: 15px; line-height: 1.8; color: var(--muted); }
.week0 .items { flex: 1 1 480px; display: flex; flex-wrap: wrap; gap: 20px 28px; }
.week0 .items > div { flex: 1 1 180px; display: flex; flex-direction: column; gap: 8px; }
.week0 .items b { font-size: 15px; }
.phase { margin-bottom: 24px; overflow: hidden; }
.phase-head { color: #fff; padding: 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-end; }
.phase-head .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; }
.phase-head h3 { font-size: 26px; line-height: 1.3; font-weight: 900; margin-top: 8px; }
.phase-head .tools { display: flex; flex-wrap: wrap; gap: 6px; max-width: 480px; }
.phase-head .tools span { font-family: var(--mono); font-size: 12.5px; padding: 4px 9px; border-radius: 4px; border: 1px solid rgba(255,255,255,.55); }
.phase.teal .phase-head { background: var(--teal); }
.phase.blue .phase-head { background: var(--blue); }
.week { display: flex; flex-wrap: wrap; gap: 16px 28px; padding: 22px 28px; align-items: flex-start; border-top: 1px solid var(--line); }
.phase-head + .week { border-top: 0; }
.week .no { flex: 0 0 112px; }
.week .no b { display: block; font-size: 16px; }
.week .no span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.session { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.session .day { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.session .title { font-size: 15px; font-weight: 700; line-height: 1.5; }
.milestone { flex: 1 1 100%; background: var(--brand-soft); border-radius: 6px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.milestone b { font-size: 15px; color: var(--brand-ink); }
.milestone span { font-size: 14px; line-height: 1.7; color: var(--muted); }
.after { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.after .eyebrow { font-size: 12px; }
.after h3 { font-size: 22px; font-weight: 900; line-height: 1.3; }
.fineprint { font-size: 13px; color: var(--muted); }

/* 价格 */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tiers { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.tier { flex: 1 1 320px; min-width: 0; padding: 32px 28px; display: flex; flex-direction: column; gap: 20px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; }
.tier h3 { font-size: 18px; font-weight: 700; }
.tier .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badge { background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px; white-space: nowrap; }
.badge.soft { background: var(--brand-soft); color: var(--brand-ink); }
.price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.price .cur { font-size: 20px; font-weight: 700; }
.price .num { font-size: 44px; font-weight: 900; line-height: 1; }
.price .per { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-left: 6px; }
.member { font-size: 14px; line-height: 1.6; color: var(--muted); }
.checks { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.checks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.6; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; background: var(--teal); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; }
.checks li.strong { font-weight: 700; }
.tier.featured { background: var(--ink); border-color: var(--ink); color: #fff; }
.tier.featured .checks li::before { background: #5FD3A5; }
.tier.flagship { border-color: var(--ink); }
.tier-note { margin-top: 24px; max-width: 900px; font-size: 14px; line-height: 1.8; color: var(--muted); }

/* 感言 / 关于 */
.stories { display: flex; flex-wrap: wrap; gap: 24px; }
.story { flex: 1 1 320px; min-width: 0; margin: 0; background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.story blockquote { margin: 0; font-size: 16px; line-height: 1.9; }
.story figcaption { display: flex; align-items: center; gap: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.story .who b { display: block; font-size: 15px; }
.story .who span { font-size: 13px; line-height: 1.6; color: var(--muted); }
.about { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.about .mark { flex: 0 0 200px; display: flex; justify-content: center; }
.about .mark .hex { width: 200px; height: 200px; font-size: 64px; }
.about .text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about .role { font-size: 18px; font-weight: 700; line-height: 1.6; }
.about p.bio { font-size: 16px; line-height: 1.9; color: var(--muted); max-width: 720px; }

/* 行动条 / 页脚 */
.cta { background: var(--ink); color: #fff; }
.cta .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta .copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.cta h2 { font-size: 30px; line-height: 1.4; }
.cta p { color: var(--navy-muted); font-size: 16px; line-height: 1.8; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .name { font-weight: 900; font-size: 18px; }
.site-footer .contact { font-size: 14px; color: var(--muted); margin-top: 8px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; color: var(--muted); align-items: flex-start; }
.site-footer .links a { padding: 10px 0; }
.site-footer .copy { flex: 1 1 100%; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }

/* 手机 */
@media (max-width: 720px) {
  .wrap { padding: 48px 20px; }
  h2 { font-size: 28px; }
  .section-head { margin-bottom: 24px; }
  .site-header .bar { padding: 10px 20px; }
  .hex { width: 40px; height: 40px; font-size: 14px; }
  .brand-name { font-size: 20px; }
  .nav { gap: 0 18px; font-size: 14px; }
  .hero { gap: 32px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stat b { font-size: 32px; }
  .week0, .after { padding: 20px; }
  .phase-head { padding: 22px 20px; }
  .phase-head h3 { font-size: 22px; }
  .week { padding: 18px 20px; gap: 14px; }
  .week .no { flex: 1 1 100%; display: flex; justify-content: space-between; align-items: baseline; }
  .session { flex: 1 1 100%; border-top: 1px solid var(--line); padding-top: 12px; }
  .tier { padding: 24px 20px; flex-basis: 100%; }
  .price .num { font-size: 40px; }
  .story { padding: 22px; }
  .story blockquote { font-size: 15px; }
  .about { gap: 24px; }
  .about .mark { flex: 0 0 auto; justify-content: flex-start; }
  .about .mark .hex { width: 88px; height: 88px; font-size: 28px; }
  .about .role { font-size: 17px; }
  .about p.bio { font-size: 15px; }
  .cta .wrap { padding-top: 40px; padding-bottom: 40px; }
  .cta h2 { font-size: 24px; }
  .cta p { font-size: 15px; }
  .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header { position: static; } }

[hidden] { display: none !important; }

h2 { text-wrap: balance; }

.logo-mark { height: 40px; width: auto; flex: none; display: block; }
.about .mark img { width: 200px; height: auto; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--navy-muted); }
.qr img { width: 160px; height: 160px; border-radius: 8px; background: #fff; padding: 6px; }
@media (max-width: 720px) { .about .mark img { width: 88px; } .qr { align-items: flex-start; text-align: left; } }

/* 视频 */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.video { display: flex; flex-direction: column; gap: 12px; }
.video .thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--ink); border: 1px solid var(--line); }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(16, 32, 58, .78); }
.video .play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.video .vtitle { font-size: 16px; font-weight: 700; line-height: 1.5; }
.video:hover .vtitle { color: var(--brand); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.more { margin-top: 32px; }
@media (max-width: 960px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .videos { grid-template-columns: 1fr; gap: 20px; } .more .btn { width: 100%; } }

/* 大纲折叠 */
.weeks > summary { cursor: pointer; list-style: none; padding: 16px 28px; font-weight: 700; font-size: 15px; border-top: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; gap: 8px; }
.weeks > summary::-webkit-details-marker { display: none; }
.weeks > summary::before { content: "+"; font-family: var(--mono); font-weight: 500; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.weeks[open] > summary::before { content: "−"; }
.weeks > summary:hover { background: rgba(16,32,58,.04); }
.phase.teal .weeks > summary { color: var(--teal); }
.phase.blue .weeks > summary { color: var(--blue); }
.weeks[open] > summary { margin-bottom: 0; }
.site-footer .contact a { color: inherit; text-decoration: underline; }

/* 二维码点击放大 */
.qr-btn { display: block; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; }
.qr-btn:focus-visible { outline: 3px solid #8DB4F5; outline-offset: 3px; }
.qr-hint { font-size: 12px; opacity: .8; }
.qrzoom { border: 0; padding: 0; background: #fff; border-radius: 12px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.qrzoom::backdrop { background: rgba(16,32,58,.8); }
.qrzoom-body { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; padding: 24px; border: 0; background: #fff; border-radius: 12px; font: inherit; font-size: 14px; color: var(--muted); cursor: zoom-out; }
.qrzoom-body img { width: min(360px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; }

/* 视频区：Vimeo 嵌入 + 讲座海报并列 */
.featured-row { display: flex; align-items: center; justify-content: center; gap: 32px; margin-bottom: 28px; }
.featured-video { flex: 1 1 0; min-width: 0; max-width: 640px; }
.featured-video .embed { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--ink); box-shadow: 0 12px 40px rgba(16,32,58,.18); }
.featured-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-note { margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); }
.embed-note a { text-decoration: underline; }
.featured-poster { flex: 0 0 300px; margin: 0; }
.featured-poster img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 12px 40px rgba(16,32,58,.18); }
.videos-intro { max-width: 760px; margin: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.8; }
@media (max-width: 760px) { .featured-row { flex-direction: column; } .featured-video { width: 100%; max-width: none; } .featured-poster { flex: none; width: min(300px, 100%); } }
