/* ============================================================
   小瑶 · 个人主页
   文艺杂志风 — 配色采样自 AI 插画：
   奶油底 #F3E2CE / 晚霞橙 #C48852 / 天空蓝 #A6BABB / 暖墨 #786F5E
   ============================================================ */

:root {
  /* ---- 颜色（全部来自插画取样）---- */
  --paper:        #F3E2CE;   /* 奶油纸底 */
  --paper-deep:   #EBD7BE;   /* 深一档纸色，用于分栏 */
  --paper-light:  #FAF1E4;   /* 亮纸，卡片底 */
  --ink:          #4A4338;   /* 正文墨色（比取样更深，保证可读性） */
  --ink-soft:     #786F5E;   /* 辅助文字（插画里的暖灰墨） */
  --ink-faint:    #A79C86;   /* 更弱的说明文字 */
  --sunset:       #C48852;   /* 晚霞橙 —— 主强调色 */
  --sunset-deep:  #A96B39;   /* 橙色深色版（描边用，不可用纯黑） */
  --sky:          #A6BABB;   /* 天空蓝 —— 次强调色 */
  --sky-deep:     #7D9597;   /* 蓝色深色版（描边用） */
  --leaf:         #8A9A6B;   /* 植物绿 */

  /* ---- 字体 ---- */
  --f-title: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', '楷体', serif;  /* 大标题：马善政楷书 */
  --f-serif: 'ZCOOL XiaoWei', 'STSong', 'SimSun', serif;           /* 小标题：站酷小薇 */
  --f-body:  'Long Cang', 'STKaiti', 'KaiTi', '楷体', serif;      /* 正文+手写标注：龙藏 */
  --f-kai:   'STKaiti', 'KaiTi', '楷体', 'Kaiti SC', serif;       /* 系统楷体备用 */

  /* ---- 字号阶梯 ---- */
  --t-xs:   14px;
  --t-sm:   16px;
  --t-base: 18px;
  --t-md:   21px;
  --t-lg:   28px;
  --t-xl:   40px;
  --t-2xl:  58px;
  --t-3xl:  84px;

  /* ---- 间距 ---- */
  --gap-section: 110px;
  --pad-x: clamp(24px, 6vw, 96px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  /* 纸张颗粒感 */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.28) 0, transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,.028) 0, transparent 45%);
  background-attachment: fixed;
}

/* 纸张纹理叠加层 */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- 通用 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad-x); }

.section { padding: var(--gap-section) 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 52px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(122,111,94,.28);
}

.sec-num {
  font-family: var(--f-serif);
  font-size: var(--t-md);
  color: var(--sunset);
  letter-spacing: .06em;
}

.sec-title {
  font-family: var(--f-title);
  font-size: var(--t-xl);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .04em;
  line-height: 1.2;
}

.sec-note {
  margin-left: auto;
  font-size: var(--t-sm);
  color: var(--ink-faint);
  font-family: var(--f-body);
  white-space: nowrap;
}

/* 封面手绘下划线 */
.ul-hand {
  position: relative;
  display: inline-block;
}
.ul-hand::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%; bottom: -4px;
  height: 9px;
  background: no-repeat center/100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 40 3, 80 10, 120 6 S 180 4, 198 7' stroke='%23C48852' stroke-width='3.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: .85;
}

