*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --page: #FFF7F8;
    --surface: #FFFFFF;
    --soft: #F8E6EA;
    --title: #3A1F28;
    --text: #4A2A32;
    --muted: #7A4E58;
    --quiet: #A07880;
    --petal: #E88AA4;
    --bright: #F2A0B6;
    --green: #7BAE7F;
    --purple: #C9A8D4;
    --branch: #6B3E3E;
    --line: rgba(232, 138, 164, 0.20);
    --shadow: 0 14px 34px rgba(58, 31, 40, 0.08);
    --radius: 20px;
    --max: 1160px;
}

html {
    scroll-behavior: smooth;
    background: var(--page);
}

body {
    margin: 0;
    padding-top: 136px;
    background: var(--page);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.78;
    overflow-x: hidden;
}

body.overlay-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(123, 174, 127, 0.42);
    outline-offset: 3px;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    width: 100%;
}

.petal-strip {
    height: 24px;
    color: #FFFFFF;
    background: var(--petal);
}

.top-shell,
.heart-shell,
.branch-shell,
.footer-shell,
.page-shell,
.home-shell {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}

.top-shell {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    line-height: 1;
}

.tiny-brand {
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: .02em;
}

.top-search {
    min-width: 48px;
    height: 24px;
    padding: 0 2px;
    border: 0;
    color: #FFFFFF;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
}

.heart-bar {
    height: 68px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 247, 248, .97);
    backdrop-filter: blur(10px);
}

.heart-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr);
    align-items: center;
    height: 68px;
    gap: 18px;
}

.round-menu {
    justify-self: start;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #FFFFFF;
    display: grid;
    place-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(58, 31, 40, .05);
}

.round-menu span {
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: var(--branch);
}

.center-brand {
    min-width: 120px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: auto;
    height: auto;
    max-height: 36px;
    max-width: 220px;
    object-fit: contain;
}

.brand-word {
    color: var(--title);
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .08em;
}

.app-link {
    justify-self: end;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #F2A0B6 0%, #E88AA4 52%, #D46B88 100%);
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(212, 107, 136, .20);
}

.branch-nav {
    height: 44px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
}

.branch-shell {
    height: 44px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 42px;
}

.branch-shell a {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 14px;
    white-space: nowrap;
}

.branch-shell a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--petal);
    transition: left .18s ease, right .18s ease;
}

.branch-shell a:hover::after,
.branch-shell a.is-current::after {
    left: 14%;
    right: 14%;
}

.site-main {
    min-height: 60vh;
}

.home-shell,
.page-shell {
    padding: 36px 0 72px;
}

.section-space {
    margin-top: 28px;
}

.eyebrow,
.kicker,
.mini-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--branch);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--title);
    line-height: 1.28;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(28px, 4vw, 32px);
    letter-spacing: -.02em;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(22px, 3vw, 27px);
}

h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    max-width: 820px;
    color: var(--muted);
    font-size: 17px;
}

.home-hero,
.page-hero,
.content-card,
.home-section,
.clause-card,
.note-card,
.timeline,
.app-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.home-hero {
    padding: clamp(24px, 4vw, 42px);
    overflow: hidden;
}

.hero-copy {
    max-width: 800px;
}

.hero-copy p {
    max-width: 760px;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 26px;
}

.btn-primary,
.btn-secondary,
.text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.btn-primary {
    padding: 0 20px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #F2A0B6 0%, #E88AA4 52%, #D46B88 100%);
}

.btn-secondary {
    padding: 0 20px;
    color: var(--branch);
    border: 1px solid var(--line);
    background: #FFFFFF;
}

.text-link {
    min-height: 44px;
    color: var(--branch);
}

.text-link::after {
    content: "→";
    margin-left: 7px;
}

.section-media,
.hero-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #F8E6EA, #FFF7F8 52%, #F0E8F3);
}

.hero-media {
    max-height: 340px;
    aspect-ratio: 16 / 6;
}

.section-media {
    aspect-ratio: 16 / 7;
}

.section-media.compact {
    aspect-ratio: 16 / 5;
}

.section-media img,
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-slot {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    background:
        radial-gradient(circle at 12% 26%, rgba(232, 138, 164, .22) 0 6px, transparent 7px),
        radial-gradient(circle at 82% 62%, rgba(123, 174, 127, .19) 0 7px, transparent 8px),
        linear-gradient(135deg, rgba(242, 160, 182, .12), rgba(201, 168, 212, .12));
}

