:root {
  --blue: #2f78dc;
  --blue-dark: #205bb0;
  --ink: #222936;
  --muted: #697383;
  --line: #e8edf3;
  --paper: #ffffff;
  --shadow: 0 28px 80px rgba(25, 67, 120, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255,255,255,.1) 25%, transparent 25%) 0 0 / 190px 190px,
    linear-gradient(315deg, rgba(255,255,255,.08) 25%, transparent 25%) 0 0 / 230px 230px,
    #347dde;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.page-shell {
  width: min(1280px, calc(100% - 56px));
  min-height: calc(100vh - 72px);
  margin: 36px auto;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.site-header {
  min-height: 104px;
  padding: 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 750; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; color: white; background: var(--blue); font-size: 17px;
}
.site-nav { display: flex; gap: 34px; align-items: center; }
.site-nav a { color: #707784; font-size: 15px; position: relative; padding: 10px 0; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--blue);
}
.menu-toggle { display: none; border: 0; background: transparent; font-size: 24px; }
.hero {
  min-height: 545px;
  padding: 72px 9%;
  display: grid;
  grid-template-columns: minmax(260px, 410px) minmax(340px, 1fr);
  align-items: center;
  gap: 9%;
}
.portrait-wrap {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 18px solid #f6f8fb;
  box-shadow: 0 16px 45px rgba(24, 43, 71, .2);
}
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.03em; }
h1 { font-size: clamp(42px, 5.1vw, 68px); }
h2 { font-size: clamp(30px, 3.2vw, 44px); }
h3 { font-size: 24px; }
.hero-copy > p:not(.eyebrow) { max-width: 610px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex; min-height: 48px; padding: 10px 24px; align-items: center;
  justify-content: center; border: 2px solid #d9e0e9; border-radius: 999px;
  font-weight: 700; transition: .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--blue); }
