/* ============ 杨大维个人网站 · 前台样式 ============ */
:root {
  --bg: #0b0e13;
  --bg2: #10141c;
  --card: #161b26;
  --card2: #1b2230;
  --line: rgba(255, 255, 255, .08);
  --txt: #e8ecf3;
  --txt2: #9aa5b5;
  --acc: #ff6b35;
  --acc2: #ffb35c;
  --track: #c9452e;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  background: var(--bg); color: var(--txt); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg2); }
.section-dark { background: linear-gradient(160deg, #12080a 0%, #0b0e13 60%); }
.empty { color: var(--txt2); text-align: center; padding: 40px 0; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s;
  background: transparent;
}
.nav.scrolled { background: rgba(11, 14, 19, .92); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,.4); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--acc), var(--track)); color: #fff; font-size: 17px;
}
.nav-links { display: flex; gap: 28px; font-size: 14.5px; color: var(--txt2); }
.nav-links a { position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a:hover { color: var(--txt); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--acc); transition: width .25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; color: var(--txt); font-size: 22px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,19,.55) 0%, rgba(11,14,19,.82) 70%, var(--bg) 100%),
    linear-gradient(115deg, rgba(201,69,46,.55), rgba(11,14,19,.35) 55%),
    var(--hero-bg, linear-gradient(135deg, #1a1207, #0b0e13)) center/cover no-repeat;
}
.lanes {
  position: absolute; right: -6%; bottom: -12%; width: 78%; height: 68%;
  transform: perspective(700px) rotateX(58deg) rotateZ(-14deg); opacity: .5; pointer-events: none;
}
.lanes span { position: absolute; left: 0; right: 0; height: 1px; top: calc(var(--i) * 15%); background: rgba(255,179,92,.35); }
.lanes span:nth-child(odd) { background: rgba(255,255,255,.14); }
.lanes span:nth-child(1) { --i: 1; } .lanes span:nth-child(2) { --i: 2; } .lanes span:nth-child(3) { --i: 3; }
.lanes span:nth-child(4) { --i: 4; } .lanes span:nth-child(5) { --i: 5; } .lanes span:nth-child(6) { --i: 6; } .lanes span:nth-child(7) { --i: 7; }
.hero-inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 100px 24px 40px; width: 100%; }
.hero-flex { display: flex; align-items: center; gap: 48px; }
.hero-text { flex: 1; min-width: 0; }
.hero-avatar { flex-shrink: 0; position: relative; }
.hero-avatar img {
  width: clamp(180px, 24vw, 280px); aspect-ratio: 3/4; object-fit: cover; object-position: center top;
  border-radius: 24px; border: 2px solid rgba(255,179,92,.5);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 10px rgba(255,107,53,.08);
}
.hero-tag {
  display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 13.5px; letter-spacing: 2px;
  color: var(--acc2); border: 1px solid rgba(255,179,92,.4); background: rgba(255,107,53,.1); margin-bottom: 22px;
}
.hero-title { font-size: clamp(52px, 9vw, 104px); font-weight: 900; line-height: 1.08; letter-spacing: 4px;
  background: linear-gradient(120deg, #fff 30%, var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 16px; font-size: clamp(16px, 2.2vw, 21px); color: #cfd6e2; letter-spacing: 1px; }
.hero-slogan { margin-top: 8px; font-size: 15px; color: var(--txt2); }
.hero-btns { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px; font-size: 15.5px; font-weight: 600;
  cursor: pointer; border: 0; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--acc), var(--track)); color: #fff; box-shadow: 0 8px 28px rgba(255,107,53,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255,107,53,.5); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; text-align: center; color: var(--txt2); font-size: 12px; letter-spacing: 2px; }
.scroll-hint i { display: block; width: 1.5px; height: 34px; margin: 8px auto 0; background: linear-gradient(var(--acc2), transparent); animation: drop 1.6s infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 数据条 ---------- */
.stats { background: linear-gradient(180deg, rgba(255,107,53,.08), transparent); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 24px; }
.stat { text-align: center; }
.stat-value { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; color: var(--acc2); }
.stat-label { margin-top: 4px; font-size: 14px; color: var(--txt2); letter-spacing: 1px; }

/* ---------- 标题 ---------- */
.sec-head { position: relative; margin-bottom: 48px; }
.sec-index { position: absolute; top: -30px; left: -8px; font-size: 88px; font-weight: 900; color: rgba(255,255,255,.05); letter-spacing: -4px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: 2px; position: relative; }
.sec-head h2::after { content: ""; display: block; width: 52px; height: 4px; margin-top: 12px; border-radius: 2px; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.sec-sub { position: relative; margin-top: 8px; color: var(--txt2); font-size: 13px; letter-spacing: 4px; }
.sec-head-light .sec-index { color: rgba(255,255,255,.06); }

/* ---------- 关于我 ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.about-text p { color: #c6cdd9; font-size: 16.5px; }
.info-list { margin-top: 28px; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: baseline; gap: 12px; }
.info-list span { color: var(--txt2); font-size: 13.5px; flex-shrink: 0; }
.info-list b { color: var(--acc2); font-size: 15.5px; }
.about-media { position: relative; }
.about-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.about-photo img { width: 100%; aspect-ratio: 4/3.6; object-fit: cover; }
.about-photo figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--txt2); border-top: 1px solid var(--line); }
.about-photo.portrait img { aspect-ratio: 3/4; object-position: center top; }
.about-badge {
  position: absolute; top: -16px; right: -12px; display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--acc), var(--track)); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(255,107,53,.4); font-size: 14px;
}

/* ---------- 荣誉时间线 ---------- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--acc), transparent 90%); }
.tl-item { position: relative; padding: 0 0 32px 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -24px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--acc); border: 3px solid var(--bg2); box-shadow: 0 0 0 3px rgba(255,107,53,.25);
}
.tl-year { display: inline-block; font-weight: 800; color: var(--acc2); font-size: 15px; margin-bottom: 8px; letter-spacing: 1px; }
.tl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; transition: transform .2s, border-color .2s; }
.tl-card:hover { transform: translateX(4px); border-color: rgba(255,107,53,.4); }
.tl-photo { margin: 0 0 16px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.tl-photo img { width: 100%; max-height: 380px; object-fit: cover; object-position: center; transition: transform .4s; }
.tl-photo:hover img { transform: scale(1.03); }
.tl-card h3 { font-size: 18px; font-weight: 700; }
.tl-card p { margin-top: 8px; color: var(--txt2); font-size: 14.5px; }

/* ---------- 照片墙 ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.g-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.g-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; font-size: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.8)); opacity: 0; transition: opacity .3s;
}
.g-item:hover figcaption { opacity: 1; }

/* ---------- 视频墙 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.v-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.v-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,0,0,.5); }
.v-thumb { position: relative; aspect-ratio: 16/9; background: #000 center/cover no-repeat; }
.v-play {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; color: #fff; padding-left: 5px;
  background: rgba(255,107,53,.85); box-shadow: 0 0 0 10px rgba(255,107,53,.2);
  transition: transform .25s, box-shadow .25s;
}
.v-card:hover .v-play { transform: scale(1.1); box-shadow: 0 0 0 16px rgba(255,107,53,.15); }
.v-meta { padding: 16px 18px; }
.v-meta h3 { font-size: 16px; font-weight: 700; }

/* ---------- 留言板 ---------- */
.gb-grid { display: grid; grid-template-columns: 400px 1fr; gap: 40px; align-items: start; }
.gb-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.gb-form h3 { font-size: 20px; margin-bottom: 6px; }
.gb-tip { color: var(--txt2); font-size: 13.5px; margin-bottom: 18px; }
.gb-form label { display: block; font-size: 14px; color: var(--txt2); margin-bottom: 14px; }
.req { color: var(--acc); }
.gb-form input, .gb-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: 10px; font-size: 15px;
  background: var(--bg2); border: 1px solid var(--line); color: var(--txt); font-family: inherit; outline: none;
  transition: border-color .2s;
}
.gb-form input:focus, .gb-form textarea:focus { border-color: var(--acc); }
.hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
.notice { padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.notice-ok { background: rgba(64, 192, 87, .12); border: 1px solid rgba(64,192,87,.35); color: #7ade8e; }
.notice-err { background: rgba(255, 77, 79, .1); border: 1px solid rgba(255,77,79,.35); color: #ff8a8d; }
.btn-block { width: 100%; }
.gb-note { margin-top: 12px; font-size: 12.5px; color: var(--txt2); }
.gb-list { display: flex; flex-direction: column; gap: 16px; max-height: 640px; overflow-y: auto; padding-right: 8px; }
.gb-count { font-size: 13px; color: var(--txt2); }
.gb-item { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.gb-avatar {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: #fff; background: linear-gradient(135deg, var(--acc), var(--track));
}
.gb-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.gb-head time { font-size: 12px; color: var(--txt2); }
.gb-body p { margin-top: 6px; color: #c6cdd9; font-size: 14.5px; word-break: break-word; }

/* ---------- 页脚 ---------- */
/* ---------- 友情链接 ---------- */
.friend-links { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px dashed var(--line); }
.fl-title { font-size: 13px; letter-spacing: 2px; color: var(--txt2); margin-bottom: 12px; text-transform: uppercase; }
.fl-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fl-list a {
  font-size: 13.5px; color: var(--txt2); padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: all .2s;
}
.fl-list a:hover { color: var(--acc2); border-color: rgba(255,107,53,.45); background: rgba(255,107,53,.08); }

.footer { border-top: 1px solid var(--line); padding: 40px 0; text-align: center; background: var(--bg2); }
.footer-main { font-size: 15px; color: var(--txt); }
.footer-sub { margin-top: 8px; font-size: 13px; color: var(--txt2); }
.footer-beian { margin-top: 12px; font-size: 12.5px; color: var(--txt2); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.footer-beian a { color: var(--txt2); transition: color .2s; }
.footer-beian a:hover { color: var(--acc2); }
.footer-beian .police { display: inline-flex; align-items: center; }
.footer-beian .police a { display: inline-flex; align-items: center; gap: 6px; }
.footer-beian .police-icon { width: 20px; height: 20px; display: block; flex: none; }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 7, 10, .93);
  display: flex; align-items: center; justify-content: center; padding: 30px;
}
.lightbox[hidden] { display: none; }
.lb-close {
  position: absolute; top: 18px; right: 26px; background: none; border: 0; color: #fff;
  font-size: 40px; cursor: pointer; line-height: 1;
}
.lb-content { max-width: min(1080px, 94vw); width: 100%; }
.lb-content img { margin: 0 auto; max-height: 82vh; width: auto; border-radius: 10px; box-shadow: var(--shadow); }
.lb-content video { width: 100%; max-height: 82vh; border-radius: 10px; background: #000; }
.lb-title { margin-top: 14px; text-align: center; color: var(--txt2); font-size: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 64px; right: 0; flex-direction: column; gap: 0;
    background: rgba(13, 17, 24, .98); width: 220px; padding: 12px 0;
    border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
    transform: translateX(100%); transition: transform .3s;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 13px 26px; }
  .nav-toggle { display: block; }
  .hero-flex { flex-direction: column-reverse; gap: 28px; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-avatar img { width: 150px; }
  .about-grid, .gb-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-index { font-size: 64px; top: -22px; }
  .section { padding: 64px 0; }
  .about-badge { right: 8px; }
}
