/* 全站颜色：浅色是暖纸色，深色是深松绿。 */
:root {
  --page: #f5f3ec;
  --surface: #fffefb;
  --soft: #e9ede6;
  --ink: #25372c;
  --muted: #657267;
  --line: #d9dfd5;
  --accent: #a06e53;
  --button: #2b4435;
  --button-text: #fffdf6;
  --header: rgba(245, 243, 236, 0.94);
}

:root[data-theme="dark"] {
  --page: #17231c;
  --surface: #213127;
  --soft: #1d2b22;
  --ink: #f5f3e9;
  --muted: #c0cabc;
  --line: #395044;
  --accent: #d8a986;
  --button: #d8a986;
  --button-text: #201d18;
  --header: rgba(23, 35, 28, 0.94);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Arial, "Microsoft YaHei", sans-serif; line-height: 1.75; transition: background 0.25s, color 0.25s; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
figure, p { margin: 0; }
section[id] { scroll-margin-top: 86px; }
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 118px; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 30; padding: 10px 16px; background: var(--ink); color: var(--page); }
.skip-link:focus { top: 10px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.18em; }
h1, h2, h3 { margin: 0; font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif; font-weight: 600; letter-spacing: 0.01em; }
h2 { font-size: clamp(38px, 4.7vw, 62px); line-height: 1.2; }

/* 导航 */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--header); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 185px; font-size: 17px; font-weight: 800; line-height: 1.1; }
.brand-symbol { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; font-family: "Songti SC", SimSun, serif; font-size: 23px; font-weight: 400; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 0.15em; }
.navigation { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 34px); }
.navigation a { color: var(--muted); font-size: 13px; font-weight: 700; transition: color 0.2s; }
.navigation a:hover, .navigation a:focus-visible { color: var(--accent); }
.header-actions { display: flex; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 20px; transition: background 0.2s, transform 0.2s; }
.icon-button:hover { background: var(--soft); transform: translateY(-2px); }
.menu-button { display: none; }

/* 首页 */
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; align-items: stretch; gap: clamp(35px, 5vw, 90px); min-height: 680px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding-block: 75px; }
.hero .eyebrow span { padding-inline: 5px; }
.hero h1 { margin: 28px 0 25px; font-size: clamp(45px, 5.1vw, 76px); line-height: 1.32; letter-spacing: -0.045em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-intro { max-width: 525px; color: var(--muted); font-size: 16px; line-height: 2; }
.hero-links { display: flex; align-items: center; gap: 30px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 52px; padding: 11px 23px; border-radius: 3px; font-size: 13px; font-weight: 800; transition: transform 0.2s, background 0.2s; }
.button:hover { transform: translateY(-3px); }
.button-solid { background: var(--button); color: var(--button-text); }
.text-link { border-bottom: 1px solid var(--ink); padding-bottom: 4px; font-size: 13px; font-weight: 700; transition: color 0.2s; }
.text-link:hover { color: var(--accent); }
.hero-footnote { display: flex; align-items: center; gap: 14px; margin-top: 84px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.13em; }
.hero-footnote .line { width: 40px; height: 1px; background: var(--accent); }
.hero-visual { position: relative; align-self: stretch; min-height: 680px; }
.hero-visual img { width: 100%; height: 100%; min-height: 680px; object-fit: cover; object-position: center 60%; }
.hero-visual figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; padding: 24px 28px; background: linear-gradient(transparent, rgba(10, 25, 16, 0.66)); color: white; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
.field-strip { border-block: 1px solid var(--line); background: var(--surface); }
.field-strip .container { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 5vw, 70px); min-height: 85px; color: var(--muted); font-family: "Songti SC", SimSun, serif; font-size: 16px; letter-spacing: 0.1em; }
.field-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* 关于我 */
.about-layout { display: block; max-width: 850px; }
.about-photo { position: relative; padding: 0 34px 30px 0; }
.about-photo::after { position: absolute; z-index: -1; top: 30px; right: 0; bottom: 0; left: 30px; border: 1px solid var(--accent); content: ""; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 46% center; }
.about-photo figcaption { margin-top: 11px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.about-copy h2 { margin: 15px 0 29px; }
.about-copy .large-copy { max-width: 590px; margin-bottom: 21px; font-family: "Songti SC", SimSun, serif; font-size: clamp(23px, 2.5vw, 31px); line-height: 1.65; }
.about-copy > p:not(.eyebrow, .large-copy) { max-width: 590px; color: var(--muted); font-size: 15px; line-height: 2; }
.about-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 40px; padding-top: 27px; border-top: 1px solid var(--line); }
.about-topics div > span { display: block; margin-bottom: 10px; color: var(--accent); font-size: 11px; }
.about-topics strong { display: block; font-family: "Songti SC", SimSun, serif; font-size: 18px; }
.about-topics p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* 作品 */
.work-section { background: var(--soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 43px; }
.section-heading h2 { margin-top: 14px; }
.section-heading > p { max-width: 280px; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.heading-mark { color: var(--accent); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work-card { overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform 0.25s, box-shadow 0.25s; }
.work-card:hover { transform: translateY(-5px); box-shadow: 0 20px 35px rgba(19, 43, 28, 0.1); }
.work-cover { width: 100%; height: 250px; object-fit: cover; }
.work-card:nth-child(1) .work-cover { object-position: center 54%; }
.work-card:nth-child(2) .work-cover { object-position: center 64%; }
.work-body { padding: 27px 27px 30px; }
.work-number { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0.15em; }
.work-body h3 { margin: 10px 0 8px; font-size: 29px; }
.work-body > p { min-height: 54px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.document-links { margin-top: 18px; border-top: 1px solid var(--line); }
.document-links a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; transition: color 0.2s; }
.document-links a:hover, .card-link:hover { color: var(--accent); }
.document-links small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; }
.document-links b { font-size: 18px; font-weight: 400; }
.card-link { display: inline-flex; align-items: center; gap: 20px; margin-top: 23px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 700; }

/* 影像 */
.gallery-section { background: var(--page); }
.reading-section { background: var(--surface); }
.fitness-section { background: var(--soft); }
.food-section { background: var(--page); }
.book-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 16px; }
.book-item { min-width: 0; }
.book-item img { width: 100%; aspect-ratio: 0.69; object-fit: cover; box-shadow: 0 8px 20px rgba(27, 37, 29, 0.12); }
.book-item figcaption { padding-top: 10px; font-size: 12px; font-weight: 700; line-height: 1.5; }
.subsection-title { margin: 72px 0 24px; font-size: 28px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.photo-item { overflow: hidden; background: var(--surface); }
.photo-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.5s; }
.photo-item:hover img { transform: scale(1.035); }
.photo-item figcaption { padding: 11px 3px 0; color: var(--muted); font-size: 12px; }
.food-grid .photo-item img { aspect-ratio: 4 / 3; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 245px; gap: 16px; }
.gallery-item { position: relative; grid-column: span 3; overflow: hidden; background: var(--soft); }
.gallery-large { grid-column: span 6; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; padding: 25px 17px 13px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.58)); color: white; font-size: 11px; font-weight: 700; }
.gallery-item figcaption span { opacity: 0.75; }
.gallery-large img { object-position: center 55%; }
.gallery-item:nth-child(3) img { object-position: center 60%; }
.gallery-item:nth-child(4) img { object-position: center 42%; }