.hero-media .media-slot {
    min-height: 250px;
}

.home-section {
    padding: clamp(22px, 4vw, 34px);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-head p {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--muted);
}

.tag-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tag-card {
    min-height: 160px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #FFFFFF;
}

.tag-card .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 18px;
}

.dot.pink { background: var(--petal); }
.dot.green { background: var(--green); }
.dot.purple { background: var(--purple); }

.tag-card p {
    color: var(--muted);
    font-size: 14px;
}

.tag-card a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--branch);
    font-weight: 800;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 28px;
    align-items: center;
}

.news-list,
.catalog-list,
.album-list,
.editor-list,
.simple-list {
    display: grid;
    gap: 12px;
}

.news-item,
.catalog-row,
.album-row,
.editor-row,
.simple-row {
    display: grid;
    align-items: start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.news-item {
    grid-template-columns: 48px minmax(0, 1fr);
}

.num,
.big-num {
    color: var(--petal);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.04em;
}

.num {
    font-size: 24px;
}

.big-num {
    font-size: clamp(40px, 7vw, 66px);
}

.news-item strong,
.catalog-row strong,
.album-row strong,
.editor-row strong {
    color: var(--title);
}

.news-item p,
.catalog-row p,
.album-row p,
.editor-row p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.three-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: var(--shadow);
}

.feature-card .section-media {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: 16 / 9;
}

.feature-body {
    padding: 20px;
}

.feature-body p {
    color: var(--muted);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.theme-card {
    min-height: 150px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #FFFFFF, #FFF9FA);
}

.theme-card p {
    color: var(--muted);
    font-size: 14px;
}

.album-row {
    grid-template-columns: minmax(140px, .38fr) minmax(0, 1fr) auto;
}

.album-row .text-link {
    align-self: center;
}

.editor-row {
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
}

.timeline {
    position: relative;
    padding: 26px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 41px;
    top: 44px;
    bottom: 44px;
    width: 2px;
    background: var(--line);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 18px;
    padding: 14px 0;
}

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    margin: 7px 0 0 8px;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    background: var(--petal);
    box-shadow: 0 0 0 1px var(--line);
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 2px 9px;
    border-radius: 999px;
    color: var(--branch);
    background: var(--soft);
    font-size: 12px;
    font-weight: 800;
}

.app-panel {
    padding: clamp(24px, 4vw, 38px);
}

.app-mark {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.app-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 18px;
}

.app-icon-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--bright), var(--purple));
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.note-card,
.clause-card {
    padding: 22px;
}

.note-card p,
.clause-card p,
.page-hero p,
.content-card p {
    color: var(--muted);
}

.page-hero {
    padding: clamp(24px, 4vw, 38px);
    margin-bottom: 24px;
}

.page-hero .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
    gap: 26px;
    align-items: center;
}

.page-hero .section-media {
    margin: 0;
    aspect-ratio: 16 / 10;
}

.page-hero.no-image .hero-inner {
    grid-template-columns: 1fr;
}

.page-index {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.page-index a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--branch);
    background: var(--soft);
    font-weight: 700;
    font-size: 14px;
}

.content-stack {
    display: grid;
    gap: 18px;
}

.content-card {
    padding: clamp(22px, 4vw, 32px);
}

.content-card > p:last-child {
    margin-bottom: 0;
}

.numbered-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.catalog-row {
    grid-template-columns: minmax(150px, .32fr) minmax(0, 1fr);
    padding: 20px 0;
}

.catalog-row:first-child {
    padding-top: 0;
}

.catalog-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.wide-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.type-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #FFFFFF;
}

.type-card p {
    color: var(--muted);
    font-size: 14px;
}

.episode-guide {
    counter-reset: episode;
    display: grid;
    gap: 12px;
}

.episode-item {
    counter-increment: episode;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1px solid var(--line);
}

.episode-item::before {
    content: counter(episode, decimal-leading-zero);
    color: var(--petal);
    font-size: 24px;
    font-weight: 900;
}

.quote-block {
    padding: 22px;
    border-left: 4px solid var(--petal);
    border-radius: 0 18px 18px 0;
    background: var(--soft);
    color: var(--text);
}

