:root {
    --bg: #fff7fb;
    --text: #2b2430;
    --muted: #766b7c;
    --card: rgba(255, 255, 255, .72);
    --line: rgba(255, 255, 255, .72);
    --primary: #ff5f8f;
    --primary-dark: #dc3e72;
    --accent: #8a6dff;
    --shadow: 0 24px 70px rgba(255, 95, 143, .16);
    --radius: 28px;
}

[data-theme="dark"] {
    --bg: #16121d;
    --text: #f7edf7;
    --muted: #b9aabe;
    --card: rgba(34, 26, 43, .76);
    --line: rgba(255, 255, 255, .08);
    --primary: #ff74a4;
    --primary-dark: #ff92b8;
    --accent: #a897ff;
    --shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 123, 172, .28), transparent 28rem),
        radial-gradient(circle at 90% 8%, rgba(138, 109, 255, .22), transparent 26rem),
        linear-gradient(135deg, var(--bg), #fff);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
[data-theme="dark"] body,
body[data-theme="dark"] {
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 123, 172, .18), transparent 28rem),
        radial-gradient(circle at 90% 8%, rgba(138, 109, 255, .18), transparent 26rem),
        linear-gradient(135deg, #16121d, #0f0b16);
}
a { color: inherit; text-decoration: none; }
code {
    padding: .12rem .35rem;
    border-radius: .45rem;
    background: rgba(255, 95, 143, .11);
}
.glass {
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.site-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 24px auto 0;
}
.topbar {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-radius: 999px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}
.brand-heart {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.nav-link {
    padding: 8px 12px;
    color: var(--muted);
    border-radius: 999px;
    font-size: 14px;
}
.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.theme-toggle,
.article-toolbar button,
.link-btn,
#closeNotice {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text);
    background: rgba(255, 255, 255, .52);
}
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
    margin-top: 26px;
    padding: clamp(30px, 6vw, 70px);
    border-radius: 42px;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 95, 143, .2);
    filter: blur(10px);
}
.eyebrow {
    margin: 0 0 8px;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
h1 {
    margin: 0;
    font-size: clamp(36px, 7vw, 70px);
    line-height: 1;
    letter-spacing: -0.05em;
}
h2 { margin: 28px 0 12px; }
h3 { margin: 0 0 8px; }
p { line-height: 1.8; }
.subtitle {
    color: var(--muted);
    font-size: 18px;
    margin: 18px 0 28px;
}
.hero-actions,
.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    font-family: inherit;
}
.primary-btn {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 32px rgba(255, 95, 143, .25);
}
.ghost-btn {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .36);
}
.lover-card {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
    justify-items: center;
    padding: 24px;
    border-radius: 32px;
    background: rgba(255, 255, 255, .46);
}
.person {
    display: grid;
    justify-items: center;
    gap: 12px;
}
.avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.avatar.big {
    width: clamp(92px, 14vw, 134px);
    height: clamp(92px, 14vw, 134px);
    font-size: 44px;
    border: 5px solid rgba(255, 255, 255, .7);
}
.avatar-b { background: linear-gradient(135deg, #8a6dff, #63caff); }
.heart-shape {
    width: 38px;
    height: 38px;
    position: relative;
    transform: rotate(-45deg);
    background: var(--primary);
    animation: heartbeat 1.4s infinite;
}
.heart-shape::before,
.heart-shape::after {
    content: "";
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
}
.heart-shape::before { top: -19px; left: 0; }
.heart-shape::after { left: 19px; top: 0; }
@keyframes heartbeat {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    35% { transform: rotate(-45deg) scale(1.18); }
}
.stats-grid,
.card-grid,
.about-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}
.stat-card,
.feature-card,
.about-card {
    border-radius: var(--radius);
    padding: 24px;
}
.stat-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}
.stat-card strong {
    font-size: clamp(20px, 3vw, 32px);
}
.feature-card {
    min-height: 158px;
    transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-card span {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(255, 95, 143, .12);
    font-size: 25px;
}
.feature-card p,
.page-head p,
.about-card p,
.article-body p,
.timeline-item p { color: var(--muted); }
.notice {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: min(360px, calc(100% - 32px));
    z-index: 30;
    padding: 22px;
    border-radius: 24px;
}
.notice h3 { margin: 0 0 10px; }
#closeNotice {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--muted);
    background: rgba(255,255,255,.5);
}
.flash {
    margin: 20px 0 0;
    padding: 14px 18px;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.content-layout,
.article-layout {
    margin-top: 28px;
}
.page-head,
.article-card,
.comment-form,
.checklist {
    border-radius: 34px;
    padding: clamp(24px, 4vw, 42px);
}
.page-head h1,
.article-card h1 { margin-bottom: 14px; }
.timeline {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}
.timeline-item {
    position: relative;
    padding: 24px 24px 24px 34px;
    border-radius: 24px;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 28px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(255, 95, 143, .16);
}
.timeline-item time { color: var(--primary-dark); font-weight: 800; }
.article-card { max-width: 880px; margin: 0 auto 24px; }
.article-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 16px;
}
.article-toolbar button {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, .46);
}
.article-body.small { font-size: 15px; }
.article-body.normal { font-size: 17px; }
.article-body.large { font-size: 20px; }
.article-body ul { line-height: 2; }
.meta { color: var(--muted); }
.comments-section {
    display: grid;
    grid-template-columns: 410px 1fr;
    gap: 20px;
    align-items: start;
    margin-top: 22px;
}
.comment-form {
    position: sticky;
    top: 100px;
}
.form-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}
.form-title span { color: var(--muted); font-size: 13px; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
label { display: grid; gap: 8px; font-weight: 700; }
input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    outline: none;
    border-radius: 16px;
    padding: 12px 14px;
    color: var(--text);
    background: rgba(255, 255, 255, .6);
    font: inherit;
}
[data-theme="dark"] input,
[data-theme="dark"] textarea {
    background: rgba(255, 255, 255, .06);
}
textarea { resize: vertical; }
.comment-form textarea { margin-bottom: 14px; }
.honeypot { position: absolute; left: -9999px; }
.comment-list { display: grid; gap: 14px; }
.comment-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .48);
}
[data-theme="dark"] .comment-card {
    background: rgba(255, 255, 255, .04);
}
.comment-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}
.text-avatar {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
}
.comment-main { flex: 1; min-width: 0; }
.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}
.comment-head strong { color: var(--text); font-size: 15px; }
.reply-ref {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--primary-dark);
    background: rgba(255, 95, 143, .11);
    font-size: 13px;
}
.link-btn {
    padding: 0;
    color: var(--primary-dark);
    background: none;
    font-weight: 800;
}
.empty {
    padding: 28px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 24px;
}
.checklist {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}
.checklist label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .42);
}
.checklist input { width: auto; transform: scale(1.2); }
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
}
.gallery-card span {
    position: absolute;
    left: 18px;
    bottom: 16px;
    padding: 8px 12px;
    color: white;
    border-radius: 999px;
    background: rgba(0, 0, 0, .22);
    backdrop-filter: blur(8px);
}
.g1 { background: linear-gradient(135deg, #ff9ab7, #ffd1dc); }
.g2 { background: linear-gradient(135deg, #ffc371, #ff5f6d); }
.g3 { background: linear-gradient(135deg, #d4fc79, #96e6a1); }
.g4 { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); }
.g5 { background: linear-gradient(135deg, #fbc2eb, #a6c1ee); }
.g6 { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.footer {
    padding: 34px 0 40px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}
@media (max-width: 920px) {
    .topbar { align-items: flex-start; border-radius: 28px; flex-wrap: wrap; }
    .nav { order: 3; justify-content: flex-start; width: 100%; }
    .hero { grid-template-columns: 1fr; }
    .stats-grid,
    .card-grid,
    .about-grid,
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .comments-section { grid-template-columns: 1fr; }
    .comment-form { position: static; }
}
@media (max-width: 620px) {
    .site-shell { width: min(100% - 22px, 1160px); margin-top: 12px; }
    .hero { padding: 28px; border-radius: 30px; }
    .lover-card { grid-template-columns: 1fr; }
    .heart-shape { transform: rotate(-45deg) scale(.78); }
    .stats-grid,
    .card-grid,
    .about-grid,
    .gallery-grid,
    .form-grid { grid-template-columns: 1fr; }
    .notice { right: 12px; bottom: 12px; }
    .comment-head { flex-direction: column; }
}
