/* ============================================================
   程亮 · 职场效能专家 个人网站
   主题：深蓝 + 中性灰 · 职场商务风
   ============================================================ */

:root {
  --navy: #0f2a43;
  --navy-2: #1b3a5b;
  --navy-3: #14304b;
  --blue: #2f6fed;
  --blue-hover: #2257c9;
  --blue-soft: #e8f0fe;
  --ink: #1f2733;
  --gray: #5b6675;
  --gray-light: #8a94a6;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-soft-2: #eef2f7;
  --border: #e3e8ef;
  --shadow-sm: 0 1px 3px rgba(15, 42, 67, .08);
  --shadow: 0 8px 24px rgba(15, 42, 67, .10);
  --shadow-lg: 0 16px 40px rgba(15, 42, 67, .16);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --nav-h: 68px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; display: grid; place-items: center;
  font-size: 18px; font-weight: 800; letter-spacing: .5px;
}
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-name { font-size: 16px; color: var(--navy); }
.brand .brand-sub { font-size: 11px; color: var(--gray-light); font-weight: 600; letter-spacing: .5px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--gray);
  font-weight: 600; font-size: 15px; transition: .2s;
}
.nav-links a:hover { color: var(--navy); background: var(--bg-soft); }
.nav-links a.active { color: var(--blue); background: var(--blue-soft); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px auto; transition: .25s; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: .2s; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }

/* ---------- 英雄区 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #1c4068 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff; padding: 92px 0 100px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #cfe0f5; margin-bottom: 22px;
}
.hero .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #4fd07f; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.15; font-weight: 800; letter-spacing: .5px; }
.hero .role { font-size: clamp(17px, 2.4vw, 22px); color: #9cc2f0; font-weight: 700; margin-top: 8px; }
.hero .tagline { font-size: 17px; color: #d6e2f2; margin-top: 20px; max-width: 620px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 48px;
}
.hero-stats .stat {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 16px 22px; min-width: 130px;
}
.hero-stats .stat .num { font-size: 26px; font-weight: 800; color: #fff; }
.hero-stats .stat .num small { font-size: 15px; color: #9cc2f0; }
.hero-stats .stat .label { font-size: 13px; color: #b9cde6; margin-top: 2px; }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .kicker { color: var(--blue); font-weight: 800; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--navy); margin-top: 10px; font-weight: 800; }
.section-head p { color: var(--gray); margin-top: 12px; font-size: 16px; }

/* ---------- 服务/优势卡片 ---------- */
.grid { 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: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: .22s; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd8e8; }
.card .ico {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-size: 24px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; color: var(--navy); font-weight: 800; }
.card p { color: var(--gray); margin-top: 8px; font-size: 14.5px; }
.card .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.card .tags span {
  font-size: 12px; color: var(--navy-2); background: var(--bg-soft-2);
  padding: 4px 10px; border-radius: 999px; font-weight: 600;
}

/* ---------- 认证 / 客户 ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 18px; font-size: 14px; font-weight: 700; color: var(--navy-2);
  box-shadow: var(--shadow-sm);
}
.client-wall { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.client-wall .chip {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 16px; font-size: 14px; color: var(--gray); font-weight: 600;
}

/* ---------- 课程矩阵 ---------- */
.course-group { margin-bottom: 30px; }
.course-group h3 { color: var(--navy); font-size: 19px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.course-group h3::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--blue); }
.course-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.course-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 18px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px;
  transition: .2s;
}
.course-item:hover { border-color: var(--blue); background: var(--blue-soft); }
.course-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; }