.topic-cover {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.topic-panel {
    min-height: 190px;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #FFFFFF;
}

.topic-panel p {
    color: var(--muted);
}

.step-list {
    display: grid;
    gap: 14px;
}

.step-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #FFFFFF;
}

.step-item .step-no {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #FFFFFF;
    background: var(--petal);
    font-weight: 900;
}

.article-prose {
    max-width: 860px;
    margin: 0 auto;
}

.article-prose section {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.article-prose section:last-child {
    border-bottom: 0;
}

.editor-view {
    padding: 18px 20px;
    border-radius: 18px;
    background: #FFF9FA;
    border: 1px solid var(--line);
}

.editor-view strong {
    color: var(--petal);
}

.walk-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.walk-item {
    padding: 22px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1px solid var(--line);
}

.device-grid,
.policy-grid,
.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.policy-card,
.help-card {
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #FFFFFF;
}

.policy-card p,
.help-card p {
    color: var(--muted);
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    padding: 22px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1px solid var(--line);
}

.faq-item h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--muted);
}

.contact-paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-card {
    padding: 24px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid var(--line);
}

.contact-card .text-link {
    margin-top: 6px;
}

.site-footer {
    color: #F8E6EA;
    background: #3A1F28;
    padding: 44px 0 calc(34px + env(safe-area-inset-bottom));
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(248, 230, 234, .14);
}

.footer-logo {
    width: auto;
    max-width: 180px;
    max-height: 40px;
    object-fit: contain;
}

.footer-brand strong,
.footer-brand span {
    display: block;
}

.footer-brand strong {
    color: #FFFFFF;
    font-size: 20px;
}

.footer-brand span {
    margin-top: 2px;
    color: #F8E6EA;
    opacity: .78;
    font-size: 12px;
    letter-spacing: .09em;
}

.footer-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 30px 0;
}

.footer-groups h2 {
    color: #FFFFFF;
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-groups a {
    min-height: 34px;
    display: flex;
    align-items: center;
    color: #F8E6EA;
    opacity: .82;
    font-size: 14px;
}

.footer-groups a:hover {
    opacity: 1;
}

.footer-notice {
    padding-top: 20px;
    border-top: 1px solid rgba(248, 230, 234, .14);
    color: #F8E6EA;
    opacity: .82;
    font-size: 13px;
}

.copyright {
    margin-top: 10px;
    color: #F8E6EA;
    opacity: .62;
    font-size: 12px;
}

.page-mask {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(58, 31, 40, .26);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

.page-mask.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fall-menu,
.search-layer {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1200;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.fall-menu {
    top: 92px;
    transform: translateY(-14px);
}

.fall-menu.is-open,
.search-layer.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.fall-card,
.search-card {
    width: min(94%, 760px);
    margin: 0 auto;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line);
    border-radius: 0 0 22px 22px;
    background: #FFF7F8;
    box-shadow: 0 22px 60px rgba(58, 31, 40, .17);
}

.fall-card {
    padding: 22px;
}

.fall-head,
.search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.fall-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fall-brand img {
    width: auto;
    max-width: 150px;
    max-height: 34px;
}

.fall-brand strong,
.fall-brand span {
    display: block;
}

.fall-brand strong {
    color: var(--title);
    font-size: 17px;
}

.fall-brand span {
    color: var(--quiet);
    font-size: 11px;
    letter-spacing: .08em;
}

.close-btn {
    min-width: 56px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--branch);
    background: #FFFFFF;
    cursor: pointer;
    font-weight: 800;
}

.fall-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.fall-group {
    padding: 18px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1px solid var(--line);
}

.fall-group h2 {
    font-size: 15px;
    color: var(--petal);
    margin-bottom: 10px;
}

.fall-group a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.fall-group a:last-child {
    border-bottom: 0;
}

.fall-group strong,
.fall-group span {
    display: block;
}

.fall-group strong {
    color: var(--title);
    font-size: 14px;
}

.fall-group span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.search-layer {
    top: 92px;
    transform: translateY(-12px);
}

.search-card {
    padding: 24px;
    border-radius: 0 0 22px 22px;
    background: #FFF7F8;
}

.search-head h2 {
    margin: 6px 0 0;
    font-size: 23px;
}

.search-box {
    display: grid;
    gap: 7px;
    color: var(--branch);
    font-size: 13px;
    font-weight: 800;
}

.search-box input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 0 16px;
    color: var(--text);
    background: #FFFFFF;
}

