/* =====================================================================
   刘俊华个人主页 · 蓝金商务风
   配色：藏青 #0d3b66 / 亮蓝 #1565c0 / 金 #f2a71b / 橙红 #f2542d / 米白底
   ===================================================================== */
:root {
  --ink: #0d3b66;
  --blue: #1565c0;
  --blue-bright: #2b8fe0;
  --gold: #f2a71b;
  --gold-soft: #ffe9a8;
  --orange: #f2542d;
  --bg: #f7f9fc;
  --text: #33415c;
  --muted: #8a94a6;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(13, 59, 102, .18);
  --shadow-hover: 0 18px 40px -12px rgba(13, 59, 102, .28);
  --font: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  --serif: Georgia, "STZhongsong", "SimSun", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
}
::selection { background: var(--gold-soft); color: #5a3d00; }
img { max-width: 100%; }
section { scroll-margin-top: 72px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 滚动进度条 ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  z-index: 1000; transition: width .1s linear;
}

/* ---------- 导航栏 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: rgba(10, 46, 82, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(9, 46, 84, .35);
}
.nav__inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo-badge {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--ink));
  color: var(--gold); font-family: var(--serif); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(13, 59, 102, .4);
}
.nav__logo-text { color: #fff; font-weight: 700; letter-spacing: .04em; font-size: 1.02rem; }
.nav__logo-text em { font-style: normal; font-weight: 400; color: rgba(255,255,255,.65); font-size: .8rem; margin-left: .4em; }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  color: rgba(255, 255, 255, .78); text-decoration: none;
  padding: 8px 14px; border-radius: 999px; font-size: .92rem;
  transition: all .2s ease; position: relative;
}
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav__links a.active {
  color: #5a3d00; font-weight: 700;
  background: linear-gradient(135deg, #ffd766, var(--gold));
  box-shadow: 0 4px 12px rgba(242, 167, 27, .45);
}
.nav__toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer;
}

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0a2e52 0%, var(--ink) 40%, var(--blue) 100%);
  overflow: hidden; text-align: center;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5;
  pointer-events: none;
}
.hero__blob--1 {
  width: 420px; height: 420px; left: -120px; top: -100px;
  background: radial-gradient(circle, rgba(242, 167, 27, .5), transparent 70%);
  animation: blobFloat 10s ease-in-out infinite;
}
.hero__blob--2 {
  width: 520px; height: 520px; right: -160px; bottom: -160px;
  background: radial-gradient(circle, rgba(43, 143, 224, .55), transparent 70%);
  animation: blobFloat 13s ease-in-out -5s infinite;
}
@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.06); }
}
.hero__inner { position: relative; z-index: 2; padding: 120px 24px 80px; max-width: 860px; }
.hero__badge {
  display: inline-block; padding: .35rem 1.2rem; border-radius: 999px;
  border: 1px solid rgba(255, 215, 120, .7); color: var(--gold-soft);
  font-size: .88rem; letter-spacing: .18em; margin-bottom: 1.4rem;
  background: rgba(255, 215, 120, .08); backdrop-filter: blur(4px);
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 5rem);
  letter-spacing: .18em; line-height: 1.1; margin-bottom: .6rem;
  background: linear-gradient(180deg, #fff6d8 10%, #ffd766 55%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 25, 55, .5));
}
.hero__subtitle { color: rgba(255,255,255,.92); font-size: 1.12rem; letter-spacing: .1em; }
.hero__quote {
  color: rgba(255, 233, 168, .95); font-family: var(--serif);
  font-size: 1.15rem; margin: 1.6rem auto 2.2rem; max-width: 34em;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* 按钮 */
.btn {
  display: inline-block; padding: .8rem 2rem; border-radius: 999px;
  font-weight: 700; letter-spacing: .06em; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease; font-size: 1rem;
}
.btn--gold {
  background: linear-gradient(135deg, #ffd766, var(--gold)); color: #5a3d00;
  box-shadow: 0 10px 24px -8px rgba(242, 167, 27, .7);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -8px rgba(242, 167, 27, .85); }
.btn--ghost {
  border: 1.5px solid rgba(255,255,255,.6); color: #fff;
  background: rgba(255,255,255,.06); backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }

/* 向下滚动提示 */
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5);
  border-radius: 14px; z-index: 2;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  margin-left: -2px; border-radius: 2px; background: var(--gold);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- 通用板块 ---------- */
.section { padding: 96px 0; }
.section--alt { background: linear-gradient(180deg, #eef3fa, #f7f9fc); }
.section__head { text-align: center; margin-bottom: 3.2rem; }
.section__tag {
  display: inline-block; font-size: .78rem; letter-spacing: .3em;
  color: var(--gold); font-weight: 700; margin-bottom: .5rem;
}
.section__title {
  font-family: var(--serif); font-size: 2.1rem; color: var(--ink);
  letter-spacing: .08em; position: relative; display: inline-block; padding-bottom: .6rem;
}
.section__title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 64px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}
.section__desc { color: var(--muted); margin-top: .8rem; }

/* ---------- 关于我 ---------- */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: center; }
.about__avatar {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.4rem;
  text-align: center; box-shadow: var(--shadow);
  border: 1px solid #e8edf5; border-top: 4px solid var(--gold);
}
.about__avatar-circle {
  width: 130px; height: 130px; margin: 0 auto 1rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--ink));
  color: var(--gold); font-family: var(--serif); font-size: 3.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(13, 59, 102, .5);
}
.about__avatar img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; }
.about__avatar-name { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.about__avatar-role { color: var(--muted); font-size: .88rem; margin-top: .2rem; }
.about__text p { margin-bottom: 1rem; text-indent: 2em; }
.counters { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
.counter {
  flex: 1; min-width: 130px; background: #fff; border-radius: 14px;
  padding: 1rem; text-align: center; box-shadow: var(--shadow);
  border: 1px solid #e8edf5; border-bottom: 3px solid var(--blue);
  transition: transform .2s ease;
}
.counter:hover { transform: translateY(-4px); }
.counter__num {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--ink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.counter span { display: block; color: var(--muted); font-size: .82rem; margin-top: .2rem; }

/* ---------- 领域标签 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-bottom: 3rem; }
.chip {
  padding: .5rem 1.15rem; border-radius: 999px; color: #fff;
  font-weight: 600; font-size: .92rem; letter-spacing: .04em;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 6px 16px -6px var(--c2);
  transition: transform .18s ease;
}
.chip:hover { transform: translateY(-3px) scale(1.04); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow); border: 1px solid #e8edf5;
  transition: box-shadow .25s ease; transform-style: preserve-3d;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card h3 { color: var(--ink); font-size: 1.08rem; margin: .9rem 0 .4rem; }
.card p { color: var(--muted); font-size: .88rem; line-height: 1.7; }
.card__ico {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.card__ico--blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.card__ico--gold   { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.card__ico--orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.card__ico--green  { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }

/* ---------- 平台横幅 ---------- */
.banner {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--ink), var(--blue) 70%, var(--blue-bright));
  border-radius: var(--radius); padding: 1.8rem 2rem; margin-bottom: 1.4rem;
  color: #fff; text-decoration: none; box-shadow: var(--shadow-hover);
  position: relative; overflow: hidden;
}
.banner::after {
  content: ""; position: absolute; width: 260px; height: 260px;
  right: -80px; top: -100px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 215, 110, .35), transparent 70%);
  pointer-events: none;
}
.banner__ico { font-size: 2.6rem; }
.banner__body { flex: 1; min-width: 260px; }
.banner__body h3 { color: #ffd766; margin-bottom: .3rem; font-size: 1.2rem; }
.banner__body p { color: rgba(255,255,255,.85); font-size: .9rem; }
.banner__arrow {
  background: linear-gradient(135deg, #ffd766, var(--gold)); color: #5a3d00;
  font-weight: 700; padding: .6rem 1.3rem; border-radius: 999px; font-size: .92rem;
  white-space: nowrap;
}
.banner:hover .banner__arrow { filter: brightness(1.06); }
.banner__hint { position: absolute; right: 14px; bottom: 8px; font-size: .68rem; color: rgba(255,255,255,.45); }

/* ---------- 联系我 ---------- */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: stretch; }
.contact__info {
  background: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); border: 1px solid #e8edf5;
}
.contact__row { display: flex; gap: 1rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px dashed #edf1f6; }
.contact__row:last-child { border-bottom: none; }
.contact__ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #eef4fc, #dbeafe);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.contact__row b { color: var(--ink); }
.contact__row p { color: var(--muted); font-size: .92rem; }
.contact__wechat {
  background: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); border: 1px solid #e8edf5; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
}
.contact__qr {
  width: 170px; height: 170px; border-radius: 14px;
  border: 2px dashed #c9d6e8; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; line-height: 1.6;
}
.contact__wechat img { width: 170px; height: 170px; border-radius: 14px; object-fit: cover; }
.contact__wechat p { color: var(--muted); font-size: .88rem; }