/* ---------- 关于我 ---------- */
.about-hero { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.about-photo {
  width: 320px; height: 320px; border-radius: 20px; object-fit: cover;
  background: linear-gradient(135deg, var(--navy-2), var(--blue));
  display: grid; place-items: center; color: #fff; font-size: 64px; font-weight: 800;
  box-shadow: var(--shadow-lg);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.about-text h1 { font-size: clamp(28px, 4vw, 40px); color: var(--navy); font-weight: 800; }
.about-text .role { color: var(--blue); font-weight: 700; font-size: 18px; margin-top: 6px; }
.about-text p { color: var(--gray); margin-top: 16px; font-size: 16px; }
.about-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.about-meta .m { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; font-size: 14px; color: var(--navy-2); font-weight: 600; }
.about-meta .m b { color: var(--blue); }

/* 时间线 */
.timeline { border-left: 3px solid var(--blue-soft); padding-left: 26px; margin-top: 8px; }
.timeline .t { position: relative; padding-bottom: 26px; }
.timeline .t::before {
  content: ""; position: absolute; left: -35px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--blue-soft);
}
.timeline .t .yr { font-weight: 800; color: var(--navy); }
.timeline .t .tt { color: var(--ink); font-weight: 600; }
.timeline .t .ds { color: var(--gray); font-size: 14.5px; margin-top: 4px; }

/* 教材 */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.book {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: .2s;
}
.book:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.book .cover {
  width: 100%; height: 120px; border-radius: 10px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; display: grid; place-items: center; text-align: center; padding: 12px;
  font-weight: 700; font-size: 15px;
}
.book .meta { font-size: 13px; color: var(--gray-light); }
.book .title { color: var(--navy); font-weight: 800; font-size: 15px; margin: 4px 0 6px; }

/* ---------- 作品（B站） ---------- */
.works-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; padding: 72px 0 64px; }
.works-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.works-hero p { color: #cfe0f5; margin-top: 10px; max-width: 620px; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .22s; display: flex; flex-direction: column;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-card a.thumb { position: relative; display: block; aspect-ratio: 16/9; background: var(--bg-soft-2); overflow: hidden; }
.video-card a.thumb img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.video-card:hover a.thumb img { transform: scale(1.05); }
.video-card .play-badge {
  position: absolute; left: 12px; bottom: 12px; display: flex; gap: 10px;
  background: rgba(15,42,67,.72); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.video-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.video-card .body h3 { font-size: 15.5px; color: var(--navy); font-weight: 700; line-height: 1.5; }
.video-card .body .date { color: var(--gray-light); font-size: 12.5px; margin-top: 10px; }
.video-card .body .watch { margin-top: auto; padding-top: 14px; color: var(--blue); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.contact-card h3 { color: var(--navy); font-size: 18px; font-weight: 800; }
.contact-card .v { color: var(--ink); font-size: 18px; font-weight: 700; margin-top: 6px; word-break: break-all; }
.contact-card .sub { color: var(--gray); font-size: 14px; margin-top: 4px; }
.qr-box { background: #fff; border: 1px dashed var(--border); border-radius: 12px; padding: 16px; display: grid; place-items: center; margin-top: 14px; }
.qr-box img, .qr-box .qr-ph { width: 160px; height: 160px; border-radius: 8px; object-fit: cover; }
.qr-ph { background: var(--bg-soft-2); display: grid; place-items: center; color: var(--gray-light); font-size: 13px; text-align: center; padding: 10px; }

.coop-list { display: grid; gap: 12px; margin-top: 6px; }
.coop-list .ci { display: flex; gap: 12px; align-items: flex-start; }
.coop-list .ci .n { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.coop-list .ci .t b { color: var(--navy); }
.coop-list .ci .t span { color: var(--gray); font-size: 14.5px; }

/* CTA 横幅 */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; border-radius: 20px; padding: 48px; text-align: center;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.cta-band p { color: #d6e2f2; margin-top: 10px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy); color: #c5d3e6; padding: 48px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.footer a { color: #c5d3e6; font-size: 14px; display: block; padding: 4px 0; transition: .2s; }
.footer a:hover { color: #fff; }
.footer .desc { font-size: 14px; color: #9fb2cc; margin-top: 12px; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: 13px; color: #8aa0bf; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 940px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .books { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about-text { text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 660px) {
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 16px 18px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-toggle { display: block; }
  .grid-4, .grid-3, .grid-2, .course-list, .course-grid, .video-grid, .social-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 70px; }
  .cta-band { padding: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* 进入动画 */
.reveal { opacity: 0; transform: translateY(16px); transition: .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 首页图片集锦（证书 + 培训瞬间，横向来回滚动） */
.section-gallery { background: var(--bg); }
.gallery-block { margin-top: 26px; }
.gallery-label {
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  color: var(--blue); margin: 0 0 12px 4px;
}
.gallery-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.gallery-track {
  display: flex; gap: 16px; width: max-content;
  animation: gallery-scroll 60s linear infinite;
}
.gallery-track:hover { animation-play-state: paused; }
.gallery-item { flex: 0 0 auto; width: 300px; }
.gallery-item img {
  width: 100%; height: 200px; object-fit: cover; display: block;
  border-radius: 14px; box-shadow: var(--shadow); background: var(--bg-soft);
}
.gallery-empty {
  padding: 28px; color: var(--gray-light); font-size: 14px;
  border: 1px dashed var(--border); border-radius: 12px; width: 100%;
}
@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 660px) {
  .gallery-item { width: 230px; }
  .gallery-item img { height: 160px; }
}

/* ---------- 社交媒体 + 课程 ---------- */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.social-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: .22s;
}
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd8e8; }
.social-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.social-ico svg { width: 28px; height: 28px; display: block; }
.social-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.social-name { font-size: 17px; font-weight: 800; color: var(--navy); }
.social-handle { font-size: 13px; color: var(--gray-light); margin-top: -6px; }
.social-go { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; }

/* 课程卡片（课程页） */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .22s; display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd8e8; }
.course-card .cover { aspect-ratio: 16/9; background: var(--bg-soft-2); overflow: hidden; }
.course-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.course-card .track {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--blue);
  background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.course-card .body h3 { font-size: 16px; color: var(--navy); font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.course-card .foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.course-card .price { font-size: 22px; font-weight: 800; color: var(--blue); white-space: nowrap; line-height: 1; }
.course-card .price .cur { font-size: 14px; font-weight: 700; margin-right: 1px; }
.course-card .body .buy {
  color: var(--blue); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.1); color: #c5d3e6;
  display: grid; place-items: center; padding: 0; transition: .2s;
}
.footer-social a:hover { background: rgba(255,255,255,.22); color: #fff; }
.footer-social svg { width: 20px; height: 20px; }
.footer-social img { width: 20px; height: 20px; object-fit: contain; border-radius: 6px; }
