Files
class/src/styles/global.css
T
2026-05-03 20:20:50 +08:00

2240 lines
38 KiB
CSS

:root {
color-scheme: light;
--ink: #1f2b2a;
--muted: #62706f;
--line: rgba(31, 43, 42, 0.14);
--paper: #fffdf7;
--soft: #f4f7ee;
--green: #376d5a;
--blue: #456f94;
--sun: #e8a84c;
--coral: #c96452;
--shadow: 0 18px 50px rgba(39, 55, 52, 0.12);
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
color: var(--ink);
background: var(--paper);
font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
line-height: 1.65;
}
img {
max-width: 100%;
display: block;
}
a {
color: inherit;
text-decoration: none;
}
.site-header {
position: fixed;
z-index: 20;
top: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 16px clamp(18px, 4vw, 48px);
color: #fffdf7;
background: linear-gradient(180deg, rgba(22, 30, 29, 0.58), rgba(22, 30, 29, 0));
}
.brand {
font-weight: 700;
letter-spacing: 0;
white-space: nowrap;
}
.nav-toggle {
display: none;
width: 44px;
height: 44px;
place-items: center;
align-content: center;
justify-items: center;
gap: 5px;
border: 1px solid rgba(255, 253, 247, 0.36);
border-radius: 8px;
background: rgba(31, 43, 42, 0.2);
color: #fffdf7;
backdrop-filter: blur(12px);
cursor: pointer;
}
.nav-toggle span {
width: 20px;
height: 2px;
border-radius: 999px;
background: currentColor;
transition:
transform 180ms ease,
opacity 180ms ease;
}
.nav {
display: flex;
gap: clamp(12px, 2vw, 26px);
font-size: 14px;
}
.nav a {
opacity: 0.88;
}
.hero {
min-height: 92vh;
position: relative;
display: grid;
align-items: end;
overflow: hidden;
isolation: isolate;
padding: 120px clamp(20px, 6vw, 80px) 56px;
color: #fffdf7;
background: #26332e var(--hero-image) center / cover no-repeat;
}
.hero::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background:
linear-gradient(90deg, rgba(21, 29, 27, 0.78), rgba(21, 29, 27, 0.34) 48%, rgba(21, 29, 27, 0.18)),
linear-gradient(0deg, rgba(21, 29, 27, 0.72), rgba(21, 29, 27, 0.06) 55%);
}
.hero-content {
width: min(780px, 100%);
}
.eyebrow {
margin: 0 0 14px;
color: #f3cf8b;
font-size: 15px;
font-weight: 700;
}
h1 {
margin: 0;
max-width: 720px;
font-size: clamp(42px, 7vw, 86px);
line-height: 1.08;
letter-spacing: 0;
}
.hero p {
max-width: 620px;
margin: 24px 0 0;
color: rgba(255, 253, 247, 0.88);
font-size: clamp(17px, 2vw, 21px);
}
.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 32px;
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 44px;
padding: 10px 18px;
border: 1px solid rgba(255, 253, 247, 0.45);
border-radius: 8px;
background: rgba(255, 253, 247, 0.12);
color: #fffdf7;
font-weight: 700;
backdrop-filter: blur(10px);
}
.button.primary {
border-color: #f1c979;
background: #f1c979;
color: #21312d;
}
.stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1px;
background: var(--line);
border-bottom: 1px solid var(--line);
}
.stat {
min-height: 112px;
padding: 24px clamp(18px, 4vw, 42px);
background: #fffdf7;
}
.stat strong {
display: block;
color: var(--green);
font-size: clamp(26px, 4vw, 42px);
line-height: 1;
}
.stat span {
display: block;
margin-top: 10px;
color: var(--muted);
font-size: 14px;
}
main {
overflow: hidden;
}
section {
padding: clamp(58px, 8vw, 104px) clamp(20px, 6vw, 80px);
}
.section-inner {
width: min(1120px, 100%);
margin: 0 auto;
}
.section-title {
display: grid;
grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1fr);
gap: clamp(24px, 6vw, 72px);
align-items: end;
margin-bottom: 36px;
}
h2 {
margin: 0;
font-size: clamp(30px, 4vw, 52px);
line-height: 1.16;
letter-spacing: 0;
}
.section-title p {
margin: 0;
color: var(--muted);
font-size: 16px;
}
.timeline {
display: grid;
gap: 18px;
}
.moment {
display: grid;
grid-template-columns: 140px 1fr;
gap: 22px;
padding: 22px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
box-shadow: 0 8px 28px rgba(39, 55, 52, 0.06);
}
.moment > div {
grid-column: 2;
}
.moment-link {
position: relative;
padding-right: 70px;
transition:
border-color 180ms ease,
box-shadow 180ms ease,
transform 180ms ease;
}
.moment-link::after {
content: "查看";
position: absolute;
top: 24px;
right: 24px;
color: var(--green);
font-size: 13px;
font-weight: 800;
}
.moment-link:hover {
transform: translateY(-3px);
border-color: rgba(55, 109, 90, 0.34);
box-shadow: 0 16px 38px rgba(39, 55, 52, 0.12);
}
.moment time {
color: var(--blue);
font-weight: 800;
}
.moment h3,
.person h3 {
margin: 0 0 8px;
font-size: 20px;
line-height: 1.3;
}
.moment p,
.person p,
.message p {
margin: 0;
color: var(--muted);
}
.gallery-band {
background: var(--soft);
}
.page-main {
min-height: 100vh;
}
.page-hero {
padding-top: 132px;
padding-bottom: 70px;
color: #fffdf7;
background:
linear-gradient(135deg, rgba(31, 43, 42, 0.96), rgba(55, 109, 90, 0.88)),
#1f2b2a;
}
.page-hero h1 {
max-width: 900px;
}
.page-hero p:not(.eyebrow) {
max-width: 680px;
margin: 22px 0 0;
color: rgba(255, 253, 247, 0.82);
font-size: clamp(17px, 2vw, 21px);
}
.back-link,
.section-link {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
padding: 9px 15px;
border-radius: 8px;
font-weight: 800;
}
.back-link {
margin-bottom: 28px;
border: 1px solid rgba(255, 253, 247, 0.38);
color: #fffdf7;
background: rgba(255, 253, 247, 0.12);
}
.section-link {
margin-top: 26px;
border: 1px solid var(--line);
color: var(--green);
background: #fff;
}
.photo-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 14px;
}
.photo-card {
min-height: 230px;
display: flex;
align-items: end;
padding: 18px;
border-radius: 8px;
color: #fff;
background:
linear-gradient(0deg, rgba(26, 35, 34, 0.76), rgba(26, 35, 34, 0.08)),
var(--photo-image, var(--tile-bg));
background-size: cover;
background-position: center;
box-shadow: var(--shadow);
}
.topic-card {
transition:
transform 180ms ease,
box-shadow 180ms ease;
}
.topic-card:hover {
transform: translateY(-4px);
box-shadow: 0 24px 60px rgba(39, 55, 52, 0.18);
}
.photo-card:nth-child(4n + 1) {
--tile-bg: linear-gradient(135deg, #376d5a, #e8a84c);
}
.photo-card:nth-child(4n + 2) {
--tile-bg: linear-gradient(135deg, #456f94, #f0c66d);
}
.photo-card:nth-child(4n + 3) {
--tile-bg: linear-gradient(135deg, #c96452, #f1d9a6);
}
.photo-card:nth-child(4n) {
--tile-bg: linear-gradient(135deg, #263e5c, #7ab28b);
}
.photo-card:nth-child(4n + 2),
.photo-card:nth-child(4n) {
min-height: 300px;
}
.photo-card strong {
display: block;
font-size: 20px;
}
.photo-card span {
display: block;
color: rgba(255, 255, 255, 0.82);
font-size: 14px;
}
.people-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
.data-guide {
display: grid;
grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
gap: clamp(22px, 4vw, 46px);
align-items: start;
margin-bottom: 26px;
padding: clamp(22px, 4vw, 32px);
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
box-shadow: 0 8px 28px rgba(39, 55, 52, 0.06);
}
.data-guide h2 {
margin-bottom: 14px;
font-size: clamp(24px, 3vw, 34px);
}
.data-guide p {
margin: 0;
color: var(--muted);
}
.data-guide code {
color: var(--green);
font-weight: 800;
}
.data-guide ol {
display: grid;
gap: 12px;
margin: 0;
padding-left: 22px;
color: var(--muted);
}
.data-guide li::marker {
color: var(--green);
font-weight: 800;
}
.data-guide strong {
color: var(--ink);
}
.page-grid {
align-items: stretch;
}
.scrapbook-section {
padding-top: clamp(48px, 7vw, 92px);
}
.scrapbook {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: clamp(14px, 2vw, 26px);
align-items: start;
padding-block: 18px 36px;
}
.scrap-photo {
--rotate: 0deg;
--shift: 0px;
grid-column: span 4;
transform: translateY(var(--shift)) rotate(var(--rotate));
transform-origin: center;
}
.scrap-photo:nth-child(6n + 1) {
--rotate: -2.2deg;
--shift: 18px;
grid-column: span 5;
}
.scrap-photo:nth-child(6n + 2) {
--rotate: 1.6deg;
--shift: -8px;
grid-column: span 3;
}
.scrap-photo:nth-child(6n + 3) {
--rotate: -0.8deg;
--shift: 36px;
grid-column: span 4;
}
.scrap-photo:nth-child(6n + 4) {
--rotate: 2.4deg;
--shift: -2px;
grid-column: span 4;
}
.scrap-photo:nth-child(6n + 5) {
--rotate: -1.4deg;
--shift: 28px;
grid-column: span 3;
}
.scrap-photo:nth-child(6n) {
--rotate: 1.1deg;
--shift: 8px;
grid-column: span 5;
}
.scrap-frame {
display: block;
padding: 10px 10px 16px;
border: 1px solid rgba(31, 43, 42, 0.1);
border-radius: 4px;
background: #fffef9;
box-shadow:
0 18px 38px rgba(39, 55, 52, 0.14),
inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.scrap-link {
cursor: zoom-in;
transition:
box-shadow 180ms ease,
transform 180ms ease;
}
.scrap-link:hover {
transform: translateY(-3px);
box-shadow:
0 24px 50px rgba(39, 55, 52, 0.18),
inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.scrap-image {
width: 100%;
border-radius: 3px;
}
.scrap-image-file {
height: auto;
background: #f7f2e7;
}
.scrap-placeholder {
min-height: clamp(190px, 24vw, 320px);
background: var(--scrap-image, linear-gradient(135deg, #376d5a, #e8a84c));
background-size: cover;
background-position: center;
}
.scrap-photo:nth-child(4n + 2) .scrap-placeholder {
background: var(--scrap-image, linear-gradient(135deg, #456f94, #f0c66d));
}
.scrap-photo:nth-child(4n + 3) .scrap-placeholder {
background: var(--scrap-image, linear-gradient(135deg, #c96452, #f1d9a6));
}
.scrap-photo:nth-child(4n) .scrap-placeholder {
background: var(--scrap-image, linear-gradient(135deg, #263e5c, #7ab28b));
}
.scrap-copy {
padding: 12px 4px 0;
}
.scrap-copy strong {
display: block;
font-size: 18px;
line-height: 1.35;
}
.scrap-copy span {
display: block;
margin-top: 5px;
color: var(--muted);
font-size: 14px;
}
.person {
min-height: 210px;
overflow: hidden;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
}
.person-link {
display: block;
transition:
border-color 180ms ease,
box-shadow 180ms ease,
transform 180ms ease;
}
.person-link:hover {
transform: translateY(-3px);
border-color: rgba(55, 109, 90, 0.34);
box-shadow: 0 16px 38px rgba(39, 55, 52, 0.12);
}
.person-photo,
.profile-photo {
min-height: 150px;
display: grid;
place-items: center;
color: #fffdf7;
background:
linear-gradient(0deg, rgba(31, 43, 42, 0.28), rgba(31, 43, 42, 0.04)),
var(--person-photo, linear-gradient(135deg, var(--accent), #e8a84c));
background-size: cover;
background-position: center;
}
.person-photo span,
.profile-photo span {
width: 54px;
height: 54px;
display: grid;
place-items: center;
border: 1px solid rgba(255, 253, 247, 0.4);
border-radius: 50%;
background: rgba(31, 43, 42, 0.28);
font-weight: 900;
backdrop-filter: blur(8px);
}
.person-body {
padding: 20px 22px 22px;
}
.person-meta,
.keyword-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 0 0 14px;
}
.person-meta span,
.keyword-row span {
display: inline-flex;
align-items: center;
min-height: 28px;
padding: 4px 9px;
border-radius: 999px;
color: var(--green);
background: color-mix(in srgb, var(--green), white 88%);
font-size: 13px;
font-weight: 800;
}
.person:nth-child(1) { --accent: var(--green); }
.person:nth-child(2) { --accent: var(--blue); }
.person:nth-child(3) { --accent: var(--coral); }
.person:nth-child(4) { --accent: #7b6b3a; }
.person:nth-child(5) { --accent: #4d796d; }
.person:nth-child(6) { --accent: #755c86; }
.person:nth-child(7) { --accent: #8b5f4d; }
.person:nth-child(8) { --accent: #2f6f79; }
.person-hero-inner {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
gap: clamp(28px, 5vw, 70px);
align-items: end;
}
.profile-card {
padding: 24px;
border: 1px solid rgba(255, 253, 247, 0.22);
border-radius: 8px;
background: rgba(255, 253, 247, 0.1);
backdrop-filter: blur(12px);
}
.profile-photo {
min-height: 230px;
margin-bottom: 22px;
border-radius: 6px;
--accent: #f1c979;
}
.profile-photo span {
width: 72px;
height: 72px;
font-size: 24px;
}
.profile-card dl {
display: grid;
gap: 14px;
margin: 0;
}
.profile-card div {
display: grid;
gap: 2px;
}
.profile-card dt {
color: rgba(255, 253, 247, 0.58);
font-size: 13px;
}
.profile-card dd {
margin: 0;
color: #fffdf7;
font-weight: 800;
}
.detail-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}
.detail-panel {
min-height: 220px;
padding: 26px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
box-shadow: 0 8px 28px rgba(39, 55, 52, 0.06);
}
.detail-panel.wide {
grid-column: 1 / -1;
}
.detail-panel .eyebrow {
color: var(--blue);
}
.detail-panel h2 {
margin-bottom: 16px;
font-size: clamp(24px, 3vw, 34px);
}
.detail-panel p {
margin: 0;
color: var(--muted);
}
.keyword-row.large {
margin: 0;
}
.keyword-row.large span {
min-height: 40px;
padding: 7px 14px;
font-size: 15px;
}
.message-wall {
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: 18px;
align-items: stretch;
}
.message {
min-height: 160px;
padding: 24px;
border-radius: 8px;
background: #fff;
border: 1px solid var(--line);
}
.message.featured {
display: flex;
flex-direction: column;
justify-content: space-between;
background: #24443a;
color: #fffdf7;
}
.message.featured p {
color: rgba(255, 253, 247, 0.86);
font-size: clamp(20px, 3vw, 32px);
line-height: 1.55;
}
.message cite {
display: block;
margin-top: 20px;
color: var(--sun);
font-style: normal;
font-weight: 700;
}
.small-messages {
display: grid;
gap: 18px;
}
.sticky-message-band {
background:
linear-gradient(0deg, rgba(255, 253, 247, 0.45), rgba(255, 253, 247, 0.45)),
var(--soft);
}
.message-preamble {
margin-bottom: 24px;
}
.twikoo-empty-note {
padding: 28px;
border: 1px dashed rgba(55, 109, 90, 0.34);
border-radius: 8px;
background: #fffdf7;
}
.twikoo-empty-note h2 {
margin-bottom: 10px;
font-size: clamp(24px, 3vw, 34px);
}
.twikoo-empty-note p {
margin: 0;
color: var(--muted);
}
.twikoo-empty-note code {
color: var(--green);
font-weight: 800;
}
.exam-band {
background:
linear-gradient(0deg, rgba(244, 247, 238, 0.7), rgba(244, 247, 238, 0.7)),
var(--paper);
}
.exam-band .section-inner {
width: min(1400px, 100%);
}
.exam-workspace {
display: block;
padding-right: min(390px, 30vw);
}
.exam-paper {
width: 100%;
min-width: 0;
margin: 0;
padding: clamp(24px, 5vw, 58px);
border: 1px solid var(--line);
border-radius: 8px;
background: #fffef9;
box-shadow: var(--shadow);
}
.exam-paper p {
margin: 0 0 12px;
color: #33413f;
font-size: 16px;
line-height: 1.85;
}
.exam-paper math,
.exam-paper mjx-container {
color: var(--ink);
font-size: 1.04em;
}
.exam-paper mjx-container[jax="CHTML"][display="true"] {
margin: 18px 0 22px;
overflow-x: auto;
overflow-y: hidden;
}
.exam-paper .exam-title-line {
margin-bottom: 4px;
color: var(--ink);
text-align: center;
font-weight: 800;
}
.exam-paper .exam-title-line.major {
font-size: clamp(24px, 4vw, 38px);
line-height: 1.25;
}
.exam-paper h2 {
margin: 34px 0 16px;
padding-top: 20px;
border-top: 1px solid var(--line);
color: var(--green);
font-size: clamp(22px, 3vw, 30px);
line-height: 1.45;
}
.exam-paper h3 {
margin: 22px 0 10px;
color: var(--blue);
font-size: 19px;
}
.exam-candidate-info {
display: grid;
grid-template-columns: minmax(140px, 0.8fr) minmax(240px, 1.4fr) minmax(120px, 0.7fr);
gap: 12px;
margin-bottom: 18px;
padding: 14px;
border: 1px solid rgba(31, 43, 42, 0.12);
border-radius: 8px;
background: rgba(244, 247, 238, 0.58);
}
.exam-candidate-info label {
display: grid;
gap: 6px;
}
.exam-candidate-info span {
color: var(--green);
font-size: 13px;
font-weight: 900;
}
.exam-candidate-info input {
width: 100%;
min-height: 40px;
padding: 8px 10px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fffdf7;
color: var(--ink);
font: inherit;
}
.exam-candidate-info input[readonly] {
background: #f8f2e9;
color: var(--muted);
}
.exam-question {
display: grid;
grid-template-columns: 38px minmax(0, 1fr);
gap: 10px;
align-items: start;
margin: 22px 0 10px !important;
color: var(--ink) !important;
font-weight: 800;
}
.exam-question-block {
scroll-margin-top: 96px;
}
.exam-question-number {
min-width: 34px;
min-height: 34px;
display: inline-grid;
place-items: center;
border: 1px solid rgba(55, 109, 90, 0.28);
border-radius: 8px;
background: color-mix(in srgb, var(--green), white 90%);
color: var(--green);
font-size: 15px;
line-height: 1;
}
.exam-question-text {
padding-top: 1px;
}
.exam-options {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px 18px;
margin: 8px 0 18px 48px;
}
.exam-option {
min-height: 38px;
display: flex;
align-items: center;
padding: 7px 10px;
border: 1px solid rgba(31, 43, 42, 0.1);
border-radius: 8px;
background: rgba(244, 247, 238, 0.56);
color: #33413f;
font: inherit;
line-height: 1.55;
text-align: left;
cursor: pointer;
transition:
background 180ms ease,
border-color 180ms ease,
color 180ms ease,
transform 180ms ease;
}
.exam-option:hover,
.exam-option.is-selected {
border-color: rgba(55, 109, 90, 0.45);
background: color-mix(in srgb, var(--green), white 88%);
color: var(--green);
}
.exam-option:hover {
transform: translateY(-1px);
}
.exam-option math,
.exam-option mjx-container {
margin-left: 4px;
}
.exam-fill-answer {
display: grid;
grid-template-columns: 48px minmax(0, 1fr);
gap: 10px;
align-items: center;
margin: 8px 0 18px 48px;
padding: 12px;
border: 1px solid rgba(31, 43, 42, 0.1);
border-radius: 8px;
background: rgba(244, 247, 238, 0.56);
}
.exam-fill-answer span {
color: var(--green);
font-weight: 900;
}
.exam-fill-answer input {
width: 100%;
min-height: 40px;
padding: 8px 10px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fffdf7;
color: var(--ink);
font: inherit;
}
.fill-inline-text {
line-height: 2.25 !important;
}
.inline-fill-input {
width: min(120px, 42vw);
min-height: 34px;
margin: 0 4px;
padding: 5px 8px;
border: 0;
border-bottom: 2px solid rgba(55, 109, 90, 0.42);
background: rgba(244, 247, 238, 0.72);
color: var(--ink);
font: inherit;
text-align: center;
}
.name-fill-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
margin: 12px 0 20px 48px;
padding: 12px;
border: 1px solid rgba(31, 43, 42, 0.1);
border-radius: 8px;
background: rgba(244, 247, 238, 0.56);
}
.name-fill-grid label,
.image-title-answer {
display: grid;
grid-template-columns: 32px minmax(0, 1fr);
gap: 8px;
align-items: center;
}
.name-fill-grid span,
.image-title-answer span {
color: var(--green);
font-size: 13px;
font-weight: 900;
text-align: center;
}
.name-fill-grid input,
.image-title-answer input {
width: 100%;
min-height: 36px;
padding: 6px 8px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fffdf7;
color: var(--ink);
font: inherit;
}
.image-title-answer {
padding: 10px;
border-top: 1px solid var(--line);
background: rgba(244, 247, 238, 0.56);
}
.exam-figure,
.exam-image-grid figure {
margin: 22px 0;
overflow: hidden;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
}
.exam-figure img {
width: 100%;
max-height: 520px;
object-fit: contain;
padding: 14px;
}
.exam-figure figcaption,
.exam-image-grid figcaption {
padding: 10px 14px;
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 13px;
text-align: center;
}
.exam-image-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
margin: 20px 0 28px;
}
.exam-image-grid figure {
margin: 0;
}
.exam-image-grid img {
width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
}
.score-sidebar {
position: fixed;
z-index: 18;
top: 86px;
right: clamp(14px, 3vw, 38px);
width: min(360px, calc(100vw - 28px));
max-height: calc(100vh - 108px);
overflow: auto;
scrollbar-gutter: stable;
}
.score-sidebar::before {
content: "";
position: sticky;
top: 0;
z-index: -1;
}
.score-fab {
display: none;
}
.score-panel {
display: grid;
gap: 12px;
}
.score-sidebar-head {
padding: 18px 18px 4px;
}
.score-sidebar-head h2 {
font-size: 28px;
}
.score-sidebar-head p:not(.eyebrow) {
margin: 10px 0 0;
color: var(--muted);
font-size: 14px;
}
.score-group,
.score-total {
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
box-shadow: 0 8px 28px rgba(39, 55, 52, 0.06);
}
.score-group {
padding: 16px;
}
.score-group h3 {
margin: 0 0 12px;
color: var(--green);
font-size: 20px;
}
.score-table {
display: grid;
gap: 8px;
}
.score-row {
display: grid;
grid-template-columns: 42px minmax(0, 1fr);
gap: 8px;
align-items: center;
}
.score-head {
color: var(--muted);
font-size: 13px;
font-weight: 800;
}
.score-number {
width: 36px;
height: 36px;
display: inline-grid;
place-items: center;
border-radius: 8px;
background: color-mix(in srgb, var(--blue), white 88%);
color: var(--blue);
font-weight: 900;
}
.score-row select,
.score-row input,
.manual-score-item input {
width: 100%;
min-height: 38px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fffdf7;
color: var(--ink);
font: inherit;
}
.score-row select,
.score-row input {
padding: 7px 10px;
}
.score-row output {
color: var(--green);
font-weight: 900;
text-align: right;
}
.score-submit {
min-height: 44px;
border: 0;
border-radius: 8px;
background: var(--green);
color: #fffdf7;
font: inherit;
font-weight: 900;
cursor: pointer;
transition:
background 180ms ease,
transform 180ms ease;
}
.score-submit:hover {
transform: translateY(-1px);
background: #2f5f4e;
}
.score-note {
margin: 14px 0 0;
color: var(--muted);
font-size: 14px;
}
.score-note code {
color: var(--green);
font-weight: 900;
}
.answer-card-profile dl {
display: grid;
gap: 10px;
margin: 0;
}
.answer-card-profile div {
display: grid;
grid-template-columns: 76px minmax(0, 1fr);
gap: 10px;
align-items: baseline;
}
.answer-card-profile dt {
color: var(--muted);
font-size: 13px;
font-weight: 900;
}
.answer-card-profile dd {
min-width: 0;
margin: 0;
color: var(--ink);
font-weight: 900;
overflow-wrap: anywhere;
}
.answer-card-grid {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 8px;
}
.answer-card-number {
min-height: 38px;
border: 1px solid rgba(31, 43, 42, 0.14);
border-radius: 8px;
background: #f8f2e9;
color: var(--muted);
font: inherit;
font-weight: 900;
cursor: pointer;
transition:
background 180ms ease,
border-color 180ms ease,
color 180ms ease,
transform 180ms ease;
}
.answer-card-number[data-kind="manual"] {
background: color-mix(in srgb, var(--blue), white 90%);
color: var(--blue);
}
.answer-card-number.is-answered {
border-color: rgba(55, 109, 90, 0.42);
background: color-mix(in srgb, var(--green), white 84%);
color: var(--green);
}
.answer-card-number:hover {
transform: translateY(-1px);
border-color: rgba(232, 168, 76, 0.78);
color: var(--ink);
}
.answer-card-legend {
display: flex;
flex-wrap: wrap;
gap: 8px 12px;
margin-top: 12px;
color: var(--muted);
font-size: 13px;
font-weight: 800;
}
.answer-card-legend span {
display: inline-flex;
align-items: center;
gap: 6px;
}
.answer-card-legend i {
width: 10px;
height: 10px;
border-radius: 50%;
background: #f8f2e9;
border: 1px solid rgba(31, 43, 42, 0.14);
}
.answer-card-legend i.is-answered {
background: color-mix(in srgb, var(--green), white 72%);
border-color: rgba(55, 109, 90, 0.42);
}
.answer-card-legend i.is-manual {
background: color-mix(in srgb, var(--blue), white 76%);
border-color: rgba(69, 111, 148, 0.34);
}
.manual-score-grid {
display: grid;
grid-template-columns: 1fr;
gap: 8px;
}
.manual-score-item {
display: grid;
grid-template-columns: 1fr 74px auto;
gap: 8px;
align-items: center;
padding: 10px;
border: 1px solid rgba(31, 43, 42, 0.1);
border-radius: 8px;
background: rgba(244, 247, 238, 0.56);
}
.manual-score-item span {
font-weight: 800;
}
.manual-score-item input {
padding: 6px 8px;
text-align: center;
}
.manual-score-item small {
color: var(--muted);
white-space: nowrap;
}
.score-total {
display: grid;
grid-template-columns: 1fr;
overflow: hidden;
}
.score-total > div {
display: grid;
gap: 6px;
padding: 16px;
border-right: 0;
border-bottom: 1px solid var(--line);
}
.score-total > div:last-child {
border-bottom: 0;
}
.score-total span {
color: var(--muted);
font-size: 14px;
font-weight: 800;
}
.score-total strong {
color: var(--green);
font-size: 34px;
line-height: 1;
}
.score-total strong small {
margin-left: 4px;
color: var(--muted);
font-size: 14px;
font-weight: 800;
}
.score-total-final {
background: #24443a;
}
.score-total-final span {
color: rgba(255, 253, 247, 0.72);
}
.score-total-final strong {
color: var(--sun);
}
.score-total-final strong small {
color: rgba(255, 253, 247, 0.56);
}
.score-total-note,
.result-score-note {
margin: -2px 0 0;
color: var(--muted);
font-size: 13px;
font-weight: 800;
line-height: 1.6;
}
.result-band {
background: var(--soft);
}
.result-card {
padding: clamp(22px, 4vw, 42px);
border: 1px solid var(--line);
border-radius: 8px;
background: #fffef9;
box-shadow: var(--shadow);
}
.result-empty {
text-align: center;
}
.result-empty h2 {
margin-bottom: 12px;
font-size: clamp(26px, 3vw, 36px);
}
.result-empty p {
margin: 0 auto;
color: var(--muted);
}
.result-head {
display: flex;
justify-content: space-between;
gap: 18px;
align-items: start;
margin-bottom: 24px;
}
.result-head h2 {
font-size: clamp(28px, 4vw, 44px);
}
.result-profile,
.result-score-grid,
.analysis-grid {
display: grid;
gap: 12px;
}
.result-profile {
grid-template-columns: repeat(3, 1fr);
margin: 0 0 20px;
}
.result-profile div,
.result-score-grid > div,
.analysis-grid p {
margin: 0;
padding: 18px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
}
.result-profile dt,
.result-score-grid span,
.analysis-grid span {
display: block;
color: var(--muted);
font-size: 13px;
font-weight: 900;
}
.result-profile dd {
margin: 4px 0 0;
color: var(--ink);
font-weight: 900;
}
.result-score-grid {
grid-template-columns: 1.2fr 1fr 1fr 1fr;
margin-bottom: 24px;
}
.result-score-grid strong {
display: inline-block;
margin-top: 8px;
color: var(--green);
font-size: clamp(34px, 5vw, 58px);
line-height: 1;
}
.result-score-grid small {
margin-left: 6px;
color: var(--muted);
font-weight: 900;
}
.result-total {
background: #24443a !important;
}
.result-total span {
color: rgba(255, 253, 247, 0.72);
}
.result-total strong {
color: var(--sun);
}
.result-total small {
color: rgba(255, 253, 247, 0.58);
}
.result-name-score strong {
color: var(--coral);
}
.result-analysis h2 {
margin-bottom: 14px;
font-size: clamp(24px, 3vw, 34px);
}
.analysis-grid {
grid-template-columns: repeat(4, 1fr);
}
.analysis-grid strong {
display: block;
color: var(--green);
font-size: 24px;
line-height: 1.2;
}
.result-comment {
margin: 18px 0 0;
color: var(--muted);
font-weight: 800;
}
.penalty-note {
display: grid;
gap: 6px;
margin-top: 16px;
padding: 14px;
border: 1px solid rgba(201, 100, 82, 0.28);
border-radius: 8px;
background: color-mix(in srgb, var(--coral), white 90%);
color: #8d3f32;
font-weight: 900;
}
.penalty-note span {
color: #8d3f32;
}
.ending {
text-align: center;
background: #1f2b2a;
color: #fffdf7;
}
.ending .section-inner {
max-width: 780px;
}
.ending p {
margin: 20px auto 0;
color: rgba(255, 253, 247, 0.78);
}
.site-footer {
display: grid;
justify-items: center;
gap: 14px;
padding: 28px 24px;
color: rgba(255, 253, 247, 0.58);
background: #1f2b2a;
text-align: center;
font-size: 14px;
}
.site-footer p {
margin: 0;
}
.footer-meta {
color: rgba(255, 253, 247, 0.42);
font-size: 12px;
}
.footer-contacts {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
}
.footer-contacts a {
position: relative;
min-width: 42px;
min-height: 42px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 8px 12px;
border: 1px solid rgba(255, 253, 247, 0.18);
border-radius: 8px;
color: #fffdf7;
background: rgba(255, 253, 247, 0.06);
transition:
background 180ms ease,
border-color 180ms ease,
transform 180ms ease;
}
.footer-contacts .has-qr {
cursor: default;
}
.footer-contacts a:hover {
transform: translateY(-2px);
border-color: rgba(241, 201, 121, 0.58);
background: rgba(255, 253, 247, 0.12);
}
.footer-contacts i {
font-size: 18px;
}
.footer-contacts span {
font-size: 13px;
font-weight: 700;
}
.contact-qr {
position: absolute;
left: 50%;
bottom: calc(100% + 12px);
z-index: 5;
width: 156px;
display: grid;
gap: 8px;
justify-items: center;
padding: 12px;
border: 1px solid rgba(31, 43, 42, 0.12);
border-radius: 8px;
background: #fffdf7;
color: var(--ink);
box-shadow: 0 18px 44px rgba(13, 20, 19, 0.28);
opacity: 0;
pointer-events: none;
transform: translate(-50%, 8px);
transition:
opacity 180ms ease,
transform 180ms ease;
}
.contact-qr::after {
content: "";
position: absolute;
left: 50%;
bottom: -7px;
width: 14px;
height: 14px;
background: #fffdf7;
border-right: 1px solid rgba(31, 43, 42, 0.12);
border-bottom: 1px solid rgba(31, 43, 42, 0.12);
transform: translateX(-50%) rotate(45deg);
}
.contact-qr img {
width: 132px;
height: 132px;
object-fit: contain;
border-radius: 4px;
background: #f4f7ee;
}
.contact-qr small {
color: var(--muted);
font-size: 12px;
line-height: 1.3;
}
.footer-contacts a:hover .contact-qr,
.footer-contacts a:focus-visible .contact-qr {
opacity: 1;
transform: translate(-50%, 0);
}
@media (max-width: 820px) {
body:has(.score-sidebar) {
padding-bottom: 86px;
}
.site-header {
position: absolute;
align-items: center;
flex-wrap: wrap;
gap: 12px;
padding-block: 12px;
}
.nav-toggle {
display: grid;
}
.nav {
position: fixed;
top: 68px;
left: 16px;
right: 16px;
display: grid;
gap: 4px;
padding: 10px;
border: 1px solid rgba(255, 253, 247, 0.22);
border-radius: 8px;
background: rgba(31, 43, 42, 0.94);
box-shadow: 0 18px 44px rgba(13, 20, 19, 0.28);
opacity: 0;
pointer-events: none;
transform: translateY(-8px);
transition:
opacity 180ms ease,
transform 180ms ease;
backdrop-filter: blur(16px);
}
.nav a {
min-height: 44px;
display: flex;
align-items: center;
padding: 8px 12px;
border-radius: 7px;
opacity: 1;
}
.nav a:hover {
background: rgba(255, 253, 247, 0.12);
}
.site-header.is-open {
background: linear-gradient(180deg, rgba(22, 30, 29, 0.72), rgba(22, 30, 29, 0));
}
.site-header.is-open .nav {
opacity: 1;
pointer-events: auto;
transform: translateY(0);
}
.site-header.is-open .nav-toggle span:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}
.site-header.is-open .nav-toggle span:nth-child(2) {
opacity: 0;
}
.site-header.is-open .nav-toggle span:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}
.hero {
min-height: 88vh;
padding-top: 92px;
}
.stats,
.section-title,
.message-wall,
.twikoo-sticky-wall .tk-comments,
.twikoo-sticky-wall .tk-comments-container,
.twikoo-sticky-wall .tk-comments-list,
.person-hero-inner,
.detail-grid,
.data-guide,
.score-total {
grid-template-columns: 1fr;
}
.exam-workspace {
padding-right: 0;
}
.score-fab {
position: fixed;
right: 18px;
bottom: 18px;
z-index: 30;
width: 58px;
height: 58px;
display: grid;
place-items: center;
border: 1px solid rgba(255, 253, 247, 0.62);
border-radius: 50%;
background: var(--green);
color: #fffdf7;
box-shadow: 0 16px 38px rgba(13, 20, 19, 0.28);
font: inherit;
font-size: 22px;
font-weight: 900;
line-height: 1;
cursor: pointer;
transition:
background 180ms ease,
transform 180ms ease,
box-shadow 180ms ease;
}
.score-fab[aria-expanded="true"] {
background: var(--coral);
transform: scale(1.04);
}
.score-sidebar {
position: fixed;
top: auto;
left: 12px;
right: 12px;
bottom: 88px;
width: auto;
max-height: min(64vh, 560px);
border-radius: 10px;
background: rgba(255, 253, 247, 0.96);
box-shadow: 0 18px 44px rgba(13, 20, 19, 0.22);
opacity: 0;
pointer-events: none;
transform: translateY(14px) scale(0.98);
transform-origin: bottom right;
transition:
opacity 180ms ease,
transform 180ms ease;
}
.score-sidebar.is-open {
opacity: 1;
pointer-events: auto;
transform: translateY(0) scale(1);
}
.score-panel {
gap: 8px;
}
.score-sidebar-head {
position: sticky;
top: 0;
z-index: 1;
padding: 12px 14px 8px;
border-bottom: 1px solid var(--line);
background: rgba(255, 253, 247, 0.98);
}
.score-sidebar-head h2 {
font-size: 24px;
}
.score-sidebar-head p:not(.eyebrow),
.answer-card-legend,
.score-note {
font-size: 12px;
}
.score-sidebar-head p:not(.eyebrow),
.answer-card-profile,
.score-total-note {
display: none;
}
.score-group {
padding: 12px;
}
.answer-card-grid {
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 6px;
}
.answer-card-number {
min-height: 34px;
border-radius: 7px;
}
.answer-card-profile div {
grid-template-columns: 64px minmax(0, 1fr);
}
.score-total strong {
font-size: 28px;
}
.score-row {
grid-template-columns: 42px minmax(0, 1fr);
}
.manual-score-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.score-total {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.score-total > div {
border-right: 1px solid var(--line);
border-bottom: 1px solid var(--line);
}
.score-total > div:nth-child(even) {
border-right: 0;
}
.score-total > div:nth-last-child(-n + 2) {
border-bottom: 0;
}
.result-profile,
.result-score-grid,
.analysis-grid {
grid-template-columns: 1fr;
}
.result-head {
display: grid;
}
.result-head .score-submit {
width: 100%;
}
.photo-grid,
.people-grid {
grid-template-columns: 1fr 1fr;
}
.scrapbook {
grid-template-columns: repeat(6, 1fr);
}
.scrap-photo,
.scrap-photo:nth-child(n) {
grid-column: span 3;
transform: none;
}
.moment {
grid-template-columns: 1fr;
}
.moment > div {
grid-column: auto;
}
.moment-link {
padding-right: 22px;
}
.moment-link::after {
position: static;
margin-top: 10px;
grid-column: auto;
justify-self: start;
}
}
@media (max-width: 560px) {
section {
padding-inline: 14px;
}
.hero-actions {
display: grid;
}
.stats,
.photo-grid,
.people-grid {
grid-template-columns: 1fr;
}
.stat {
min-height: auto;
}
.photo-card,
.photo-card:nth-child(2),
.photo-card:nth-child(4) {
min-height: 220px;
}
.scrapbook {
display: grid;
grid-template-columns: 1fr;
padding-block: 0;
}
.scrap-photo,
.scrap-photo:nth-child(n) {
grid-column: auto;
}
.twikoo-sticky-wall .tk-submit,
.twikoo-sticky-wall .tk-comment {
transform: none !important;
}
.scrap-placeholder {
min-height: 220px;
}
.exam-paper {
padding: 14px;
border-radius: 0;
}
.exam-paper p {
font-size: 15px;
line-height: 1.78;
}
.exam-paper h2 {
font-size: 20px;
}
.exam-candidate-info {
grid-template-columns: 1fr;
}
.exam-question {
grid-template-columns: 30px minmax(0, 1fr);
gap: 8px;
margin-top: 18px !important;
}
.exam-question-number {
min-width: 30px;
min-height: 30px;
font-size: 14px;
}
.exam-options {
grid-template-columns: 1fr;
gap: 8px;
margin-left: 0;
}
.exam-option {
min-height: 42px;
padding: 8px 10px;
}
.exam-fill-answer {
grid-template-columns: 1fr;
margin-left: 0;
}
.name-fill-grid {
grid-template-columns: 1fr 1fr;
gap: 7px;
margin-left: 0;
padding: 10px;
}
.name-fill-grid label {
grid-template-columns: 26px minmax(0, 1fr);
}
.inline-fill-input {
width: min(96px, 54vw);
min-height: 32px;
}
.exam-figure img {
padding: 8px;
}
.exam-image-grid {
grid-template-columns: 1fr;
}
.image-title-answer {
grid-template-columns: 44px minmax(0, 1fr);
}
.score-sidebar {
left: 8px;
right: 8px;
bottom: 82px;
max-height: min(66vh, 520px);
}
.score-fab {
right: 14px;
bottom: 14px;
width: 56px;
height: 56px;
}
.score-group h3 {
font-size: 18px;
}
.answer-card-grid {
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 5px;
}
.answer-card-number {
min-height: 32px;
font-size: 14px;
}
.manual-score-item {
grid-template-columns: 1fr 66px auto;
padding: 8px;
}
.score-total > div {
padding: 12px;
}
.result-card {
padding: 18px;
}
.result-profile div,
.result-score-grid > div,
.analysis-grid p {
padding: 14px;
}
.score-row,
.score-head {
grid-template-columns: 40px minmax(0, 1fr);
}
.score-row output {
text-align: left;
}
.manual-score-grid {
grid-template-columns: 1fr;
}
}