/* ---------- 页脚 ---------- */
.footer {
  background: linear-gradient(120deg, #0a2e52, var(--ink) 60%, #123f7a);
  color: rgba(255,255,255,.65); padding: 1.8rem 0; font-size: .86rem;
}
.footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- 回到顶部 ---------- */
.totop {
  position: fixed; right: 26px; bottom: 26px; width: 46px; height: 46px;
  border-radius: 50%; border: none; cursor: pointer; font-size: 1.2rem; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--ink));
  box-shadow: 0 8px 20px -6px rgba(13, 59, 102, .6);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease; z-index: 800;
}
.totop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.totop:hover { background: linear-gradient(135deg, var(--gold), #d18f00); }

/* ---------- 滚动显现动画（仅 JS 可用时启用，防止内容隐身） ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__blob, .hero__scroll span { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 1.6rem; }
  .about__avatar { max-width: 320px; margin: 0 auto; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed; top: 68px; right: 12px; flex-direction: column;
    background: rgba(10, 46, 82, .97); border-radius: 14px; padding: 10px;
    display: none; box-shadow: var(--shadow-hover);
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
  .hero__actions .btn { padding: .7rem 1.5rem; font-size: .92rem; }
  .banner { padding: 1.4rem; }
  .footer__inner { justify-content: center; text-align: center; }
}