/* 联系方式 */
.contact-section { padding-block: 105px; background: linear-gradient(90deg, rgba(20, 40, 29, 0.94), rgba(20, 40, 29, 0.83)), url("images/water.jpg") center / cover; color: #f8f7ed; }
.contact-layout { display: grid; grid-template-columns: 1fr 0.9fr; align-items: center; gap: 90px; }
.contact-section .eyebrow { color: #d6ae8d; }
.contact-section h2 { margin: 15px 0 22px; font-size: clamp(41px, 5vw, 68px); }
.contact-section p:not(.eyebrow) { color: #d2ded0; font-size: 14px; }
.contact-methods { border-top: 1px solid rgba(255, 255, 255, 0.3); }
.contact-methods a, .contact-methods button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 22px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: inherit; text-align: left; transition: color 0.2s; }
.contact-methods a:hover, .contact-methods button:hover { color: #e3b894; }
.contact-methods span { font-size: 11px; letter-spacing: 0.07em; }
.contact-methods small { display: block; margin-top: 6px; font-size: 17px; font-weight: 700; letter-spacing: 0; }
.contact-methods b { font-size: 13px; font-weight: 600; }
.copy-status { display: block; min-height: 24px; margin-top: 8px; color: #e3b894; font-size: 12px; }
.site-footer { background: #14251b; color: #cad5c9; }
.footer-inner { display: flex; justify-content: space-between; gap: 25px; padding-block: 26px; font-size: 11px; }
.footer-inner a:hover { color: #e3b894; }

/* 平板与手机 */
@media (max-width: 1050px) {
  .navigation { gap: 15px; }
  .brand { min-width: 160px; }
  .hero-grid { gap: 30px; }
  .hero h1 { font-size: clamp(42px, 5vw, 61px); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card:last-child { grid-column: 1 / -1; }
  .work-card:last-child .work-cover { height: 300px; }
  .contact-layout { gap: 45px; }
  .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1050px) {
  .header-inner { min-height: 68px; }
  .navigation { display: none; position: absolute; top: 68px; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); background: var(--page); box-shadow: 0 18px 25px rgba(0, 0, 0, 0.08); }
  .navigation.open { display: flex; }
  .navigation a { padding: 10px 0; }
  .menu-button { display: grid; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 40px, 1200px); }
  .section { padding-block: 76px; }
  .header-inner { min-height: 68px; }
  .brand { min-width: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-block: 65px 45px; }
  .hero h1 { margin-block: 22px; font-size: clamp(42px, 8vw, 62px); }
  .hero-footnote { margin-top: 46px; }
  .hero-visual, .hero-visual img { min-height: 0; height: 430px; }
  .field-strip .container { flex-wrap: wrap; gap: 12px 18px; min-height: 74px; font-size: 13px; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 42px; }
  .about-photo { max-width: 510px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card:last-child { grid-column: auto; }
  .work-cover, .work-card:last-child .work-cover { height: 240px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 28px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; gap: 10px; }
  .gallery-item { grid-column: span 1; }
  .gallery-large { grid-column: span 2; grid-row: span 2; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .contact-section { padding-block: 80px; }
}

@media (max-width: 480px) {
  .brand { font-size: 15px; }
  .brand-symbol { width: 35px; height: 35px; font-size: 20px; }
  .brand small { font-size: 8px; }
  .hero h1 { font-size: clamp(34px, 9.3vw, 40px); }
  .hero-visual, .hero-visual img { height: 370px; }
  .about-topics { grid-template-columns: 1fr; gap: 18px; }
  .about-topics div { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; }
  .about-topics div > span { grid-row: span 2; }
  .about-topics p { margin: 0; }
  .gallery-grid { grid-auto-rows: 170px; }
  .gallery-large { grid-row: span 2; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .contact-methods small { font-size: 15px; overflow-wrap: anywhere; }
  .footer-inner span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
