:root {
    --bg-color: #fafaf9;
    --text-main: #292524;
    --text-sub: #78716c;
    --text-muted: #a8a29e;
    --primary-color: #44403c;
    --primary-color-strong: #1c1917;
    --border-color: #e7e5e4;
    --border-hover: #a8a29e;
    --card-bg: #fff;
    --github-ink: #24292f;
    --github-subtle: #57606a;
    --github-border: #d0d7de;
    --github-bg: #f6f8fa;
    --resource-badge-column: 96px;
    --resource-badge-column-mobile: 78px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100svh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.page {
    max-width: 720px;
    margin: 0 auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 44px 24px 36px;
}

.page--home {
    max-width: 820px;
    padding-top: 34px;
}

.page--article {
    max-width: 1040px;
}

.hero,
.nav-cards,
.content-area,
.back-nav,
.tut-header,
.article-card,
.tut-card {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero.is-visible,
.nav-cards.is-visible,
.content-area.is-visible,
.back-nav.is-visible,
.tut-header.is-visible,
.article-card.is-visible,
.tut-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
    text-align: left;
}

.hero-mark {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    border: 1px solid rgba(231, 229, 228, 0.9);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 30px rgba(41, 37, 36, 0.04);
}

.hero-logo {
    height: 54px;
    width: auto;
    opacity: 0.96;
}

.hero-copy {
    min-width: 0;
    max-width: 580px;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-title,
.tut-header h1,
.article-title,
.empty-state h1,
.empty-state h2 {
    font-family: "Songti SC", "Noto Serif SC", serif;
    font-weight: 500;
    letter-spacing: 2px;
}

.hero-title,
.tut-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.hero-desc,
.tut-header p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.95;
    font-weight: 300;
    max-width: 42em;
}

.nav-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 32px;
}

.nav-card {
    display: grid;
    gap: 4px;
    appearance: none;
    font: inherit;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 10px;
    padding: 18px 14px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.nav-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.nav-card.is-active {
    border-color: var(--primary-color);
    background: var(--bg-color);
}

.nav-card.is-active::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--bg-color);
    border-right: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.nav-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.nav-card-icon svg {
    width: 18px;
    height: 18px;
}

