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

:root {
    --bg: #F4FBF4;
    --bg-deep: #E4F3E6;
    --surface: #FFFFFF;
    --surface-soft: #D8EDDC;
    --text: #2A4632;
    --title: #14321C;
    --muted: #5E7A64;
    --soft: #88A090;
    --green: #1F8A4C;
    --mint: #3CB371;
    --deep: #0F3D24;
    --gold: #C9A227;
    --border: rgba(31, 138, 76, 0.22);
    --gold-border: rgba(201, 162, 39, 0.36);
    --shadow: 0 16px 36px rgba(20, 50, 28, 0.10);
    --radius: 14px;
    --header-height: 113px;
}

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

body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 18%, rgba(60, 179, 113, 0.08), transparent 28rem),
        linear-gradient(180deg, #F8FDF8 0%, var(--bg) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

body.panel-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(201, 162, 39, 0.72);
    outline-offset: 3px;
}

.shell {
    width: min(1200px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.skip-link {
    position: fixed;
    left: 18px;
    top: 16px;
    z-index: 999;
    transform: translateY(-150%);
    padding: 9px 14px;
    border-radius: 10px;
    color: #F4FBF4;
    background: var(--deep);
    transition: transform .18s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: var(--surface);
    box-shadow: 0 8px 26px rgba(20, 50, 28, 0.07);
}

.vine-bar {
    height: 11px;
    color: #F4FBF4;
    background: var(--green);
}

.vine-inner {
    height: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 9px;
    line-height: 11px;
    letter-spacing: .04em;
}

.vine-brand,
.text-button {
    white-space: nowrap;
}

.text-button {
    min-width: 44px;
    height: 11px;
    padding: 0 3px;
    border: 0;
    color: #F4FBF4;
    background: transparent;
    font-size: 9px;
    line-height: 11px;
}

.platform-bar {
    height: 62px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 253, 245, 0.97);
    backdrop-filter: blur(12px);
}

.platform-inner {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-link {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    height: 44px;
}

.site-logo {
    width: auto;
    max-width: min(220px, 36vw);
    height: 28px;
    object-fit: contain;
    object-position: left center;
}

.brand-word {
    color: var(--deep);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: .02em;
}

.platform-actions,
.button-row,
.inline-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.primary-button,
.secondary-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 12px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.primary-button {
    border: 1px solid transparent;
    color: #F4FBF4;
    background: linear-gradient(135deg, #3CB371 0%, #1F8A4C 56%, #0F3D24 100%);
    box-shadow: 0 8px 20px rgba(31, 138, 76, 0.18);
}

.secondary-button {
    border: 1px solid var(--border);
    color: var(--deep);
    background: #FFFDF5;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(20, 50, 28, 0.12);
}

.primary-button.compact {
    padding-inline: 14px;
}

.fresh-tabs {
    height: 40px;
    background: #DFF4E5;
    border-bottom: 1px solid rgba(31, 138, 76, 0.18);
}

.fresh-tabs-inner {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.fresh-tabs a {
    position: relative;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    color: var(--muted);
    font-weight: 650;
}

.fresh-tabs a.active {
    color: var(--deep);
}

.fresh-tabs a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 28px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--green);
    transform: translateX(-50%);
}

.site-main {
    min-height: 70vh;
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 80px;
}

.notice-strip {
    border: 1px solid rgba(60, 179, 113, .28);
    border-radius: 12px;
    color: var(--deep);
    background: #DFF4E5;
    overflow: hidden;
}

.notice-strip a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-weight: 700;
}

.section-gap {
    margin-top: 42px;
}

.home-duo,
.triple-grid,
.status-grid,
.info-grid,
.footer-groups {
    display: grid;
    gap: 18px;
}

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

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

.status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
    margin-bottom: 16px;
}

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

.feature-card,
.standard-card,
.info-card,
.wide-note,
.article-section,
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 10px 26px rgba(20, 50, 28, 0.06);
}

.feature-card {
    overflow: hidden;
}

.feature-copy,
.standard-card,
.info-card {
    padding: 22px;
}

.feature-copy h1,
.feature-copy h2,
.standard-card h3,
.info-card h2,
.banner-copy h2,
.section-heading h2,
.page-hero h1,
.article-section h2,
.faq-item h2,
.wide-note h2,
.app-copy h2 {
    margin: 0;
    color: var(--title);
    line-height: 1.28;
    letter-spacing: -.02em;
}

.feature-copy h1,
.page-hero h1 {
    font-size: clamp(28px, 4vw, 32px);
}

.feature-copy h2,
.banner-copy h2,
.section-heading h2,
.wide-note h2,
.app-copy h2 {
    font-size: clamp(23px, 3vw, 28px);
}