/* ---------- 顶部导航 ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,226,206,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122,111,94,.22);
}
.nav {
  display: flex; align-items: center; gap: 34px;
  max-width: 1180px; margin: 0 auto;
  padding: 16px var(--pad-x);
}
.nav-brand {
  font-family: var(--f-title);
  font-size: var(--t-md);
  color: var(--ink);
  letter-spacing: .1em;
  margin-right: auto;
}
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  font-family: var(--f-body);
  font-size: var(--t-sm);
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: .12em;
  white-space: nowrap;
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content:''; position:absolute; left:50%; right:50%; bottom:-6px;
  height:2px; background:var(--sunset);
  transition: left .28s, right .28s;
}
.nav-links a:hover { color: var(--sunset-deep); }
.nav-links a:hover::after { left:0; right:0; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 70px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--f-serif);
  font-size: var(--t-sm);
  color: var(--sky-deep);
  letter-spacing: .34em;
  margin-bottom: 22px;
}
.hero-name {
  font-family: var(--f-title);
  font-size: var(--t-3xl);
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.hero-name-en {
  font-family: var(--f-serif);
  font-size: var(--t-sm);
  color: var(--ink-faint);
  letter-spacing: .5em;
  margin-bottom: 30px;
}
.hero-slogan {
  font-family: var(--f-title);
  font-size: var(--t-lg);
  color: var(--sunset-deep);
  line-height: 1.7;
  margin-bottom: 26px;
}
.hero-intro {
  font-size: var(--t-base);
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: 40px;
  line-height: 2.1;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  font-family: var(--f-body);
  font-size: var(--t-sm);
  color: var(--ink-soft);
  padding: 7px 20px;
  background: var(--paper-light);
  border: 1.5px solid rgba(166,186,187,.85);
  border-radius: 999px;
  transition: transform .25s, background .25s;
}
.tag:hover { transform: translateY(-3px); background: #fff; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(122,111,94,.16));
}
.hero-figure figcaption {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  color: var(--ink-faint);
  text-align: right;
  margin-top: 12px;
  font-style: italic;
}
/* 角落涂鸦 */
.doodle-star {
  position: absolute; top: -14px; right: 12px;
  width: 52px; opacity: .9;
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 01 个人介绍 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p { margin-bottom: 22px; color: var(--ink-soft); line-height: 2.15; }
/* 首字下沉只作用于「关于我」正文首段，不影响引文块 */
.about-text > p:first-of-type::first-letter {
  font-family: var(--f-title);
  font-size: 46px;
  line-height: 1;
  margin-right: 8px;
  color: var(--sunset-deep);
}
.about-quote {
  margin-top: 30px;
  padding: 26px 30px;
  background: var(--paper-light);
  border-left: 4px solid var(--sunset);
  border-radius: 0 14px 14px 0;
}
.about-quote p {
  font-family: var(--f-title);
  font-size: var(--t-md);
  color: var(--ink);
  line-height: 1.95;
}
.about-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--f-serif);
  font-size: var(--t-xs);
  color: var(--ink-faint);
  font-style: normal;
}

/* 信息表：三栏 grid，不用 flex+破折号 */
.info-table {
  display: grid;
  grid-template-columns: 26px 104px 1fr;
  gap: 0;
  background: var(--paper-light);
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(196,136,82,.24);
}
.info-row {
  display: contents;
}
.info-row > * {
  padding: 17px 16px;
  border-bottom: 1px dashed rgba(122,111,94,.3);
  font-size: var(--t-sm);
  display: flex; align-items: center;
}
.info-row:last-child > * { border-bottom: none; }
.info-ico { font-size: 18px; justify-content: center; padding-left: 20px; }
.info-key {
  font-family: var(--f-serif);
  color: var(--ink-soft);
  letter-spacing: .06em;
  white-space: nowrap;
}
.info-val { color: var(--ink); font-family: var(--f-body); }
.info-val.todo { color: var(--ink-faint); font-style: italic; }
.info-val.todo::before {
  content: '待补充';
  font-family: var(--f-serif);
  font-size: 12px;
  background: rgba(196,136,82,.16);
  color: var(--sunset-deep);
  border: 1px solid rgba(196,136,82,.4);
  padding: 2px 9px;
  border-radius: 999px;
  margin-right: 10px;
}

/* ---------- 02 爱好卡片 ---------- */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.hobby {
  background: var(--paper-light);
  border-radius: 20px;
  padding: 40px 36px 36px;
  border: 1.5px solid rgba(122,111,94,.2);
  position: relative;
  overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.hobby:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 40px rgba(122,111,94,.16);
}
.hobby-ico { font-size: 34px; margin-bottom: 16px; line-height: 1; }
.hobby h3 {
  font-family: var(--f-title);
  font-size: var(--t-lg);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: .05em;
}
.hobby-en {
  font-family: var(--f-serif);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hobby p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 2.05; margin-bottom: 18px; }
.hobby-list {
  list-style: none;
  border-top: 1px dashed rgba(122,111,94,.3);
  padding-top: 16px;
}
.hobby-list li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  padding: 5px 0;
  align-items: baseline;
}
.hobby-list li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sunset);
  transform: translateY(-3px);
}
.hobby::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--accent-soft, rgba(196,136,82,.09));
}
.hobby[data-accent="blue"]  { --accent-soft: rgba(166,186,187,.16); }
.hobby[data-accent="blue"] .hobby-list li::before { background: var(--sky-deep); }
.hobby[data-accent="green"] { --accent-soft: rgba(138,154,107,.14); }
.hobby[data-accent="green"] .hobby-list li::before { background: var(--leaf); }

