/* ==========================================================================
   个人旅游相册分享 — 全局样式
   ========================================================================== */

:root {
  --ink: #1f2933;
  --ink-soft: #52606d;
  --ink-faint: #7b8794;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --line: #e6e2da;
  --accent: #e07a5f;
  --teal: #3d5a80;
  --gold: #c9a24b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(31, 41, 51, 0.08);
  --shadow-hover: 0 18px 46px rgba(31, 41, 51, 0.16);
  --maxw: 1120px;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui,
    -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head .eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 30px;
  margin: 6px 0 0;
  letter-spacing: 0.02em;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 40ch;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  color: #fff;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 70px;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(61, 90, 128, 0.16), transparent 60%),
    radial-gradient(900px 500px at 95% 5%, rgba(224, 122, 95, 0.18), transparent 60%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.18;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero p.lead {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(224, 122, 95, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(224, 122, 95, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 34px;
}

.hero-stats .stat b {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  color: var(--teal);
}

.hero-stats .stat span {
  font-size: 13px;
  color: var(--ink-faint);
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.hero-photo .badge {
  position: absolute;
  left: -14px;
  bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Album cards ---------- */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.card-media .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(31, 41, 51, 0.72);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.card-body .meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.card-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 8px;
  line-height: 1.35;
}

.card-body p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0 0 16px;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}

.card-link .arrow {
  transition: transform 0.2s ease;
}

.card:hover .card-link .arrow {
  transform: translateX(4px);
}

/* ---------- About / strip ---------- */
.about {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: center;
}

.about-photo img {
  border-radius: 22px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-text h2 {
  font-family: var(--serif);
  font-size: 30px;
  margin: 0 0 16px;
}

.about-text p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.about-features .feat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.about-features .feat i {
  font-style: normal;
  font-size: 24px;
}

.about-features .feat span {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ---------- Album detail page ---------- */
.page-hero {
  padding: 52px 0 40px;
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(224, 122, 95, 0.14), transparent 60%),
    radial-gradient(800px 400px at 0% 0%, rgba(61, 90, 128, 0.12), transparent 60%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  color: var(--line);
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 46px);
  margin: 0 0 14px;
}

.page-hero .meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.page-hero .meta-line .chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
}

.album-intro {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 16.5px;
  margin: 4px 0 0;
}

.cover {
  position: relative;
  margin-top: 26px;
}

.cover img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.cover .caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  color: #fff;
  font-family: var(--serif);
  font-size: 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  padding: 40px 4px 6px;
  border-radius: 0 0 20px 20px;
  pointer-events: none;
}

/* ---------- Gallery / lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery figure:hover img {
  transform: scale(1.05);
}

.gallery figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 16, 22, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.28s ease;
}

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

.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox .lb-caption {
  color: #cfd6df;
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
}

.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lb-prev {
  left: 18px;
}

.lb-next {
  right: 18px;
}

.lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  transform: none;
  width: 44px;
  height: 44px;
  font-size: 22px;
}

/* ---------- Prev / next + tags ---------- */
.album-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 46px;
}

.album-nav a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.album-nav a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.album-nav .dir {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.album-nav b {
  font-family: var(--serif);
  font-size: 18px;
}

.album-nav .next {
  text-align: right;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.tags .tag {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- CTA band ---------- */
.cta {
  padding: 70px 0;
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% 120%, rgba(224, 122, 95, 0.22), transparent 70%);
}

.cta h2 {
  font-family: var(--serif);
  font-size: 32px;
  margin: 0 0 12px;
}

.cta p {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 26px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cbd2da;
  padding: 54px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-top p {
  font-size: 14px;
  color: #98a1ad;
  max-width: 42ch;
  margin: 0;
}

.footer-top h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 14px;
}

.footer-top ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-top a {
  color: #aab3bf;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-top a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 26px;
  text-align: center;
  font-size: 13.5px;
  color: #8a93a0;
}

.footer-bottom .beian {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aab3bf;
}

.footer-bottom .beian:hover {
  color: #fff;
}

.footer-bottom .beian img,
.footer-bottom .beian svg {
  vertical-align: middle;
}

.footer-bottom .sep {
  margin: 0 10px;
  opacity: 0.4;
}

.footer-bottom p {
  margin: 8px 0 0;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 22px;
}

.notfound .code {
  font-family: var(--serif);
  font-size: 90px;
  color: var(--accent);
  line-height: 1;
}

.notfound h1 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 8px 0;
}

.notfound p {
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .album-grid,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 44px 0;
  }

  .album-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .album-nav {
    grid-template-columns: 1fr;
  }

  .album-nav .next {
    text-align: left;
  }

  .hero-stats {
    gap: 24px;
  }

  .nav-links a:not(.is-active) {
    display: none;
  }

  .nav-links a.is-active {
    font-size: 15px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}