.standard-card h3,
.info-card h2,
.article-section h2,
.faq-item h2 {
    font-size: 21px;
}

p {
    margin: 12px 0 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    color: var(--green);
    font-weight: 750;
}

.text-link::after {
    content: "→";
    margin-left: 7px;
    transition: transform .18s ease;
}

.text-link:hover::after {
    transform: translateX(3px);
}

.media-slot {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #EEF8EF, #DDF1E3);
}

.media-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.media-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 20px;
    text-align: center;
    color: var(--deep);
    background:
        radial-gradient(circle at 78% 24%, rgba(201, 162, 39, .16), transparent 18%),
        linear-gradient(135deg, #E9F7EC, #D4ECDC);
}

.media-fallback span {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
}

.media-fallback strong {
    font-size: 20px;
}

.media-compact {
    height: 168px;
}

.media-small {
    height: 154px;
    margin: -22px -22px 18px;
    width: calc(100% + 44px);
}

.banner-slot {
    max-height: 240px;
    min-height: 190px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.banner-slot img {
    max-height: 240px;
}

.banner-copy {
    width: min(820px, 100%);
    margin: 22px auto 0;
    text-align: center;
}

.banner-copy .button-row {
    justify-content: center;
    margin-top: 18px;
}

.section-heading {
    margin-bottom: 18px;
}

.wide-note {
    padding: 24px;
}

.split-row {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
    gap: 28px;
    align-items: center;
}

.split-row.reverse {
    grid-template-columns: minmax(280px, .88fr) minmax(0, 1.12fr);
}

.media-wide {
    min-height: 190px;
    max-height: 220px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.media-calendar {
    height: 180px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.status-grid article {
    min-height: 140px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, #FFFFFF, #F1F9F2);
}

.status-grid strong {
    color: var(--deep);
    font-size: 18px;
}

.status-grid article:nth-child(4) {
    border-color: var(--gold-border);
    background: linear-gradient(180deg, #FFFDF5, #F8F3DA);
}

.app-home {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .7fr);
    gap: 30px;
    align-items: center;
    padding: 30px;
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #EFF9F1 58%, #F7F1D7 100%);
    box-shadow: var(--shadow);
}

.app-copy .button-row {
    margin-top: 18px;
}

.app-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
}

.media-app {
    width: 100%;
    max-width: 320px;
    height: 420px;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.app-icon {
    position: absolute;
    right: max(0px, calc(50% - 178px));
    bottom: 16px;
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 8px 20px rgba(20, 50, 28, .14);
}

.info-card {
    border-top: 3px solid var(--green);
}

.inline-links {
    margin-top: 14px;
}

.inline-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--green);
    font-weight: 700;
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
    gap: 28px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #EAF7ED 72%, #F5F0D5 100%);
    box-shadow: var(--shadow);
}

.page-hero-copy {
    max-width: 760px;
}

.page-hero-copy > p {
    font-size: 17px;
    color: var(--muted);
}

.page-hero-media {
    height: 220px;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.page-hero:not(:has(.page-hero-media)) {
    grid-template-columns: 1fr;
}

.article-stack {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.article-section {
    padding: 26px;
}

.article-section p + p {
    margin-top: 10px;
}

.article-section.timeline,
.article-section.scene,
.article-section.status,
.article-section.ranked {
    border-left: 4px solid var(--green);
}

.article-section.profile,
.article-section.catalog,
.article-section.playlist {
    background: linear-gradient(180deg, #FFFFFF, #F5FBF6);
}

.article-section.tags {
    border-top: 3px solid var(--mint);
}

.article-section.essay {
    border-color: var(--gold-border);
}

.article-section.product,
.article-section.install {
    background: linear-gradient(145deg, #FFFFFF, #EDF8F0);
}

.article-section.terms,
.article-section.help,
.article-section.about,
.article-section.contact {
    box-shadow: none;
}

.faq-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.faq-item {
    padding: 24px;
}

.faq-item h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.site-footer {
    color: #E4F3E6;
    background: var(--deep);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(240px, .85fr) minmax(0, 1.65fr);
    gap: 44px;
    padding-top: 44px;
    padding-bottom: 34px;
}

.footer-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-weight: 800;
}

.footer-logo {
    width: auto;
    max-width: 170px;
    height: 26px;
    object-fit: contain;
    object-position: left center;
}

.footer-brand-word {
    color: #F4FBF4;
    font-size: 24px;
}

.footer-brand p {
    color: #CFE3D3;
    font-size: 14px;
}

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

.footer-groups h2 {
    margin: 0 0 10px;
    color: #F4FBF4;
    font-size: 16px;
}

.footer-groups a {
    min-height: 36px;
    display: flex;
    align-items: center;
    color: #CFE3D3;
    font-size: 14px;
}

.footer-groups a:hover,
.footer-bottom a:hover {
    color: #9EE0B8;
}

.footer-bottom {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 14px;
    padding-bottom: 14px;
    border-top: 1px solid rgba(228, 243, 230, .14);
    color: #BFD6C4;
    font-size: 13px;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 190;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(10, 34, 20, .38);
    transition: opacity .2s ease, visibility .2s ease;
}

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

.basket-panel,
.search-panel {
    position: fixed;
    z-index: 200;
    top: 73px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    border: 1px solid var(--border);
    border-top: 2px solid var(--green);
    border-radius: 0 0 14px 14px;
    background: #FFFDF5;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

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

.basket-panel {
    left: max(20px, calc((100vw - 1200px) / 2));
    width: min(500px, calc(100vw - 40px));
    max-height: min(72vh, 680px);
    overflow: auto;
    padding: 18px;
}

.search-panel {
    right: max(20px, calc((100vw - 1200px) / 2));
    width: min(460px, calc(100vw - 40px));
    padding: 18px;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.panel-head p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.panel-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--deep);
}

.panel-brand img {
    width: auto;
    max-width: 150px;
    height: 26px;
    object-fit: contain;
}

.panel-close {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--deep);
    background: #FFFFFF;
}

.basket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.basket-group h2 {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 14px;
}

.basket-group a {
    display: block;
    min-height: 58px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(31, 138, 76, .12);
}

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

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

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

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

.search-visual {
    margin-top: 16px;
}

.search-visual label {
    display: block;
    margin-bottom: 7px;
    color: var(--title);
    font-weight: 700;
}

.search-visual input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: #FFFFFF;
}

.search-visual p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.search-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.search-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--deep);
    background: #F2F9F3;
    font-weight: 650;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 900px) {
    .triple-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

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

    .split-row,
    .split-row.reverse,
    .app-home,
    .page-hero,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .split-row.reverse .media-slot {
        order: 2;
    }

    .app-visual {
        justify-items: start;
    }

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

@media (max-width: 700px) {
    :root {
        --header-height: 73px;
    }

    body {
        padding-bottom: calc(50px + env(safe-area-inset-bottom));
    }

    .shell {
        width: calc(100% - 32px);
    }

    .fresh-tabs {
        display: none;
    }

    .site-main {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 54px;
    }

    .vine-inner {
        width: calc(100% - 24px);
    }

    .platform-inner {
        width: calc(100% - 24px);
    }

    .brand-word {
        font-size: 21px;
    }

    .site-logo {
        max-width: 36vw;
        height: 26px;
    }

    .platform-actions {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .platform-actions .primary-button,
    .platform-actions .secondary-button {
        min-width: 58px;
        padding-inline: 10px;
        font-size: 13px;
    }

    .home-duo {
        grid-template-columns: 1fr;
    }

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

    .feature-copy,
    .standard-card,
    .info-card,
    .wide-note,
    .article-section,
    .faq-item {
        padding: 19px;
    }

    .media-small {
        margin: -19px -19px 16px;
        width: calc(100% + 38px);
    }

    .media-compact {
        height: 156px;
    }

    .banner-slot {
        min-height: 160px;
    }

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

    .status-grid article {
        min-height: 0;
    }

    .app-home,
    .page-hero {
        padding: 20px;
    }

    .page-hero-media {
        height: 180px;
    }

    .media-app {
        height: 360px;
    }

    .footer-top {
        gap: 26px;
        padding-top: 34px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 22px;
    }

    .basket-panel,
    .search-panel {
        left: 12px;
        right: 12px;
        width: auto;
        max-height: 60vh;
        border-radius: 0 0 14px 14px;
    }

    .basket-grid {
        gap: 14px;
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 160;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(50px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid var(--border);
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -8px 24px rgba(20, 50, 28, .08);
    }

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

    .mobile-bottom-nav a.active {
        color: #F4FBF4;
        background: var(--green);
    }

    .overlay {
        z-index: 190;
    }

    .basket-panel,
    .search-panel {
        z-index: 200;
    }
}

@media (max-width: 420px) {
    .shell {
        width: calc(100% - 32px);
    }

    .brand-word {
        font-size: 19px;
    }

    .platform-actions .primary-button,
    .platform-actions .secondary-button {
        min-width: 52px;
        padding-inline: 8px;
        font-size: 12px;
    }

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

    .basket-group span {
        font-size: 11px;
    }

    .search-links {
        grid-template-columns: 1fr;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
