:root {
  color-scheme: light;
  --bg: #f4f7ff;
  --card: #ffffff;
  --text: #142033;
  --muted: #586274;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --border: #e5e9f2;
  --shadow: 0 12px 34px rgba(32, 58, 114, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f6f8ff 0%, #f1f4ff 100%);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: -20% auto auto -10%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.18), rgba(79, 70, 229, 0));
  pointer-events: none;
  z-index: -1;
  animation: floatGlowA 12s ease-in-out infinite;
}

.bg-glow-secondary {
  inset: auto -12% -24% auto;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0));
  animation: floatGlowB 14s ease-in-out infinite;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(79, 70, 229, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 70, 229, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 40%, #000 35%, transparent 90%);
}

.hero {
  max-width: 1080px;
  margin: 22px auto 0;
  padding: 18px 24px 44px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.hero-content {
  text-align: center;
  background: linear-gradient(135deg, #eef2ff, #f8faff);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 48px 20px;
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.8px;
  font-size: 13px;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 10px 0 10px;
  font-size: clamp(30px, 4.2vw, 46px);
}

.subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-small {
  padding: 8px 14px;
  font-size: 14px;
}

.btn-ghost {
  background: #ffffff;
  color: var(--accent);
  border: 1px solid #cfd8f8;
}

.btn-ghost:hover {
  background: #f5f7ff;
  color: var(--accent-hover);
}

.content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 6px 24px 24px;
  display: grid;
  gap: 22px;
}

.section h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.project-list {
  display: grid;
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  color: var(--muted);
  margin: 0 0 10px;
}

.card-large h2 {
  margin-top: 0;
}

.card-project p {
  margin-bottom: 14px;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 13px;
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.shot img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.shot img:hover {
  transform: scale(1.03);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 22, 38, 0.84);
  z-index: 999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
  animation: popIn 0.18s ease-out;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 28px 16px 36px;
}

@media (max-width: 640px) {
  .hero {
    padding: 14px 14px 30px;
  }

  .content {
    padding: 6px 14px 20px;
  }

  .hero-content {
    padding: 36px 16px;
  }
}

@keyframes floatGlowA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(16px, -18px, 0) scale(1.05); }
}

@keyframes floatGlowB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-14px, 12px, 0) scale(1.06); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