.search-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
}

.search-presets a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--branch);
    background: #FFFFFF;
    border: 1px solid var(--line);
    font-weight: 700;
}

.search-note {
    margin: 16px 0 0;
    color: var(--quiet);
    font-size: 12px;
}

.mobile-bottom {
    display: none;
}

@media (hover: hover) {
    .app-link:hover,
    .btn-primary:hover {
        filter: brightness(.98);
        transform: translateY(-1px);
    }

    .btn-secondary:hover,
    .page-index a:hover,
    .search-presets a:hover {
        border-color: rgba(232, 138, 164, .48);
        background: #FFF9FA;
    }

    .tag-card:hover,
    .feature-card:hover,
    .theme-card:hover,
    .topic-panel:hover {
        box-shadow: 0 14px 34px rgba(58, 31, 40, .09);
    }
}

@media (max-width: 920px) {
    .branch-shell {
        gap: 24px;
    }

    .tag-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .three-grid,
    .info-grid,
    .wide-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-col,
    .page-hero .hero-inner {
        grid-template-columns: 1fr;
    }

    .page-hero .section-media {
        aspect-ratio: 16 / 7;
    }

    .footer-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    body {
        padding-top: 92px;
        padding-bottom: calc(50px + env(safe-area-inset-bottom));
    }

    .top-shell,
    .heart-shell,
    .footer-shell,
    .page-shell,
    .home-shell {
        width: min(calc(100% - 32px), var(--max));
    }

    .heart-shell {
        grid-template-columns: 54px minmax(0, 1fr) 92px;
        gap: 8px;
    }

    .center-brand {
        min-width: 0;
        overflow: hidden;
    }

    .brand-logo {
        max-width: 150px;
        max-height: 32px;
    }

    .brand-word {
        font-size: 18px;
        white-space: nowrap;
    }

    .app-link {
        padding: 0 12px;
        font-size: 13px;
    }

    .branch-nav {
        display: none;
    }

    .home-shell,
    .page-shell {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .home-hero,
    .home-section,
    .page-hero,
    .content-card,
    .app-panel {
        border-radius: 18px;
    }

    .hero-actions {
        align-items: stretch;
    }

    .hero-actions a {
        flex: 1 1 auto;
    }

    .hero-media {
        aspect-ratio: 16 / 8;
        max-height: 300px;
    }

    .hero-media .media-slot {
        min-height: 180px;
    }

    .section-head {
        display: block;
    }

    .section-head .text-link {
        margin-top: 4px;
    }

    .tag-grid,
    .three-grid,
    .theme-grid,
    .info-grid,
    .wide-type-grid,
    .topic-cover,
    .device-grid,
    .policy-grid,
    .help-grid,
    .walk-index,
    .contact-paths {
        grid-template-columns: 1fr;
    }

    .tag-card {
        min-height: 0;
    }

    .album-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .editor-row,
    .numbered-card {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .catalog-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .timeline {
        padding: 20px 18px;
    }

    .timeline::before {
        left: 32px;
    }

    .timeline-item {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 12px;
    }

    .timeline-dot {
        margin-left: 5px;
    }

    .site-footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .footer-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .fall-menu,
    .search-layer {
        top: 92px;
    }

    .fall-card {
        width: 94%;
        max-height: calc(100vh - 104px);
        padding: 16px;
        border-radius: 0 0 18px 18px;
    }

    .fall-grid {
        grid-template-columns: 1fr;
    }

    .search-layer {
        inset: 0;
        z-index: 1300;
        transform: none;
        background: #FFF7F8;
    }

    .search-card {
        width: 100%;
        height: 100%;
        max-height: none;
        border: 0;
        border-radius: 0;
        padding: max(24px, env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
        box-shadow: none;
    }

    .mobile-bottom {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
        height: calc(50px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -8px 26px rgba(58, 31, 40, .06);
    }

    .mobile-bottom a {
        min-width: 0;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
    }

    .mobile-bottom a.is-current {
        color: var(--petal);
    }

    .page-mask {
        z-index: 1190;
    }
}

@media (max-width: 420px) {
    .tiny-brand {
        max-width: calc(100vw - 88px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .footer-groups {
        grid-template-columns: 1fr 1fr;
    }

    .round-menu {
        width: 44px;
        height: 44px;
    }

    .app-link {
        min-width: 88px;
    }
}