.nav-card-icon--download { background: #f5f0eb; color: #8b7355; }
.nav-card-icon--tutorial { background: #eff6ff; color: #2563eb; }

.nav-card-title {
    font-family: "Songti SC", "Noto Serif SC", serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-card-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

.panel { display: none; }
.panel.is-active { display: block; }

.card,
.article-card,
.empty-state {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.platform-tabs {
    display: flex;
    gap: 4px;
    padding: 3px;
    margin-bottom: 24px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.platform-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    appearance: none;
    font: inherit;
    min-height: 56px;
    padding: 10px 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.platform-tab-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

.platform-tab-icon svg {
    display: block;
    flex: 0 0 auto;
}

.platform-icon--windows {
    width: 18px;
    height: 18px;
    transform: translateY(0.25px);
}

.platform-icon--mac {
    width: 19px;
    height: 19px;
    transform: translateY(0.5px);
}

.platform-icon--ios {
    width: 16px;
    height: 16px;
    transform: translateY(-0.4px);
}

.platform-icon--android {
    width: 18px;
    height: 18px;
    transform: translateY(0.2px);
}

.platform-tab:hover { color: var(--text-sub); }

.platform-tab.is-active {
    background: var(--card-bg);
    color: var(--text-main);
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.platform-panel { display: none; }
.platform-panel.is-active { display: block; }

.download-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 84px;
}

.download-info h3 {
    font-family: "Songti SC", "Noto Serif SC", serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.7px;
}

.download-info p,
.article-meta {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 10px 24px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary svg,
.btn-ghost svg {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}

.btn-primary {
    border: none;
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-color-strong);
    transform: translateY(-1px);
}

.btn-primary.btn-disabled,
.btn-disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.btn-ghost {
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-ghost:hover {
    background: var(--text-main);
    border-color: var(--text-main);
    color: #fff;
    transform: translateY(-1px);
}

.split-download {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    flex-wrap: nowrap;
    max-width: 100%;
    filter: drop-shadow(0 10px 20px rgba(28, 25, 23, 0.08));
}

.split-download-main {
    border-radius: 999px 0 0 999px;
    padding-right: 18px;
}

.split-download-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    padding: 0;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0 999px 999px 0;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.split-download-toggle:hover,
.split-download-toggle:focus-visible,
.split-download.is-open .split-download-toggle {
    background: var(--primary-color-strong);
}

.split-download-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.split-download.is-open .split-download-toggle svg {
    transform: rotate(180deg);
}

.split-download-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 5;
    display: none;
    min-width: max(100%, 248px);
    padding: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 250, 244, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(68, 64, 60, 0.97) 0%, rgba(41, 37, 36, 0.985) 100%);
    box-shadow:
        0 18px 34px rgba(28, 25, 23, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
}

.split-download.is-open .split-download-menu {
    display: grid;
    gap: 6px;
}

.split-download-option {
    display: grid;
    gap: 2px;
    padding: 13px 14px;
    border-radius: 18px;
    color: rgba(255, 252, 248, 0.96);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.split-download-option + .split-download-option {
    margin-top: 2px;
}

.split-download-option:hover,
.split-download-option:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.split-download-option-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.split-download-option-meta {
    font-size: 12px;
    color: rgba(255, 245, 235, 0.62);
}

.split-download.is-open .split-download-main,
.split-download.is-open .split-download-toggle {
    background: #2c2724;
}

.mac-secondary,
.resource-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.mac-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.mac-alt-link,
.mac-help,
.back-link,
.tut-card-arrow {
    color: var(--text-sub);
    text-decoration: none;
}

.resource-section {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    padding-top: 22px;
}

.mac-alt-link {
    font-size: 12px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1px;
}

.mac-alt-link.is-disabled {
    opacity: 0.55;
    border-bottom-style: solid;
}

.resource-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.resource-section-title {
    font-family: "Songti SC", "Noto Serif SC", serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--primary-color-strong);
}

.resource-list {
    display: grid;
    gap: 12px;
}

.community-entry {
    position: relative;
    display: grid;
    grid-template-columns: var(--resource-badge-column) minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 18px;
    overflow: hidden;
    border: 1px solid rgba(139, 115, 85, 0.24);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(135deg, #fffaf4 0%, #f7efe6 52%, #fffdf9 100%);
    color: var(--primary-color-strong);
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(139, 115, 85, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.community-entry::before {
    content: "";
    position: absolute;
    right: -24px;
    top: -28px;
    width: 146px;
    height: 146px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(226, 183, 128, 0.26) 0%, rgba(226, 183, 128, 0.02) 48%, rgba(226, 183, 128, 0) 72%);
    pointer-events: none;
}

.community-entry::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(139, 115, 85, 0) 0%, rgba(139, 115, 85, 0.2) 20%, rgba(139, 115, 85, 0.2) 80%, rgba(139, 115, 85, 0) 100%);
    pointer-events: none;
}

.community-entry:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 115, 85, 0.4);
    box-shadow: 0 24px 40px rgba(139, 115, 85, 0.16);
}

.community-entry:hover .community-entry-arrow {
    transform: translate(1px, -1px);
    color: var(--primary-color-strong);
    background: rgba(255, 255, 255, 0.76);
}

.community-entry:focus-visible {
    outline: 2px solid rgba(139, 115, 85, 0.35);
    outline-offset: 3px;
}

.community-entry-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: var(--resource-badge-column);
    min-width: var(--resource-badge-column);
    height: auto;
    flex: 0 0 auto;
}

.community-entry-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
    min-width: 0;
}

.community-entry-title {
    font-family: "Songti SC", "Noto Serif SC", serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.community-entry-desc {
    display: block;
    font-size: 12px;
    line-height: 1.65;
    color: var(--text-sub);
}

.community-entry-desc::before {
    display: none;
}

.resource-entry-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(139, 115, 85, 0.18);
    background: rgba(255, 255, 255, 0.74);
    color: var(--primary-color-strong);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.resource-entry-mark--github {
    background: linear-gradient(135deg, #fff 0%, #f3f4f6 100%);
    color: #111827;
}

.resource-entry-mark--github-badge {
    gap: 8px;
    min-width: 88px;
    border-color: rgba(208, 215, 222, 0.94);
    background: linear-gradient(135deg, #fff 0%, var(--github-bg) 100%);
    color: var(--github-ink);
}

.resource-entry-mark--github-badge svg {
    width: 15px;
    height: 15px;
}

.resource-entry-mark--gitee {
    background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
    color: #b91c1c;
}

.resource-entry-mark--community {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #9a3412;
}

.resource-entry-mark--link {
    background: linear-gradient(135deg, #fffaf4 0%, #f5f0eb 100%);
    color: var(--primary-color);
}

.community-entry--github {
    border-color: rgba(107, 114, 128, 0.22);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(135deg, #fcfcfd 0%, var(--github-bg) 52%, #fbfbfc 100%);
    color: var(--github-ink);
    box-shadow: 0 18px 34px rgba(31, 35, 40, 0.08);
}

.community-entry--github::before {
    background: radial-gradient(circle, rgba(107, 114, 128, 0.22) 0%, rgba(107, 114, 128, 0.03) 48%, rgba(107, 114, 128, 0) 72%);
}

.community-entry--github::after {
    background: linear-gradient(90deg, rgba(107, 114, 128, 0) 0%, rgba(107, 114, 128, 0.18) 20%, rgba(107, 114, 128, 0.18) 80%, rgba(107, 114, 128, 0) 100%);
}

.community-entry--github:hover {
    border-color: rgba(107, 114, 128, 0.38);
    box-shadow: 0 24px 40px rgba(31, 35, 40, 0.12);
}

.community-entry--github:hover .community-entry-arrow {
    color: var(--github-ink);
    background: rgba(255, 255, 255, 0.78);
}

.community-entry--github:focus-visible {
    outline: 2px solid rgba(107, 114, 128, 0.24);
}

.community-entry-arrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    align-self: center;
    color: rgba(68, 64, 60, 0.62);
    transition: transform 0.22s ease, color 0.22s ease, background-color 0.22s ease;
}

.community-entry-arrow svg {
    width: 14px;
    height: 14px;
}

.mac-help,
.back-link,
.tut-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mac-help {
    font-size: 11px;
    white-space: nowrap;
}

.back-link {
    font-size: 13px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.mac-help svg {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}

.back-link svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.tut-card-arrow svg {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}

.changelog {
    display: none;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.changelog.is-active {
    display: block;
}

.changelog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.changelog-title {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.changelog-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    color: var(--text-sub);
    font-size: 12px;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.changelog-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.changelog.is-expanded .changelog-toggle svg { transform: rotate(180deg); }

.changelog-summary {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.changelog-empty-copy {
    color: var(--text-sub);
}

.cl-dot {
    color: var(--border-hover);
}

.cl-version,
.cl-ver-header {
    color: var(--text-sub);
    font-weight: 500;
}

.cl-ver-header {
    font-size: 13px;
    letter-spacing: 0.3px;
}

.changelog-detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.2s ease;
}

.changelog.is-expanded .changelog-detail {
    opacity: 1;
}

.changelog-entry {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fcfcfb;
}

.changelog-entry + .changelog-entry {
    margin-top: 12px;
}

.changelog-entry--latest {
    background: #fff;
}

.changelog-entry-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cl-entry-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f5f0eb;
    color: #8b7355;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.changelog-history-head {
    margin-top: 18px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.changelog-history-list {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.changelog-entry-summary,
.changelog-fallback {
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-sub);
}

.changelog-body {
    display: grid;
    gap: 10px;
    padding-top: 14px;
}

.changelog-body h1,
.changelog-body h2,
.changelog-body h3,
.changelog-body h4 {
    font-family: "Songti SC", "Noto Serif SC", serif;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: var(--text-main);
}

.changelog-body p,
.changelog-body ul,
.changelog-body ol {
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-sub);
}

.changelog-body ul,
.changelog-body ol {
    padding-left: 18px;
}

.changelog-body li + li {
    margin-top: 4px;
}

.cl-group { margin-top: 12px; }
.cl-tag {
    display: inline-block;
    margin-bottom: 6px;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}
.cl-tag--new { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.cl-tag--improve { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.cl-tag--fix { background: #fefce8; color: #854d0e; border: 1px solid #fef08a; }

.cl-items {
    list-style: none;
    padding: 0;
}

.cl-items li {
    position: relative;
    padding-left: 14px;
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.7;
}

.cl-items li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--border-color);
}

.back-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.nav-logo {
    height: 22px;
    width: auto;
    opacity: 0.92;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.72);
}

.brand-chip-copy {
    display: grid;
    gap: 2px;
}

.brand-chip-eyebrow {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.brand-chip-title {
    font-family: "Songti SC", "Noto Serif SC", serif;
    font-size: 14px;
    letter-spacing: 0.4px;
    color: var(--text-main);
}

.nav-sep {
    width: 1px;
    height: 16px;
    background: var(--border-color);
}

.tut-header {
    margin-bottom: 32px;
}

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

.tut-grid--compact { gap: 12px; }

.tut-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.tut-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.tut-card-num {
    font-family: "Songti SC", "Noto Serif SC", serif;
    font-size: 28px;
    font-weight: 300;
    color: var(--border-color);
    margin-bottom: 16px;
}

.tut-card h3,
.tut-card h4 {
    font-family: "Songti SC", "Noto Serif SC", serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.tut-card p {
    flex: 1;
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.7;
}

.tut-card-arrow {
    margin-top: 16px;
    font-size: 12px;
}

.tut-more {
    margin-top: 24px;
    text-align: center;
}

.article-card {
    margin-top: 8px;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.article-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.article-title {
    font-size: 28px;
    line-height: 1.4;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.copy-md-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-sub);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-md-btn:hover {
    color: var(--text-main);
    border-color: var(--border-hover);
    background: var(--bg-color);
}

.copy-md-btn.is-copied {
    color: #0f766e;
    border-color: #99f6e4;
    background: rgba(15, 118, 110, 0.08);
}

.empty-state {
    margin-top: 12px;
    text-align: center;
}

.empty-state h2,
.empty-state h1 {
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 16px;
    color: var(--text-sub);
    line-height: 1.9;
    font-weight: 300;
}

.empty-state--tall {
    margin-top: 100px;
    padding: 48px 32px;
}

.site-footer {
    margin-top: auto;
    text-align: center;
    padding: 36px 0 4px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.emergency-hero {
    margin-top: auto;
}

.emergency-card {
    display: grid;
    gap: 14px;
    max-width: 720px;
}

.emergency-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #fde68a;
    background: #fefce8;
    color: #854d0e;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.emergency-detail {
    font-size: 13px;
    line-height: 1.9;
    color: var(--text-sub);
}

.emergency-actions {
    padding-top: 6px;
}

@media (max-width: 640px) {
    .page,
    .page--home {
        min-height: 100svh;
        padding: 28px 16px 18px;
    }

    .hero-title,
    .tut-header h1,
    .article-title {
        font-size: 22px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 24px;
    }

    .hero-mark {
        width: 68px;
        height: 68px;
        border-radius: 22px;
    }

    .hero-logo {
        height: 42px;
    }

    .nav-cards,
    .tut-grid {
        grid-template-columns: 1fr;
    }

    .download-row,
    .article-header,
    .article-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .platform-tabs {
        flex-wrap: wrap;
    }

    .platform-tab {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 2px);
    }

    .split-download {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px;
        width: 100%;
        filter: none;
    }

    .split-download-main {
        width: 100%;
        min-width: 0;
    }

    .split-download-toggle {
        width: 48px;
    }

    .split-download-menu {
        position: static;
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 8px;
        min-width: 0;
        border-radius: 20px;
    }

    .back-nav {
        align-items: flex-start;
        gap: 12px;
    }

    .brand-chip {
        width: 100%;
    }

    .mac-secondary {
        flex-direction: column;
        align-items: flex-start;
    }

    .resource-section-head {
        align-items: flex-start;
    }

    .resource-section {
        gap: 10px;
        margin-top: 20px;
        padding-top: 20px;
    }

    .resource-list {
        gap: 10px;
    }

    .community-entry {
        grid-template-columns: var(--resource-badge-column-mobile) minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 10px 18px rgba(139, 115, 85, 0.08);
    }

    .community-entry::before,
    .community-entry::after {
        display: none;
    }

    .community-entry--github {
        background: linear-gradient(180deg, rgba(249, 250, 251, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
        box-shadow: 0 10px 18px rgba(31, 35, 40, 0.08);
    }

    .community-entry-badge {
        width: var(--resource-badge-column-mobile);
        min-width: var(--resource-badge-column-mobile);
    }

    .community-entry-title {
        font-size: 16px;
        line-height: 1.28;
        letter-spacing: 0.02em;
    }

    .community-entry-copy {
        display: grid;
        gap: 3px;
        max-width: none;
    }

    .community-entry-desc {
        display: block;
        font-size: 13px;
        line-height: 1.55;
    }

    .community-entry-desc::before {
        display: none;
    }

    .resource-entry-mark {
        min-width: 60px;
        min-height: 28px;
        padding: 0 10px;
        font-size: 10px;
        letter-spacing: 0.04em;
    }

    .resource-entry-mark--github-badge {
        gap: 6px;
        min-width: 76px;
    }

    .resource-entry-mark--github-badge svg {
        width: 14px;
        height: 14px;
    }

    .community-entry-arrow {
        width: 22px;
        height: 22px;
        justify-self: end;
    }

    .tut-card,
    .card,
    .article-card {
        padding: 20px;
    }

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