:root {
    --bg: #f7faf8;
    --surface: #ffffff;
    --surface-soft: #eef7f2;
    --text: #142019;
    --muted: #637169;
    --line: #dfe8e3;
    --green: #45bd83;
    --green-dark: #238e5c;
    --green-soft: #dff5e9;
    --dark: #17231d;
    --container: min(1120px, calc(100vw - 48px));
    --font: "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
    --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    --shadow: 0 18px 50px rgba(31, 77, 54, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: var(--bg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

button {
    color: inherit;
    font: inherit;
}

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

img,
svg {
    display: block;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 99;
    top: 12px;
    left: 12px;
    padding: 8px 12px;
    color: #fff;
    background: var(--dark);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    height: 72px;
    border-bottom: 1px solid rgba(223, 232, 227, 0.9);
    background: rgba(247, 250, 248, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    box-shadow: 0 7px 20px rgba(48, 156, 106, 0.18);
}

.brand span {
    display: grid;
    line-height: 1.1;
}

.brand strong {
    font-size: 15px;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.brand small {
    margin-top: 5px;
    color: #7a8a81;
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: 70px;
}

.main-nav a {
    position: relative;
    color: #45534b;
    font-size: 14px;
    transition: color 160ms ease;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--green);
    border-radius: 99px;
    transform: scaleX(0);
    transition: transform 160ms ease;
}

.main-nav a:hover {
    color: var(--text);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.source-links {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: -12px;
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

.main-nav .source-link {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: #24292f;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 11px;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.main-nav .source-link::after {
    display: none;
}

.source-link svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.source-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.main-nav .source-link:hover {
    color: #fff;
    background: #24292f;
    border-color: #24292f;
    box-shadow: 0 8px 20px rgba(36, 41, 47, 0.16);
    transform: translateY(-2px);
}

.main-nav .source-link-gitee {
    color: #c71d23;
}

.main-nav .source-link-gitee:hover {
    color: #fff;
    background: #c71d23;
    border-color: #c71d23;
    box-shadow: 0 8px 20px rgba(199, 29, 35, 0.18);
}

.header-download {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 0 16px;
    color: #fff;
    background: var(--dark);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: background 160ms ease, transform 160ms ease;
}

.header-download svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.header-download:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    margin-left: auto;
    padding: 0;
    color: #45534b;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 11px;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
    color: var(--green-dark);
    background: var(--surface-soft);
    transform: translateY(-1px) rotate(-5deg);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--green-dark);
    outline-offset: 3px;
}

.theme-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.theme-icon-sun {
    display: none;
}

.header-download {
    margin-left: 10px;
}

.hero {
    padding: 82px 0 72px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    justify-items: center;
    text-align: center;
}

.app-mark {
    position: relative;
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    margin-bottom: 26px;
}

.app-mark img {
    position: relative;
    z-index: 2;
    width: 76px;
    height: 76px;
    border: 5px solid rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    box-shadow: 0 16px 45px rgba(45, 136, 94, 0.24);
    animation: float 4.5s ease-in-out infinite;
}

.ring {
    position: absolute;
    border: 1px solid rgba(69, 189, 131, 0.2);
    border-radius: 50%;
}

.ring-one {
    width: 104px;
    height: 104px;
}

.ring-two {
    width: 150px;
    height: 150px;
    border-color: rgba(69, 189, 131, 0.09);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--green-dark);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow > span:first-child {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(69, 189, 131, 0.12);
}

.hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 780;
    line-height: 1.13;
    letter-spacing: -0.055em;
}

.hero h1 em {
    color: var(--green-dark);
    font-style: normal;
}

.hero-lead {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 720;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    min-width: 210px;
    color: #fff;
    background: var(--green-dark);
    box-shadow: 0 12px 30px rgba(35, 142, 92, 0.2);
}

.button-primary:hover {
    background: #197b4d;
    box-shadow: 0 16px 36px rgba(35, 142, 92, 0.25);
}

.button-ghost {
    min-width: 138px;
    color: #324138;
    background: var(--surface);
    border: 1px solid var(--line);
}

.button-ghost:hover {
    background: var(--surface-soft);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 32px;
}

.hero-meta span {
    display: grid;
    color: #85928b;
    font-size: 11px;
}

.hero-meta strong {
    margin-bottom: 1px;
    color: #344239;
    font-size: 12px;
    font-weight: 720;
}

.hero-meta i {
    width: 1px;
    height: 25px;
    background: var(--line);
}

.features {
    padding: 72px 0 78px;
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.section-heading {
    margin-bottom: 48px;
    text-align: center;
}

.section-heading p,
.version-label {
    margin: 0 0 7px;
    color: var(--green-dark);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.section-heading h2,
.download-panel h2 {
    margin: 0;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 760;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.feature-item {
    padding: 8px 46px 4px;
    text-align: center;
}

.feature-item + .feature-item {
    border-left: 1px solid var(--line);
}

.feature-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    color: var(--green-dark);
    background: var(--green-soft);
    border-radius: 17px;
}

.feature-icon svg {
    width: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.feature-item h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 740;
}

.feature-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.download-section {
    padding: 64px 0;
}

.download-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 42px 48px;
    background: var(--green-soft);
    border: 1px solid #c9ead8;
    border-radius: 24px;
}

.download-panel > div:first-child > p:last-child {
    margin: 10px 0 0;
    color: #56665d;
    font-size: 14px;
}

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

.download-qr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 8px;
    color: #142019;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(56, 115, 82, 0.18);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(26, 93, 59, 0.08);
}

.download-qr img {
    width: 84px;
    height: 84px;
    display: block;
    padding: 4px;
    background: #fff;
    border-radius: 10px;
}

.download-qr span {
    display: grid;
    gap: 2px;
    white-space: nowrap;
}

.download-qr strong {
    font-size: 14px;
    font-weight: 760;
}

.download-qr small {
    color: #64736a;
    font-size: 11px;
}

.button-dark {
    min-width: 154px;
    color: #fff;
    background: var(--dark);
}

.button-dark:hover {
    background: var(--green-dark);
}

.notes {
    padding: 34px 0 76px;
}

.section-heading.compact {
    margin-bottom: 30px;
}

.note-list {
    max-width: 860px;
    margin-inline: auto;
    border-top: 1px solid var(--line);
}

.note-list details {
    border-bottom: 1px solid var(--line);
}

.note-list summary {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 680;
}

.note-list summary::-webkit-details-marker {
    display: none;
}

.note-list summary svg {
    width: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: #7a8981;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: transform 160ms ease;
}

.note-list details[open] summary svg {
    transform: rotate(180deg);
}

.note-list details > p {
    margin: -4px 52px 22px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.note-list details a {
    color: var(--green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.note-list code {
    padding: 2px 5px;
    color: #1c6f49;
    background: var(--green-soft);
    border-radius: 5px;
    font-family: var(--mono);
    font-size: 12px;
}

.site-footer {
    padding: 30px 0;
    color: #718078;
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.footer-brand span {
    display: grid;
    line-height: 1.3;
}

.footer-brand strong {
    color: var(--text);
    font-size: 13px;
}

.footer-brand small {
    font-size: 10px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-notes-link,
.footer-contact,
.site-footer p {
    margin: 0;
    font-size: 12px;
}

.footer-contact {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.footer-notes-link:hover {
    color: var(--green-dark);
}

.footer-source-links {
    display: flex;
    align-items: center;
    gap: 7px;
}

.footer-source-link {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #24292f;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.footer-source-link svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.footer-source-link:hover {
    color: #fff;
    background: #24292f;
    border-color: #24292f;
    box-shadow: 0 7px 18px rgba(36, 41, 47, 0.14);
    transform: translateY(-2px);
}

.footer-source-gitee {
    color: #c71d23;
}

.footer-source-gitee:hover {
    color: #fff;
    background: #c71d23;
    border-color: #c71d23;
    box-shadow: 0 7px 18px rgba(199, 29, 35, 0.16);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 900px) {
    .main-nav {
        gap: 22px;
        margin-left: 38px;
    }

    .feature-item {
        padding-inline: 28px;
    }

    .download-panel {
        padding: 36px;
    }

    .download-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .download-qr {
        display: none;
    }
}

@media (max-width: 720px) {
    :root {
        --container: calc(100vw - 32px);
    }

    html {
        scroll-padding-top: 72px;
    }

    .site-header {
        height: 64px;
    }

    .brand img {
        width: 35px;
        height: 35px;
    }

    .brand strong {
        font-size: 14px;
    }

    .header-download {
        display: none;
    }

    .menu-button {
        width: 38px;
        height: 38px;
        display: grid;
        place-content: center;
        gap: 6px;
        margin-left: auto;
        padding: 0;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 10px;
    }

    .menu-button span {
        width: 17px;
        height: 1px;
        background: var(--text);
        transition: transform 160ms ease;
    }

    .menu-button[aria-expanded="true"] span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .menu-button[aria-expanded="true"] span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .main-nav {
        position: absolute;
        top: 64px;
        right: 16px;
        left: 16px;
        display: grid;
        gap: 2px;
        margin: 0;
        padding: 10px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 160ms ease, transform 160ms ease;
    }

    .main-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .main-nav a {
        padding: 10px 12px;
        border-radius: 8px;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a:hover {
        background: var(--surface-soft);
    }

    .source-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin: 5px 0 0;
        padding: 10px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .main-nav .source-link {
        width: auto;
        height: 44px;
        display: flex;
        justify-content: center;
        gap: 9px;
        padding: 0 12px;
    }

    .source-link span {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        color: currentColor;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    .hero {
        padding: 62px 0 54px;
    }

    .app-mark {
        width: 86px;
        height: 86px;
        margin-bottom: 22px;
    }

    .app-mark img {
        width: 66px;
        height: 66px;
        border-radius: 20px;
    }

    .ring-one {
        width: 86px;
        height: 86px;
    }

    .ring-two {
        width: 124px;
        height: 124px;
    }

    .hero h1 {
        margin-top: 16px;
        font-size: clamp(40px, 12vw, 54px);
    }

    .hero-lead {
        max-width: 480px;
        font-size: 15px;
    }

    .hero-lead br {
        display: none;
    }

    .hero-actions {
        width: 100%;
        max-width: 420px;
        display: grid;
    }

    .button-primary,
    .button-ghost {
        width: 100%;
    }

    .hero-meta {
        gap: 14px;
        margin-top: 26px;
    }

    .hero-meta span {
        font-size: 9px;
    }

    .hero-meta strong {
        font-size: 10px;
    }

    .features {
        padding: 56px 0 28px;
    }

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

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

    .feature-item {
        max-width: 500px;
        margin-inline: auto;
        padding: 24px 12px 30px;
    }

    .feature-item + .feature-item {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .download-section {
        padding: 44px 0;
    }

    .download-panel {
        display: grid;
        gap: 28px;
        padding: 28px 22px;
        text-align: center;
        border-radius: 19px;
    }

    .download-actions {
        width: 100%;
    }

    .notes {
        padding: 24px 0 54px;
    }

    .note-list summary {
        font-size: 14px;
    }

    .note-list details > p {
        margin-right: 0;
        font-size: 13px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        text-align: center;
    }

    .footer-links {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 40px;
    }

    .eyebrow {
        font-size: 9px;
    }

    .hero-meta {
        gap: 10px;
    }

    .hero-meta i {
        height: 22px;
    }
}

/* Interactive app icon */
.app-mark {
    --mark-x: 0px; --mark-y: 0px; --mark-rx: 0deg; --mark-ry: 0deg;
    padding: 0;
    color: var(--green-dark);
    background: transparent;
    border: 0;
    border-radius: 30px;
    cursor: pointer;
    perspective: 560px;
    touch-action: manipulation;
}
.app-icon-stage {
    position: relative;
    z-index: 2;
    width: 76px;
    height: 76px;
    display: block;
    transform: translate3d(var(--mark-x), var(--mark-y), 0) rotateX(var(--mark-rx)) rotateY(var(--mark-ry));
    transform-style: preserve-3d;
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}
.app-mark img {
    width: 100%;
    height: 100%;
    transition: box-shadow 220ms ease, filter 220ms ease;
    user-select: none;
    -webkit-user-drag: none;
}
.app-mark:hover img {
    filter: saturate(1.08) brightness(1.03);
    box-shadow: 0 22px 52px rgba(35, 142, 92, 0.31);
}
.app-mark:focus-visible {
    outline: 2px solid var(--green-dark);
    outline-offset: 12px;
}
.app-mark:active .app-icon-stage {
    transition-duration: 80ms;
    transform: translate3d(var(--mark-x), calc(var(--mark-y) + 2px), 0) rotateX(var(--mark-rx)) rotateY(var(--mark-ry)) scale(0.96);
}
.app-mark .ring {
    pointer-events: none;
    transition: border-color 220ms ease, transform 320ms ease;
}
.app-mark:hover .ring-one { border-color: rgba(69, 189, 131, 0.34); transform: scale(1.05); }
.app-mark:hover .ring-two { border-color: rgba(69, 189, 131, 0.16); transform: scale(1.04); }
.equalizer {
    position: absolute;
    z-index: 4;
    right: -7px;
    bottom: -5px;
    width: 34px;
    height: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    padding: 6px 7px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(69, 189, 131, 0.2);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(35, 142, 92, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px) scale(0.75);
}
.equalizer i {
    width: 3px;
    height: 8px;
    display: block;
    background: var(--green-dark);
    border-radius: 99px;
    transform-origin: center bottom;
}
.music-note {
    position: absolute;
    z-index: 5;
    top: 44px;
    left: 44px;
    color: var(--green-dark);
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 5px 14px rgba(35, 142, 92, 0.18);
}
.note-one { --note-x: -58px; --note-y: -44px; --note-r: -18deg; }
.note-two { --note-x: 58px; --note-y: -52px; --note-r: 14deg; }
.note-three { --note-x: 64px; --note-y: 28px; --note-r: 22deg; }
.app-mark.is-playing img { animation: icon-pop 860ms cubic-bezier(0.16, 1, 0.3, 1); }
.app-mark.is-playing .ring-one { animation: ring-wave 760ms ease-out; }
.app-mark.is-playing .ring-two { animation: ring-wave 920ms 90ms ease-out; }
.app-mark.is-playing .equalizer { animation: equalizer-in 900ms cubic-bezier(0.16, 1, 0.3, 1); }
.app-mark.is-playing .equalizer i { animation: equalizer-bar 420ms ease-in-out infinite alternate; }
.app-mark.is-playing .equalizer i:nth-child(2) { animation-delay: -260ms; }
.app-mark.is-playing .equalizer i:nth-child(3) { animation-delay: -120ms; }
.app-mark.is-playing .equalizer i:nth-child(4) { animation-delay: -340ms; }
.app-mark.is-playing .music-note { animation: note-fly 820ms cubic-bezier(0.18, 0.72, 0.24, 1); }
.app-mark.is-playing .note-two { animation-delay: 70ms; }
.app-mark.is-playing .note-three { animation-delay: 140ms; }
@keyframes icon-pop {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    30% { transform: translateY(-12px) rotate(-7deg) scale(1.08); }
    58% { transform: translateY(2px) rotate(5deg) scale(0.98); }
    78% { transform: translateY(-3px) rotate(-2deg) scale(1.02); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes ring-wave {
    0% { opacity: 1; transform: scale(0.84); }
    70% { opacity: 0.3; }
    100% { opacity: 0; transform: scale(1.42); }
}
@keyframes note-fly {
    0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.55); }
    20% { opacity: 1; }
    78% { opacity: 0.9; }
    100% { opacity: 0; transform: translate(var(--note-x), var(--note-y)) rotate(var(--note-r)) scale(1.08); }
}
@keyframes equalizer-in {
    0% { opacity: 0; transform: translateY(5px) scale(0.7); }
    18%, 76% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(2px) scale(0.88); }
}
@keyframes equalizer-bar {
    from { transform: scaleY(0.35); }
    to { transform: scaleY(1); }
}
@media (max-width: 720px) {
    .app-icon-stage { width: 66px; height: 66px; }
}

/* App icon audio state */
.app-mark.is-audio-playing img {
    filter: saturate(1.1) brightness(1.04);
    box-shadow: 0 22px 56px rgba(35, 142, 92, 0.34);
}

.app-mark.is-audio-playing .equalizer {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: none;
}

.app-mark.is-audio-playing .equalizer i {
    animation: equalizer-bar 420ms ease-in-out infinite alternate;
}

/* JianNiang hero atmosphere */
.hero {
    position: relative;
    isolation: isolate;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-mascot {
    position: absolute;
    z-index: 1;
    top: 24px;
    right: max(-36px, calc((100vw - 1440px) / 2 - 24px));
    width: clamp(340px, 31vw, 480px);
    display: block;
    opacity: 0.96;
    filter: drop-shadow(0 24px 48px rgba(35, 105, 72, 0.14));
    mix-blend-mode: normal;
    pointer-events: none;
    user-select: none;
    transform: translateX(14%);
}

.hero-mascot img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-mascot-mobile {
    display: none;
}

@media (max-width: 1180px) {
    .hero-mascot {
        right: -88px;
        width: min(40vw, 420px);
        opacity: 0.82;
    }
}

@media (max-width: 960px) {
    .hero-mascot {
        display: none;
    }
}

@media (max-width: 720px) {
    .hero-mascot-mobile {
        position: relative;
        display: block;
        width: min(62vw, 220px);
        height: clamp(154px, 48vw, 184px);
        margin: 12px auto 0;
        overflow: hidden;
        pointer-events: none;
        user-select: none;
        mix-blend-mode: multiply;
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
    }

    .hero-mascot-mobile img {
        width: 100%;
        height: auto;
        display: block;
        transform-origin: 50% 56%;
        animation: mobile-mascot-breathe 4.8s ease-in-out infinite;
    }
}

@keyframes mobile-mascot-breathe {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -3px, 0) scale(1.008);
    }
}

/* Dark listening room */
html[data-theme="dark"] {
    --bg: #08130f;
    --surface: #0e1c16;
    --surface-soft: #14281e;
    --text: #edf7f1;
    --muted: #9aada3;
    --line: #263c31;
    --green: #4ed18f;
    --green-dark: #58cf91;
    --green-soft: #153425;
    --dark: #07110d;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at 50% -10%, rgba(45, 150, 96, 0.16), transparent 34rem),
        var(--bg);
}

html.theme-ready body,
html.theme-ready .site-header,
html.theme-ready .features,
html.theme-ready .site-footer,
html.theme-ready .download-panel,
html.theme-ready .button,
html.theme-ready .theme-toggle,
html.theme-ready .source-link,
html.theme-ready .footer-source-link {
    transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

html[data-theme="dark"] .site-header {
    border-bottom-color: rgba(59, 85, 71, 0.78);
    background: rgba(8, 19, 15, 0.88);
}

html[data-theme="dark"] .brand small,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .hero-meta span {
    color: #879b90;
}

html[data-theme="dark"] .main-nav > a {
    color: #b0c0b7;
}

html[data-theme="dark"] .main-nav > a:hover {
    color: var(--text);
}

html[data-theme="dark"] .main-nav .source-link,
html[data-theme="dark"] .footer-source-link,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .menu-button {
    color: #c9d9d0;
    background: #11231a;
    border-color: #2a4336;
}

html[data-theme="dark"] .main-nav .source-link:hover,
html[data-theme="dark"] .footer-source-link:hover {
    color: #08130f;
    background: #dfece5;
    border-color: #dfece5;
}

html[data-theme="dark"] .main-nav .source-link-gitee,
html[data-theme="dark"] .footer-source-gitee {
    color: #ff7478;
}

html[data-theme="dark"] .main-nav .source-link-gitee:hover,
html[data-theme="dark"] .footer-source-gitee:hover {
    color: #fff;
    background: #c71d23;
    border-color: #c71d23;
}

html[data-theme="dark"] .theme-toggle {
    color: #8ee2b5;
}

html[data-theme="dark"] .theme-icon-moon {
    display: none;
}

html[data-theme="dark"] .theme-icon-sun {
    display: block;
}

html[data-theme="dark"] .header-download,
html[data-theme="dark"] .button-dark {
    color: #eaf7f0;
    background: #06100c;
    border: 1px solid #2b4437;
}

html[data-theme="dark"] .header-download:hover,
html[data-theme="dark"] .button-dark:hover {
    color: #07120d;
    background: var(--green);
    border-color: var(--green);
}

html[data-theme="dark"] .hero::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 50% 30%, rgba(71, 203, 136, 0.075), transparent 24rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 62%);
    pointer-events: none;
}

html[data-theme="dark"] .app-mark img {
    border-color: rgba(21, 49, 36, 0.95);
    box-shadow: 0 18px 54px rgba(38, 186, 111, 0.25);
}

html[data-theme="dark"] .ring {
    border-color: rgba(78, 209, 143, 0.28);
}

html[data-theme="dark"] .equalizer {
    background: rgba(15, 34, 25, 0.96);
    border-color: rgba(78, 209, 143, 0.32);
}

html[data-theme="dark"] .button-primary {
    color: #06120c;
    background: #58d798;
    box-shadow: 0 14px 34px rgba(33, 176, 105, 0.2);
}

html[data-theme="dark"] .button-primary:hover {
    background: #75e3ac;
    box-shadow: 0 18px 42px rgba(33, 176, 105, 0.26);
}

html[data-theme="dark"] .button-ghost {
    color: #d8e7df;
    background: #102119;
    border-color: #2a4336;
}

html[data-theme="dark"] .button-ghost:hover {
    color: #fff;
    background: #173124;
}

html[data-theme="dark"] .hero-meta strong {
    color: #dce9e2;
}

html[data-theme="dark"] .features {
    background: rgba(14, 28, 22, 0.9);
}

html[data-theme="dark"] .feature-icon {
    color: #76dda9;
    background: #163727;
    box-shadow: inset 0 0 0 1px rgba(89, 203, 145, 0.1);
}

html[data-theme="dark"] .download-panel {
    background:
        radial-gradient(circle at 90% 15%, rgba(91, 220, 154, 0.13), transparent 18rem),
        #102a1d;
    border-color: #28553c;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .download-panel > div:first-child > p:last-child {
    color: #a7baaf;
}

html[data-theme="dark"] .note-list summary svg {
    stroke: #8fa39a;
}

html[data-theme="dark"] .note-list code {
    color: #87e4b5;
    background: #143423;
}

html[data-theme="dark"] .site-footer {
    background: #0b1812;
}

html[data-theme="dark"] .hero-mascot {
    opacity: 0.88;
    filter: brightness(0.9) saturate(0.92) drop-shadow(0 28px 58px rgba(0, 0, 0, 0.34));
    mix-blend-mode: normal;
}

@media (max-width: 720px) {
    .theme-toggle {
        order: 2;
        margin-left: auto;
    }

    .menu-button {
        order: 3;
        margin-left: 8px;
    }

    html[data-theme="dark"] .main-nav {
        background: rgba(12, 27, 20, 0.98);
        border-color: #2b4337;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
