/* 星见 STELREN 官网
   母品牌色：月光米纸面、星夜蓝文字与夜景、星光黄只用于星星和“月光较弱的夜晚”
   路线色只出现在各自的印章、主图和细线上 */
:root {
  color-scheme: light;
  --paper: #FBF7EF; --paper-2: #F4EEE2; --sand: #E9E3D6; --rule: #DCD4C3;
  --ink: #1C2430; --ink-2: #3E4A5A; --ink-3: #5B6573;
  --navy: #1F3A5F; --deep: #152A45; --night: #0F2036; --dusk: #4A6A8F; --mist: #9AA6B5;
  --star: #F0B53F; --glow: #FBE7BC;
  --butian: #A63D2F; --xunxing: #5B4B8A; --yueqian: #1F7A8C; --shouye: #3D6B56; --zhenxing: #A35A6E;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", serif;
  --sans: "Source Han Sans SC", "Noto Sans SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --latin: "Nunito", "Avenir Next", "Segoe UI", var(--sans);
  --max: 1180px; --gut: clamp(20px, 4.5vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.85 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p + p { margin-top: .8em; }
b, strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--star); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 100; background: var(--navy); color: var(--paper); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 10px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.num { font-family: var(--latin); font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: .02em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.2; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.35; }
h3 { font-size: 22px; line-height: 1.45; }
.lead { font-size: clamp(17.5px, 1.6vw, 19.5px); color: var(--ink-2); max-width: 36em; line-height: 1.9; }
.small { font-size: 14px; color: var(--ink-3); line-height: 1.75; }

/* 顶栏 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,247,239,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.bar .logo img { height: 54px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; font-size: 15.5px; color: var(--ink-2); text-decoration: none; border-radius: 6px; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
@media (max-width: 720px) { .nav a:not(.keep) { display: none; } .bar .logo img { height: 38px; } }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--navy); color: var(--navy); transition: background .2s, color .2s; }
.btn:hover { background: var(--navy); color: var(--paper); }
.btn.primary { background: var(--navy); color: var(--paper); }
.btn.primary:hover { background: var(--deep); }
.dark .btn { border-color: rgba(251,247,239,.55); color: var(--paper); }
.dark .btn:hover { background: var(--paper); color: var(--deep); }
.dark .btn.primary { background: var(--paper); color: var(--deep); border-color: var(--paper); }
.dark .btn.primary:hover { background: var(--glow); border-color: var(--glow); }
.link { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.band { padding: clamp(72px, 10vw, 128px) 0; }
.band.alt { background: var(--paper-2); }
.dark { background: var(--deep) url("img/sky.svg") 0 0 / 600px 600px; color: var(--paper); }
.dark .lead, .dark .small { color: rgba(251,247,239,.78); }
.head { max-width: 44em; margin-bottom: clamp(36px, 5vw, 60px); }
.head .lead { margin-top: 14px; }

/* 首屏 + 月亮 */
.hero { padding: clamp(64px, 9vw, 112px) 0 0; background-color: var(--night); background-image: url("img/sky.svg"), linear-gradient(180deg, var(--night), var(--deep) 60%, var(--navy)); background-size: 600px 600px, 100% 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.hero h1 { max-width: 9em; }
.hero .lead { margin-top: 24px; color: rgba(251,247,239,.84); }
.tonight { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.tonight .big { width: clamp(120px, 15vw, 180px); filter: drop-shadow(0 0 28px rgba(244,237,220,.18)); }
.tonight .lbl { font-size: 14px; color: rgba(251,247,239,.65); }
.tonight .ph { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; line-height: 1.3; margin-top: 2px; }
.tonight .pc { font-size: 15px; color: rgba(251,247,239,.8); margin-top: 4px; }
.tonight .next { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(251,247,239,.16); font-size: 15px; color: rgba(251,247,239,.8); }
.tonight .next b { display: block; font-size: 20px; color: var(--glow); font-weight: 600; margin-top: 2px; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* 接下来 30 晚 */
.month { margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid rgba(251,247,239,.14); padding: 22px 0 30px; }
.month-hd { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; align-items: baseline; font-size: 14.5px; color: rgba(251,247,239,.75); margin-bottom: 14px; }
.month-hd h2 { font-size: 18px; color: var(--paper); }
.month-hd .key::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: var(--star); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); vertical-align: 0; }
.days { list-style: none; display: grid; grid-template-columns: repeat(30, minmax(30px, 1fr)); gap: 2px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
.days li { text-align: center; padding: 8px 0 10px; border-radius: 6px; font-size: 12px; color: rgba(251,247,239,.6); line-height: 1.3; min-width: 30px; }
.days li svg { width: 20px; height: 20px; margin: 6px auto; }
.days li .d { font-family: var(--latin); font-weight: 700; font-size: 13.5px; color: rgba(251,247,239,.88); }
.days li.today { background: rgba(251,247,239,.1); }
.days li.dark-night { background: rgba(240,181,63,.12); }
.days li.dark-night .m::after { content: ""; display: block; width: 8px; height: 8px; margin: 2px auto 0; background: var(--star); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.days li .w { font-size: 11px; }
.days li.mon1 .w { color: var(--glow); }
@media (max-width: 880px) { .days { grid-template-columns: repeat(30, 34px); } }

/* 五条路线 */
.routes { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 28px); }
.route { --c: var(--navy); border-top: 3px solid var(--c); padding-top: 22px; }
.route .pic { width: 74%; aspect-ratio: 1; margin: 0 auto 20px; }
.route .pic img { width: 100%; height: 100%; }
.route .nm { display: flex; align-items: center; gap: 12px; }
.route .nm img { width: 42px; height: 42px; }
.route .nm h3 { font-size: 24px; color: var(--c); line-height: 1.2; }
.route .nm small { display: block; font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-top: 3px; }
.route p { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 1040px) { .routes { grid-template-columns: repeat(3, 1fr); row-gap: 48px; } }
@media (max-width: 680px) { .routes { grid-template-columns: 1fr; } .route { display: grid; grid-template-columns: 96px 1fr; gap: 0 20px; } .route .pic { width: 96px; grid-row: span 2; margin: 0; } .route p { margin-top: 8px; } }

/* 项目 */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.project { --c: var(--navy); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.project .cover { position: relative; aspect-ratio: 16 / 8; background: var(--deep) url("img/sky.svg") 0 0 / 420px 420px; overflow: hidden; }
.project .cover img.stamp { position: absolute; left: 24px; top: 22px; width: 58px; height: 58px; }
.project .cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.project .bd { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.project .route-tag { font-size: 14px; color: var(--c); font-weight: 600; }
.project h3 { font-size: 26px; margin-top: 4px; }
.project p { color: var(--ink-2); font-size: 16px; margin-top: 10px; }
.project .status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.project .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--c); }
.project .status.live::before { background: var(--c); }
.project .go { margin-top: auto; padding-top: 22px; }
@media (max-width: 820px) { .projects { grid-template-columns: 1fr; } }

/* 关于 / 联系 */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.about .seal { width: clamp(140px, 18vw, 220px); }
.contact { border-top: 1.5px solid var(--ink); }
.contact div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.contact dt { color: var(--ink-3); }
.contact dd { font-weight: 600; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .contact div { grid-template-columns: 7em 1fr; } }

.site-footer { background: var(--night); color: rgba(251,247,239,.7); padding: 48px 0 36px; font-size: 14px; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer img { height: 84px; width: auto; }
.site-footer a { color: rgba(251,247,239,.8); }

/* ---------- 内部导航页 ---------- */
.internal-bar { background: var(--star); color: var(--deep); font-size: 14px; font-weight: 600; text-align: center; padding: 6px 12px; }
.proj-list { display: grid; gap: 28px; }
.pcard { --c: var(--navy); display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--rule); border-left: 4px solid var(--c); border-radius: 6px; background: var(--paper); }
.pcard .side { padding: 26px 24px; border-right: 1px solid var(--sand); }
.pcard .side img { width: 56px; height: 56px; margin-bottom: 14px; }
.pcard .side h2 { font-size: 24px; }
.pcard .side .st { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 12px; background: var(--paper-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
.pcard .main { padding: 24px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.pcard h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; letter-spacing: 0; }
.pcard ul { list-style: none; font-size: 15px; }
.pcard li { padding: 5px 0; border-bottom: 1px solid var(--sand); }
.pcard li:last-child { border-bottom: 0; }
.pcard a { color: var(--navy); font-weight: 600; }
.pcard code { font-size: 12.5px; color: var(--ink-2); word-break: break-all; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
.pcard .full { grid-column: 1 / -1; }
.pcard .todo li::before { content: "□ "; color: var(--c); }
@media (max-width: 820px) { .pcard { grid-template-columns: 1fr; } .pcard .side { border-right: 0; border-bottom: 1px solid var(--sand); } .pcard .main { grid-template-columns: 1fr; } }
