/* ========== 基础 ========== */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #1c2333;
  --text-soft: #5b6478;
  --primary: #4f6df5;
  --primary-dark: #3a54d9;
  --accent: #ff7f50;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(28, 35, 51, 0.08);
  --shadow-lg: 0 16px 48px rgba(28, 35, 51, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ========== 导航 ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28, 35, 51, 0.06);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
}

.logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.nav-links { display: flex; gap: 28px; font-size: 14px; }

.nav-links a {
  color: var(--text-soft);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 150px 24px 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(79, 109, 245, 0.16), transparent 70%),
    radial-gradient(500px 280px at 85% 30%, rgba(255, 127, 80, 0.14), transparent 70%),
    radial-gradient(400px 240px at 50% 90%, rgba(46, 204, 113, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(79, 109, 245, 0.1);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: 1px;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 560px;
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 16px;
}

.hero-meta {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 14px;
}

.hero-meta .sep { margin: 0 10px; }

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 109, 245, 0.35);
}

.btn-ghost {
  border: 1.5px solid rgba(28, 35, 51, 0.15);
  color: var(--text);
}

.hero-stats {
  margin-top: 46px;
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span { font-size: 13px; color: var(--text-soft); }

/* ========== 画廊 ========== */
.gallery {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 24px 70px;
}

.section-head { text-align: center; margin-bottom: 30px; }

.section-head h2 { font-size: 28px; font-weight: 800; }

.section-head p { color: var(--text-soft); font-size: 14px; margin-top: 6px; }

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(28, 35, 51, 0.12);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: rise 0.5s ease both;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-chart { height: 250px; }

.card-body { padding: 16px 18px 20px; }

.card-title {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-num {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.card-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(79, 109, 245, 0.1);
  color: var(--primary-dark);
}

.card-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ========== 关于 ========== */
.about {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}

.about-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 38px;
}

.about-card p { color: var(--text-soft); margin-bottom: 14px; }

.about-card strong { color: var(--text); }

.tech-list {
  list-style: none;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  font-size: 14px;
  color: var(--text-soft);
}

.chip {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(79, 109, 245, 0.1);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 12px;
}

/* ========== 页脚 ========== */
.footer {
  text-align: center;
  padding: 26px 20px 34px;
  color: var(--text-soft);
  font-size: 13px;
  border-top: 1px solid rgba(28, 35, 51, 0.06);
}

/* ========== 灯箱 ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 20, 35, 0.6);
  backdrop-filter: blur(6px);
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--surface);
  border-radius: 20px;
  padding: 30px 32px 24px;
  box-shadow: var(--shadow-lg);
}

.lightbox-dialog h3 { font-size: 20px; font-weight: 800; }

.lightbox-dialog p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-soft);
}

.lightbox-chart { height: 460px; margin-top: 16px; }

.lightbox-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(28, 35, 51, 0.06);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(28, 35, 51, 0.12); }

/* ========== 响应式 ========== */
@media (max-width: 640px) {
  .hero { padding: 120px 18px 60px; }
  .hero-stats { gap: 26px; }
  .grid { grid-template-columns: 1fr; }
  .lightbox-chart { height: 340px; }
}
