/* 松涛手记 — 个人展示站样式 */
:root {
  --ink: #0d1f33;
  --ink-2: #16314f;
  --ink-3: #24476d;
  --gold: #c19a4b;
  --gold-soft: #e8d9b8;
  --teal: #1c6f68;
  --bg: #f5f6f4;
  --bg-alt: #eef1ee;
  --surface: #ffffff;
  --text: #26313d;
  --muted: #6c7885;
  --line: #e3e7e3;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(13, 31, 51, .06);
  --shadow: 0 10px 30px rgba(13, 31, 51, .09);
  --shadow-lg: 0 22px 60px rgba(13, 31, 51, .16);
  --maxw: 1180px;
  --nav-h: 66px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; letter-spacing: .01em; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(13, 31, 51, .07);
  z-index: 100;
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--ink-2), var(--teal));
  color: #fff; display: grid; place-items: center;
  font-family: "Songti SC", "STSong", serif; font-size: 19px; letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(28, 111, 104, .28);
}
.brand-txt b { display: block; font-size: 17px; color: var(--ink); letter-spacing: .08em; font-weight: 700; }
.brand-txt span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .22em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 13px; border-radius: 8px; font-size: 15px; color: #46535f;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after {
  content: ""; display: block; width: 16px; height: 2px; margin: 3px auto 0;
  background: var(--gold); border-radius: 2px;
}
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 0; background: transparent;
  cursor: pointer; padding: 9px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .25s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; padding: calc(var(--nav-h) + 66px) 0 70px;
  background:
    radial-gradient(900px 460px at 88% 8%, rgba(28, 111, 104, .13), transparent 62%),
    radial-gradient(700px 420px at 6% 92%, rgba(193, 154, 75, .16), transparent 60%),
    linear-gradient(160deg, #0e2338 0%, #14304e 46%, #123c46 100%);
  color: #eaf0f4; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px; letter-spacing: .16em;
  color: var(--gold-soft); border: 1px solid rgba(232, 217, 184, .35);
  padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.05);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: block; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px); margin: 22px 0 12px; color: #fff; letter-spacing: .04em;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif; font-weight: 700;
}
.hero h1 small { display: block; font-size: .42em; letter-spacing: .3em; color: var(--gold-soft); font-family: inherit; margin-top: 10px; font-weight: 400; }
.hero-roles { font-size: clamp(15px, 1.6vw, 18px); color: #c8d6de; font-weight: 500; margin-bottom: 20px; }
.hero-roles .dot { color: var(--gold); margin: 0 8px; }
.hero-desc { color: #b3c3cd; font-size: 16px; max-width: 620px; }
.hero-quote {
  margin: 26px 0 30px; padding: 16px 20px; border-left: 3px solid var(--gold);
  background: rgba(255,255,255,.06); border-radius: 0 12px 12px 0;
  font-size: 16px; color: #e6eef3; line-height: 1.9;
}
.hero-quote b { color: var(--gold-soft); font-weight: 600; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-gold { background: linear-gradient(135deg, #d3b063, #b8913f); color: #1d1503; box-shadow: 0 8px 22px rgba(193,154,75,.35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(193,154,75,.45); }
.btn-ghost { border: 1px solid rgba(255,255,255,.34); color: #eaf0f4; }
.btn-ghost:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }

.hero-photo { position: relative; }
.hero-photo img {
  position: relative; z-index: 1;
  width: 100%; border-radius: var(--radius-lg); object-fit: cover;
  aspect-ratio: 611 / 999; max-height: 520px; margin: 0 auto;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.18);
  object-position: center 22%;
}
.hero-photo::after {
  content: ""; position: absolute; z-index: 0; inset: 16px -14px -14px 16px;
  border: 1px solid rgba(232,217,184,.4); border-radius: var(--radius-lg);
}
.hero-tag {
  position: absolute; left: -14px; bottom: 22px; background: rgba(255,255,255,.94); color: var(--ink);
  padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.6;
}
.hero-tag b { display: block; font-size: 15px; color: var(--ink); }

/* 数据条 */
.stats { margin-top: 58px; position: relative; }
.stats-in {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 26px 18px; display: grid; grid-template-columns: repeat(4, 1fr);
  backdrop-filter: blur(6px);
}
.stat { text-align: center; padding: 6px 10px; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(24px, 3vw, 34px); color: #fff; font-weight: 700; line-height: 1.2; }
.stat b i { font-style: normal; font-size: .55em; color: var(--gold-soft); margin-left: 2px; }
.stat span { font-size: 13px; color: #a9bac5; letter-spacing: .04em; }

/* ---------- 通用区块 ---------- */
section { padding: 84px 0; }
.sec-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.sec-head .kicker {
  display: inline-block; font-size: 12px; letter-spacing: .28em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 12px; font-weight: 700;
}
.sec-head h2 {
  font-size: clamp(26px, 3.6vw, 36px); color: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif; letter-spacing: .04em;
}
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 15.5px; }
.sec-head .rule { width: 54px; height: 3px; background: var(--gold); border-radius: 3px; margin: 18px auto 0; }

.alt { background: var(--bg-alt); }
/* 仅在 JS 可用时才做入场动画，保证脚本异常时内容依然可见 */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: start; }
.about-txt h3 { font-size: 22px; color: var(--ink); margin-bottom: 14px; }
.about-txt p { color: #3c4854; font-size: 15.8px; text-align: justify; }
.about-txt .lead { font-size: 17px; color: var(--ink-2); font-weight: 500; }
.traits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.traits span {
  font-size: 13px; padding: 5px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: #48545f;
}
.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.info-card h4 { font-size: 16px; color: var(--ink); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.info-list { list-style: none; margin: 0; padding: 0; font-size: 14.6px; }
.info-list li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f1f3f1; }
.info-list li:last-child { border-bottom: 0; }
.info-list li em { font-style: normal; color: var(--muted); flex: none; width: 74px; }
.info-list li span { color: #33404c; }

/* 荣誉 */
.honors { margin-top: 52px; }
.honor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.honor {
  display: flex; gap: 13px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 12px; padding: 15px 17px; transition: transform .25s, box-shadow .25s;
}
.honor:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.honor b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }
.honor span { font-size: 13px; color: var(--muted); }
.honor .yr { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .04em; }

/* ---------- 历程时间轴 ---------- */
.timeline { position: relative; max-width: 940px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--gold), rgba(193,154,75,.15));
}
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal); box-shadow: 0 0 0 4px rgba(28,111,104,.1);
}
.tl-item.hi::before { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(193,154,75,.16); }
.tl-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s;
}
.tl-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tl-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tl-year {
  font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--ink-2), var(--teal));
  padding: 4px 12px; border-radius: 999px; letter-spacing: .04em;
}
.tl-item.hi .tl-year { background: linear-gradient(135deg, #b8913f, #8f6f2c); }
.tl-card h3 { font-size: 18px; color: var(--ink); }
.tl-card p { margin: 0; font-size: 15px; color: #45525e; }
.tl-card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tl-card .tags span { font-size: 12px; color: var(--teal); background: rgba(28,111,104,.08); padding: 3px 10px; border-radius: 6px; }
.tl-fig { margin: 14px 0 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.tl-fig img { width: 100%; height: 260px; object-fit: cover; transition: transform .5s; cursor: zoom-in; }
.tl-fig:hover img { transform: scale(1.03); }
.tl-fig figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 12px; background: #fafbf9; }

/* ---------- 影像画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.g-item {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #ddd;
  box-shadow: var(--shadow-sm); cursor: zoom-in;
}
.g-item img { width: 100%; height: 230px; object-fit: cover; transition: transform .6s; }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(9, 22, 36, .82));
  color: #fff; font-size: 13px; letter-spacing: .02em;
}

/* ---------- 公司 / 业务 ---------- */
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.co-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.co-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.co-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.co-badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--teal); background: rgba(28,111,104,.09); padding: 4px 11px; border-radius: 6px; margin-bottom: 14px;
}
.co-card h3 { font-size: 21px; color: var(--ink); line-height: 1.5; }
.co-card .role { font-size: 14px; color: var(--gold); font-weight: 700; margin: 6px 0 14px; letter-spacing: .06em; }
.co-card p { font-size: 15px; color: #45525e; }
.co-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.co-meta span { font-size: 12.5px; color: #48545f; background: var(--bg-alt); border-radius: 6px; padding: 4px 10px; }
.co-link {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600;
  color: var(--ink-2); border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.co-link:hover { color: var(--gold); }

.biz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 30px; }
.biz {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .28s, box-shadow .28s, border-color .28s;
}
.biz:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(28,111,104,.32); }
.biz .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 15px;
  background: linear-gradient(135deg, rgba(28,111,104,.14), rgba(193,154,75,.18)); font-size: 21px;
}
.biz h3 { font-size: 17.5px; color: var(--ink); margin-bottom: 10px; }
.biz p { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.biz ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.biz ul li { font-size: 12px; color: var(--teal); background: rgba(28,111,104,.08); padding: 3px 9px; border-radius: 5px; }

/* 案例 */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin-top: 28px; }
.case {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.case .tag { font-size: 11.5px; color: var(--gold); font-weight: 700; letter-spacing: .08em; }
.case h4 { font-size: 16px; color: var(--ink); margin: 6px 0 8px; }
.case p { font-size: 13.8px; color: var(--muted); margin: 0; }
.case .kpi { margin-top: 12px; font-size: 13px; color: var(--teal); font-weight: 600; }

/* ---------- 联系 ---------- */
.contact-wrap {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  background: linear-gradient(140deg, #0e2338, #143a4a); color: #e6eef3;
  border-radius: var(--radius-lg); padding: 46px; box-shadow: var(--shadow);
}
.contact-wrap h2 { font-size: clamp(24px, 3.2vw, 32px); color: #fff; font-family: "Songti SC", "STSong", serif; }
.contact-wrap p { color: #b3c3cd; font-size: 15.5px; margin-top: 12px; }
.contact-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.contact-list .k { color: var(--gold-soft); width: 66px; flex: none; font-size: 14px; }
.contact-list a { color: #fff; border-bottom: 1px solid rgba(232,217,184,.4); }
.contact-list a:hover { color: var(--gold-soft); }
.qr-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 24px; text-align: center; }
.qr-card .mono { font-family: "Songti SC", "STSong", serif; font-size: 30px; color: #fff; letter-spacing: .1em; }
.qr-card p { font-size: 13.5px; color: #a9bac5; margin-top: 10px; }

/* ---------- 页脚 ---------- */
.footer { background: #0b1a2b; color: #93a4b1; padding: 46px 0 34px; font-size: 13.5px; }
.footer-in { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer h4 { color: #fff; font-size: 17px; letter-spacing: .12em; font-family: "Songti SC", "STSong", serif; }
.footer .fdesc { max-width: 460px; margin: 12px 0 0; line-height: 1.9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.footer-links a:hover { color: var(--gold-soft); }
.f-beian {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between;
}
.f-beian a { color: #a9bac5; }
.f-beian a:hover { color: var(--gold-soft); }
.f-beian .flag { display: inline-flex; align-items: center; gap: 6px; }
.f-beian .dot { width: 6px; height: 6px; border-radius: 50%; background: #f0b429; display: inline-block; }

/* 回到顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 26px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink-2); color: #fff; border: 0; cursor: pointer; font-size: 18px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s; z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; background: rgba(6, 15, 25, .92); display: none;
  align-items: center; justify-content: center; z-index: 200; padding: 24px;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: min(1000px, 94vw); max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox .cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #dbe4ea; font-size: 14px; }
.lightbox .close {
  position: absolute; top: 22px; right: 26px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 22px; cursor: pointer;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 380px; margin: 0 auto; }
  .hero-tag { left: 8px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .co-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; padding: 36px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 18px 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 6px; border-bottom: 1px solid #f0f2f0; font-size: 16px; }
  .nav-links a.active::after { display: none; }
  section { padding: 58px 0; }
  .stats-in { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .tl-fig img { height: 200px; }
  .footer-in { flex-direction: column; }
}

@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .hero-quote { font-size: 15px; }
  .btn { padding: 11px 18px; font-size: 14.5px; }
  .co-card, .contact-wrap { padding: 26px 22px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-item img { height: 170px; }
  .g-item figcaption { font-size: 12px; padding: 20px 10px 9px; }
  .honor-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 26px; }
  .tl-item::before { left: -26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
