/*
Theme Name: 闪耀
Theme URI: https://example.com/shanyao
Author: For Her
Description: 一个温柔、优雅、以照片与日常书写为中心的女性个人主页主题。
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: shanyao
*/

:root {
  --paper: #fffdf8;
  --paper-deep: #f7f1e7;
  --ink: #18233f;
  --muted: #707180;
  --rose: #c77c8d;
  --rose-dark: #8e5263;
  --sage: #839b8c;
  --powder: #aebed8;
  --gold: #c5a265;
  --royal: #183d7a;
  --line: rgba(58, 50, 70, .12);
  --white: #ffffff;
  --serif: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 24px 70px rgba(40, 52, 91, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.75; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999; background: radial-gradient(circle at 10% 20%, rgba(197,162,101,.04), transparent 26%), radial-gradient(circle at 85% 70%, rgba(24,61,122,.035), transparent 28%); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--rose); font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.section { padding: 110px 0; }
.section-title { margin: 0; font: 500 clamp(34px, 5vw, 58px)/1.2 var(--serif); letter-spacing: -.03em; }
.section-title::after { content: "✦"; display: inline-block; margin-left: 13px; color: var(--gold); font-size: .27em; vertical-align: top; transform: translateY(.7em); }
.section-copy { max-width: 540px; margin: 18px 0 0; color: var(--muted); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.text-link { color: var(--rose-dark); font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 26px 0; }
.site-header.is-scrolled { position: fixed; padding: 14px 0; background: rgba(255,253,248,.86); backdrop-filter: blur(20px) saturate(1.2); border-bottom: 1px solid var(--line); animation: slideDown .35s ease; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.site-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(24,61,122,.3); outline: 1px solid rgba(197,162,101,.35); outline-offset: 3px; border-radius: 50%; color: var(--royal); background: rgba(255,255,255,.5); font: 500 18px var(--serif); }
.brand-name { font: 500 19px var(--serif); letter-spacing: .12em; }
.brand-note { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.nav-menu { display: flex; gap: 34px; padding: 0; margin: 0; list-style: none; font-size: 14px; }
.nav-menu a { position: relative; }
.nav-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--rose); transition: right .25s; }
.nav-menu a:hover::after, .nav-menu .current-menu-item a::after { right: 0; }
.menu-toggle { display: none; border: 0; background: none; color: var(--ink); font-size: 24px; cursor: pointer; }

.hero { min-height: 760px; height: 94vh; display: flex; align-items: center; position: relative; overflow: hidden; background: #f8f9ff center/cover no-repeat; }
.hero::before { content: "✦  ·  ◌  ·  ✦"; position: absolute; z-index: 2; top: 24%; right: 5%; color: rgba(197,162,101,.58); font-size: 12px; letter-spacing: .6em; writing-mode: vertical-rl; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.2), transparent 58%); }
.hero-content { position: relative; z-index: 2; padding-top: 70px; width: min(610px, 52%); }
.hero-kicker { display: flex; align-items: center; gap: 12px; color: var(--rose-dark); font-size: 13px; letter-spacing: .24em; }
.hero-kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.hero h1 { margin: 28px 0 22px; font: 500 clamp(56px, 7.4vw, 106px)/1.04 var(--serif); letter-spacing: -.055em; }
.hero h1 em { color: var(--rose); font-style: normal; }
.hero-text { max-width: 480px; color: #656675; font-size: 17px; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: linear-gradient(135deg,#214b89,#102d60); color: white; font-size: 14px; border: 1px solid rgba(197,162,101,.5); transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(24,61,122,.24); }
.button-ghost { background: rgba(255,255,255,.62); color: var(--ink); border: 1px solid rgba(104,96,139,.14); backdrop-filter: blur(12px); }
.scroll-note { position: absolute; z-index: 2; left: max(24px, calc((100% - 1180px)/2)); bottom: 28px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; letter-spacing: .22em; writing-mode: vertical-rl; }
.scroll-note::after { content: ""; width: 1px; height: 52px; background: var(--muted); }

.intro { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.portrait-frame { position: relative; }
.portrait-frame::before { content: ""; position: absolute; width: 72%; height: 84%; left: -28px; top: -28px; border: 1px solid rgba(174,159,222,.28); border-radius: 180px 180px 24px 24px; }
.portrait { position: relative; aspect-ratio: 4/5; border-radius: 220px 220px 24px 24px; overflow: hidden; background: linear-gradient(145deg,#f3e5df,#9db1d2); box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.86); font: 500 22px var(--serif); letter-spacing: .2em; }
.intro-copy .section-title { max-width: 630px; }
.intro-copy blockquote { margin: 38px 0 34px; padding: 2px 0 2px 24px; border-left: 2px solid var(--rose); color: var(--rose-dark); font: 400 21px/1.8 var(--serif); }
.signature { color: var(--gold); font: italic 28px Georgia, serif; }

.posts-section { background: var(--paper-deep); }
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.post-card { min-width: 0; }
.post-thumb { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: #ececf7; border: 6px solid rgba(255,255,255,.82); outline: 1px solid rgba(104,96,139,.08); box-shadow: 0 12px 32px rgba(110,103,155,.07); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .post-thumb img { transform: scale(1.035); }
.post-number { position: absolute; right: 18px; top: 16px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,253,249,.85); color: var(--rose-dark); font: 13px Georgia,serif; backdrop-filter: blur(8px); }
.post-meta { margin-top: 20px; color: var(--rose); font-size: 11px; letter-spacing: .14em; }
.post-card h3 { margin: 7px 0 8px; font: 500 24px/1.45 var(--serif); }
.post-card:nth-child(2) { transform: translateY(24px); }
.post-card p { margin: 0; color: var(--muted); font-size: 14px; }
.empty-card { padding: 40px; border: 1px dashed rgba(116,55,72,.3); border-radius: var(--radius); color: var(--muted); }

.moments { overflow: hidden; }
.moments-track { display: grid; grid-template-columns: 1fr 1.35fr 1fr 1.2fr; gap: 18px; align-items: center; }
.moment { overflow: hidden; border-radius: 22px; background: #ececf7; aspect-ratio: 4/5; }
.moment:nth-child(2) { aspect-ratio: 4/3; }
.moment:nth-child(4) { aspect-ratio: 1/1; }
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.moment:hover img { transform: scale(1.04); }
.moment-placeholder { height: 100%; display:grid; place-items:center; padding:20px; text-align:center; color:rgba(24,61,122,.72); background: linear-gradient(145deg,#f7e7e3,#dce4ef); }

.love-note { padding: 80px 0 120px; }
.note-card { position: relative; padding: 84px 9%; overflow: hidden; border: 1px solid rgba(197,162,101,.65); outline: 1px solid rgba(255,255,255,.2); outline-offset: -12px; border-radius: 36px; color: #fff; background: linear-gradient(135deg,#15386f,#0c234b 68%,#634154); text-align: center; box-shadow: 0 26px 70px rgba(24,61,122,.24); }
.note-card::before, .note-card::after { content: "✦"; position: absolute; color: rgba(255,255,255,.16); font-size: 180px; line-height: 1; }
.note-card::before { left: -25px; top: -35px; transform: rotate(-15deg); }
.note-card::after { right: -25px; bottom: -45px; transform: rotate(165deg); }
.note-card .eyebrow { color: rgba(255,255,255,.78); }
.note-card h2 { position: relative; margin: 0 auto; max-width: 760px; font: 400 clamp(34px,5vw,58px)/1.45 var(--serif); }
.note-card p { position: relative; margin: 22px 0 0; color: rgba(255,255,255,.78); }

.site-footer { padding: 50px 0 34px; border-top: 1px solid var(--line); }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.footer-title { font: 500 28px var(--serif); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--rose-dark); font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.page-hero { padding: 190px 0 90px; background: var(--paper-deep); }
.page-hero h1 { margin: 0; font: 500 clamp(46px,7vw,84px)/1.15 var(--serif); }
.content-wrap { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 80px 0 110px; }
.entry-content { font-family: var(--serif); font-size: 18px; }
.entry-content h2, .entry-content h3 { line-height: 1.35; margin-top: 2.2em; }
.entry-content img { border-radius: 20px; }
.entry-content a { color: var(--rose-dark); border-bottom: 1px solid; }
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; padding: 80px 0 110px; }
.pagination { grid-column: 1/-1; margin-top: 24px; }
.search-hero-form { max-width: 560px; margin-top: 30px; }
.search-form { display: flex; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: 0 12px 35px rgba(40,52,91,.06); }
.search-form label { flex: 1; }
.search-field { width: 100%; height: 46px; padding: 0 18px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-submit { padding: 0 24px; border: 1px solid rgba(197,162,101,.5); border-radius: 999px; color: white; background: var(--royal); cursor: pointer; }
.empty-state { grid-column: 1/-1; padding: 60px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.comments-area { margin-top: 70px; padding-top: 50px; border-top: 1px solid var(--line); font-family: var(--sans); }
.comments-title, .comment-reply-title { font: 500 28px/1.4 var(--serif); }
.comment-list { padding: 0; list-style: none; }
.comment-list .comment { margin: 28px 0; padding: 24px; border-radius: 20px; background: var(--paper-deep); }
.comment-author { display: flex; align-items: center; gap: 12px; }
.comment-author img { border-radius: 50%; }
.comment-meta { color: var(--muted); font-size: 12px; }
.comment-content { margin-top: 14px; }
.comment-respond input:not([type=submit]), .comment-respond textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.comment-form-comment label { display: block; margin-bottom: 8px; }
.form-submit .submit { min-height: 46px; padding: 0 24px; border: 1px solid rgba(197,162,101,.5); border-radius: 999px; color: white; background: var(--royal); cursor: pointer; }
.screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

@keyframes slideDown { from { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
@media (max-width: 900px) {
  .container { width: min(100% - 36px, 700px); }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 18px; right: 18px; padding: 24px; background: rgba(255,253,248,.96); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .nav-menu { flex-direction: column; gap: 20px; }
  .hero { min-height: 700px; height: 90svh; background-position: 58% center; }
  .hero::after { background: linear-gradient(90deg,rgba(251,248,243,.72),rgba(251,248,243,.12)); }
  .hero-content { width: 78%; }
  .hero h1 { font-size: clamp(52px,12vw,82px); }
  .intro-grid { grid-template-columns: 1fr; gap: 65px; }
  .portrait-frame { width: min(420px,90%); margin: 0 auto; }
  .post-grid, .archive-grid { grid-template-columns: repeat(2,1fr); }
  .moments-track { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 78px 0; }
  .section-head { align-items: flex-start; flex-direction: column; margin-bottom: 34px; }
  .hero { min-height: 680px; background-position: 64% center; }
  .hero-content { width: 100%; }
  .hero h1 { max-width: 420px; font-size: 52px; }
  .hero-text { max-width: 90%; font-size: 15px; }
  .hero-actions { flex-wrap: wrap; }
  .post-grid, .archive-grid { grid-template-columns: 1fr; }
  .post-card:nth-child(2) { transform: none; }
  .moments-track { gap: 10px; }
  .note-card { padding: 62px 28px; border-radius: 26px; }
  .footer-main, .footer-bottom { align-items: flex-start; flex-direction: column; }
}