/* ---------- 03 书架 ---------- */
.shelf { display: grid; gap: 26px; }
.author-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--paper-light);
  border-radius: 18px;
  padding: 34px 38px;
  border: 1.5px solid rgba(122,111,94,.18);
  transition: transform .3s;
}
.author-row:hover { transform: translateX(8px); }
.author-name {
  font-family: var(--f-title);
  font-size: var(--t-xl);
  color: var(--ink);
  letter-spacing: .06em;
  line-height: 1.3;
}
.author-name span {
  display: block;
  font-family: var(--f-serif);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: .2em;
  margin-top: 6px;
}
.author-body { border-left: 1px dashed rgba(122,111,94,.3); padding-left: 40px; }
.author-body > p {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  line-height: 2.05;
  margin-bottom: 16px;
}
.book-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.book {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(196,136,82,.45);
  border-radius: 6px 10px 8px 10px;
  padding: 6px 15px;
  box-shadow: 2px 3px 0 rgba(196,136,82,.16);
  transition: transform .22s;
}
.book:hover { transform: translateY(-3px) rotate(-1.5deg); }
.book.todo { color: var(--ink-faint); border-style: dashed; box-shadow: none; font-style: italic; }

.quote-strip {
  margin-top: 34px;
  text-align: center;
  padding: 44px 30px;
  background: rgba(166,186,187,.13);
  border-radius: 20px;
  border: 1.5px dashed rgba(125,149,151,.45);
}
.quote-strip p {
  font-family: var(--f-title);
  font-size: var(--t-lg);
  color: var(--ink);
  line-height: 1.9;
  letter-spacing: .04em;
}

/* ---------- 04 摄影 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.shot {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper-deep);
  aspect-ratio: 1;
  border: 8px solid var(--paper-light);
  box-shadow: 0 10px 24px rgba(122,111,94,.14);
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s;
}
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 18px 14px;
  background: linear-gradient(transparent, rgba(74,67,56,.62));
  color: #FAF1E4;
  font-size: 13px;
  letter-spacing: .04em;
}
.shot--add {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, var(--paper-light), var(--paper-light) 12px, var(--paper-deep) 12px, var(--paper-deep) 24px);
  border: 2px dashed rgba(166,186,187,.7);
  box-shadow: none;
}
.shot--add .plus { font-size: 44px; color: var(--sky-deep); line-height: 1; }
.shot--add span { font-size: 13px; color: var(--ink-faint); font-family: var(--f-serif); letter-spacing: .1em; }

.gallery-note {
  margin-top: 24px;
  text-align: center;
  font-size: var(--t-sm);
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------- 05 想认识的人 ---------- */
.wish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wish {
  background: var(--paper-light);
  border-radius: 18px;
  padding: 34px 30px;
  border-top: 4px solid var(--sunset);
  border-right: 1.5px solid rgba(122,111,94,.16);
  border-bottom: 1.5px solid rgba(122,111,94,.16);
  border-left: 1.5px solid rgba(122,111,94,.16);
  transition: transform .3s;
}
.wish:nth-child(2) { border-top-color: var(--sky); }
.wish:nth-child(3) { border-top-color: var(--leaf); }
.wish:hover { transform: translateY(-6px); }
.wish h3 {
  font-family: var(--f-title);
  font-size: var(--t-md);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 14px;
}
.wish p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 2.05; }

.wish-cta {
  margin-top: 46px;
  text-align: center;
  padding: 50px 30px;
  background: linear-gradient(135deg, rgba(196,136,82,.13), rgba(166,186,187,.13));
  border-radius: 24px;
}
.wish-cta p {
  font-family: var(--f-title);
  font-size: var(--t-lg);
  color: var(--ink);
  line-height: 1.9;
  margin-bottom: 12px;
}
.wish-cta small { font-size: var(--t-sm); color: var(--ink-faint); font-style: italic; }

/* ---------- 06 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--paper-light);
  border-radius: 14px;
  padding: 20px 24px;
  border: 1.5px solid rgba(122,111,94,.2);
  transition: transform .25s, border-color .25s;
}
.contact-item:hover { transform: translateX(6px); border-color: rgba(196,136,82,.5); }
.contact-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 24px;
  background: var(--paper);
  border-radius: 50%;
}
/* 联系方式卡：标签与数值竖排对齐 */
.contact-item > span:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.contact-label {
  font-family: var(--f-serif);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: .18em;
  line-height: 1.6;
}
.contact-val { font-family: var(--f-body); font-size: var(--t-base); color: var(--ink); line-height: 1.5; }
.contact-val.todo { color: var(--ink-faint); font-style: italic; }