.button.primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.section { padding: 70px 54px 84px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.section-intro { max-width: 520px; margin: 0; color: var(--muted); }
.soft-section { background: #f7faff; }
.text-link { color: var(--blue); font-weight: 700; }
.keyword-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.keyword-card { padding: 25px; border: 1px solid #dfe8f3; border-radius: 18px; background: #fff; }
.keyword-card > span { color: var(--blue); font-weight: 800; font-size: 13px; letter-spacing: .12em; }
.keyword-card h3 { margin-top: 14px; font-size: 22px; }
.keyword-card p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.story-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 18px; }
.story-card {
  min-height: 300px; position: relative; overflow: hidden; border-radius: 18px;
  background: #d8e0e8;
}
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.story-card::after {
  content: ""; position: absolute; inset: 42% 0 0;
  background: linear-gradient(transparent, rgba(7, 18, 33, .82));
}
.story-card span {
  position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px;
  color: white; font-size: 21px; font-weight: 760; line-height: 1.25;
}
.story-card small { display: block; margin-bottom: 6px; font-size: 13px; opacity: .82; font-weight: 650; }
.story-card:hover img { transform: scale(1.035); }
.journal-list { border-top: 1px solid var(--line); }
.journal-list a { display: grid; grid-template-columns: 72px minmax(220px,.85fr) 1fr; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.journal-list a:hover strong { color: var(--blue); }
.journal-list span { color: var(--blue); font-size: 13px; font-weight: 800; }
.journal-list strong { font-size: 18px; transition: color .2s ease; }
.journal-list small { color: var(--muted); font-size: 14px; }
.number-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 42px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.number-strip div { padding: 24px; text-align: center; border-right: 1px solid var(--line); }
.number-strip div:last-child { border-right: 0; }
.number-strip strong { display: block; color: var(--blue); font-size: 32px; line-height: 1.1; }
.number-strip span { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; }
.site-footer {
  padding: 26px 54px; display: flex; justify-content: space-between;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.site-footer a:hover { color: var(--blue); }
.page-title {
  padding: 54px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, #f8fbff);
}
.page-title p { max-width: 720px; margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.content-section { padding: 48px 54px 78px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-button {
  border: 1px solid #dce4ee; background: #fff; color: #637084;
  padding: 8px 16px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer;
}
.filter-button:hover, .filter-button.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  appearance: none; padding: 0; border: 0; min-height: 260px; position: relative;
  overflow: hidden; border-radius: 16px; background: #e8edf3; cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item span {
  position: absolute; left: 13px; bottom: 13px; z-index: 1;
  background: rgba(255,255,255,.93); padding: 5px 11px; border-radius: 999px;
  color: #394252; font-size: 13px; font-weight: 700;
}
.gallery-item[hidden] { display: none; }
.lightbox {
  border: 0; padding: 0; background: transparent; width: min(94vw, 1100px);
  max-width: none; color: #fff;
}
.lightbox::backdrop { background: rgba(8, 14, 24, .9); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 100%; max-height: 82vh; margin: auto; border-radius: 12px; box-shadow: 0 18px 60px #000; }
.lightbox figcaption { margin-top: 12px; text-align: center; }
.lightbox-close {
  position: fixed; top: 18px; right: 22px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: #fff; color: #202733;
  font-size: 24px; cursor: pointer;
}
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card {
  display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 18px;
  background: white; transition: transform .22s ease, box-shadow .22s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(28, 57, 95, .12); }
.blog-cover { aspect-ratio: 16 / 9; overflow: hidden; background: #e8edf3; }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-copy { padding: 22px 24px 26px; }
.blog-meta { margin: 0 0 8px; color: var(--blue); font-size: 13px; font-weight: 750; }
.blog-card h2 { font-size: 24px; }
.blog-card p:last-child { margin: 12px 0 0; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 54px; align-items: center; }
.about-photo { overflow: hidden; border-radius: 22px; box-shadow: 0 18px 46px rgba(27,53,88,.16); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy p { color: var(--muted); }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.fact-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.fact-card b { display: block; margin-bottom: 6px; }
.fact-card span { color: var(--muted); font-size: 14px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps-grid article { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.steps-grid article > span { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 800; }
.steps-grid h3 { font-size: 21px; }
.steps-grid p { margin: 10px 0 0; color: var(--muted); }
.topic-grid, .album-intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic-grid a, .album-intro-grid a { padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s ease, transform .2s ease; }
.topic-grid a:hover, .album-intro-grid a:hover { transform: translateY(-2px); border-color: var(--blue); }
.topic-grid b, .album-intro-grid strong { display: block; margin-bottom: 6px; font-size: 18px; }
.topic-grid span, .album-intro-grid span { color: var(--muted); font-size: 14px; }
.album-guide { border-bottom: 1px solid var(--line); background: #f7faff; }
.gallery-section { padding-top: 38px; }
.contact-card {
  max-width: 760px; margin: 0 auto; padding: 48px; text-align: center;
  border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg,#fff,#f5f9ff);
}
.mail-link { display: inline-block; margin-top: 18px; color: var(--blue); font-size: clamp(22px,4vw,38px); font-weight: 800; }
.article-wrap { max-width: 850px; margin: 0 auto; }
.article-header { margin-bottom: 30px; }
.article-header h1 { font-size: clamp(36px,5vw,58px); }
.article-meta { margin: 12px 0 0; color: var(--muted); }
.article-cover { margin: 0 0 38px; overflow: hidden; border-radius: 20px; background: #e8edf3; }
.article-cover img { width: 100%; max-height: 620px; object-fit: contain; background: #f2f5f8; }
.article-body { font-size: 18px; line-height: 1.95; }
.article-body p { margin: 0 0 1.25em; }
.back-link { display: inline-flex; margin-bottom: 26px; color: var(--blue); font-weight: 700; }
.empty-note { color: var(--muted); }

@media (max-width: 900px) {
  .page-shell { width: min(100% - 28px, 760px); margin: 14px auto; border-radius: 20px; }
  .site-header { min-height: 82px; padding: 0 24px; position: relative; }
  .menu-toggle { display: block; cursor: pointer; }
  .site-nav {
    display: none; position: absolute; z-index: 10; top: 82px; left: 0; right: 0;
    padding: 14px 24px 22px; flex-direction: column; align-items: stretch; gap: 2px;
    background: white; border-bottom: 1px solid var(--line); box-shadow: 0 18px 28px rgba(20,40,70,.12);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 0; }
  .hero { padding: 52px 28px; grid-template-columns: 1fr; gap: 38px; text-align: center; }
  .portrait-wrap { width: min(330px, 84vw); margin: auto; }
  .hero-copy > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .section { padding: 52px 24px 62px; }
  .page-title { padding: 42px 24px; }
  .content-section { padding: 36px 24px 62px; }
  .section-heading { align-items: start; flex-direction: column; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card { min-height: 330px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 480px; }
  .fact-grid { grid-template-columns: 1fr; }
  .keyword-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-list a { grid-template-columns: 62px 1fr; gap: 12px; }
  .journal-list small { grid-column: 2; }
  .number-strip { grid-template-columns: repeat(2, 1fr); }
  .number-strip div:nth-child(2) { border-right: 0; }
  .number-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps-grid, .topic-grid, .album-intro-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 22px 24px; }
}

@media (max-width: 520px) {
  body { background: #fff; }
  .page-shell { width: 100%; margin: 0; border-radius: 0; box-shadow: none; }
  .brand { font-size: 18px; }
  .hero { padding: 42px 22px 50px; }
  h1 { font-size: 40px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .story-card { min-height: 280px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { min-height: 310px; }
  .contact-card { padding: 34px 20px; }
  .article-body { font-size: 17px; }
  .keyword-grid { grid-template-columns: 1fr; }
  .number-strip { grid-template-columns: 1fr; }
  .number-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .number-strip div:last-child { border-bottom: 0; }
  .journal-list a { grid-template-columns: 1fr; }
  .journal-list small { grid-column: 1; }
  .site-footer { flex-direction: column; gap: 4px; }
}
