/* =====================================================================
   style.css — 骆浩波个人作品集 · 前端样式
   设计风格：暗色系 + 霓虹强调色（电光蓝 / 酸性绿 / 霓虹紫）
   ===================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  /* 背景色 */
  --bg: #06060a;
  --bg-2: #0b0b14;
  --bg-3: #10101c;

  /* 文字 */
  --text: #f4f5f9;
  --text-dim: #a0a2b5;
  --text-faint: #6b6d80;

  /* 霓虹强调色 */
  --blue: #00d4ff;      /* 电光蓝（主强调） */
  --green: #b6ff2e;     /* 酸性绿（点缀） */
  --purple: #b026ff;    /* 霓虹紫（渐变过渡） */
  --violet: #7c3aed;

  /* 渐变 */
  --grad: linear-gradient(135deg, #00d4ff 0%, #7c3aed 55%, #b026ff 100%);

  /* 玻璃 / 边框 */
  --glass: rgba(255, 255, 255, 0.03);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* 圆角与间距 */
  --radius: 18px;
  --radius-sm: 10px;
  --gap: clamp(20px, 4vw, 48px);
  --section-pad: clamp(72px, 12vh, 140px);
}

/* ---------- 基础重置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- 全局噪点纹理 ---------- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(24px, 5vw, 72px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 6, 10, 0.7);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-logo span {
  color: var(--blue);
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.8);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.6);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: float 14s ease-in-out infinite;
}

.orb-1 {
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.55), transparent 70%);
  top: -10%;
  left: -8%;
}

.orb-2 {
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(176, 38, 255, 0.5), transparent 70%);
  bottom: -12%;
  right: -8%;
  animation-delay: -5s;
}

.orb-3 {
  width: 28vw;
  height: 28vw;
  background: radial-gradient(circle, rgba(182, 255, 46, 0.3), transparent 70%);
  top: 40%;
  left: 55%;
  animation-delay: -9s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4vw, 3vh) scale(1.1); }
  66% { transform: translate(-3vw, -2vh) scale(0.95); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 18px;
  border: 1px solid rgba(182, 255, 46, 0.35);
  border-radius: 999px;
  background: rgba(182, 255, 46, 0.06);
}

.hero-name {
  font-size: clamp(3.2rem, 13vw, 10rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #b8c0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
  text-shadow: 0 0 80px rgba(0, 212, 255, 0.15);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.12em;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 212, 255, 0.5);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  color: var(--blue);
}

/* ---------- 滚动提示 ---------- */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- 通用 Section ---------- */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--section-pad) clamp(20px, 5vw, 48px) 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-index {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.sub-title {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* ---------- 玻璃卡片 ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 40px);
}

/* ---------- 关于我 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--gap);
}

.about-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
}

.photo-frame {
  width: min(240px, 100%);
  aspect-ratio: 5 / 7; /* 证件照比例（宽:高） */
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(91, 143, 255, 0.55);
  box-shadow: 0 0 32px rgba(91, 143, 255, 0.22), 0 0 8px rgba(91, 143, 255, 0.28);
  background: #16121f;
}

.photo-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-caption {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.about-hobbies {
  grid-column: 1 / -1;
}

.about-intro h3 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.about-intro-text {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.about-facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.about-facts li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
}

.about-facts .label {
  color: var(--text-faint);
  flex-shrink: 0;
  width: 48px;
}

.edu-item {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.edu-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.edu-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.edu-item .edu-meta {
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 8px;
}

.edu-item p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.about-eval p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--glass-strong);
  font-size: 0.88rem;
  transition: all 0.25s ease;
}

.chip:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ---------- 技能 ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.skill-item {
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
}

.skill-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.skill-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.skill-desc {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.skill-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.6);
}

/* ---------- 作品 Tabs ---------- */
.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab {
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab:hover {
  color: var(--text);
  border-color: var(--blue);
}

.tab.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
}

/* ---------- 作品网格 ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.work-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.2);
}

.work-cover {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-3);
}

/* 设计作品：A3/A4 竖版比例 */
.work-card[data-category="design"] .work-cover {
  aspect-ratio: 210 / 297;
}

/* 动态作品：封面同样为竖版展板 */
.work-card[data-category="video"] .work-cover {
  aspect-ratio: 210 / 297;
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-cover img {
  transform: scale(1.06);
}

.work-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-card:hover .work-play {
  opacity: 1;
}

.work-play span {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.work-info {
  padding: 20px 22px 24px;
}

.work-info h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
  line-height: 1.35;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.work-tags span {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--blue);
  background: rgba(0, 212, 255, 0.06);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* 空状态 */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-faint);
  padding: 60px 0;
  font-size: 0.95rem;
}