/* 留言本 */
.guestbook {
  background: var(--paper-light);
  border-radius: 20px;
  padding: 38px 36px;
  border: 1.5px solid rgba(122,111,94,.22);
  box-shadow: 6px 8px 0 rgba(196,136,82,.12);
}
.guestbook h3 {
  font-family: var(--f-title);
  font-size: var(--t-lg);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
}
.guestbook .tip { font-size: var(--t-xs); color: var(--ink-faint); margin-bottom: 24px; }
.gb-form { display: grid; gap: 14px; margin-bottom: 28px; }
.gb-form input, .gb-form textarea {
  font-family: var(--f-body);
  font-size: var(--t-sm);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(122,111,94,.28);
  border-radius: 10px;
  padding: 13px 17px;
  outline: none;
  transition: border-color .25s;
  width: 100%;
  resize: vertical;
}
.gb-form input:focus, .gb-form textarea:focus { border-color: var(--sunset); }
.gb-form input::placeholder, .gb-form textarea::placeholder { color: var(--ink-faint); }
.gb-btn {
  font-family: var(--f-serif);
  font-size: var(--t-sm);
  letter-spacing: .14em;
  color: var(--paper-light);
  background: var(--sunset-deep);
  border: none;
  border-radius: 10px;
  padding: 13px 30px;
  cursor: pointer;
  transition: background .25s, transform .2s;
}
.gb-btn:hover { background: var(--sunset); transform: translateY(-2px); }
.gb-list { display: grid; gap: 14px; max-height: 340px; overflow-y: auto; padding-right: 6px; }
.gb-msg {
  background: var(--paper);
  border-radius: 12px;
  padding: 16px 20px;
  border-left: 3px solid var(--sky);
}
.gb-msg:nth-child(even) { border-left-color: var(--sunset); }
.gb-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--f-serif); font-size: 12px; color: var(--ink-faint);
  margin-bottom: 6px; letter-spacing: .08em;
}
.gb-text { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.95; word-break: break-word; }
.gb-empty { font-size: var(--t-sm); color: var(--ink-faint); font-style: italic; text-align: center; padding: 24px 0; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(122,111,94,.25);
  margin-top: 60px;
  padding: 46px 0 54px;
  text-align: center;
}
footer .fin { font-family: var(--f-title); font-size: var(--t-md); color: var(--ink); margin-bottom: 10px; letter-spacing: .1em; }
footer .fmeta { font-size: var(--t-xs); color: var(--ink-faint); letter-spacing: .12em; }

/* ---------- 手绘 SVG 图标系统（替代 emoji，避免字体缺失）---------- */
.ico {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -.12em;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
/* 爱好卡图标：更大更重 */
.hobby-ico {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  line-height: 1;
  color: var(--sunset-deep);
}
.hobby-ico .ico { width: 38px; height: 38px; stroke-width: 1.5; }
.hobby[data-accent="blue"] .hobby-ico { color: var(--sky-deep); }
.hobby[data-accent="green"] .hobby-ico { color: var(--leaf); }

/* 信息表图标 */
.info-ico { justify-content: center; padding-left: 20px; color: var(--sunset-deep); }
.info-ico .ico { width: 20px; height: 20px; }

/* 联系卡图标 */
.contact-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--paper);
  border-radius: 50%;
  color: var(--sunset-deep);
}
.contact-ico .ico { width: 24px; height: 24px; }

/* 标签里的图标 */
.tag .ico { width: 17px; height: 17px; color: var(--sky-deep); stroke-width: 1.7; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  :root { --t-3xl: 58px; --t-2xl: 44px; --t-xl: 32px; --gap-section: 76px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 420px; margin: 0 auto; }
  .hobby-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .wish-grid { grid-template-columns: 1fr; }
  .author-row { grid-template-columns: 1fr; gap: 20px; }
  .author-body { border-left: none; padding-left: 0; border-top: 1px dashed rgba(122,111,94,.3); padding-top: 20px; }
  .nav-links { display: none; }
  .sec-note { display: none; }
}
@media (max-width: 560px) {
  :root { --t-3xl: 44px; --t-lg: 24px; }
  .gallery { grid-template-columns: 1fr; }
  .info-table { grid-template-columns: 26px 92px 1fr; }
}