Files
digital-me-history/digital-me-web/public/stories/three-kingdoms/styles.css
T
admin 0593ff7e62
nginx serve /uploads direct (audio speed) / patch-nginx (push) Failing after 1m34s
数字我 Digital Me:全量入库(大文件走 Git LFS)
2026-10-10 16:24:43 +08:00

74 lines
5.0 KiB
CSS

@font-face {
font-family: 'Yunfeng Jinglong Xingshu';
src: url('./assets/fonts/YunFengJingLongXingShu-2.ttf') format('truetype');
font-display: swap;
}
:root {
color-scheme: light;
--paper: #eee8dc;
--ink: #29251f;
--muted: #777064;
--seal: #87342a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: 'Noto Serif SC', 'Songti SC', serif; }
a { color: inherit; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 100; padding: 0.75rem 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }
.calligraphy { position: fixed; inset: -8vh -4vw; z-index: -1; display: flex; flex-direction: row-reverse; justify-content: space-around; pointer-events: none; overflow: hidden; opacity: 0.19; }
.calligraphy span { max-height: 48vh; writing-mode: vertical-rl; text-orientation: upright; font-family: 'Yunfeng Jinglong Xingshu', cursive; font-size: clamp(2rem, 4.8vw, 5rem); line-height: 1; color: #6c4c3f; }
.calligraphy span:nth-child(2n) { align-self: flex-end; opacity: 0.52; transform: translateY(7vh); }
.calligraphy span:nth-child(3n) { opacity: 0.35; font-size: clamp(1.6rem, 3.5vw, 4rem); }
.hero { min-height: 100svh; display: grid; place-content: center; gap: 1.25rem; padding: 8vw; text-align: center; background: linear-gradient(180deg, rgba(238,232,220,.35), rgba(238,232,220,.82)); }
.hero > p, .section-title > p { margin: 0; color: var(--seal); font: 600 .72rem/1.5 system-ui, sans-serif; letter-spacing: .28em; }
.hero h1 { margin: 0; font: 400 clamp(4.5rem, 14vw, 12rem)/.82 'Yunfeng Jinglong Xingshu', cursive; letter-spacing: -.04em; }
.hero h1 span { color: var(--seal); }
.hero > div { display: flex; justify-content: center; gap: 1rem; font-size: .85rem; letter-spacing: .12em; }
.hero > div span { color: var(--muted); }
.hero > a { justify-self: center; margin-top: 1.5rem; padding-bottom: .3rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid currentColor; font-size: .78rem; letter-spacing: .2em; }
main { width: min(92vw, 1500px); margin: 0 auto; padding: 8rem 0 10rem; }
.section-title { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .5rem 2rem; margin-bottom: 4rem; border-bottom: 1px solid rgba(41,37,31,.2); padding-bottom: 1.5rem; }
.section-title h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 400; }
.section-title span { grid-column: 2; grid-row: 1 / 3; max-width: 18rem; color: var(--muted); line-height: 1.8; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem 3rem; }
.story-card a { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(15rem, .75fr); min-height: 34rem; text-decoration: none; background: rgba(248,244,235,.72); box-shadow: 0 24px 70px rgba(38,31,24,.1); transition: transform .35s ease, box-shadow .35s ease; }
.story-card a:hover, .story-card a:focus-visible { transform: translateY(-8px); box-shadow: 0 30px 90px rgba(38,31,24,.18); outline: none; }
.story-card figure { position: relative; margin: 0; overflow: hidden; }
.story-card figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(.96); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.story-card a:hover img { transform: scale(1.035); }
.story-card figure span { position: absolute; left: 1rem; top: 1rem; padding: .45rem .6rem; color: #fff; background: rgba(24,20,17,.66); font: 600 .7rem/1 system-ui,sans-serif; letter-spacing: .18em; }
.story-card div { display: flex; flex-direction: column; padding: 2.3rem 2rem; }
.story-card p { margin: 0 0 auto; color: var(--seal); font-size: .72rem; line-height: 1.7; letter-spacing: .08em; }
.story-card h3 { margin: 2rem 0 .7rem; font-size: clamp(2rem, 3vw, 3.8rem); font-weight: 400; line-height: 1.05; }
.story-card div > span { color: var(--muted); font-size: .78rem; }
.story-card small { margin-top: 2rem; color: #59534a; font-size: .88rem; line-height: 1.9; }
.story-card div > b { margin-top: auto; padding-top: 2rem; color: var(--seal); font-size: .76rem; letter-spacing: .15em; }
footer { display: flex; justify-content: space-between; padding: 2rem 4vw; border-top: 1px solid rgba(41,37,31,.15); color: var(--muted); font-size: .75rem; letter-spacing: .1em; }
@media (max-width: 1100px) {
.story-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
.calligraphy span:nth-child(3n) { display: none; }
.hero { padding: 2rem 1.2rem; }
.hero h1 { font-size: clamp(4rem, 24vw, 7rem); }
.hero > div { flex-direction: column; }
main { width: min(92vw, 44rem); padding: 5rem 0 7rem; }
.section-title { display: block; }
.section-title h2 { margin: .5rem 0 1rem; }
.story-grid { gap: 2.5rem; }
.story-card a { grid-template-columns: 1fr; min-height: 0; }
.story-card figure { min-height: 58vw; }
.story-card div { min-height: 25rem; padding: 1.6rem; }
footer { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { transition-duration: .01ms !important; }
}