/* ---------- 奖状 ---------- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.award-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.4s ease;
}

.award-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 36px rgba(176, 38, 255, 0.18);
}

/* 奖状保持 A4 竖版比例 */
.award-card .award-img {
  aspect-ratio: 210 / 297;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.award-card:hover .award-img img {
  transform: scale(1.04);
}

.award-info {
  padding: 16px 18px 20px;
}

.award-info h3 {
  font-size: 0.98rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.award-info .award-meta {
  font-size: 0.78rem;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--blue), var(--purple), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--blue);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.7);
}

.timeline-card {
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
  transition: border-color 0.3s ease;
}

.timeline-card:hover {
  border-color: var(--blue);
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.timeline-head h3 {
  font-size: 1.1rem;
}

.timeline-org {
  font-size: 0.85rem;
  color: var(--blue);
}

.timeline-date {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.timeline-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.type-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

.type-badge.work { background: rgba(0, 212, 255, 0.12); color: var(--blue); }
.type-badge.education { background: rgba(182, 255, 46, 0.12); color: var(--green); }
.type-badge.activity { background: rgba(176, 38, 255, 0.12); color: var(--purple); }

/* ---------- 联系方式 ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  transition: border-color 0.3s ease;
}

.contact-item:hover {
  border-color: var(--blue);
}

.contact-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--glass-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--blue);
}

.contact-item .c-label {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.contact-item .c-value {
  font-size: 1.02rem;
  font-weight: 600;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: flex-start;
}

.contact-socials:empty {
  display: none;
}

.social-link {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--glass-strong);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.social-link:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-3px);
}

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 40px;
}

.modal-body h2 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.modal-body .work-desc {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.modal-video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  margin-bottom: 24px;
}

.modal-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.modal-gallery img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ---------- Footer ---------- */
.footer {
  max-width: 1280px;
  margin: 0 auto;
  margin-top: var(--section-pad);
  padding: 40px clamp(20px, 5vw, 48px) 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-admin {
  color: var(--text-faint);
  transition: color 0.25s ease;
}

.footer-admin:hover {
  color: var(--blue);
}

/* ---------- 滚动进入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 84px;
    right: 16px;
    flex-direction: column;
    gap: 0;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding: 14px 22px; font-size: 1.05rem; }

  .nav-toggle { display: block; }

  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .modal-body { padding: 26px 20px; }
  .modal-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .works-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .about-facts { grid-template-columns: 1fr; }
}

/* =====================================================================
   自定义趣味光标（仅桌面端，含精细指针设备）
   ===================================================================== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 99999;
  will-change: transform;
}

html.custom-cursor .cursor-dot,
html.custom-cursor .cursor-ring { opacity: 1; }

/* 启用自定义光标时隐藏原生光标 */
html.custom-cursor,
html.custom-cursor * { cursor: none !important; }

.cursor-dot {
  width: 9px;
  height: 9px;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue), 0 0 30px rgba(0, 212, 255, 0.8);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(182, 255, 46, 0.9);
  box-shadow: 0 0 14px rgba(182, 255, 46, 0.35), inset 0 0 10px rgba(182, 255, 46, 0.2);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cursor-ring.is-hover {
  width: 62px;
  height: 62px;
  border-color: var(--purple);
  box-shadow: 0 0 22px rgba(176, 38, 255, 0.55), inset 0 0 16px rgba(176, 38, 255, 0.3);
}

.cursor-dot.is-hover {
  background: var(--green);
  box-shadow: 0 0 14px var(--green), 0 0 32px rgba(182, 255, 46, 0.9);
}

/* =====================================================================
   图片放大灯箱（缩放 / 平移）
   ===================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  background: rgba(4, 4, 10, 0.96);
  backdrop-filter: blur(12px);
}

.lightbox.open { display: block; }

.lightbox-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}

.lightbox-stage:active { cursor: grabbing; }

.lightbox-stage img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
  user-select: none;
  -webkit-user-drag: none;
  transform: translate(0px, 0px) scale(1);
  transform-origin: center center;
  will-change: transform;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.lightbox-close:hover { border-color: var(--blue); color: var(--blue); }

.lightbox-toolbar {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
  background: rgba(10, 10, 18, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px;
  backdrop-filter: blur(10px);
}

.lightbox-toolbar button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-toolbar button:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 212, 255, 0.1);
}

.lightbox-hint {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

/* =====================================================================
   UI 丰富化增强
   ===================================================================== */
/* 区块标题下的渐变发光短线 */
.section-head {
  position: relative;
  padding-bottom: 24px;
}

.section-head::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 68px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.7);
}

/* 作品卡片封面上的流动高光 */
.work-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.work-card:hover .work-cover::after {
  transform: translateX(120%);
}

/* 弹窗内可放大的图片：悬停提示 */
.modal-gallery img.zoomable {
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-gallery img.zoomable:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.35);
}

/* 标签页激活态呼吸光晕 */
.tab.active {
  animation: tabGlow 2.4s ease-in-out infinite;
}

@keyframes tabGlow {
  0%, 100% { box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4); }
  50% { box-shadow: 0 6px 34px rgba(0, 212, 255, 0.55); }
}
