/* uplala front CSS bundle · generated 2026-12-04 11:07:16 */

/* --- app.css --- */
/* ==========================================================================
   尊享 VIP 会员系统 · 全站样式
   设计语言：深空蓝黑 + 香槟金，克制的光泽与层次
   ========================================================================== */

:root {
    --bg: #070b15;
    --bg-soft: #0a1020;
    --surface: rgba(17, 25, 44, 0.78);
    --surface-solid: #111a2e;
    --surface-2: #151f36;
    --surface-3: #1b2742;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f4f7ff;
    --text-soft: #d6dded;
    --muted: #94a0bb;
    --muted-2: #6f7c99;
    --gold: #07c160;
    --gold-strong: #e8b34b;
    --gold-soft: rgba(7, 193, 96, 0.12);
    --gold-line: rgba(7, 193, 96, 0.34);
    --green: #3ee0a0;
    --green-soft: rgba(62, 224, 160, 0.12);
    --red: #ff7285;
    --red-soft: rgba(255, 114, 133, 0.12);
    --blue: #07c160;
    --blue-soft: rgba(7, 193, 96, 0.12);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.22);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --shadow-gold: 0 18px 50px rgba(232, 179, 75, 0.18);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --container: 1180px;
    --header-h: 76px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1100px 700px at 85% -10%, rgba(7, 193, 96, 0.09), transparent 60%),
        radial-gradient(900px 700px at 0% 10%, rgba(83, 112, 255, 0.08), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}

img,
svg {
    vertical-align: middle;
}

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

p,
h1,
h2,
h3,
h4 {
    margin: 0;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

::selection {
    background: rgba(7, 193, 96, 0.32);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
}

.icon.flip {
    transform: rotate(180deg);
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

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

.skip-link {
    position: fixed;
    left: 16px;
    top: -100px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--gold);
    color: #131313;
    font-weight: 700;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
}

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

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 18px;
}

.text-right {
    text-align: right;
}

.mono {
    font-family: var(--mono);
    letter-spacing: 0.01em;
}

.muted-text {
    color: var(--muted);
    font-size: 14px;
}

.danger-text {
    color: var(--red) !important;
}

.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn .icon {
    width: 17px;
    height: 17px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffe3a0 0%, var(--gold) 44%, #d9a642 100%);
    border-color: rgba(255, 238, 196, 0.5);
    color: #17130a;
    box-shadow: 0 10px 28px rgba(232, 179, 75, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 14px 36px rgba(232, 179, 75, 0.34);
}

.btn-outline {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.018);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold);
}

.btn-ghost {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.btn-light {
    background: #fff;
    color: #1b1509;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.btn-light:hover {
    background: #fff9e9;
}

.btn-sm {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.btn-xs {
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 12.5px;
    gap: 5px;
}

.btn-xs .icon {
    width: 14px;
    height: 14px;
}

.btn-lg {
    min-height: 52px;
    padding: 14px 26px;
    border-radius: 14px;
    font-size: 15px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn.is-disabled {
    pointer-events: none;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    transition: 0.2s;
}

.icon-button:hover {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: 13.5px;
    font-weight: 650;
    white-space: nowrap;
}

.text-link .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

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

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    background: rgba(7, 11, 21, 0.55);
    backdrop-filter: blur(18px);
    transition: background 0.25s, border-color 0.25s;
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: rgba(7, 11, 21, 0.88);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 230, 170, 0.4);
    border-radius: 12px;
    background: linear-gradient(145deg, #f9d77f, #cf9a38);
    color: #211806;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px rgba(232, 179, 75, 0.18);
}

.brand-mark .icon {
    width: 22px;
    height: 22px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

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

.brand-copy small {
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

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

.nav-link {
    position: relative;
    padding: 8px 13px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 550;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-active {
    color: var(--gold);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-login {
    padding: 8px 10px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
}

.header-login:hover {
    color: var(--text);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.2s, background 0.2s;
}

.user-chip:hover {
    border-color: var(--gold-line);
    background: var(--gold-soft);
}

.avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f5d07a, #b9842d);
    color: #1d1506;
    font-size: 13px;
    font-weight: 800;
    flex: 0 0 auto;
}

.user-chip-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.user-chip-copy strong {
    max-width: 110px;
    overflow: hidden;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip-copy small {
    color: var(--gold);
    font-size: 12px;
}

.menu-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.03);
}

.menu-toggle span {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--text);
    transition: 0.25s var(--ease);
}

.menu-toggle span:nth-child(1) {
    top: 13px;
}

.menu-toggle span:nth-child(2) {
    top: 19px;
}

.menu-toggle span:nth-child(3) {
    top: 25px;
}

.menu-toggle.is-open span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

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

.notice-bar {
    border-bottom: 1px solid rgba(7, 193, 96, 0.12);
    background: linear-gradient(90deg, rgba(7, 193, 96, 0.07), rgba(7, 193, 96, 0.02));
}

.notice-bar .container {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    color: var(--text-soft);
    font-size: 12.5px;
}

.notice-bar a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    color: var(--gold);
    font-weight: 650;
}

.notice-bar a .icon {
    width: 14px;
    height: 14px;
}

.notice-dot,
.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(62, 224, 160, 0.1);
    flex: 0 0 auto;
}

/* ==========================================================================
   Alerts / flash
   ========================================================================== */

.flash-stack {
    position: relative;
    z-index: 20;
}

.flash-stack:not(:empty) {
    padding-top: 20px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-solid);
    color: var(--text-soft);
    font-size: 13.5px;
    line-height: 1.55;
    box-shadow: var(--shadow-sm);
}

.alert .alert-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    margin-top: 1px;
}

.alert .alert-icon .icon {
    width: 18px;
    height: 18px;
}

.alert-success {
    border-color: rgba(62, 224, 160, 0.28);
    background: linear-gradient(120deg, rgba(62, 224, 160, 0.1), var(--surface-solid));
    color: #c9ffe7;
}

.alert-success .alert-icon {
    color: var(--green);
}

.alert-error {
    border-color: rgba(255, 114, 133, 0.3);
    background: linear-gradient(120deg, rgba(255, 114, 133, 0.1), var(--surface-solid));
    color: #ffd7dd;
}

.alert-error .alert-icon {
    color: var(--red);
}

.alert-warning {
    border-color: rgba(7, 193, 96, 0.28);
    background: linear-gradient(120deg, rgba(7, 193, 96, 0.09), var(--surface-solid));
    color: #ffedc5;
}

.alert-warning .alert-icon {
    color: var(--gold);
}

.alert-info {
    border-color: rgba(7, 193, 96, 0.25);
    background: linear-gradient(120deg, rgba(7, 193, 96, 0.09), var(--surface-solid));
    color: #dce5ff;
}

.alert-info .alert-icon {
    color: var(--blue);
}

.alert-compact {
    padding: 10px 12px;
    font-size: 12.5px;
}

.alert strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text);
    font-size: 13.5px;
}

.alert p {
    color: var(--muted);
    font-size: 12.5px;
}

.alert-close {
    margin-left: auto;
    padding: 2px;
    border: 0;
    background: none;
    color: var(--muted);
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
    color: var(--text);
}

.alert-close .icon {
    width: 15px;
    height: 15px;
}

/* ==========================================================================
   Typography helpers / section heads
   ========================================================================== */

.section {
    position: relative;
    padding: 96px 0;
}

.section-tight {
    padding: 52px 0;
}

.section-tinted {
    border-block: 1px solid rgba(255, 255, 255, 0.045);
    background:
        radial-gradient(800px 380px at 50% 0%, rgba(7, 193, 96, 0.05), transparent 70%),
        rgba(255, 255, 255, 0.012);
}

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

.section-head h2 {
    margin-top: 10px;
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 720;
    line-height: 1.22;
    letter-spacing: 0.01em;
}

.section-head p {
    max-width: 620px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 14.5px;
}

.section-head-center {
    display: block;
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.section-head-center p {
    margin-inline: auto;
}

.section-kicker {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 28px;
    color: var(--muted-2);
    font-size: 12px;
}

.section-footnote .icon {
    width: 14px;
    height: 14px;
}

.text-gradient {
    background: linear-gradient(110deg, #fff7dd 0%, var(--gold) 44%, #d8a13d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    border: 1px solid rgba(7, 193, 96, 0.18);
    border-radius: 999px;
    background: rgba(7, 193, 96, 0.055);
    color: #d9c28b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 58px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.page-hero-compact {
    padding: 62px 0 46px;
}

.page-hero-small {
    padding: 48px 0 36px;
}

.page-hero-glow {
    position: absolute;
    top: -240px;
    right: -140px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 193, 96, 0.11), transparent 66%);
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.page-hero h1 {
    margin: 12px 0 14px;
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 730;
    line-height: 1.16;
    letter-spacing: 0.01em;
}

.page-hero p {
    max-width: 640px;
    color: var(--muted);
    font-size: 14.5px;
}

.page-hero .hero-trust {
    margin-top: 22px;
}

.page-heading {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.page-heading h1 {
    margin: 10px 0 8px;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 730;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

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

.page-heading-actions {
    display: flex;
    gap: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.back-link:hover {
    color: var(--gold);
}

.back-link .icon {
    width: 15px;
    height: 15px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

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

.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(10px);
}

.hero-glow-a {
    top: -260px;
    right: -120px;
    width: 740px;
    height: 740px;
    background: radial-gradient(circle, rgba(7, 193, 96, 0.13), transparent 62%);
}

.hero-glow-b {
    top: 180px;
    left: -300px;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(78, 108, 255, 0.1), transparent 64%);
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 70% 30%, #000, transparent 68%);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: 44px;
    padding-bottom: 66px;
}

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

.hero h1 {
    margin: 20px 0 20px;
    font-size: clamp(42px, 5.4vw, 68px);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: 0.01em;
}

.hero-lead {
    max-width: 540px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 26px;
    color: var(--muted-2);
    font-size: 12px;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-trust .icon {
    width: 14px;
    height: 14px;
    color: var(--gold);
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.avatar-stack {
    display: flex;
}

.avatar-stack .avatar {
    width: 30px;
    height: 30px;
    margin-left: -8px;
    border: 2px solid var(--bg);
    font-size: 12px;
}

.avatar-stack .avatar:first-child {
    margin-left: 0;
}

.avatar-gold {
    background: linear-gradient(145deg, #f5d07a, #b9842d);
}

.avatar-blue {
    background: linear-gradient(145deg, #9ab6ff, #4d65c9);
    color: #0b1020;
}

.avatar-rose {
    background: linear-gradient(145deg, #ffa8b8, #c65470);
    color: #241014;
}

.hero-social-proof p {
    color: var(--muted);
    font-size: 12px;
}

.hero-social-proof strong {
    color: var(--text);
    font-size: 13px;
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 430px;
}

.member-card {
    position: relative;
    z-index: 2;
    width: min(390px, 100%);
    aspect-ratio: 1.62 / 1;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid rgba(255, 238, 196, 0.42);
    border-radius: 24px;
    background:
        radial-gradient(120% 130% at 85% 0%, rgba(255, 250, 226, 0.6), transparent 40%),
        linear-gradient(135deg, #f8dc97 0%, #e9bd58 40%, #b9802c 100%);
    color: #231a08;
    box-shadow:
        0 36px 80px rgba(0, 0, 0, 0.42),
        0 12px 36px rgba(232, 179, 75, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transform: rotate(-3deg);
    transition: transform 0.5s var(--ease);
}

.member-card:hover {
    transform: rotate(-1deg) translateY(-4px);
}

.member-card::before {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -130px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(64, 42, 8, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(64, 42, 8, 0.05), 0 0 0 70px rgba(64, 42, 8, 0.035);
}

.member-card-shine {
    position: absolute;
    top: -60%;
    left: -70%;
    width: 60%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(22deg);
    animation: card-shine 7s ease-in-out infinite;
}

.member-card-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.member-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.member-brand .icon {
    width: 17px;
    height: 17px;
}

.member-tier {
    padding: 4px 9px;
    border: 1px solid rgba(35, 26, 8, 0.25);
    border-radius: 5px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.member-card-chip {
    position: relative;
    width: 34px;
    height: 25px;
    margin-top: 24px;
    border: 1px solid rgba(35, 26, 8, 0.22);
    border-radius: 7px;
    background:
        linear-gradient(90deg, transparent 46%, rgba(35, 26, 8, 0.22) 46%, rgba(35, 26, 8, 0.22) 54%, transparent 54%),
        linear-gradient(transparent 46%, rgba(35, 26, 8, 0.22) 46%, rgba(35, 26, 8, 0.22) 54%, transparent 54%);
    opacity: 0.55;
}

.member-card-name {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.member-card-name small,
.member-card-bottom small {
    color: rgba(35, 26, 8, 0.55);
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.member-card-name strong {
    margin-top: 3px;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.member-card-bottom {
    position: absolute;
    right: 28px;
    bottom: 24px;
    left: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.member-card-bottom div {
    display: flex;
    flex-direction: column;
}

.member-card-bottom strong {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.member-card-orbit {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(35, 26, 8, 0.5);
    box-shadow: 0 0 0 8px rgba(35, 26, 8, 0.05);
}

.float-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    background: rgba(13, 20, 36, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(12px);
    animation: float 5.5s ease-in-out infinite;
}

.float-card-top {
    top: 20px;
    right: -16px;
}

.float-card-bottom {
    bottom: 26px;
    left: -20px;
    animation-delay: -2.4s;
}

.float-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
}

.float-icon.gold {
    background: var(--gold-soft);
    color: var(--gold);
}

.float-icon.green {
    background: var(--green-soft);
    color: var(--green);
}

.float-icon .icon {
    width: 16px;
    height: 16px;
}

.float-card strong {
    display: block;
    font-size: 12px;
    line-height: 1.3;
}

.float-card span:not(.float-icon) {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.hero-ring {
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(7, 193, 96, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(7, 193, 96, 0.025), 0 0 0 84px rgba(7, 193, 96, 0.012);
    pointer-events: none;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}

.hero-stat {
    padding: 22px 28px 26px;
    border-right: 1px solid var(--line);
}

.hero-stat:first-child {
    padding-left: 0;
}

.hero-stat:last-child {
    border-right: 0;
}

.hero-stat strong {
    display: block;
    font-size: 25px;
    font-weight: 720;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.hero-stat span {
    display: block;
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 12px;
}

.hero-stat-note {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-stat-note p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.hero-stat-note p strong {
    display: inline;
    font-size: 12px;
}

.hero-stat-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold-line);
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold);
}

/* ==========================================================================
   Plans
   ========================================================================== */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.plan-grid-wide {
    gap: 24px;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%),
        var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.plan-card.is-featured {
    border-color: var(--gold-line);
    background:
        radial-gradient(120% 90% at 50% -10%, rgba(7, 193, 96, 0.16), transparent 55%),
        linear-gradient(180deg, rgba(7, 193, 96, 0.07), transparent 38%),
        #10182a;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(7, 193, 96, 0.1) inset;
}

.plan-card.is-featured::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(150deg, rgba(255, 235, 180, 0.6), rgba(7, 193, 96, 0.05) 45%, rgba(7, 193, 96, 0.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.plan-badge {
    position: absolute;
    top: -13px;
    left: 26px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 238, 196, 0.55);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe5a6, #e7b551);
    color: #201705;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 8px 20px rgba(232, 179, 75, 0.22);
}

.plan-badge .icon {
    width: 12px;
    height: 12px;
}

.plan-top {
    min-height: 104px;
}

.plan-kicker {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.plan-top h3 {
    margin: 8px 0 5px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.plan-top p {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin: 18px 0 4px;
    color: var(--text);
}

.plan-price .currency {
    align-self: flex-start;
    margin-top: 8px;
    color: var(--gold);
    font-size: 15px;
    font-weight: 700;
}

.plan-price .amount {
    font-size: 42px;
    font-weight: 740;
    line-height: 1.05;
    letter-spacing: 0.01em;
}

.plan-price .period {
    margin-left: 5px;
    color: var(--muted-2);
    font-size: 12px;
}

.plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 22px;
    color: var(--muted-2);
    font-size: 12px;
}

.plan-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.plan-meta .icon {
    width: 12px;
    height: 12px;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 22px 0 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--text-soft);
    font-size: 12.5px;
    line-height: 1.5;
}

.plan-features li .icon {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    color: var(--gold);
}

.plan-card .btn {
    margin-top: auto;
}

.plan-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 12px;
    color: var(--muted-2);
    font-size: 12px;
}

.plan-footnote .icon {
    width: 11px;
    height: 11px;
}

.plan-card.is-owned {
    opacity: 0.8;
}

.plan-hero-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 190px;
    border: 1px solid var(--gold-line);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 193, 96, 0.12), transparent 70%);
    text-align: center;
    flex: 0 0 auto;
}

.plan-hero-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--gold);
}

.plan-hero-badge strong {
    margin-top: 8px;
    font-size: 20px;
}

.plan-hero-badge > span:last-child {
    color: var(--muted);
    font-size: 12px;
}

/* ==========================================================================
   Features / steps / FAQ / CTA
   ========================================================================== */

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

.feature-card {
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.018);
    transition: 0.25s var(--ease);
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-line);
    background: rgba(7, 193, 96, 0.035);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border: 1px solid var(--gold-line);
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold);
}

.feature-icon .icon {
    width: 20px;
    height: 20px;
}

.feature-card h3 {
    font-size: 15.5px;
    font-weight: 680;
}

.feature-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.75;
}

.steps-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 80px;
}

.steps-copy h2 {
    margin: 10px 0 14px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.24;
    letter-spacing: 0.01em;
}

.steps-copy p {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 14px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid var(--line);
}

.step-item {
    display: flex;
    gap: 22px;
    padding: 22px 0 22px 28px;
    border-bottom: 1px solid var(--line);
}

.step-item:last-child {
    border-bottom: 0;
}

.step-number {
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.step-item h3 {
    font-size: 15px;
}

.step-item p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12.5px;
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 70px;
}

.faq-intro h2 {
    margin: 10px 0 14px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.24;
    letter-spacing: 0.01em;
}

.faq-intro p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 13.5px;
}

.faq-list {
    border-top: 1px solid var(--line);
}

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

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 2px;
    color: var(--text-soft);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary .icon {
    width: 16px;
    height: 16px;
    color: var(--muted);
    transition: transform 0.25s;
}

.faq-item[open] summary {
    color: var(--gold);
}

.faq-item[open] summary .icon {
    transform: rotate(45deg);
    color: var(--gold);
}

.faq-item p {
    padding: 0 34px 20px 2px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.85;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.promise-item {
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.018);
}

.promise-item > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--gold);
}

.promise-item h3 {
    font-size: 14px;
}

.promise-item p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.cta-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    padding: 54px 56px;
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(700px 300px at 100% 0%, rgba(7, 193, 96, 0.16), transparent 65%),
        linear-gradient(120deg, #131c30, #0d1424);
}

.cta-panel h2 {
    margin: 10px 0 8px;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.cta-panel p {
    color: var(--muted);
    font-size: 13.5px;
}

.cta-panel-slim {
    padding: 42px 48px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

.cta-glow {
    position: absolute;
    top: -100px;
    right: 15%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 193, 96, 0.22), transparent 65%);
    pointer-events: none;
}

/* ==========================================================================
   Empty states
   ========================================================================== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.012);
    text-align: center;
}

.empty-state-compact {
    padding: 34px 20px;
    border: 0;
    background: transparent;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border: 1px solid var(--gold-line);
    border-radius: 16px;
    background: var(--gold-soft);
    color: var(--gold);
}

.empty-icon .icon {
    width: 25px;
    height: 25px;
}

.empty-state h3 {
    font-size: 16px;
}

.empty-state p {
    max-width: 400px;
    margin: 7px 0 18px;
    color: var(--muted);
    font-size: 12.5px;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.form-narrow {
    max-width: 520px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field label,
.label-row label {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
}

.field label em {
    color: var(--red);
    font-style: normal;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.label-hint {
    color: var(--muted-2);
    font-size: 12px;
}

.field input,
.field select,
.field textarea,
.admin-filter-bar input,
.admin-filter-bar select {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(8, 13, 25, 0.6);
    color: var(--text);
    font-size: 13.5px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field textarea {
    min-height: 90px;
    resize: vertical;
    line-height: 1.65;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #5c6883;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-filter-bar input:focus,
.admin-filter-bar select:focus {
    outline: 0;
    border-color: var(--gold-line);
    background: rgba(13, 20, 36, 0.9);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.08);
}

.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap input {
    padding-left: 42px;
    padding-right: 42px;
}

.input-icon {
    position: absolute;
    left: 14px;
    display: grid;
    place-items: center;
    color: var(--muted-2);
    pointer-events: none;
}

.input-icon .icon {
    width: 16px;
    height: 16px;
}

.input-action {
    position: absolute;
    right: 7px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted-2);
}

.input-action:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.input-action .icon {
    width: 16px;
    height: 16px;
}

.input-prefix {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(8, 13, 25, 0.6);
}

.input-prefix span {
    padding: 0 0 0 13px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 650;
}

.input-prefix input {
    border: 0;
    background: transparent;
    box-shadow: none !important;
}

.input-prefix:focus-within {
    border-color: var(--gold-line);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.08);
}

.field-hint {
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.6;
}

.field-error {
    color: var(--red);
    font-size: 12px;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    cursor: pointer;
}

.check-row input {
    width: 15px;
    height: 15px;
    margin: 2px 0 0;
    accent-color: var(--gold);
    flex: 0 0 auto;
}

.check-row a {
    color: var(--gold);
}

.check-row-top {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.form-note {
    color: var(--muted-2);
    font-size: 12px;
    text-align: center;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

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

.field-full {
    grid-column: 1 / -1;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
    cursor: pointer;
}

.switch-row strong {
    display: block;
    color: var(--text-soft);
    font-size: 12.5px;
}

.switch-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.5;
}

.switch {
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 23px;
}

.switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch i {
    position: absolute;
    inset: 0;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    transition: 0.2s;
}

.switch i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--muted);
    transition: 0.2s var(--ease);
}

.switch:focus-within i {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.switch input:checked + i {
    border-color: var(--gold-line);
    background: rgba(7, 193, 96, 0.2);
}

.switch input:checked + i::after {
    left: 20px;
    background: var(--gold);
}

.security-tip {
    display: flex;
    gap: 9px;
    padding: 12px 14px;
    border: 1px solid rgba(7, 193, 96, 0.16);
    border-radius: 11px;
    background: var(--blue-soft);
    color: #b7c8f8;
    font-size: 12px;
    line-height: 1.65;
}

.security-tip .icon {
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

.security-tip p {
    margin: 0;
}

.security-tip code {
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
}

/* ==========================================================================
   Auth
   ========================================================================== */

.auth-section {
    position: relative;
    overflow: hidden;
    padding: 64px 0 80px;
}

.auth-glow {
    position: absolute;
    top: -280px;
    left: 10%;
    width: 760px;
    height: 760px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 193, 96, 0.1), transparent 62%);
    pointer-events: none;
}

.auth-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: center;
    gap: 80px;
    min-height: 560px;
}

.auth-aside h1 {
    margin: 14px 0 18px;
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.12;
    letter-spacing: 0.01em;
}

.auth-aside > p {
    max-width: 480px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.auth-benefits {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 34px;
}

.auth-benefits > div {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.auth-benefits span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--green-soft);
    color: var(--green);
}

.auth-benefits span .icon {
    width: 15px;
    height: 15px;
}

.auth-benefits p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.auth-benefits strong {
    color: var(--text-soft);
    font-size: 12.5px;
}

.auth-quote {
    position: relative;
    max-width: 380px;
    margin-top: 42px;
    padding: 14px 0 0 22px;
    border-left: 2px solid var(--gold-line);
}

.quote-mark {
    position: absolute;
    top: -8px;
    left: 10px;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 30px;
    opacity: 0.5;
}

.auth-quote p {
    color: var(--muted);
    font-size: 12px;
    font-style: italic;
}

.auth-card {
    position: relative;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
        rgba(13, 20, 36, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.auth-card-head {
    margin-bottom: 26px;
    text-align: center;
}

.auth-logo {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 13px;
    border: 1px solid rgba(255, 238, 196, 0.45);
    border-radius: 14px;
    background: linear-gradient(145deg, #f9d77f, #cf9a38);
    color: #211806;
    box-shadow: 0 10px 26px rgba(232, 179, 75, 0.2);
}

.auth-logo .icon {
    width: 24px;
    height: 24px;
}

.auth-card-head h2 {
    font-size: 21px;
    font-weight: 720;
    letter-spacing: 0.01em;
}

.auth-card-head p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.auth-card-head a {
    color: var(--gold);
    font-weight: 600;
}

.auth-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 12px;
}

.auth-card-foot span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.auth-card-foot .icon {
    width: 12px;
    height: 12px;
}

.auth-card-foot a {
    color: var(--muted);
}

.auth-card-foot a:hover {
    color: var(--gold);
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: 46px 0 10px;
}

.dashboard-glow {
    position: absolute;
    top: -360px;
    right: 0;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 193, 96, 0.09), transparent 65%);
    pointer-events: none;
}

.vip-dashboard-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid rgba(7, 193, 96, 0.24);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(7, 193, 96, 0.18), transparent 48%),
        linear-gradient(120deg, #141d31, #0c1322 65%);
    box-shadow: var(--shadow);
}

.vip-dashboard-card.is-inactive {
    border-color: var(--line);
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(7, 193, 96, 0.07), transparent 50%),
        linear-gradient(120deg, #131b2d, #0b1120 65%);
}

.vip-card-noise {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(7, 193, 96, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 44px rgba(7, 193, 96, 0.025), 0 0 0 92px rgba(7, 193, 96, 0.012);
    pointer-events: none;
}

.vip-dashboard-main {
    position: relative;
    padding: 34px 38px 32px;
}

.vip-dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.vip-emblem {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 238, 196, 0.42);
    border-radius: 13px;
    background: linear-gradient(145deg, #f9d77f, #cf9a38);
    color: #211806;
    box-shadow: 0 8px 20px rgba(232, 179, 75, 0.2);
}

.vip-emblem .icon {
    width: 23px;
    height: 23px;
}

.vip-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.vip-state.is-on {
    border-color: rgba(62, 224, 160, 0.25);
    background: var(--green-soft);
    color: #b8ffe2;
}

.state-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--muted);
}

.vip-state.is-on .state-dot {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(62, 224, 160, 0.1);
}

.vip-dashboard-title {
    margin: 28px 0 26px;
}

.vip-dashboard-title span {
    color: rgba(7, 193, 96, 0.7);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.22em;
}

.vip-dashboard-title h2 {
    margin-top: 4px;
    font-size: 36px;
    font-weight: 740;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.vip-dashboard-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.vip-dashboard-meta small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted-2);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.vip-dashboard-meta strong {
    font-size: 13px;
    font-weight: 650;
}

.vip-dashboard-side {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.14);
}

.vip-progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

.vip-progress-label strong {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.vip-progress {
    height: 6px;
    margin: 10px 0 16px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.vip-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b9832c, #f8d980);
    box-shadow: 0 0 12px rgba(7, 193, 96, 0.45);
    transition: width 0.6s var(--ease);
}

.vip-progress.is-full span {
    background: linear-gradient(90deg, #3ee0a0, #07c160);
}

.vip-warning {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    color: #ffdf9c;
    font-size: 12px;
}

.vip-warning .icon {
    width: 12px;
    height: 12px;
}

.vip-dashboard-actions {
    margin-top: auto;
}

.vip-card-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    color: var(--muted-2);
    font-size: 12px;
}

.vip-card-hint .icon {
    width: 11px;
    height: 11px;
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.018);
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--gold);
}

.stat-icon .icon {
    width: 18px;
    height: 18px;
}

.stat-card small {
    display: block;
    color: var(--muted-2);
    font-size: 12px;
}

.stat-card strong {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 680;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.content-card {
    padding: 25px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.018);
}

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

.card-head h2 {
    font-size: 16px;
    font-weight: 680;
    letter-spacing: 0.01em;
}

.card-head p {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 12px;
}

.card-head h3 {
    font-size: 15px;
}

.order-list {
    display: flex;
    flex-direction: column;
}

.order-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    transition: 0.2s;
}

.order-list-item:first-child {
    border-top: 0;
}

.order-list-item:hover {
    padding-inline: 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
}

.order-list-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.order-list-icon.is-paid {
    background: var(--green-soft);
    color: var(--green);
}

.order-list-icon .icon {
    width: 16px;
    height: 16px;
}

.order-list-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.order-list-main strong {
    font-size: 12.5px;
    font-weight: 600;
}

.order-list-main small {
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 12px;
    font-family: var(--mono);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-list-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    margin-left: auto;
}

.order-list-side strong {
    font-size: 12.5px;
}

.order-list-side .status-pill {
    transform: scale(0.88);
    transform-origin: right center;
}

.order-chevron {
    width: 14px;
    height: 14px;
    color: var(--muted-2);
}

.timeline {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 13px;
    bottom: -3px;
    left: 4px;
    width: 1px;
    background: var(--line);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-top: 5px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: var(--bg);
}

.timeline-body {
    min-width: 0;
    flex: 1;
}

.timeline-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.timeline-row strong {
    font-size: 12px;
    font-weight: 600;
}

.timeline-row span {
    color: var(--muted-2);
    font-size: 12px;
    white-space: nowrap;
}

.timeline-body p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.quick-card h3 {
    margin-bottom: 12px;
    font-size: 14px;
}

.quick-card a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    transition: 0.2s;
}

.quick-card a > span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--gold-soft);
    color: var(--gold);
}

.quick-card a > span .icon {
    width: 15px;
    height: 15px;
}

.quick-card a > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.quick-card a strong {
    font-size: 12px;
}

.quick-card a small {
    color: var(--muted-2);
    font-size: 12px;
}

.quick-card a > .icon {
    margin-left: auto;
    width: 13px;
    height: 13px;
    color: var(--muted-2);
}

.quick-card a:hover strong {
    color: var(--gold);
}

.recommend-card .card-head {
    margin-bottom: 10px;
}

.recommend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.recommend-item div {
    min-width: 0;
}

.recommend-item strong {
    display: block;
    font-size: 12px;
}

.recommend-item small {
    display: block;
    overflow: hidden;
    color: var(--muted-2);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-item > span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.support-card {
    text-align: center;
}

.support-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
}

.support-icon .icon {
    width: 20px;
    height: 20px;
}

.support-card h3 {
    font-size: 14px;
}

.support-card p {
    margin: 5px 0 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

/* ==========================================================================
   Account
   ========================================================================== */

.account-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.account-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-card {
    padding: 26px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.018);
    text-align: center;
}

.profile-avatar {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    border: 2px solid rgba(7, 193, 96, 0.4);
    border-radius: 50%;
    background: linear-gradient(145deg, #f5d07a, #b9842d);
    color: #1d1506;
    font-size: 23px;
    font-weight: 800;
}

.profile-card h2 {
    font-size: 16px;
}

.profile-card > p {
    margin: 2px 0 10px;
    color: var(--muted-2);
    font-size: 12px;
    word-break: break-all;
}

.profile-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.profile-meta small {
    display: block;
    color: var(--muted-2);
    font-size: 12px;
}

.profile-meta strong {
    display: block;
    margin-top: 2px;
    font-size: 12px;
}

.account-nav {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.018);
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    transition: 0.2s;
}

.account-nav a:first-child {
    border-top: 0;
}

.account-nav a .icon {
    width: 15px;
    height: 15px;
}

.account-nav a:hover,
.account-nav a.is-active {
    background: var(--gold-soft);
    color: var(--gold);
}

.account-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   Tables / orders
   ========================================================================== */

.table-card {
    padding: 0;
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.data-table th {
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
}

.data-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 12px;
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.018);
}

.table-primary {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.table-sub {
    display: block;
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 12px;
}

.table-amount {
    font-size: 12.5px;
    font-weight: 650;
}

.table-date {
    color: var(--muted);
    font-size: 12px;
}

.table-actions {
    text-align: right;
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 12px;
}

.filter-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    overflow-x: auto;
}

.filter-tab {
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    transition: 0.2s;
}

.filter-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.filter-tab.is-active {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.status-pill::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill.status-paid {
    border-color: rgba(62, 224, 160, 0.25);
    background: var(--green-soft);
    color: var(--green);
}

.status-pill.status-pending {
    border-color: rgba(7, 193, 96, 0.25);
    background: var(--gold-soft);
    color: var(--gold);
}

.status-pill.status-cancelled,
.status-pill.status-refunded {
    border-color: rgba(255, 114, 133, 0.22);
    background: var(--red-soft);
    color: var(--red);
}

.status-lg {
    padding: 6px 13px;
    font-size: 12px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-link {
    display: grid;
    place-items: center;
    min-width: 31px;
    height: 31px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    transition: 0.2s;
}

.page-link:hover {
    border-color: var(--gold-line);
    color: var(--gold);
}

.page-link.is-current {
    border-color: var(--gold);
    background: var(--gold);
    color: #17130a;
    font-weight: 700;
}

.page-link.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.page-arrow .icon {
    width: 13px;
    height: 13px;
}

.page-ellipsis {
    color: var(--muted-2);
    font-size: 12px;
}

.order-heading {
    align-items: center;
}

.order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.order-detail-main,
.order-detail-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.order-detail-main > .alert {
    margin-bottom: 0;
}

.order-plan-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
}

.order-plan-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold);
}

.order-plan-icon .icon {
    width: 22px;
    height: 22px;
}

.order-plan-row h3 {
    font-size: 14px;
}

.order-plan-row p {
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 12px;
}

.order-plan-row > strong {
    margin-left: auto;
    color: var(--gold);
    font-size: 17px;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 18px;
}

.detail-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.detail-list > div:first-child {
    border-top: 0;
}

.detail-list span {
    color: var(--muted-2);
    font-size: 12px;
    white-space: nowrap;
}

.detail-list strong {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 550;
    text-align: right;
    word-break: break-word;
}

.detail-list-tight {
    margin-top: 12px;
}

.order-amount-big {
    margin: 8px 0 4px;
    color: var(--gold);
    font-size: 36px;
    font-weight: 740;
    letter-spacing: 0.01em;
}

.order-detail-side .btn-block + .btn-block {
    margin-top: 8px;
}

.order-timeline {
    display: flex;
    flex-direction: column;
}

.order-timeline-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding-bottom: 20px;
}

.order-timeline-item:last-child {
    padding-bottom: 0;
}

.order-timeline-item::before {
    content: "";
    position: absolute;
    top: 13px;
    bottom: -3px;
    left: 4px;
    width: 1px;
    background: var(--line);
}

.order-timeline-item:last-child::before {
    display: none;
}

.order-timeline-item .timeline-dot {
    border-color: var(--muted-2);
}

.order-timeline-item.is-done .timeline-dot {
    border-color: var(--green);
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(62, 224, 160, 0.08);
}

.order-timeline-item.is-cancelled .timeline-dot {
    border-color: var(--red);
    background: var(--red);
}

.order-timeline-item strong {
    font-size: 12px;
}

.order-timeline-item p {
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 12px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}

.checkout-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted-2);
    font-size: 12px;
}

.checkout-step i {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 12px;
    font-style: normal;
}

.checkout-step.is-done {
    color: var(--green);
}

.checkout-step.is-done i {
    border-color: rgba(62, 224, 160, 0.3);
    background: var(--green-soft);
}

.checkout-step.is-current {
    color: var(--gold);
}

.checkout-step.is-current i {
    border-color: var(--gold);
    background: var(--gold);
    color: #17130a;
    font-weight: 700;
}

.checkout-step-line {
    flex: 0 0 32px;
    height: 1px;
    background: var(--line);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checkout-side {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkout-plan-card {
    padding: 24px;
    border: 1px solid var(--gold-line);
    border-radius: var(--radius);
    background:
        radial-gradient(100% 80% at 100% 0%, rgba(7, 193, 96, 0.12), transparent 55%),
        rgba(16, 24, 42, 0.9);
}

.checkout-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkout-plan-card h2 {
    margin-top: 14px;
    font-size: 22px;
}

.checkout-plan-card > p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.checkout-plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin: 15px 0;
}

.checkout-plan-price > span {
    color: var(--gold);
    font-size: 13px;
}

.checkout-plan-price strong {
    font-size: 38px;
    font-weight: 740;
    letter-spacing: 0.01em;
    line-height: 1;
}

.checkout-plan-price small {
    margin-left: 5px;
    color: var(--muted-2);
    font-size: 12px;
}

.plan-features-compact {
    gap: 8px;
    margin: 0;
    padding-top: 16px;
}

.plan-features-compact li {
    font-size: 12px;
}

.summary-card h3 {
    margin-bottom: 14px;
    font-size: 14px;
}

.summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 6px 0;
    color: var(--muted);
    font-size: 12px;
}

.summary-line strong {
    color: var(--text-soft);
    font-weight: 550;
}

.summary-discount strong {
    color: var(--green);
}

.summary-divider {
    height: 1px;
    margin: 12px 0;
    background: var(--line);
}

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
    font-weight: 600;
}

.summary-total strong {
    color: var(--gold);
    font-size: 23px;
    letter-spacing: 0.01em;
}

.summary-submit {
    margin-top: 16px;
}

.summary-note {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    color: var(--muted-2);
    font-size: 12px;
}

.summary-note .icon {
    width: 12px;
    height: 12px;
}

.checkout-help {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 12px;
}

.checkout-help .icon {
    width: 17px;
    height: 17px;
    color: var(--blue);
}

.checkout-help a {
    color: var(--gold);
}

.checkout-notice {
    padding-bottom: 42px;
    color: var(--muted-2);
    font-size: 12px;
    text-align: center;
}

.secure-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border: 1px solid rgba(62, 224, 160, 0.2);
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 12px;
}

.secure-chip .icon {
    width: 11px;
    height: 11px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.payment-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.015);
    cursor: pointer;
    transition: 0.2s;
}

.payment-option:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.025);
}

.payment-option:focus-within {
    border-color: var(--gold-line);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.09);
}

.payment-option.is-selected {
    border-color: var(--gold-line);
    background: var(--gold-soft);
}

.payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
}

.payment-option-icon .icon {
    width: 18px;
    height: 18px;
}

.payment-option-copy {
    display: flex;
    flex-direction: column;
}

.payment-option-copy strong {
    font-size: 12.5px;
}

.payment-option-copy small {
    margin-top: 1px;
    color: var(--muted-2);
    font-size: 12px;
}

.radio-mark {
    margin-left: auto;
    width: 16px;
    height: 16px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transition: 0.2s;
}

.payment-option.is-selected .radio-mark {
    border: 5px solid var(--gold);
}

.coupon-row {
    display: flex;
    gap: 9px;
}

.coupon-row .input-wrap {
    flex: 1;
}

.coupon-row .input-wrap input {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px 10px 42px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(8, 13, 25, 0.6);
    color: var(--text);
    font-size: 13.5px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.coupon-row .input-wrap input::placeholder {
    color: #5c6883;
}

.coupon-row .input-wrap input:focus {
    outline: 0;
    border-color: var(--gold-line);
    background: rgba(13, 20, 36, 0.9);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.08);
}

.coupon-feedback {
    min-height: 18px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.coupon-feedback.is-success {
    color: var(--green);
}

.coupon-feedback.is-error {
    color: var(--red);
}

.confirm-list {
    display: flex;
    flex-direction: column;
}

.confirm-list > div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.confirm-list > div:first-child {
    border-top: 0;
}

.confirm-list span {
    color: var(--muted-2);
    white-space: nowrap;
}

.confirm-list strong {
    font-weight: 550;
    text-align: right;
}

.checkout-submit-mobile {
    display: none;
}

/* ==========================================================================
   Payment
   ========================================================================== */

.pay-layout {
    display: grid;
    grid-template-columns: minmax(0, 540px);
    justify-content: center;
}

.pay-layout-wide {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
    justify-content: stretch;
    gap: 22px;
    align-items: start;
}

.pay-card {
    padding: 30px 32px;
}

.pay-brand-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.pay-brand-row > div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.pay-brand-row strong {
    font-size: 13px;
}

.pay-brand-row small {
    color: var(--muted-2);
    font-size: 12px;
}

.pay-brand-row .status-pill {
    margin-left: auto;
}

.pay-logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gold-line);
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold);
}

.pay-logo .icon {
    width: 20px;
    height: 20px;
}

.pay-amount {
    padding: 24px 0 18px;
    text-align: center;
}

.pay-amount small {
    display: block;
    color: var(--muted-2);
    font-size: 12px;
}

.pay-amount strong {
    display: block;
    margin-top: 4px;
    color: var(--gold);
    font-size: 42px;
    font-weight: 740;
    letter-spacing: 0.01em;
}

.pay-footnote {
    margin-top: 14px;
    color: var(--muted-2);
    font-size: 12px;
    text-align: center;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid rgba(7, 193, 96, 0.3);
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.manual-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.manual-head > div {
    display: flex;
    flex-direction: column;
}

.manual-head strong {
    font-size: 13px;
}

.manual-head small {
    color: var(--muted-2);
    font-size: 12px;
}

.manual-amount {
    padding: 22px 0 18px;
    text-align: center;
}

.manual-amount small {
    display: block;
    color: var(--muted-2);
    font-size: 12px;
}

.manual-amount strong {
    display: block;
    color: var(--gold);
    font-size: 40px;
    font-weight: 740;
    letter-spacing: 0.01em;
}

.manual-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px dashed var(--gold-line);
    border-radius: 10px;
    background: var(--gold-soft);
}

.manual-order > span {
    color: var(--muted);
    font-size: 12px;
}

.manual-order > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.manual-order strong {
    color: var(--gold);
    font-size: 12px;
}

.manual-instructions {
    margin-top: 18px;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.02);
}

.manual-instructions h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
}

.manual-instructions h3 .icon {
    width: 15px;
    height: 15px;
    color: var(--gold);
}

.manual-instructions p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.85;
}

.pay-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pay-side h3 {
    margin-bottom: 8px;
    font-size: 13px;
}

.payment-body {
    min-height: 100vh;
}

.redirect-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.redirect-card {
    width: min(460px, 100%);
    padding: 42px 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
    text-align: center;
    box-shadow: var(--shadow);
}

.redirect-spinner {
    display: inline-block;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border: 2px solid var(--line);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.redirect-card h1 {
    font-size: 20px;
}

.redirect-card > p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.redirect-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 22px 0;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 12px;
}

.redirect-order strong {
    color: var(--gold);
    font-size: 17px;
}

.redirect-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 18px;
    color: var(--muted-2);
    font-size: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: rgba(4, 7, 14, 0.45);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.7fr 0.8fr 0.8fr 1fr;
    gap: 44px;
    padding: 54px 0 42px;
}

.footer-brand p {
    max-width: 300px;
    margin: 14px 0 16px;
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.7;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-badges span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
}

.footer-badges .icon {
    width: 12px;
    height: 12px;
    color: var(--gold);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col h4 {
    margin-bottom: 3px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 650;
}

.footer-col a,
.footer-col p {
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.7;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0 22px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 12px;
}

/* ==========================================================================
   Errors
   ========================================================================== */

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
    align-items: start;
}

.legal-content {
    padding: 34px 36px;
}

.legal-content h2 {
    margin: 26px 0 8px;
    color: var(--text);
    font-size: 16px;
    font-weight: 680;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.legal-side {
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.legal-side h3 {
    margin-bottom: 10px;
    font-size: 14px;
}

.legal-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.legal-link:hover {
    color: var(--gold);
}

.legal-link .icon {
    width: 13px;
    height: 13px;
}

.error-body {
    display: grid;
    place-items: center;
    background:
        radial-gradient(700px 500px at 50% 0%, rgba(7, 193, 96, 0.08), transparent 65%),
        var(--bg);
}

.error-shell {
    width: min(620px, calc(100% - 40px));
    padding: 60px 0;
}

.error-brand {
    justify-content: center;
    margin-bottom: 28px;
}

.error-card {
    padding: 44px 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
    box-shadow: var(--shadow);
}

.error-code {
    display: block;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    opacity: 0.9;
}

.error-card h1 {
    margin-top: 14px;
    font-size: 23px;
}

.error-card > p {
    max-width: 430px;
    margin: 8px auto 0;
    color: var(--muted);
    font-size: 12.5px;
}

.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.debug-panel {
    margin-top: 26px;
    padding: 14px;
    border: 1px solid var(--red-soft);
    border-radius: 10px;
    background: rgba(255, 114, 133, 0.04);
    text-align: left;
}

.debug-panel summary {
    color: var(--red);
    font-size: 12px;
    cursor: pointer;
}

.debug-panel p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    word-break: break-all;
}

.debug-panel pre {
    max-height: 260px;
    overflow: auto;
    color: var(--muted-2);
    font-size: 12px;
    white-space: pre-wrap;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    z-index: 500;
    max-width: min(420px, calc(100% - 40px));
    padding: 11px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(16, 24, 42, 0.96);
    color: var(--text);
    font-size: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translate(-50%, 12px);
    pointer-events: none;
    transition: 0.25s var(--ease);
}

.toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ==========================================================================
   Admin
   ========================================================================== */

.admin-body {
    background:
        radial-gradient(900px 500px at 90% -10%, rgba(7, 193, 96, 0.05), transparent 60%),
        #080c16;
}

.admin-body::before {
    display: none;
}

.admin-shell {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    padding: 24px 16px 18px;
    border-right: 1px solid var(--line);
    background: rgba(10, 15, 28, 0.92);
    backdrop-filter: blur(18px);
}

.admin-brand {
    padding: 0 8px 22px;
}

.sidebar-label {
    padding: 0 12px 8px;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--muted);
    font-size: 12px;
    transition: 0.2s;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.admin-nav-link.is-active {
    border-color: rgba(7, 193, 96, 0.16);
    background: var(--gold-soft);
    color: var(--gold);
    font-weight: 600;
}

.admin-nav-icon {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
}

.admin-nav-icon .icon {
    width: 16px;
    height: 16px;
}

.nav-badge {
    margin-left: auto;
    min-width: 18px;
    padding: 1px 5px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.sidebar-site-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    color: var(--muted-2);
    font-size: 12px;
}

.sidebar-site-link:hover {
    color: var(--gold);
}

.sidebar-site-link .icon {
    width: 13px;
    height: 13px;
}

.sidebar-admin {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding: 10px 8px 0;
    border-top: 1px solid var(--line);
}

.sidebar-admin .avatar {
    width: 31px;
    height: 31px;
    font-size: 12px;
}

.sidebar-admin div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-admin strong {
    font-size: 12px;
}

.sidebar-admin small {
    overflow: hidden;
    color: var(--muted-2);
    font-size: 12px;
    text-overflow: ellipsis;
}

.admin-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 74px;
    padding: 12px 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 12, 22, 0.83);
    backdrop-filter: blur(16px);
}

.admin-page-title span {
    display: block;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-page-title h1 {
    margin-top: 1px;
    font-size: 17px;
    font-weight: 680;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.admin-top-actions form {
    display: inline-flex;
}

.admin-menu-toggle {
    display: none;
}

.admin-content {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 32px 44px;
}

.admin-content > .flash-stack {
    padding-top: 0;
    margin-bottom: 14px;
}

.admin-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding: 16px 32px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 12px;
}

.admin-overlay {
    display: none;
}

.admin-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.admin-page-head h2 {
    margin: 3px 0 4px;
    font-size: 25px;
    font-weight: 720;
    letter-spacing: 0.01em;
}

.admin-page-head p {
    color: var(--muted);
    font-size: 12px;
}

.admin-page-head .back-link {
    margin-bottom: 4px;
}

.admin-page-actions {
    display: flex;
    gap: 8px;
}

.admin-card {
    margin-bottom: 18px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.018);
}

.admin-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.admin-card-head h3 {
    font-size: 14px;
    font-weight: 650;
}

.admin-card-head p {
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 12px;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.admin-chip .icon {
    width: 12px;
    height: 12px;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.admin-stat-card {
    position: relative;
    overflow: hidden;
    padding: 19px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
}

.admin-stat-gold {
    border-color: var(--gold-line);
    background:
        radial-gradient(100% 130% at 100% 0%, rgba(7, 193, 96, 0.16), transparent 60%),
        rgba(7, 193, 96, 0.045);
}

.admin-stat-top {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted-2);
}

.admin-stat-top > span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
}

.admin-stat-top .icon {
    width: 14px;
    height: 14px;
}

.admin-stat-top small {
    font-size: 12px;
}

.admin-stat-card > strong {
    display: block;
    margin-top: 12px;
    font-size: 25px;
    font-weight: 720;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.admin-stat-card > p {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 12px;
}

.admin-stat-card > p a {
    color: var(--gold);
}

.admin-stat-shine {
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(7, 193, 96, 0.15);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(7, 193, 96, 0.03);
}

.admin-stat-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 7px;
    color: var(--gold) !important;
    font-size: 12px;
}

.admin-stat-grid-small {
    grid-template-columns: repeat(3, 1fr);
}

.admin-stat-grid-small .admin-stat-card > strong {
    font-size: 20px;
}

.admin-stat-grid-small .stat-date {
    font-size: 13px;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.chart {
    position: relative;
    height: 220px;
    padding-top: 22px;
}

.chart-grid-lines {
    position: absolute;
    inset: 22px 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.chart-grid-lines span {
    height: 1px;
    background: rgba(255, 255, 255, 0.045);
}

.chart-bars {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 100%;
    padding: 0 4px;
}

.chart-bar-wrap {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.chart-bar {
    width: min(34px, 70%);
    min-height: 3px;
    border-radius: 7px 7px 2px 2px;
    background: linear-gradient(180deg, #4ade80, #07c160);
    box-shadow: 0 0 18px rgba(7, 193, 96, 0.12);
    transition: height 0.5s var(--ease);
}

.chart-bar-wrap small {
    position: absolute;
    bottom: -24px;
    color: var(--muted-2);
    font-size: 12px;
}

.chart-value {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    opacity: 0;
    transition: 0.2s;
    white-space: nowrap;
}

.chart-bar-wrap:hover .chart-value {
    opacity: 1;
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
    flex: 0 0 auto;
}

.rank-item:first-child .rank-number {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold);
}

.rank-main {
    min-width: 0;
    flex: 1;
}

.rank-main > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.rank-main strong {
    overflow: hidden;
    font-size: 12px;
    font-weight: 550;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-main span {
    color: var(--muted-2);
    font-size: 12px;
}

.rank-bar {
    height: 4px;
    margin-top: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.rank-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #07c160, #07c160);
}

.rank-revenue {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-empty-small {
    padding: 30px 0;
    color: var(--muted-2);
    font-size: 12px;
    text-align: center;
}

.admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 20px;
    text-align: center;
}

.admin-empty > span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
    border: 1px solid var(--gold-line);
    border-radius: 14px;
    background: var(--gold-soft);
    color: var(--gold);
}

.admin-empty > span .icon {
    width: 23px;
    height: 23px;
}

.admin-empty h3 {
    font-size: 14px;
}

.admin-empty p {
    max-width: 360px;
    margin: 5px 0 16px;
    color: var(--muted);
    font-size: 12px;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.snapshot-item {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.018);
}

.snapshot-item > span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    margin-bottom: 9px;
    border-radius: 7px;
    background: var(--gold-soft);
    color: var(--gold);
}

.snapshot-item > span .icon {
    width: 13px;
    height: 13px;
}

.snapshot-item strong {
    display: block;
    font-size: 17px;
    letter-spacing: 0.01em;
}

.snapshot-item small {
    display: block;
    margin-top: 1px;
    color: var(--muted-2);
    font-size: 12px;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.quick-actions a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    transition: 0.2s;
}

.quick-actions a:hover {
    border-color: var(--gold-line);
    color: var(--gold);
}

.quick-actions .icon {
    width: 13px;
    height: 13px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.admin-table th {
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
}

.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    color: var(--text-soft);
    font-size: 12px;
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.admin-table th:first-child,
.admin-table td:first-child {
    padding-left: 2px;
}

.admin-table th:last-child,
.admin-table td:last-child {
    padding-right: 2px;
}

.admin-table-lg th,
.admin-table-lg td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.admin-table-primary {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.admin-table td small {
    display: block;
    margin-top: 1px;
    color: var(--muted-2);
    font-size: 12px;
}

.admin-table-date {
    color: var(--muted-2) !important;
    font-size: 12px !important;
}

.admin-amount {
    color: var(--gold) !important;
    font-size: 12px !important;
}

.admin-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.admin-search {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.admin-search .icon {
    position: absolute;
    top: 50%;
    left: 11px;
    width: 14px;
    height: 14px;
    color: var(--muted-2);
    transform: translateY(-50%);
}

.admin-search input {
    padding-left: 33px;
}

.admin-filter-bar select {
    width: auto;
    min-width: 120px;
}

.admin-filter-bar .btn {
    flex: 0 0 auto;
}

.table-footer .pagination {
    margin-left: auto;
}

.admin-plan-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-plan-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gold-soft);
    color: var(--gold);
    flex: 0 0 auto;
}

.admin-plan-icon.is-lifetime {
    background: var(--green-soft);
    color: var(--green);
}

.admin-plan-icon .icon {
    width: 16px;
    height: 16px;
}

.admin-plan-cell strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.mini-badge {
    padding: 1px 5px;
    border: 1px solid var(--gold-line);
    border-radius: 4px;
    color: var(--gold);
    font-size: 7.5px;
    font-weight: 600;
}

.table-action-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    justify-content: flex-end;
}

.table-action-group form {
    display: inline-flex;
}

.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-user-cell .avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.role-pill {
    display: inline-flex;
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
    font-size: 12px;
}

.role-admin {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold);
}

.admin-tip {
    display: flex;
    gap: 9px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.015);
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.65;
}

.admin-tip .icon {
    width: 15px;
    height: 15px;
    color: var(--blue);
    flex: 0 0 auto;
}

.admin-tip p {
    margin: 0;
}

.admin-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.admin-form-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.admin-form-side {
    position: sticky;
    top: 94px;
}

.admin-form-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 4px;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) 300px;
    gap: 18px;
    align-items: start;
}

.admin-detail-main,
.admin-detail-side {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.admin-detail-list {
    display: flex;
    flex-direction: column;
}

.admin-detail-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.admin-detail-list > div:first-child {
    border-top: 0;
}

.admin-detail-list span {
    color: var(--muted-2);
    white-space: nowrap;
}

.admin-detail-list strong {
    font-weight: 550;
    text-align: right;
    word-break: break-word;
}

.admin-action-note {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.admin-detail-side .btn-block + .btn-block {
    margin-top: 8px;
}

.admin-complete-note {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 13px;
    border: 1px solid rgba(62, 224, 160, 0.18);
    border-radius: 9px;
    background: var(--green-soft);
    color: #b8ffe2;
    font-size: 12px;
    line-height: 1.65;
}

.admin-complete-note .icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.admin-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(600px 200px at 100% 0%, rgba(7, 193, 96, 0.07), transparent 60%),
        rgba(255, 255, 255, 0.018);
}

.admin-profile-avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f5d07a, #b9842d);
    color: #1d1506;
    font-size: 20px;
    font-weight: 800;
    flex: 0 0 auto;
}

.admin-profile-main h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
}

.admin-profile-main p {
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 12px;
}

.admin-profile-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    margin-left: auto;
}

.admin-profile-status strong {
    margin-top: 3px;
    font-size: 12px;
}

.admin-profile-status small {
    color: var(--muted-2);
    font-size: 12px;
}

.coupon-code {
    display: inline-block;
    padding: 3px 8px;
    border: 1px dashed var(--gold-line);
    border-radius: 5px;
    background: var(--gold-soft);
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.settings-form > .admin-card {
    margin-bottom: 18px;
}

.payment-config-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.payment-config-item {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.018);
}

.payment-config-head {
    display: flex;
    align-items: center;
    gap: 9px;
}

.payment-config-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gold-soft);
    color: var(--gold);
    flex: 0 0 auto;
}

.payment-config-icon .icon {
    width: 16px;
    height: 16px;
}

.payment-config-head > div {
    min-width: 0;
}

.payment-config-head strong {
    display: block;
    font-size: 12px;
}

.payment-config-head small {
    display: block;
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.4;
}

.payment-config-head .switch {
    margin-left: auto;
    transform: scale(0.9);
}

.settings-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 0 20px;
}

.settings-actions span {
    color: var(--muted-2);
    font-size: 12px;
}

.log-action {
    display: inline-flex;
    padding: 2px 7px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-soft);
    font-size: 12px;
}

.log-meta {
    max-width: 220px;
    overflow: hidden;
    color: var(--muted-2) !important;
    font-size: 12px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes card-shine {
    0%,
    62% {
        left: -80%;
    }
    100% {
        left: 140%;
    }
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .hero h1 {
        font-size: clamp(38px, 5vw, 56px);
    }

    .hero-visual {
        min-height: 380px;
    }

    .float-card-top {
        right: 0;
    }

    .float-card-bottom {
        left: 0;
    }

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

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

    .footer-col.footer-note {
        display: none;
    }

    .admin-grid-2 {
        grid-template-columns: 1fr;
    }

    .admin-form-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
    }
}

@media (max-width: 960px) {
    .main-nav {
        position: fixed;
        top: var(--header-h);
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        max-height: calc(100vh - var(--header-h) - 24px);
        overflow-y: auto;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(11, 17, 31, 0.98);
        box-shadow: var(--shadow);
        backdrop-filter: blur(20px);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link {
        padding: 11px 12px;
        font-size: 13px;
    }

    .nav-link.is-active::after {
        display: none;
    }

    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        gap: 7px;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }

    .menu-toggle {
        display: block;
    }

    .header-login {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 46px;
        padding-bottom: 50px;
    }

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

    .hero-visual {
        min-height: 400px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stat {
        padding: 18px 24px;
        border-bottom: 1px solid var(--line);
    }

    .hero-stat:first-child {
        padding-left: 24px;
    }

    .hero-stat:nth-child(2) {
        border-right: 0;
    }

    .hero-stat:nth-child(3),
    .hero-stat:nth-child(4) {
        border-bottom: 0;
    }

    .plan-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-inline: auto;
    }

    .plan-card.is-featured {
        transform: none;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

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

    .auth-grid {
        grid-template-columns: 1fr 420px;
        gap: 36px;
    }

    .auth-aside h1 {
        font-size: 38px;
    }

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

    .dashboard-aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

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

    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-aside {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-side {
        position: static;
    }

    .checkout-side {
        position: static;
        order: -1;
    }

    .checkout-plan-card {
        display: none;
    }

    .checkout-submit-mobile {
        display: block;
    }

    .summary-submit {
        display: none;
    }

    .order-detail-layout {
        grid-template-columns: 1fr;
    }

    .order-detail-side {
        order: -1;
    }

    .pay-layout-wide {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 262px;
        height: 100vh;
        overflow-y: auto;
        visibility: hidden;
        transform: translateX(-100%);
        transition: transform 0.28s var(--ease), visibility 0.28s;
    }

    .admin-sidebar.is-open {
        visibility: visible;
        transform: translateX(0);
    }

    .admin-menu-toggle {
        display: block;
    }

    .admin-overlay {
        position: fixed;
        inset: 0;
        z-index: 55;
        display: block;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s;
    }

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

    .admin-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-form-layout,
    .admin-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-side {
        position: static;
    }

    .payment-config-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    :root {
        --header-h: 66px;
    }

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

    .section {
        padding: 66px 0;
    }

    .section-tight {
        padding: 38px 0;
    }

    .section-head {
        display: block;
        margin-bottom: 28px;
    }

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

    .brand-copy small {
        display: none;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .header-actions .btn-sm {
        display: none;
    }

    .user-chip-copy {
        display: none;
    }

    .user-chip {
        padding: 4px;
        border: 0;
        background: transparent;
    }

    .header-logout {
        display: none;
    }

    .notice-bar .container {
        flex-wrap: wrap;
        gap: 6px;
        padding-block: 8px;
    }

    .notice-bar a {
        margin-left: 0;
    }

    .hero {
        padding-top: 50px;
    }

    .hero h1 {
        font-size: clamp(34px, 9.5vw, 48px);
    }

    .hero-lead {
        font-size: 14px;
    }

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

    .hero-actions .btn {
        width: 100%;
    }

    .hero-trust {
        gap: 12px;
    }

    .hero-visual {
        min-height: 330px;
    }

    .member-card {
        width: min(330px, 92%);
        padding: 22px;
    }

    .member-card-bottom {
        right: 22px;
        bottom: 20px;
        left: 22px;
    }

    .float-card {
        padding: 8px 10px;
    }

    .float-card-top {
        top: 4px;
        right: 0;
    }

    .float-card-bottom {
        bottom: 10px;
        left: 0;
    }

    .hero-ring {
        width: 320px;
        height: 320px;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stat {
        padding: 16px;
    }

    .hero-stat:first-child {
        padding-left: 16px;
    }

    .hero-stat strong {
        font-size: 21px;
    }

    .hero-stat-note {
        display: none;
    }

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

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 34px 26px;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .page-hero {
        padding: 46px 0 36px;
    }

    .page-hero-inner {
        display: block;
    }

    .plan-hero-badge {
        display: none;
    }

    .page-heading {
        display: block;
    }

    .page-heading-actions {
        margin-top: 18px;
    }

    .page-heading-actions .btn {
        flex: 1;
    }

    .auth-section {
        padding: 36px 0 56px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
    }

    .auth-aside {
        display: none;
    }

    .auth-card {
        padding: 26px 22px;
    }

    .vip-dashboard-card {
        grid-template-columns: 1fr;
    }

    .vip-dashboard-main {
        padding: 24px 22px;
    }

    .vip-dashboard-title {
        margin: 22px 0;
    }

    .vip-dashboard-title h2 {
        font-size: 29px;
    }

    .vip-dashboard-meta {
        gap: 10px;
    }

    .vip-dashboard-meta strong {
        font-size: 12px;
    }

    .vip-dashboard-side {
        padding: 20px 22px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .dashboard-aside {
        display: flex;
    }

    .content-card {
        padding: 20px;
    }

    .account-aside {
        display: flex;
    }

    .data-table th,
    .data-table td {
        padding: 12px 13px;
    }

    .table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-steps {
        gap: 6px;
    }

    .checkout-step {
        font-size: 12px;
    }

    .checkout-step-line {
        flex-basis: 16px;
    }

    .coupon-row {
        flex-direction: column;
    }

    .pay-card {
        padding: 24px 20px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 40px 0 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .admin-topbar {
        padding: 12px 16px;
    }

    .admin-page-title h1 {
        font-size: 15px;
    }

    .admin-top-actions .btn-ghost {
        display: none;
    }

    .admin-content {
        padding: 20px 16px 34px;
    }

    .admin-page-head {
        display: block;
    }

    .admin-page-actions {
        margin-top: 14px;
    }

    .admin-stat-grid,
    .admin-stat-grid-small {
        grid-template-columns: 1fr 1fr;
    }

    .admin-profile-card {
        display: block;
        text-align: center;
    }

    .admin-profile-avatar {
        margin-inline: auto;
    }

    .admin-profile-main h3 {
        justify-content: center;
        margin-top: 10px;
    }

    .admin-profile-status {
        align-items: center;
        margin: 12px 0 0;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .admin-card {
        padding: 18px 16px;
    }

    .admin-table th {
        font-size: 12px;
    }

    .admin-table td {
        font-size: 12px;
    }

    .data-table th {
        font-size: 12px;
    }

    .data-table td {
        font-size: 12px;
    }

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

    .field-full {
        grid-column: auto;
    }

    .settings-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .settings-actions .btn {
        width: 100%;
    }

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

    .quick-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .hero-visual {
        min-height: 300px;
    }

    .member-card {
        width: 100%;
        padding: 19px;
    }

    .member-card-name strong {
        font-size: 17px;
    }

    .float-card {
        display: none;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stat {
        border-right: 0 !important;
        border-bottom: 1px solid var(--line) !important;
    }

    .hero-stat:last-child {
        border-bottom: 0 !important;
    }

    .stat-grid,
    .admin-stat-grid,
    .admin-stat-grid-small {
        grid-template-columns: 1fr;
    }

    .checkout-step span {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* --- tabs-tools.css --- */
/* ==========================================================================
   吉他谱库 / 在线工具 / AI 识歌
   在 app.css 之后加载，复用同一套设计变量
   ========================================================================== */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    color: var(--muted-2);
    font-size: 12px;
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb span {
    opacity: 0.65;
}

/* ==========================================================================
   曲谱库列表
   ========================================================================== */

.tab-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    background:
        radial-gradient(900px 500px at 90% -20%, rgba(7, 193, 96, 0.1), transparent 66%),
        rgba(255, 255, 255, 0.008);
}

.tab-hero-glow {
    position: absolute;
    top: -300px;
    right: -140px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 193, 96, 0.11), transparent 65%);
    pointer-events: none;
}

.tab-hero-top {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.tab-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 740;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.tab-hero p {
    max-width: 640px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.8;
}

.tab-hero-stats {
    display: flex;
    gap: 28px;
    flex: 0 0 auto;
    padding-bottom: 6px;
}

.tab-hero-stats div {
    display: flex;
    flex-direction: column;
}

.tab-hero-stats strong {
    font-size: 24px;
    font-weight: 720;
    letter-spacing: 0.01em;
}

.tab-hero-stats span {
    color: var(--muted-2);
    font-size: 12px;
}

.tab-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 760px;
    margin-top: 26px;
    padding: 7px 7px 7px 44px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(8, 13, 25, 0.7);
    box-shadow: var(--shadow-sm);
}

.tab-search-icon {
    position: absolute;
    left: 15px;
    display: grid;
    place-items: center;
    color: var(--muted-2);
}

.tab-search-icon .icon {
    width: 17px;
    height: 17px;
}

.tab-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 13.5px;
}

.tab-search input:focus {
    outline: 0;
}

.tab-search .btn {
    flex: 0 0 auto;
    min-height: 42px;
}

.tab-hero-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tab-hero-quick a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    transition: 0.2s;
}

.tab-hero-quick a:hover {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold);
}

.tab-hero-quick .icon {
    width: 12px;
    height: 12px;
}

.tab-layout {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.tab-filters {
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.filter-card {
    padding: 20px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.018);
}

.filter-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.filter-card-head h3 {
    font-size: 13px;
}

.filter-card-head a {
    color: var(--gold);
    font-size: 12px;
}

.filter-group {
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.filter-group:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.filter-group h4 {
    margin-bottom: 9px;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 7px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 12px;
    transition: 0.2s;
}

.filter-link em {
    color: var(--muted-2);
    font-size: 12px;
    font-style: normal;
}

.filter-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.filter-link.is-active {
    background: var(--gold-soft);
    color: var(--gold);
}

.filter-link.is-active em {
    color: var(--gold);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-size: 12px;
    transition: 0.2s;
}

.filter-chip em {
    color: var(--muted-2);
    font-size: 12px;
    font-style: normal;
}

.filter-chip:hover,
.filter-chip.is-active {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold);
}

.filter-promo {
    margin: 18px -4px -4px;
    padding: 16px;
    border: 1px solid var(--gold-line);
    border-radius: 12px;
    background:
        radial-gradient(120% 100% at 100% 0%, rgba(7, 193, 96, 0.13), transparent 60%),
        rgba(255, 255, 255, 0.02);
    text-align: center;
}

.filter-promo > .icon {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.filter-promo h4 {
    margin: 6px 0 4px;
    font-size: 12px;
}

.filter-promo p {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.tab-results {
    min-width: 0;
}

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

.tab-results-head h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.tab-results-head p {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 12px;
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.sort-form label {
    color: var(--muted-2);
    font-size: 12px;
}

.sort-form select {
    min-height: 34px;
    padding: 5px 28px 5px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 13, 25, 0.7);
    color: var(--text-soft);
    font-size: 12px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 13px) 14px, calc(100% - 9px) 14px;
    background-size: 4px 4px, 4px 4px;
    background-repeat: no-repeat;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    color: var(--muted-2);
    font-size: 12px;
}

.active-filters a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--gold);
    background: var(--gold-soft);
}

.active-filters .icon {
    width: 10px;
    height: 10px;
}

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

.home-tab-grid {
    margin-bottom: 18px;
}

.tab-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.018);
    transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.tab-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-line);
    box-shadow: var(--shadow-sm);
}

.tab-card-cover {
    position: relative;
    min-height: 102px;
    padding: 13px 15px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(120% 150% at 80% 0%, rgba(7, 193, 96, 0.13), transparent 58%),
        linear-gradient(135deg, #121b2e, #0b1120);
}

.tab-card-cover::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -70px;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(7, 193, 96, 0.09);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(7, 193, 96, 0.025);
}

.tab-card-cover-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tab-category {
    display: inline-flex;
    padding: 2px 7px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
    font-size: 12px;
}

.tab-vip-badge,
.tab-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.tab-vip-badge {
    border: 1px solid var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold);
}

.tab-ai-badge {
    border: 1px solid rgba(7, 193, 96, 0.24);
    background: var(--blue-soft);
    color: var(--blue);
}

.tab-card-cover .tab-ai-badge {
    position: absolute;
    right: 13px;
    bottom: 11px;
    z-index: 1;
}

.tab-card-snippet {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    overflow: hidden;
    color: rgba(185, 198, 221, 0.52);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.55;
    white-space: pre;
    mask-image: linear-gradient(90deg, #000 72%, transparent);
}

.tab-card-svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 64px;
    margin-top: 9px;
    border: 1px solid rgba(229, 218, 196, 0.35);
    border-radius: 4px;
    object-fit: cover;
    object-position: top left;
    opacity: 0.88;
}

.tab-svg-badge {
    position: absolute;
    left: 13px;
    bottom: 11px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border: 1px solid rgba(7, 193, 96, 0.3);
    border-radius: 4px;
    background: rgba(13, 20, 36, 0.8);
    color: var(--gold);
    font-size: 7.5px;
}

.tab-svg-badge .icon {
    width: 10px;
    height: 10px;
}

.tab-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 15px 13px;
}

.tab-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.tab-card-title-row h3 {
    overflow: hidden;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-card-title-row p {
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 12px;
}

.difficulty-pill {
    flex: 0 0 auto;
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.diff-beginner {
    border-color: rgba(62, 224, 160, 0.24);
    background: var(--green-soft);
    color: var(--green);
}

.diff-intermediate {
    border-color: rgba(7, 193, 96, 0.24);
    background: var(--gold-soft);
    color: var(--gold);
}

.diff-advanced {
    border-color: rgba(255, 114, 133, 0.24);
    background: var(--red-soft);
    color: var(--red);
}

.tab-card-summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 9px 0 10px;
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tab-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: var(--muted-2);
    font-size: 12px;
}

.tab-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.tab-card-meta .icon {
    width: 11px;
    height: 11px;
}

.tab-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
}

.tab-card-tags span {
    color: rgba(190, 165, 110, 0.75);
    font-size: 12px;
}

.tab-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    color: var(--muted-2);
    font-size: 12px;
}

.home-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.home-tool-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
    transition: 0.2s var(--ease);
}

.home-tool-card:hover {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    transform: translateY(-2px);
}

.home-tool-card > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--gold-soft);
    color: var(--gold);
    flex: 0 0 auto;
}

.home-tool-card > span .icon {
    width: 17px;
    height: 17px;
}

.home-tool-card > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.home-tool-card strong {
    font-size: 12px;
}

.home-tool-card small {
    margin-top: 1px;
    overflow: hidden;
    color: var(--muted-2);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-tool-card > .icon {
    width: 14px;
    height: 14px;
    color: var(--muted-2);
}

.empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* ==========================================================================
   曲谱详情
   ========================================================================== */

.tab-detail-hero {
    position: relative;
    overflow: hidden;
    padding: 36px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    background: radial-gradient(800px 400px at 88% -30%, rgba(7, 193, 96, 0.09), transparent 65%);
}

.tab-detail-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-top: 20px;
}

.tab-detail-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}

.tab-detail-title h1 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 740;
    line-height: 1.12;
    letter-spacing: 0.01em;
}

.tab-artist {
    margin-top: 4px;
    color: var(--gold);
    font-size: 13px;
}

.tab-summary {
    max-width: 700px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.75;
}

.tab-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
}

.tab-detail-actions form {
    display: inline-flex;
}

.btn-count {
    padding-left: 5px;
    opacity: 0.75;
}

.tab-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.tab-detail-meta > span {
    display: flex;
    flex-direction: column;
    min-width: 110px;
    padding: 12px 20px 12px 0;
}

.tab-detail-meta > span + span {
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

.tab-detail-meta small {
    color: var(--muted-2);
    font-size: 12px;
}

.tab-detail-meta strong {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
}

.diff-text-beginner {
    color: var(--green) !important;
}

.diff-text-intermediate {
    color: var(--gold) !important;
}

.diff-text-advanced {
    color: var(--red) !important;
}

.tab-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) 300px;
    gap: 22px;
    align-items: start;
}

.tab-detail-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.tab-paper {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%),
        #0b1220;
    box-shadow: var(--shadow);
}

.tab-paper-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.tab-paper-title {
    display: flex;
    flex-direction: column;
}

.tab-paper-title span {
    font-size: 12px;
    font-weight: 650;
}

.tab-paper-title small {
    color: var(--muted-2);
    font-size: 12px;
}

.tab-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.font-control {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.font-control button {
    min-width: 25px;
    height: 25px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
}

.font-control button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.font-control span {
    min-width: 22px;
    color: var(--muted-2);
    font-size: 12px;
    text-align: center;
}

.autoscroll-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
}

.autoscroll-toggle input {
    accent-color: var(--gold);
}

.autoscroll-toggle .icon {
    width: 12px;
    height: 12px;
}

.tab-content {
    max-height: 72vh;
    overflow: auto;
    margin: 0;
    padding: 26px 24px 30px;
    color: #d8e1f2;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 14px;
    line-height: 1.7;
    tab-size: 4;
    white-space: pre;
}

.tab-content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.tab-content::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
}

.tab-locked-overlay {
    position: relative;
    margin: 0 18px 18px;
    padding: 22px;
    border: 1px solid var(--gold-line);
    border-radius: 12px;
    background:
        radial-gradient(100% 120% at 100% 0%, rgba(7, 193, 96, 0.15), transparent 60%),
        rgba(13, 20, 36, 0.95);
    text-align: center;
}

.tab-locked-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    border: 1px solid var(--gold-line);
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold);
}

.tab-locked-icon .icon {
    width: 20px;
    height: 20px;
}

.tab-locked-overlay h3 {
    font-size: 16px;
}

.tab-locked-overlay p {
    max-width: 460px;
    margin: 5px auto 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.tab-locked-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tab-detail-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 2px 2px 0;
}

.tab-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tab-detail-tags a {
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    font-size: 12px;
}

.tab-detail-tags a:hover {
    border-color: var(--gold-line);
    color: var(--gold);
}

.tab-detail-links {
    display: flex;
    gap: 14px;
}

.sheet-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border: 1px solid var(--gold-line);
    border-radius: 5px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 12px;
}

.sheet-count-badge .icon {
    width: 12px;
    height: 12px;
}

.score-practice {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(600px 120px at 100% 0%, rgba(7, 193, 96, 0.08), transparent 60%),
        rgba(255, 255, 255, 0.025);
}

.score-practice-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.practice-control {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted-2);
    font-size: 12px;
}

.practice-control input[type="number"] {
    width: 48px;
    min-height: 28px;
    padding: 3px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(8, 13, 25, 0.6);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
}

.practice-control input[type="range"] {
    width: 70px;
    accent-color: var(--gold);
}

.practice-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted-2);
    font-size: 12px;
    cursor: pointer;
}

.practice-check input {
    accent-color: var(--gold);
}

.practice-status {
    margin-left: auto;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
}

.practice-range {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: var(--muted-2);
    font-size: 12px;
}

.practice-range label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.practice-range input {
    width: 42px;
    min-height: 26px;
    padding: 3px 5px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(8, 13, 25, 0.6);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
}

.practice-range-hint {
    margin-left: auto;
    color: var(--muted-2);
    font-size: 12px;
}

.practice-live {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 11px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background:
        linear-gradient(90deg, rgba(7, 193, 96, 0.06), transparent 45%),
        rgba(8, 13, 25, 0.45);
}

.practice-live-chord {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 700;
    text-align: center;
}

.practice-live-tracks {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.practice-live-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.practice-live-row > span {
    flex: 0 0 24px;
    color: var(--muted-2);
    font-size: 12px;
}

.practice-live-row > div {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    min-width: 0;
}

.live-beat {
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--muted);
    font-size: 12px;
    transition: 0.08s;
}

.live-beat.is-active {
    background: var(--gold);
    color: #1a1204;
    box-shadow: 0 0 10px rgba(7, 193, 96, 0.28);
}

.practice-live-meta {
    align-self: stretch;
    display: flex;
    align-items: center;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
    text-align: right;
}

.measure-sheet {
    cursor: pointer;
}

.tab-paper:fullscreen {
    width: 100vw;
    height: 100vh;
    overflow: auto;
    border: 0;
    border-radius: 0;
    background: #0b1220;
}

.tab-paper:fullscreen .sheet-roll {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 0;
}

.practice-beats {
    display: flex;
    gap: 6px;
    min-height: 12px;
    margin-top: 10px;
}

.practice-beat {
    width: 20px;
    height: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.09);
    transition: 0.08s;
}

.practice-beat.is-accent {
    background: rgba(7, 193, 96, 0.28);
}

.practice-beat.is-active {
    background: var(--gold);
    box-shadow: 0 0 12px rgba(7, 193, 96, 0.55);
}

.practice-hint {
    margin-top: 8px;
    color: var(--muted-2);
    font-size: 12px;
}

.practice-hint .icon {
    width: 11px;
    height: 11px;
}

.sheet-roll {
    overflow: hidden;
    margin: 18px;
    border: 1px solid #e5dac4;
    border-radius: 8px;
    background: #fffdf7;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.measure-sheet {
    display: block;
    width: 100%;
    height: auto;
    margin: -1px 0 0;
    background: #fffdf7;
    break-inside: avoid;
    page-break-inside: avoid;
    transition: box-shadow 0.15s, filter 0.15s;
}

.measure-sheet:first-child {
    margin-top: 0;
}

.measure-sheet.is-current {
    position: relative;
    z-index: 1;
    box-shadow: inset 0 0 0 3px rgba(215, 164, 64, 0.85), 0 0 24px rgba(215, 164, 64, 0.18);
    filter: saturate(1.05);
}

.sheet-locked-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 18px 18px;
    padding: 20px;
    border: 1px solid var(--gold-line);
    border-radius: 12px;
    background:
        radial-gradient(100% 120% at 100% 0%, rgba(7, 193, 96, 0.15), transparent 60%),
        rgba(13, 20, 36, 0.95);
}

.sheet-locked-card .tab-locked-icon {
    margin: 0;
    flex: 0 0 auto;
}

.sheet-locked-card h3 {
    font-size: 15px;
}

.sheet-locked-card p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.sheet-locked-card > .btn {
    margin-left: auto;
    flex: 0 0 auto;
}

.sheet-complete-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 18px 16px;
    color: var(--green);
    font-size: 12px;
}

.sheet-complete-note .icon {
    width: 13px;
    height: 13px;
}

/* 传统图片谱 AI 识别 */

.ai-image-import {
    margin-bottom: 0;
}

.ai-import-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr);
    gap: 12px;
    align-items: stretch;
}

.ai-import-drop {
    position: relative;
    display: flex;
    min-height: 130px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
    color: var(--muted-2);
    cursor: pointer;
    transition: 0.2s var(--ease);
}

.ai-import-drop:hover {
    border-color: var(--gold-line);
    background: var(--gold-soft);
}

.ai-import-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.ai-import-drop .icon {
    width: 25px;
    height: 25px;
    margin-bottom: 4px;
    color: var(--gold);
}

.ai-import-drop span {
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.ai-import-drop small {
    font-size: 12px;
}

.ai-import-preview {
    position: relative;
    min-height: 130px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fffdf7;
}

.ai-import-preview[hidden] {
    display: none;
}

.ai-import-preview img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
    object-position: top center;
}

.ai-import-preview-label {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(13, 20, 36, 0.78);
    color: var(--gold);
    font-size: 12px;
}

.ai-import-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.ai-import-status {
    color: var(--muted-2);
    font-size: 12px;
}

.ai-import-status.is-error {
    color: var(--red);
}

.ai-import-status.is-success {
    color: var(--green);
}

.ai-import-warnings {
    margin-top: 9px;
    padding: 8px 10px;
    border: 1px solid rgba(7, 193, 96, 0.22);
    border-radius: 8px;
    background: rgba(7, 193, 96, 0.06);
    color: #d8bd82;
    font-size: 12px;
}

.ai-import-warnings[hidden] {
    display: none;
}

.ai-import-warnings p {
    display: flex;
    gap: 5px;
    margin: 2px 0;
}

.ai-import-warnings .icon {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    margin-top: 1px;
}

/* 16 音符位乐谱网格编辑器 */

.grid-editor-card {
    padding-bottom: 16px;
}

.grid-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.grid-editor-toolbar strong {
    display: block;
    color: var(--text);
    font-size: 12px;
}

.grid-editor-toolbar small {
    display: block;
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 12px;
}

.grid-editor-actions,
.grid-editor-footer {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.grid-editor-note {
    display: flex;
    gap: 6px;
    margin: 12px 0;
    padding: 8px 10px;
    border: 1px solid rgba(7, 193, 96, 0.22);
    border-radius: 7px;
    background: rgba(7, 193, 96, 0.05);
    color: #c9b78e;
    font-size: 12px;
    line-height: 1.6;
}

.grid-editor-note .icon {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.grid-editor-measures {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.grid-measure {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
}

.grid-measure-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.018);
}

.grid-measure-head strong {
    color: var(--gold);
    font-size: 12px;
    white-space: nowrap;
}

.grid-section-field {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted-2);
    font-size: 12px;
}

.grid-section-field select {
    min-height: 26px;
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(8, 13, 25, 0.6);
    color: var(--text);
    font-size: 12px;
}

.grid-measure-badge {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(7, 193, 96, 0.09);
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
}

.grid-measure-actions {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.grid-measure-actions .icon-button {
    width: 26px;
    height: 26px;
}

.grid-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    min-width: 700px;
    padding: 7px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}

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

.grid-row-label {
    padding-top: 5px;
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.3;
}

.grid-row-label small {
    color: rgba(154, 168, 190, 0.6);
    font-size: 7.5px;
}

.grid-track {
    display: grid;
    grid-template-columns: repeat(var(--slots, 16), minmax(0, 1fr));
    min-width: 0;
}

.grid-input {
    width: 100%;
    min-width: 0;
    height: 25px;
    padding: 0 2px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 0;
    background: rgba(7, 12, 23, 0.5);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    text-align: center;
    outline: none;
}

.grid-input:focus {
    position: relative;
    z-index: 1;
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold-line);
}

.grid-chord-track {
    gap: 0;
}

.grid-chord-cell {
    padding: 2px 3px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.grid-chord-cell:last-child {
    border-right: 0;
}

.grid-chord-input {
    height: 27px;
    border-color: rgba(7, 193, 96, 0.16);
    color: var(--gold);
    font-size: 12px;
}

.grid-tab-lines {
    display: flex;
    flex-direction: column;
}

.grid-string-row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 4px;
    align-items: center;
}

.grid-string-label {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
    text-align: center;
}

.grid-fret-input {
    height: 22px;
    font-size: 12px;
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.grid-tab-lines .grid-string-row:first-child .grid-fret-input {
    border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.grid-jianpu-layers {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.grid-layer-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 4px;
    align-items: center;
}

.grid-layer-label {
    color: var(--muted-2);
    font-size: 7.5px;
    text-align: right;
}

.grid-layer-cell {
    min-width: 0;
    padding: 0 1px;
}

.grid-layer-cell .grid-check {
    display: block;
    width: 100%;
    height: 19px;
    margin: 0;
    accent-color: var(--gold);
}

.grid-mini-select {
    height: 21px;
    padding: 0;
    font-size: 7.5px;
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.grid-lyric-input {
    height: 27px;
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: inherit;
    font-size: 12px;
}

.grid-beat-start {
    border-left: 2px solid rgba(7, 193, 96, 0.34) !important;
}

.grid-editor-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

/* 小节编辑器 */

.measure-editor {
    margin-top: 0;
}

.measure-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.measure-editor-note {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted-2);
    font-size: 12px;
}

.measure-editor-note .icon {
    width: 13px;
    height: 13px;
    color: var(--gold);
}

.measure-editor-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.bulk-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted-2);
    font-size: 12px;
}

.bulk-count input {
    width: 44px;
    min-height: 28px;
    padding: 3px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(8, 13, 25, 0.6);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
}

.measure-editor-empty[hidden] {
    display: none;
}

.measure-editor-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    color: var(--muted-2);
    text-align: center;
}

.measure-editor-empty .icon {
    width: 24px;
    height: 24px;
    margin-bottom: 7px;
    color: var(--gold);
}

.measure-editor-empty p {
    font-size: 12px;
}

.measure-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.measure-row {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
}

.measure-row-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.measure-row-head strong {
    color: var(--gold);
    font-size: 12px;
}

.measure-row-tip {
    color: var(--muted-2);
    font-size: 12px;
}

.measure-row-actions {
    display: flex;
    gap: 3px;
    margin-left: auto;
}

.measure-row-actions .icon-button {
    width: 27px;
    height: 27px;
    font-size: 12px;
}

.measure-row-actions .icon {
    width: 13px;
    height: 13px;
}

.measure-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.7fr 1fr;
    gap: 8px;
}

.measure-grid .field {
    gap: 4px;
}

.measure-grid .field > span {
    color: var(--muted-2);
    font-size: 12px;
}

.measure-grid .field input,
.measure-grid .field select,
.measure-grid .field textarea {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 12px;
}

.measure-grid .field textarea {
    min-height: 54px;
    font-family: var(--mono);
    font-size: 12px;
}

.measure-grid .field-full {
    grid-column: 1 / -1;
}

.measure-editor-hint {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.tab-tip {
    display: flex;
    gap: 9px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.015);
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.65;
}

.tab-tip .icon {
    width: 15px;
    height: 15px;
    color: var(--blue);
    flex: 0 0 auto;
}

.tab-detail-side {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-tabs .card-head {
    margin-bottom: 8px;
}

.related-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.related-tab div {
    min-width: 0;
    flex: 1;
}

.related-tab strong {
    display: block;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-tab small {
    display: block;
    color: var(--muted-2);
    font-size: 12px;
}

.related-tab > .icon {
    width: 13px;
    height: 13px;
    color: var(--muted-2);
}

/* ==========================================================================
   曲谱表单
   ========================================================================== */

.tab-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.tab-form-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.tab-form-side {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tab-editor {
    min-height: 420px !important;
    padding: 16px !important;
    font-family: var(--mono) !important;
    font-size: 12.5px !important;
    line-height: 1.75 !important;
    tab-size: 4;
    white-space: pre;
}

.mono-hint {
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
}

.tag-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-checkbox {
    display: inline-flex;
    cursor: pointer;
}

.tag-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tag-checkbox span {
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    font-size: 12px;
    transition: 0.2s;
}

.tag-checkbox input:checked + span {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold);
}

.tag-checkbox:focus-within span {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.form-actions-stack {
    flex-direction: column;
    gap: 7px;
    margin-top: 16px;
}

.ai-source-note {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 10px;
    color: var(--blue);
    font-size: 12px;
    line-height: 1.6;
}

.ai-source-note .icon {
    width: 12px;
    height: 12px;
}

.tab-form-danger {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.inline-form {
    display: inline-flex;
}

/* ==========================================================================
   工具首页 / 节拍器 / 调音器
   ========================================================================== */

.tool-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 46px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    background:
        radial-gradient(800px 460px at 88% -10%, rgba(7, 193, 96, 0.1), transparent 62%),
        rgba(255, 255, 255, 0.006);
}

.tool-hero-small {
    padding: 38px 0 32px;
}

.tool-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 740;
    line-height: 1.12;
    letter-spacing: 0.01em;
}

.tool-hero p {
    max-width: 640px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.8;
}

.tool-hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.tool-hero-grid > div:first-child {
    max-width: 720px;
}

.tool-hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 0 0 200px;
}

.tool-hero-visual p {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.2em;
}

.ai-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: 156px;
    height: 156px;
    border: 1px solid rgba(7, 193, 96, 0.22);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(7, 193, 96, 0.025), 0 0 0 52px rgba(7, 193, 96, 0.012);
}

.ai-orbit-core {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border: 1px solid rgba(255, 238, 196, 0.45);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #ffe8ad, #d7a440);
    color: #211806;
    box-shadow: 0 0 40px rgba(7, 193, 96, 0.3);
}

.ai-orbit-core .icon {
    width: 30px;
    height: 30px;
}

.ai-orbit-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
}

.dot-a {
    top: 8px;
    right: 34px;
}

.dot-b {
    bottom: 20px;
    left: 15px;
    background: var(--blue);
    box-shadow: 0 0 12px var(--blue);
}

.dot-c {
    top: 58px;
    right: -2px;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

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

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 26px 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(100% 100% at 100% 0%, rgba(7, 193, 96, 0.07), transparent 60%),
        rgba(255, 255, 255, 0.018);
    transition: 0.25s var(--ease);
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-line);
    box-shadow: var(--shadow);
}

.tool-card.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.tool-card-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border: 1px solid var(--gold-line);
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold);
}

.tool-card-icon .icon {
    width: 21px;
    height: 21px;
}

.tool-card-label {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.18em;
}

.tool-card h2 {
    margin: 4px 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.tool-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.tool-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 650;
}

.tool-card-link .icon {
    width: 13px;
    height: 13px;
}

.tool-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 22px;
    padding: 32px 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 240px at 100% 0%, rgba(7, 193, 96, 0.08), transparent 60%),
        rgba(255, 255, 255, 0.015);
}

.tool-banner h2 {
    margin: 4px 0;
    font-size: 23px;
}

.tool-banner p {
    color: var(--muted);
    font-size: 12px;
}

.tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.tool-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tool-side h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
}

.tool-side h3 .icon {
    width: 16px;
    height: 16px;
    color: var(--gold);
}

.tool-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tool-steps li {
    display: flex;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.tool-steps li span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 1px solid var(--gold-line);
    border-radius: 50%;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
}

.tool-keyboard-hint {
    margin-top: 16px;
    color: var(--muted-2);
    font-size: 12px;
    text-align: center;
}

.tool-keyboard-hint .icon {
    width: 12px;
    height: 12px;
}

/* 节拍器 */

.metronome-card {
    padding: 34px;
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 120% at 50% -20%, rgba(7, 193, 96, 0.14), transparent 55%),
        #0e1627;
    box-shadow: var(--shadow);
}

.metronome-top {
    text-align: center;
}

.metronome-label {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.22em;
}

.metronome-bpm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 4px 0 14px;
}

.metronome-bpm > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metronome-bpm strong {
    font-size: clamp(58px, 8vw, 92px);
    font-weight: 760;
    line-height: 1;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.metronome-bpm small {
    margin-top: 4px;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.18em;
}

.tempo-btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-size: 22px;
    line-height: 1;
    transition: 0.2s;
}

.tempo-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.metronome-top input[type="range"] {
    width: min(560px, 100%);
    accent-color: var(--gold);
}

.tempo-quick {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.tempo-quick button {
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: transparent;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
}

.tempo-quick button:hover,
.tempo-quick button.is-active {
    border-color: var(--gold-line);
    color: var(--gold);
}

.beat-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 98px;
    margin: 22px 0;
}

.beat-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.beat-dot i {
    display: block;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    transition: 0.12s;
}

.beat-dot small {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
}

.beat-dot.is-accent i {
    border-color: var(--gold-line);
}

.beat-dot.is-active i {
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: 0 0 26px rgba(7, 193, 96, 0.45);
    transform: scale(1.12);
}

.beat-dot.is-active small {
    color: var(--gold);
}

.metronome-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.metronome-start {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 150px;
    min-height: 52px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 238, 196, 0.5);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe3a0, var(--gold) 55%, #d9a642);
    color: #17130a;
    font-size: 14px;
    font-weight: 750;
    transition: 0.2s;
}

.metronome-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(232, 179, 75, 0.25);
}

.metronome-start.is-running {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--line-strong);
    color: var(--text);
}

.metronome-start-icon .icon {
    width: 18px;
    height: 18px;
}

.metronome-settings {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 14px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.metronome-settings .compact-switch {
    grid-column: 1 / -1;
    padding: 10px 12px;
}

#volume-value {
    color: var(--gold);
    font-size: 12px;
}

/* 调音器 */

.tuner-card {
    padding: 26px 30px 24px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 120% at 50% -20%, rgba(7, 193, 96, 0.08), transparent 55%),
        #0e1627;
    box-shadow: var(--shadow);
}

.tuner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tuner-mode {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.tuner-mode .icon {
    width: 13px;
    height: 13px;
    color: var(--gold);
}

.tuner-display {
    padding: 30px 0 18px;
    text-align: center;
}

.tuner-note-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-height: 100px;
}

.tuner-note-wrap strong {
    font-size: clamp(74px, 11vw, 110px);
    font-weight: 760;
    line-height: 0.95;
    letter-spacing: 0.01em;
}

.tuner-note-wrap span {
    margin-top: 10px;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 18px;
}

.tuner-frequency {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
}

.tuner-frequency strong {
    color: var(--text-soft);
    font-size: 15px;
}

.tuner-frequency span {
    margin-left: 3px;
}

.tuner-cents {
    min-height: 22px;
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 12px;
}

.tuner-cents.is-good {
    color: var(--green);
}

.tuner-cents.is-close {
    color: var(--gold);
}

.tuner-cents.is-off {
    color: var(--red);
}

.tuner-meter {
    position: relative;
    height: 10px;
    max-width: 480px;
    margin: 22px auto 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 114, 133, 0.35), rgba(7, 193, 96, 0.25) 35%, rgba(62, 224, 160, 0.4) 50%, rgba(7, 193, 96, 0.25) 65%, rgba(255, 114, 133, 0.35));
}

.tuner-meter-center {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 2px;
    height: 20px;
    background: rgba(255, 255, 255, 0.65);
    transform: translateX(-50%);
}

.tuner-needle {
    position: absolute;
    top: -9px;
    left: 50%;
    width: 4px;
    height: 28px;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.8);
    transform: translateX(-50%);
    transition: left 0.12s ease-out;
}

.tuner-scale {
    display: flex;
    justify-content: space-between;
    max-width: 480px;
    margin: 0 auto;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
}

.tuner-strings {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-top: 20px;
}

.tuner-string {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 4px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    transition: 0.2s;
}

.tuner-string span {
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 700;
}

.tuner-string small {
    color: var(--muted-2);
    font-size: 7.5px;
}

.tuner-string:hover,
.tuner-string.is-active {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold);
}

.tuner-reference {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.tuner-reference > span {
    margin-right: 3px;
    color: var(--muted-2);
    font-size: 12px;
}

.tuner-reference button {
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
}

.tuner-reference button:hover {
    border-color: var(--gold-line);
    color: var(--gold);
}

.tuner-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
}

.tuner-tips span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dot-green,
.dot-gold,
.dot-red {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

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

.dot-gold {
    background: var(--gold);
}

.dot-red {
    background: var(--red);
}

.btn-danger {
    border-color: rgba(255, 114, 133, 0.35) !important;
    background: var(--red-soft) !important;
    color: var(--red) !important;
}

/* ==========================================================================
   AI 识歌工作台
   ========================================================================== */

.ai-workspace {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 20px;
    align-items: start;
}

.ai-record-card,
.ai-result-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(100% 100% at 100% 0%, rgba(7, 193, 96, 0.06), transparent 55%),
        rgba(255, 255, 255, 0.018);
}

.ai-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 7.5px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.ai-live-badge > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(62, 224, 160, 0.1);
}

.ai-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 86px;
    gap: 10px;
}

.field-bpm input {
    text-align: center;
}

.ai-recorder-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 18px;
    padding: 30px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 10%, rgba(7, 193, 96, 0.09), transparent 55%),
        rgba(8, 13, 25, 0.5);
    text-align: center;
}

.ai-mic-orb {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border: 1px solid var(--gold-line);
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold);
    box-shadow: 0 0 0 12px rgba(7, 193, 96, 0.035);
    transition: 0.3s;
}

.ai-mic-orb .icon {
    width: 30px;
    height: 30px;
}

.ai-mic-orb.is-recording {
    border-color: rgba(255, 114, 133, 0.5);
    background: var(--red-soft);
    color: var(--red);
    animation: mic-pulse 1.6s ease-in-out infinite;
}

.ai-recorder-status {
    margin-top: 16px;
}

.ai-recorder-status strong {
    display: block;
    font-size: 16px;
}

.ai-recorder-status p {
    max-width: 300px;
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.6;
}

.ai-live-readout {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 14px;
}

.ai-live-readout strong {
    color: var(--gold);
    font-family: var(--mono);
    font-size: 26px;
    line-height: 1;
}

.ai-live-readout small {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
}

.ai-level {
    width: min(320px, 100%);
    height: 4px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.ai-level span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--gold));
    transition: width 0.08s;
}

.ai-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
}

.ai-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 18px;
    padding: 12px 8px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.ai-stats > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ai-stats small {
    color: var(--muted-2);
    font-size: 12px;
}

.ai-stats strong {
    font-family: var(--mono);
    font-size: 13px;
}

.ai-generate-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 18px;
}

.ai-generate-row > span {
    color: var(--muted-2);
    font-size: 12px;
    text-align: center;
}

.ai-error {
    display: none;
    margin-top: 12px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 114, 133, 0.25);
    border-radius: 8px;
    background: var(--red-soft);
    color: #ffd7dd;
    font-size: 12px;
    line-height: 1.6;
}

.ai-error.is-visible {
    display: block;
}

.ai-result-card {
    min-height: 520px;
}

.ai-result-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 460px;
    text-align: center;
}

.ai-result-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    border: 1px solid var(--gold-line);
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold);
}

.ai-result-icon .icon {
    width: 26px;
    height: 26px;
}

.ai-result-empty h2 {
    font-size: 18px;
}

.ai-result-empty > p {
    max-width: 360px;
    margin: 6px 0 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.ai-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ai-steps li {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted-2);
    font-size: 12px;
}

.ai-steps li span {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-family: var(--mono);
    font-size: 7px;
}

.ai-result-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ai-result-head h2 {
    margin-top: 2px;
    font-size: 22px;
}

.ai-provider-badge {
    padding: 3px 8px;
    border: 1px solid var(--blue);
    border-radius: 4px;
    color: var(--blue);
    font-family: var(--mono);
    font-size: 12px;
}

.ai-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 12px;
}

.ai-result-meta strong {
    color: var(--text-soft);
}

.ai-result-form .tab-editor {
    min-height: 300px !important;
    font-size: 12px !important;
}

.ai-save-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.015);
}

.ai-disclaimer {
    display: flex;
    gap: 9px;
    margin-top: 18px;
    padding: 13px 16px;
    border: 1px solid rgba(7, 193, 96, 0.17);
    border-radius: 10px;
    background: rgba(7, 193, 96, 0.035);
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.7;
}

.ai-disclaimer .icon {
    width: 15px;
    height: 15px;
    color: var(--gold);
    flex: 0 0 auto;
}

@keyframes mic-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 12px rgba(255, 114, 133, 0.035);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 114, 133, 0.08);
    }
}

/* ==========================================================================
   后台：曲谱 / 分类标签 / AI 记录
   ========================================================================== */

.taxonomy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 18px;
    align-items: start;
}

.taxonomy-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.015);
}

.taxonomy-form .form-grid {
    gap: 10px;
}

.taxonomy-form .field label {
    font-size: 12px;
}

.taxonomy-form .field input,
.taxonomy-form .field select {
    min-height: 36px;
    font-size: 12px;
}

.taxonomy-table {
    border-top: 1px solid var(--line);
}

.admin-form-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-form-actions-row form {
    display: inline-flex;
}

.ai-job-detail {
    display: inline-block;
    position: relative;
    text-align: left;
}

.ai-job-detail summary {
    list-style: none;
    cursor: pointer;
}

.ai-job-detail summary::-webkit-details-marker {
    display: none;
}

.ai-job-popover {
    position: absolute;
    right: 0;
    z-index: 20;
    width: min(520px, 80vw);
    margin-top: 6px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #0d1525;
    box-shadow: var(--shadow);
}

.ai-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

.ai-job-content {
    max-height: 220px;
    overflow: auto;
    margin: 0;
    color: var(--text-soft);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.6;
    white-space: pre;
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1100px) {
    .tab-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
    }

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

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

    .tab-detail-layout {
        grid-template-columns: minmax(0, 1.5fr) 270px;
    }

    .ai-workspace {
        grid-template-columns: 1fr;
    }

    .ai-result-card {
        min-height: 0;
    }

    .ai-result-empty {
        min-height: 300px;
    }

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

@media (max-width: 960px) {
    .tab-hero-top {
        display: block;
    }

    .tab-hero-stats {
        margin-top: 18px;
    }

    .tab-layout {
        grid-template-columns: 1fr;
    }

    .tab-filters {
        position: static;
    }

    .filter-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 22px;
    }

    .filter-card-head {
        grid-column: 1 / -1;
    }

    .filter-group {
        padding: 13px 0;
    }

    .filter-promo {
        grid-column: 1 / -1;
    }

    .tab-detail-layout {
        grid-template-columns: 1fr;
    }

    .tab-detail-side {
        position: static;
    }

    .tab-detail-head {
        display: block;
    }

    .tab-detail-actions {
        margin-top: 18px;
    }

    .tab-form-layout {
        grid-template-columns: 1fr;
    }

    .tab-form-side {
        position: static;
    }

    .tool-layout {
        grid-template-columns: 1fr;
    }

    .tool-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

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

    .tool-card {
        min-height: 220px;
    }

    .tool-hero-visual {
        display: none;
    }

    .metronome-settings {
        grid-template-columns: 1fr 1fr;
    }

    .metronome-settings .compact-switch {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .tab-hero {
        padding: 38px 0 28px;
    }

    .tab-hero-stats {
        gap: 22px;
    }

    .tab-search {
        flex-wrap: wrap;
        padding: 6px;
        padding-left: 40px;
    }

    .tab-search-icon {
        left: 13px;
    }

    .tab-search input {
        width: 100%;
        flex-basis: calc(100% - 4px);
    }

    .tab-search .btn {
        width: 100%;
    }

    .filter-card {
        display: block;
    }

    .tab-results-head {
        display: block;
    }

    .sort-form {
        margin-top: 12px;
    }

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

    .tab-detail-meta > span {
        min-width: 50%;
        padding: 10px 10px 10px 0;
    }

    .tab-detail-meta > span + span {
        padding-left: 0;
        border-left: 0;
    }

    .tab-content {
        padding: 18px 14px;
        font-size: 12px;
    }

    .score-practice {
        padding: 12px;
    }

    .score-practice-main {
        gap: 8px;
    }

    .practice-control {
        flex: 1 1 110px;
    }

    .practice-status {
        width: 100%;
        margin-left: 0;
    }

    .practice-live {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .practice-live-chord {
        font-size: 21px;
    }

    .practice-live-meta {
        grid-column: 1 / -1;
        text-align: left;
    }

    .practice-range-hint {
        width: 100%;
        margin-left: 0;
    }

    .sheet-roll {
        margin: 10px;
    }

    .sheet-locked-card {
        display: block;
        margin: 0 10px 10px;
        padding: 16px;
        text-align: center;
    }

    .sheet-locked-card .tab-locked-icon {
        margin: 0 auto 10px;
    }

    .sheet-locked-card > .btn {
        margin: 14px auto 0;
    }

    .ai-import-grid {
        grid-template-columns: 1fr;
    }

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

    .measure-grid .field-full {
        grid-column: 1 / -1;
    }

    .measure-editor-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .tab-paper-toolbar {
        display: block;
    }

    .tab-toolbar-controls {
        justify-content: space-between;
        margin-top: 10px;
    }

    .tab-locked-overlay {
        margin: 0 10px 10px;
        padding: 18px 14px;
    }

    .tab-detail-foot {
        display: block;
    }

    .tab-detail-links {
        margin-top: 12px;
    }

    .tool-hero {
        padding: 38px 0 30px;
    }

    .tool-banner {
        display: block;
        padding: 24px;
    }

    .tool-banner .btn {
        margin-top: 16px;
    }

    .metronome-card {
        padding: 24px 16px;
    }

    .beat-visual {
        gap: 8px;
    }

    .beat-dot i {
        width: 30px;
        height: 30px;
    }

    .metronome-actions {
        flex-direction: column;
    }

    .metronome-start,
    .metronome-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .metronome-settings {
        grid-template-columns: 1fr;
    }

    .metronome-settings .compact-switch {
        grid-column: auto;
    }

    .tuner-card {
        padding: 20px 15px;
    }

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

    .tuner-head {
        align-items: flex-start;
    }

    .tuner-mode {
        display: none;
    }

    .tuner-head .btn {
        margin-left: auto;
    }

    .ai-record-card,
    .ai-result-card {
        padding: 20px 16px;
    }

    .ai-form-row {
        grid-template-columns: 1fr;
    }

    .ai-record-card .card-head {
        display: block;
    }

    .ai-live-badge {
        display: none;
    }

    .ai-controls .btn,
    .ai-controls label.btn {
        flex: 1;
    }

    .tool-side {
        display: flex;
    }

    .tool-banner h2 {
        font-size: 20px;
    }
}

@media print {
    .site-header,
    .site-footer,
    .tab-detail-hero .tab-detail-actions,
    .tab-detail-side,
    .tab-paper-toolbar,
    .tab-detail-foot,
    .tab-tip,
    .flash-stack,
    .tab-locked-overlay,
    .score-practice,
    .sheet-locked-card,
    .sheet-complete-note,
    .notice-bar {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #111 !important;
    }

    .tab-detail-hero,
    .tab-detail-layout,
    .tab-paper {
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .sheet-roll {
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .tab-detail-hero h1,
    .tab-artist,
    .tab-detail-title h1 {
        color: #111 !important;
    }

    .tab-content {
        max-height: none !important;
        overflow: visible !important;
        color: #111 !important;
        font-size: 12px !important;
    }
}


/* --- community.css --- */
/* 灏婁韩 VIP 路 缁冪惔瀹?/ 娲诲姩瑙?/ 浼氬憳绛夌骇 */

.page-hero-compact {
    padding: 74px 0 38px;
}

.practice-hero,
.activity-hero {
    padding: 82px 0 42px;
}

.practice-steps {
    display: grid;
    grid-template-columns: 1fr 30px 1fr 30px 1fr;
    gap: 10px;
    align-items: stretch;
    margin-top: 30px;
}

.practice-step {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        radial-gradient(100% 100% at 100% 0%, rgba(7, 193, 96, 0.08), transparent 55%),
        rgba(255, 255, 255, 0.02);
    transition: 0.2s var(--ease);
}

.practice-step:hover {
    border-color: var(--gold-line);
    transform: translateY(-3px);
}

.practice-step-num {
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.practice-step-icon {
    position: absolute;
    top: 16px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--gold);
}

.practice-step-icon .icon {
    width: 18px;
    height: 18px;
}

.practice-step strong {
    margin-top: 36px;
    font-size: 16px;
}

.practice-step small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.practice-step .text-link {
    margin-top: auto;
    padding-top: 16px;
}

.practice-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    opacity: 0.5;
}

.practice-step-arrow .icon {
    width: 16px;
    height: 16px;
}

.practice-mini-steps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.practice-mini-steps a,
.practice-mini-steps span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    font-size: 12px;
}

.practice-mini-steps .icon {
    width: 12px;
    height: 12px;
    color: var(--gold);
}

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

.practice-note-grid .content-card h3 {
    margin: 7px 0 5px;
    font-size: 14px;
}

.practice-note-grid .content-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

/* 娲诲姩瑙?*/

.activity-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--line);
}

.activity-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 11px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 12px;
    transition: 0.18s;
}

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

.activity-tab.is-active {
    border-bottom-color: var(--gold);
    color: var(--gold);
}

.activity-tab .icon {
    width: 13px;
    height: 13px;
}

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

.activity-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 205px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        radial-gradient(100% 120% at 100% 0%, rgba(7, 193, 96, 0.1), transparent 55%),
        rgba(255, 255, 255, 0.02);
    transition: 0.2s var(--ease);
}

.activity-feature:hover {
    border-color: var(--gold-line);
    transform: translateY(-3px);
}

.activity-feature-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--gold-soft);
    color: var(--gold);
}

.activity-feature-icon .icon {
    width: 20px;
    height: 20px;
}

.activity-feature-kicker {
    margin-top: 18px;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.activity-feature h2 {
    margin-top: 3px;
    font-size: 17px;
}

.activity-feature p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.activity-feature .text-link {
    margin-top: auto;
    padding-top: 14px;
}

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

.activity-list-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
    transition: 0.18s;
}

.activity-list-card:hover {
    border-color: var(--gold-line);
}

.activity-list-card h3 {
    margin: 7px 0 4px;
    font-size: 13px;
}

.activity-list-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.activity-list-card small {
    margin-top: 10px;
    color: var(--muted-2);
    font-size: 12px;
}

.activity-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mini-lesson-list,
.mini-teacher-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mini-lesson,
.mini-teacher {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.015);
    transition: 0.18s;
}

.mini-lesson:hover,
.mini-teacher:hover {
    border-color: var(--gold-line);
}

.mini-lesson-icon,
.mini-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 14px;
}

.mini-lesson-icon .icon {
    width: 15px;
    height: 15px;
}

.mini-lesson > span:nth-child(2),
.mini-teacher > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.mini-lesson strong,
.mini-teacher strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-lesson small,
.mini-teacher small {
    color: var(--muted-2);
    font-size: 12px;
}

.mini-lesson > .icon,
.mini-teacher > .icon {
    width: 13px;
    height: 13px;
    color: var(--muted-2);
}

.content-type-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 2px 6px;
    border: 1px solid var(--gold-line);
    border-radius: 4px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 7.5px;
}

.community-publish-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid var(--gold-line);
    border-radius: 9px;
    background: var(--gold-soft);
    color: var(--muted);
    font-size: 12px;
}

.community-publish-bar .icon {
    width: 14px;
    height: 14px;
    color: var(--gold);
}

.community-publish-bar .btn {
    margin-left: auto;
}

.community-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-tabs {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    font-size: 12px;
}

.filter-tab.is-active,
.filter-tab:hover {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold);
}

.community-search {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.community-search input {
    width: 150px;
    min-height: 30px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(8, 13, 25, 0.55);
    color: var(--text);
    font-size: 12px;
}

.broadcast-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.broadcast-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
    transition: 0.18s;
}

.broadcast-card:hover {
    border-color: var(--gold-line);
}

.broadcast-type {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.broadcast-type.is-request {
    background: rgba(95, 168, 255, 0.12);
    color: #8fc3ff;
}

.broadcast-type.is-event {
    background: var(--gold-soft);
    color: var(--gold);
}

.broadcast-main {
    min-width: 0;
    flex: 1;
}

.broadcast-main h2 {
    font-size: 13px;
}

.broadcast-main p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.broadcast-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 9px;
    color: var(--muted-2);
    font-size: 12px;
}

.broadcast-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.broadcast-meta .icon {
    width: 11px;
    height: 11px;
}

.broadcast-card > .icon {
    width: 14px;
    height: 14px;
    color: var(--muted-2);
    margin-top: 12px;
}

/* 閫氱敤鍐呭 */

.community-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
    align-items: start;
}

.community-detail {
    padding: 22px;
}

.community-detail h2,
.community-detail h3 {
    font-size: 14px;
    margin: 12px 0 6px;
}

.community-body {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

.community-body p + p {
    margin-top: 8px;
}

.community-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.community-side-text {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.community-status-note {
    margin-bottom: 14px;
    padding: 8px 10px;
    border: 1px solid rgba(7, 193, 96, 0.25);
    border-radius: 6px;
    background: var(--gold-soft);
    color: #d8bd82;
    font-size: 12px;
}

.broadcast-detail-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.broadcast-detail-meta > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.broadcast-detail-meta small {
    color: var(--muted-2);
    font-size: 12px;
}

.broadcast-detail-meta strong {
    font-size: 12px;
}

.community-form-wrap {
    max-width: 820px;
}

.community-form {
    padding: 22px;
}

.community-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

/* 璇剧▼ */

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

.lesson-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.018);
    transition: 0.18s;
}

.lesson-card:hover {
    border-color: var(--gold-line);
    transform: translateY(-2px);
}

.lesson-cover {
    position: relative;
    display: grid;
    place-items: center;
    height: 125px;
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.13), rgba(7, 193, 96, 0.12));
    color: var(--gold);
}

.lesson-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lesson-cover > span:not(.lesson-vip) .icon,
.lesson-cover > .icon {
    width: 24px;
    height: 24px;
}

.lesson-cover .icon {
    width: 25px;
    height: 25px;
}

.lesson-vip {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(13, 20, 36, 0.75);
    color: var(--gold);
    font-size: 7.5px;
}

.lesson-vip .icon {
    width: 10px;
    height: 10px;
}

.lesson-body {
    padding: 12px;
}

.lesson-body h2 {
    margin: 6px 0 3px;
    font-size: 12px;
}

.lesson-body p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.lesson-body small {
    display: block;
    margin-top: 8px;
    color: var(--muted-2);
    font-size: 12px;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 9px;
    background: #05080f;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder,
.vip-lock-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px 20px;
    border: 1px dashed var(--line-strong);
    border-radius: 9px;
    color: var(--muted);
    text-align: center;
}

.video-placeholder .icon,
.vip-lock-panel > span .icon {
    width: 28px;
    height: 28px;
    color: var(--gold);
}

.vip-lock-panel h2 {
    margin-top: 8px;
}

.vip-lock-panel p {
    margin: 4px 0 14px;
    font-size: 12px;
}

/* 鏁欏笀 */

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

.teacher-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.018);
    transition: 0.18s;
}

.teacher-card:hover {
    border-color: var(--gold-line);
}

.teacher-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 19px;
    font-weight: 700;
}

.teacher-body {
    min-width: 0;
}

.teacher-body h2 {
    font-size: 13px;
}

.teacher-city {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--gold);
    font-size: 12px !important;
}

.teacher-body p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.teacher-body small {
    display: block;
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 12px;
}

.teacher-rate {
    display: block;
    margin-top: 7px;
    color: var(--text);
    font-size: 12px;
}

.teacher-contact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(8, 13, 25, 0.4);
}

.teacher-contact small {
    color: var(--muted-2);
    font-size: 12px;
}

/* 鍟嗗煄 */

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

.product-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.018);
    transition: 0.18s;
}

.product-card:hover {
    border-color: var(--gold-line);
    transform: translateY(-2px);
}

.product-cover {
    display: grid;
    place-items: center;
    height: 130px;
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.1), rgba(7, 193, 96, 0.1));
    color: var(--gold);
}

.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-cover .icon {
    width: 28px;
    height: 28px;
}

.product-body {
    padding: 12px;
}

.product-body h3 {
    margin: 6px 0 2px;
    font-size: 12px;
}

.product-body p {
    color: var(--muted-2);
    font-size: 12px;
}

.product-price {
    margin-top: 8px;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 700;
}

.product-price small {
    color: var(--muted-2);
    font-family: var(--font);
    font-size: 7.5px;
    font-weight: 400;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.product-detail-cover {
    display: grid;
    place-items: center;
    min-height: 320px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.1), rgba(7, 193, 96, 0.1));
    color: var(--gold);
}

.product-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-cover > span .icon,
.product-detail-cover > .icon {
    width: 44px;
    height: 44px;
}

.product-detail-cover .icon {
    width: 44px;
    height: 44px;
}

.product-detail-price {
    margin-bottom: 12px;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 700;
}

.product-order-form {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.product-order-form .btn {
    margin-top: 12px;
}

/* 浼氬憳绛夌骇 */

.level-current-banner {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding: 13px 16px;
    border: 1px solid var(--gold-line);
    border-radius: 9px;
    background: rgba(7, 193, 96, 0.06);
}

.level-current-banner > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--gold-soft);
    color: var(--gold);
}

.level-current-banner > span .icon {
    width: 17px;
    height: 17px;
}

.level-current-banner > div {
    display: flex;
    flex-direction: column;
}

.level-current-banner small {
    color: var(--muted-2);
    font-size: 12px;
}

.level-current-banner strong {
    font-size: 13px;
}

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

.level-card {
    position: relative;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.018);
}

.level-card.is-current {
    border-color: var(--gold);
    background: radial-gradient(100% 100% at 100% 0%, rgba(7, 193, 96, 0.15), transparent 60%), rgba(255, 255, 255, 0.025);
}

.level-card-index {
    position: absolute;
    top: 10px;
    right: 12px;
    color: rgba(7, 193, 96, 0.22);
    font-family: var(--mono);
    font-size: 30px;
}

.level-badge {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 12px;
}

.level-card h2 {
    margin-top: 9px;
    font-size: 17px;
}

.level-threshold {
    margin-top: 2px;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
}

.level-discount {
    margin-top: 16px;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 700;
}

.level-discount small {
    color: var(--muted-2);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 400;
}

.level-benefits {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

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

.member-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
}

.member-stat small {
    color: var(--muted-2);
    font-size: 12px;
}

.member-stat strong {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 23px;
}

.member-stat span {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--muted-2);
    font-size: 12px;
}

.member-stat .icon {
    width: 11px;
    height: 11px;
}

.level-progress-card {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.018);
}

.level-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.level-progress {
    height: 6px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.level-progress i {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #b88932, #07c160);
}

.rule-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rule-list > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.rule-list > div:last-child {
    border-bottom: 0;
}

.rule-list strong {
    flex: 0 0 110px;
}

.rule-list span {
    color: var(--muted);
}

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

.coupon-card {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--gold-line);
    border-radius: 10px;
    background: rgba(7, 193, 96, 0.045);
}

.coupon-value {
    display: flex;
    flex: 0 0 100px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px dashed var(--gold-line);
    background: rgba(7, 193, 96, 0.08);
    color: var(--gold);
}

.coupon-value strong {
    font-family: Georgia, serif;
    font-size: 25px;
}

.coupon-value small {
    font-size: 12px;
}

.coupon-body {
    padding: 13px;
}

.coupon-type {
    color: var(--muted-2);
    font-size: 7.5px;
}

.coupon-body h3 {
    margin: 3px 0;
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: 0.05em;
}

.coupon-body p {
    margin-bottom: 8px;
    color: var(--muted-2);
    font-size: 12px;
}

.coupon-help {
    margin-top: 16px;
}

.coupon-help p {
    display: flex;
    gap: 5px;
    color: var(--muted-2);
    font-size: 12px;
}

.community-status {
    display: inline-flex;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.community-status.is-success {
    background: rgba(62, 207, 142, 0.1);
    color: #65d9a3;
}

.community-status.is-warning {
    background: rgba(7, 193, 96, 0.1);
    color: var(--gold);
}

.community-status.is-danger {
    background: rgba(255, 107, 107, 0.1);
    color: #ff8f8f;
}

.community-status.is-muted {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.section-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-detail-body {
    padding: 22px;
}

.admin-form-submit {
    display: flex;
    align-items: flex-end;
}

.stat-sub {
    display: block;
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 12px;
}

.text-success {
    color: var(--green) !important;
}

.text-danger {
    color: #ff8f8f !important;
}

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

.admin-form-grid .field {
    gap: 4px;
}

.admin-form-grid .field-full {
    grid-column: 1 / -1;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
}

.inline-status-form {
    display: flex;
    gap: 4px;
    align-items: center;
}

.inline-status-form select {
    min-height: 26px;
    padding: 2px 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(8, 13, 25, 0.6);
    color: var(--text);
    font-size: 12px;
}

@media (max-width: 1100px) {
    .activity-feature-grid,
    .product-grid,
    .level-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .practice-steps {
        grid-template-columns: 1fr;
    }

    .practice-step-arrow {
        display: none;
    }

    .community-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-hero-compact,
    .practice-hero,
    .activity-hero {
        padding: 58px 0 28px;
    }

    .practice-steps,
    .activity-feature-grid,
    .lesson-grid,
    .teacher-grid,
    .product-grid,
    .level-grid,
    .member-stat-grid,
    .coupon-grid,
    .activity-list-grid,
    .activity-split-grid,
    .practice-note-grid {
        grid-template-columns: 1fr;
    }

    .broadcast-card {
        flex-wrap: wrap;
    }

    .broadcast-type {
        order: -1;
    }

    .community-search {
        width: 100%;
        margin-left: 0;
    }

    .community-search input {
        flex: 1;
    }

    .community-toolbar > .btn {
        width: 100%;
    }

    .broadcast-detail-meta {
        grid-template-columns: 1fr;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .rule-list > div {
        display: block;
    }

    .rule-list strong {
        display: block;
        margin-bottom: 2px;
    }

    .level-current-banner {
        gap: 12px;
    }
}



/* --- theme.css --- */
/* 尊享 VIP · 白天 / 夜间主题 */

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f7fb;
    --bg-soft: #edf1f7;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-solid: #ffffff;
    --surface-2: #f7f9fc;
    --surface-3: #edf1f7;
    --line: rgba(20, 32, 55, 0.11);
    --line-strong: rgba(20, 32, 55, 0.2);
    --text: #111a2e;
    --text-soft: #2c3a55;
    --muted: #5e6b83;
    --muted-2: #8b96a9;
    --gold: #b88932;
    --gold-strong: #97691f;
    --gold-soft: rgba(184, 137, 50, 0.12);
    --gold-line: rgba(184, 137, 50, 0.34);
    --green: #158c63;
    --green-soft: rgba(21, 140, 99, 0.1);
    --red: #c74355;
    --red-soft: rgba(199, 67, 85, 0.1);
    --blue: #426fce;
    --blue-soft: rgba(66, 111, 206, 0.1);
    --shadow-sm: 0 8px 24px rgba(24, 38, 64, 0.08);
    --shadow: 0 24px 70px rgba(24, 38, 64, 0.12);
    --shadow-gold: 0 18px 50px rgba(184, 137, 50, 0.16);
}

html[data-theme="light"] body {
    background:
        radial-gradient(1100px 700px at 85% -10%, rgba(184, 137, 50, 0.08), transparent 60%),
        radial-gradient(900px 700px at 0% 10%, rgba(83, 112, 255, 0.07), transparent 60%),
        var(--bg);
}

html[data-theme="light"] body::before {
    background-image:
        linear-gradient(rgba(20, 32, 55, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 32, 55, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
}

html[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.78);
    border-bottom-color: rgba(20, 32, 55, 0.06);
}

html[data-theme="light"] .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: var(--line);
}

html[data-theme="light"] .main-nav {
    background: transparent;
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .btn-ghost:hover,
html[data-theme="light"] .icon-button:hover {
    background: rgba(20, 32, 55, 0.05);
}

html[data-theme="light"] .notice-bar {
    background: linear-gradient(90deg, rgba(184, 137, 50, 0.1), rgba(184, 137, 50, 0.03));
}

html[data-theme="light"] .section-tinted {
    background:
        radial-gradient(800px 380px at 50% 0%, rgba(184, 137, 50, 0.06), transparent 70%),
        rgba(20, 32, 55, 0.018);
    border-color: var(--line);
}

html[data-theme="light"] .site-footer {
    background: rgba(255, 255, 255, 0.62);
    border-color: var(--line);
}

html[data-theme="light"] .content-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .plan-card,
html[data-theme="light"] .auth-card,
html[data-theme="light"] .tool-card,
html[data-theme="light"] .filter-card,
html[data-theme="light"] .tab-card,
html[data-theme="light"] .activity-feature,
html[data-theme="light"] .activity-list-card,
html[data-theme="light"] .broadcast-card,
html[data-theme="light"] .lesson-card,
html[data-theme="light"] .teacher-card,
html[data-theme="light"] .product-card,
html[data-theme="light"] .level-card,
html[data-theme="light"] .member-stat,
html[data-theme="light"] .practice-step,
html[data-theme="light"] .practice-note-grid .content-card,
html[data-theme="light"] .admin-card,
html[data-theme="light"] .summary-card {
    background: #ffffff;
    border-color: var(--line);
    box-shadow: 0 8px 28px rgba(24, 38, 64, 0.055);
}

html[data-theme="light"] .plan-card.is-featured {
    background:
        radial-gradient(120% 90% at 50% -10%, rgba(184, 137, 50, 0.16), transparent 55%),
        linear-gradient(180deg, rgba(184, 137, 50, 0.07), transparent 38%),
        #fffdf7;
}

html[data-theme="light"] .tab-card:hover,
html[data-theme="light"] .activity-feature:hover,
html[data-theme="light"] .lesson-card:hover,
html[data-theme="light"] .teacher-card:hover,
html[data-theme="light"] .product-card:hover,
html[data-theme="light"] .practice-step:hover {
    box-shadow: 0 18px 40px rgba(24, 38, 64, 0.1);
}

html[data-theme="light"] .tab-card-cover,
html[data-theme="light"] .lesson-cover,
html[data-theme="light"] .product-cover {
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(184, 137, 50, 0.16), transparent 60%),
        linear-gradient(135deg, #f7f1e2, #eef3fb);
}

html[data-theme="light"] .tab-card-title h3,
html[data-theme="light"] .tab-card-title strong {
    color: var(--text);
}

html[data-theme="light"] .tab-card-snippet {
    color: #7b879a;
    background: #f7f9fc;
    border-color: var(--line);
}

html[data-theme="light"] .tab-card-svg {
    border-color: rgba(20, 32, 55, 0.14);
}

html[data-theme="light"] .btn-outline {
    background: #ffffff;
    border-color: var(--line-strong);
    color: var(--text);
}

html[data-theme="light"] .btn-ghost {
    color: var(--muted);
}

html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .admin-filter-bar input,
html[data-theme="light"] .admin-filter-bar select,
html[data-theme="light"] .community-search input,
html[data-theme="light"] .practice-control input,
html[data-theme="light"] .practice-range input,
html[data-theme="light"] .grid-input,
html[data-theme="light"] .grid-mini-select {
    background: #ffffff;
    border-color: var(--line);
    color: var(--text);
}

html[data-theme="light"] .field input:focus,
html[data-theme="light"] .field select:focus,
html[data-theme="light"] .field textarea:focus {
    background: #ffffff;
}

html[data-theme="light"] .field input::placeholder,
html[data-theme="light"] .field textarea::placeholder {
    color: #a0aaba;
}

html[data-theme="light"] .hero-visual .float-card,
html[data-theme="light"] .member-card {
    box-shadow: 0 20px 50px rgba(24, 38, 64, 0.16);
}

html[data-theme="light"] .hero-visual .float-card {
    background: #ffffff;
    border-color: var(--line);
}

html[data-theme="light"] .hero-grid-lines {
    opacity: 0.45;
}

html[data-theme="light"] .hero-glow {
    opacity: 0.5;
}

html[data-theme="light"] .theme-toggle .theme-icon-sun {
    display: none;
}

html[data-theme="light"] .theme-toggle .theme-icon-moon {
    display: grid;
}

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

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

.theme-toggle {
    position: relative;
    flex: 0 0 auto;
}

.theme-toggle .theme-icon {
    position: absolute;
    place-items: center;
    inset: 0;
}

.theme-toggle .theme-icon .icon {
    width: 16px;
    height: 16px;
}

html[data-theme="light"] .tab-hero,
html[data-theme="light"] .tool-hero,
html[data-theme="light"] .tab-detail-hero,
html[data-theme="light"] .page-hero {
    background:
        radial-gradient(900px 500px at 90% -20%, rgba(184, 137, 50, 0.08), transparent 66%),
        rgba(255, 255, 255, 0.28);
    border-color: var(--line);
}

html[data-theme="light"] .metronome-card,
html[data-theme="light"] .tuner-card {
    background:
        radial-gradient(120% 120% at 50% -20%, rgba(184, 137, 50, 0.09), transparent 55%),
        #ffffff;
    border-color: var(--line);
}

html[data-theme="light"] .metronome-settings,
html[data-theme="light"] .tuner-display,
html[data-theme="light"] .tuner-strings,
html[data-theme="light"] .tool-banner,
html[data-theme="light"] .tool-side {
    background: #f8fafc;
    border-color: var(--line);
}

html[data-theme="light"] .metronome-start,
html[data-theme="light"] .tuner-string {
    background: #ffffff;
    border-color: var(--line);
}

html[data-theme="light"] .tuner-meter {
    background: #eef2f7;
}

html[data-theme="light"] .tab-paper {
    background: #ffffff;
    border-color: var(--line);
}

html[data-theme="light"] .sheet-locked-card {
    background:
        radial-gradient(100% 120% at 100% 0%, rgba(184, 137, 50, 0.12), transparent 60%),
        #ffffff;
    border-color: var(--gold-line);
    color: var(--text);
}

html[data-theme="light"] .sheet-locked-card h3 {
    color: var(--text);
}

html[data-theme="light"] .sheet-locked-card p {
    color: var(--muted);
}

html[data-theme="light"] .tab-tip {
    background: #f8fafc;
    color: var(--muted);
}

html[data-theme="light"] .tab-vip-badge,
html[data-theme="light"] .tab-ai-badge,
html[data-theme="light"] .tab-svg-badge {
    background: #ffffff;
    border-color: var(--gold-line);
}

html[data-theme="light"] .tab-paper-toolbar {
    background: #f7f9fc;
    border-color: var(--line);
}

html[data-theme="light"] .tab-content {
    background: #ffffff;
    color: #24334d;
}

html[data-theme="light"] .tab-locked-overlay {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.94) 25%),
        #ffffff;
    color: var(--text);
}

html[data-theme="light"] .tab-locked-overlay p,
html[data-theme="light"] .tab-locked-overlay h3 {
    color: var(--text);
}

html[data-theme="light"] .tab-paper-title small,
html[data-theme="light"] .tab-tip p,
html[data-theme="light"] .tab-detail-summary,
html[data-theme="light"] .tab-detail-meta small,
html[data-theme="light"] .detail-list span,
html[data-theme="light"] .section-head p,
html[data-theme="light"] .page-hero p,
html[data-theme="light"] .hero-lead {
    color: var(--muted);
}

html[data-theme="light"] .tab-detail-meta,
html[data-theme="light"] .tab-detail-side .content-card,
html[data-theme="light"] .tab-tip {
    border-color: var(--line);
}

html[data-theme="light"] .filter-card,
html[data-theme="light"] .tab-filters {
    background: #ffffff;
}

html[data-theme="light"] .filter-head,
html[data-theme="light"] .tab-detail-meta {
    border-color: var(--line);
}

html[data-theme="light"] .practice-live,
html[data-theme="light"] .score-practice {
    background: #f7f9fc;
    border-color: var(--line);
}

html[data-theme="light"] .practice-step {
    background: #ffffff;
}

html[data-theme="light"] .practice-step small,
html[data-theme="light"] .practice-hint,
html[data-theme="light"] .practice-status,
html[data-theme="light"] .practice-range,
html[data-theme="light"] .practice-range-hint {
    color: var(--muted);
}

html[data-theme="light"] .practice-live-chord {
    color: var(--gold);
}

html[data-theme="light"] .practice-live-row > span {
    color: var(--muted-2);
}

html[data-theme="light"] .live-beat {
    color: var(--muted);
}

html[data-theme="light"] .live-beat.is-active {
    color: #241a08;
}

html[data-theme="light"] .activity-tab {
    color: var(--muted);
}

html[data-theme="light"] .activity-tabs {
    border-color: var(--line);
}

html[data-theme="light"] .activity-tabs .activity-tab.is-active {
    color: var(--gold);
}

html[data-theme="light"] .community-status-note {
    color: #866421;
}

html[data-theme="light"] .community-form,
html[data-theme="light"] .coupon-help {
    background: #ffffff;
}

html[data-theme="light"] .summary-line,
html[data-theme="light"] .rule-list > div {
    border-color: var(--line);
}

html[data-theme="light"] .vip-lock-panel,
html[data-theme="light"] .video-placeholder {
    background: #f8fafc;
    border-color: var(--line-strong);
}

html[data-theme="light"] .admin-sidebar {
    background: #ffffff;
    border-color: var(--line);
}

html[data-theme="light"] .admin-topbar {
    background: rgba(255, 255, 255, 0.86);
    border-color: var(--line);
}

html[data-theme="light"] .admin-nav-link:hover {
    background: rgba(20, 32, 55, 0.04);
}

html[data-theme="light"] .admin-content {
    background: #f5f7fb;
}

html[data-theme="light"] .admin-table th {
    background: #f7f9fc;
    color: var(--muted);
}

html[data-theme="light"] .admin-table td,
html[data-theme="light"] .admin-table th {
    border-color: var(--line);
}

html[data-theme="light"] .admin-table tr:hover td {
    background: #f8fafc;
}

html[data-theme="light"] .admin-empty,
html[data-theme="light"] .empty-state {
    background: #f8fafc;
}

html[data-theme="light"] .log-action {
    background: rgba(20, 32, 55, 0.06);
    color: var(--text-soft);
}

html[data-theme="light"] .status-pill {
    background: rgba(20, 32, 55, 0.06);
}

html[data-theme="light"] .input-wrap .input-icon {
    color: var(--muted-2);
}

html[data-theme="light"] .auth-page {
    background: #f5f7fb;
}

html[data-theme="light"] .site-footer .footer-col a,
html[data-theme="light"] .site-footer p {
    color: var(--muted);
}

@media (max-width: 960px) {
    html[data-theme="light"] .main-nav {
        background: #ffffff;
        border-color: var(--line);
        box-shadow: 0 24px 60px rgba(24, 38, 64, 0.16);
    }
}


/* --- guitar.css --- */
/* ==========================================================================
   有谱啦啦 · 平台主视觉与首页
   在既有深空蓝黑 + 香槟金设计语言上，补充吉他平台专属组件
   ========================================================================== */

/* ---------- 顶栏微调 ---------- */
.header-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--muted);
    border: 1px solid transparent;
    transition: 0.2s var(--ease);
}

.header-search:hover {
    color: var(--gold);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.header-search .icon {
    width: 19px;
    height: 19px;
}

.main-nav {
    gap: 2px;
}

.main-nav .nav-link {
    padding: 8px 10px;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .main-nav .nav-link {
        padding: 8px 7px;
        font-size: 13.5px;
    }
}

/* ---------- Hero ---------- */
.gh-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gh-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}

.gh-hero-glow-a {
    width: 620px;
    height: 620px;
    right: -140px;
    top: -220px;
    background: radial-gradient(circle, rgba(7, 193, 96, 0.16), transparent 65%);
}

.gh-hero-glow-b {
    width: 520px;
    height: 520px;
    left: -200px;
    bottom: -260px;
    background: radial-gradient(circle, rgba(95, 130, 255, 0.14), transparent 65%);
}

.gh-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 62% 30%, #000, transparent 72%);
    pointer-events: none;
}

.gh-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 56px;
}

.gh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 12.5px;
    letter-spacing: 0.06em;
}

.gh-hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 4.6vw, 62px);
    line-height: 1.14;
    letter-spacing: 0.01em;
    font-weight: 800;
}

.gh-hero-lead {
    max-width: 560px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.9;
}

.gh-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    margin-top: 28px;
    padding: 7px 7px 7px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(8, 13, 25, 0.72);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    transition: 0.2s var(--ease);
}

.gh-search:focus-within {
    border-color: var(--gold-line);
    box-shadow: 0 0 0 4px rgba(7, 193, 96, 0.08), 0 18px 50px rgba(0, 0, 0, 0.28);
}

.gh-search-icon {
    display: inline-flex;
    color: var(--muted-2);
}

.gh-search-icon .icon {
    width: 20px;
    height: 20px;
}

.gh-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14.5px;
}

.gh-search input::placeholder {
    color: var(--muted-2);
}

.gh-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted-2);
}

.gh-quick a {
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.02);
    transition: 0.2s;
}

.gh-quick a:hover {
    color: var(--gold);
    border-color: var(--gold-line);
}

.gh-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-width: 600px;
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.gh-hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gh-hero-stats strong {
    font-size: 24px;
    font-weight: 760;
    letter-spacing: 0.01em;
}

.gh-hero-stats span {
    color: var(--muted-2);
    font-size: 12px;
}

/* Hero 谱面卡片 */
.gh-hero-visual {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gh-sheet-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(30, 41, 66, 0.95), rgba(10, 16, 30, 0.98));
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: rotate(-1.6deg);
    overflow: hidden;
}

.gh-sheet-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.gh-sheet-dots {
    display: flex;
    gap: 5px;
}

.gh-sheet-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.gh-sheet-dots span:first-child {
    background: var(--gold);
}

.gh-sheet-file {
    flex: 1;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.03em;
}

.gh-sheet-badge {
    padding: 2px 8px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.gh-sheet-body {
    padding: 18px;
    background: #fffdf7;
}

.gh-sheet-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.gh-sheet-row:last-child {
    margin-bottom: 0;
}

.gh-mini-measure {
    position: relative;
    padding: 8px 7px 10px;
    border: 1px solid #e8dcc6;
    border-radius: 7px;
    background: #fffef9;
}

.gh-mini-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1f2937;
    font-family: var(--mono);
    font-size: 12px;
    margin-bottom: 7px;
}

.gh-mini-top b {
    font-size: 12px;
    color: #9a6b1f;
}

.gh-mini-top em {
    color: #a8a293;
    font-style: normal;
}

.gh-mini-lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 42px;
    background-image: radial-gradient(circle, rgba(40, 48, 66, 0.5) 0.8px, transparent 1px);
    background-size: 11px 100%;
    background-position: 4px 0;
}

.gh-mini-lines span {
    height: 1px;
    background: #c9c0ae;
}

.gh-mini-notes {
    position: absolute;
    left: 16%;
    right: 12%;
    bottom: 20px;
    height: 26px;
    background:
        radial-gradient(circle at 10% 25%, #26314a 1.4px, transparent 1.8px),
        radial-gradient(circle at 34% 62%, #26314a 1.4px, transparent 1.8px),
        radial-gradient(circle at 58% 40%, #26314a 1.4px, transparent 1.8px),
        radial-gradient(circle at 82% 72%, #26314a 1.4px, transparent 1.8px);
    opacity: 0.75;
}

.gh-mini-measure:nth-child(2) .gh-mini-notes {
    transform: translateY(3px);
}

.gh-mini-measure:nth-child(3) .gh-mini-notes {
    transform: translateY(-2px);
}

.gh-mini-measure:nth-child(4) .gh-mini-notes {
    transform: translateY(5px);
}

.gh-sheet-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 12px;
}

.gh-sheet-foot span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.gh-sheet-foot .icon {
    width: 13px;
    height: 13px;
    color: var(--gold);
}

.gh-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(13, 20, 36, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    animation: gh-float 7s ease-in-out infinite;
}

.gh-float strong {
    display: block;
    font-size: 12.5px;
}

.gh-float small {
    color: var(--muted-2);
    font-size: 12px;
}

.gh-float-a {
    left: -14px;
    bottom: 34px;
}

.gh-float-b {
    right: -10px;
    top: 26px;
    animation-delay: -3.2s;
}

.gh-float-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: var(--gold);
    background: var(--gold-soft);
}

.gh-float-icon.green {
    color: var(--green);
    background: var(--green-soft);
}

.gh-float-icon .icon {
    width: 17px;
    height: 17px;
}

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

/* ---------- 通用 section ---------- */
.gh-section {
    padding: 64px 0;
}

.gh-section + .gh-section {
    padding-top: 20px;
}

/* ---------- 分类导航 ---------- */
.gh-category-rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.gh-category-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.018);
    transition: 0.2s var(--ease);
}

.gh-category-chip:hover {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    transform: translateY(-2px);
}

.gh-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 9px;
    color: var(--gold);
    background: var(--gold-soft);
}

.gh-category-icon .icon {
    width: 15px;
    height: 15px;
}

.gh-category-chip span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.gh-category-chip strong {
    display: block;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gh-category-chip small {
    color: var(--muted-2);
    font-size: 12px;
}

.gh-category-chip > .icon {
    width: 14px;
    height: 14px;
    color: var(--muted-2);
}

/* ---------- 练习室面板 ---------- */
.gh-practice-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(90% 130% at 0% 0%, rgba(7, 193, 96, 0.11), transparent 60%),
        linear-gradient(145deg, rgba(23, 33, 56, 0.9), rgba(9, 14, 27, 0.95));
    box-shadow: var(--shadow);
}

.gh-practice-copy h2 {
    margin: 10px 0 14px;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.3;
}

.gh-practice-copy p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
    max-width: 430px;
}

.gh-practice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.gh-practice-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gh-practice-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px 16px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    transition: 0.2s var(--ease);
}

.gh-practice-step:hover {
    border-color: var(--gold-line);
    transform: translateX(4px);
    background: rgba(7, 193, 96, 0.06);
}

.gh-step-num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--gold);
    opacity: 0.8;
}

.gh-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 11px;
    color: var(--gold);
    background: var(--gold-soft);
}

.gh-step-icon .icon {
    width: 19px;
    height: 19px;
}

.gh-practice-step > div {
    flex: 1;
    min-width: 0;
}

.gh-practice-step strong {
    display: block;
    font-size: 14px;
}

.gh-practice-step small {
    color: var(--muted-2);
    font-size: 12px;
}

.gh-practice-step > .icon {
    width: 15px;
    height: 15px;
    color: var(--muted-2);
}

/* ---------- 活动角 ---------- */
.gh-community-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gh-community-col {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.018);
}

.gh-community-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.gh-community-head h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.gh-community-head h3 .icon {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.gh-community-head a {
    color: var(--muted-2);
    font-size: 12px;
}

.gh-community-head a:hover {
    color: var(--gold);
}

.gh-post-item,
.gh-product-item,
.gh-lesson-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}

.gh-post-item:last-child,
.gh-product-item:last-child,
.gh-lesson-item:last-child {
    border-bottom: 0;
}

.gh-post-item strong,
.gh-product-item strong,
.gh-lesson-item strong {
    display: block;
    font-size: 13px;
    font-weight: 620;
    line-height: 1.5;
}

.gh-post-item small,
.gh-product-item small,
.gh-lesson-item small {
    color: var(--muted-2);
    font-size: 12px;
}

.gh-post-item > div,
.gh-product-item > div:last-child,
.gh-lesson-item > div {
    min-width: 0;
    flex: 1;
}

.gh-post-type {
    flex: 0 0 auto;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--gold);
    background: var(--gold-soft);
}

.gh-post-type.type-event {
    color: var(--blue);
    background: var(--blue-soft);
}

.gh-post-type.type-share {
    color: var(--green);
    background: var(--green-soft);
}

.gh-product-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 10px;
    color: var(--gold);
    background: linear-gradient(145deg, rgba(7, 193, 96, 0.18), rgba(7, 193, 96, 0.04));
    border: 1px solid var(--gold-line);
}

.gh-product-thumb .icon {
    width: 20px;
    height: 20px;
}

.gh-lesson-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-strong);
}

.gh-lesson-icon .icon {
    width: 13px;
    height: 13px;
    margin-left: 2px;
}

.gh-empty {
    padding: 18px 0;
    color: var(--muted-2);
    font-size: 12.5px;
}

/* ---------- AI 实验室 ---------- */
.gh-ai-band {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 44px;
    padding: 42px;
    border: 1px solid rgba(7, 193, 96, 0.25);
    border-radius: 26px;
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(7, 193, 96, 0.18), transparent 62%),
        radial-gradient(70% 120% at 0% 100%, rgba(7, 193, 96, 0.1), transparent 60%),
        linear-gradient(135deg, #101a33, #0a1020 70%);
    box-shadow: 0 30px 80px rgba(4, 8, 18, 0.55);
    overflow: hidden;
}

.gh-ai-copy h2 {
    margin: 10px 0 14px;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.3;
}

.gh-ai-copy p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
    max-width: 520px;
}

.gh-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.gh-ai-visual {
    display: flex;
    justify-content: center;
}

.gh-ai-prompt {
    width: 100%;
    max-width: 360px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(7, 12, 24, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gh-ai-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-size: 12px;
}

.gh-ai-tag .icon {
    width: 14px;
    height: 14px;
}

.gh-ai-prompt p {
    margin: 12px 0 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-soft);
}

.gh-ai-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 46px;
    margin-bottom: 16px;
}

.gh-ai-bars span {
    flex: 1;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--blue), rgba(7, 193, 96, 0.18));
    animation: gh-bars 1.6s ease-in-out infinite;
}

.gh-ai-bars span:nth-child(1) { height: 35%; }
.gh-ai-bars span:nth-child(2) { height: 62%; animation-delay: -0.2s; }
.gh-ai-bars span:nth-child(3) { height: 44%; animation-delay: -0.4s; }
.gh-ai-bars span:nth-child(4) { height: 82%; animation-delay: -0.6s; }
.gh-ai-bars span:nth-child(5) { height: 55%; animation-delay: -0.8s; }
.gh-ai-bars span:nth-child(6) { height: 72%; animation-delay: -1s; }
.gh-ai-bars span:nth-child(7) { height: 38%; animation-delay: -1.2s; }

@keyframes gh-bars {
    0%, 100% { transform: scaleY(0.75); opacity: 0.7; }
    50% { transform: scaleY(1); opacity: 1; }
}

.gh-ai-result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.gh-ai-result span {
    padding: 4px 9px;
    border: 1px solid var(--gold-line);
    border-radius: 6px;
    color: var(--gold);
    background: var(--gold-soft);
    font-family: var(--mono);
    font-size: 12px;
}

.gh-ai-result em {
    width: 100%;
    margin-top: 6px;
    color: var(--muted-2);
    font-size: 12px;
    font-style: normal;
}

/* ---------- VIP ---------- */
.gh-plans {
    margin-top: 34px;
}

.gh-vip-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.gh-vip-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12.5px;
}

.gh-vip-benefits .icon {
    width: 14px;
    height: 14px;
    color: var(--green);
}

/* ---------- FAQ ---------- */
.gh-faq {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
}

.gh-faq-copy h2 {
    margin: 10px 0 14px;
    font-size: clamp(24px, 2.4vw, 32px);
}

.gh-faq-copy p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 22px;
    max-width: 360px;
}

.gh-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gh-faq-list details {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.gh-faq-list summary {
    position: relative;
    padding: 16px 44px 16px 18px;
    font-size: 14px;
    font-weight: 620;
    cursor: pointer;
    list-style: none;
}

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

.gh-faq-list summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 18px;
    font-weight: 400;
}

.gh-faq-list details[open] summary::after {
    content: "−";
}

.gh-faq-list p {
    padding: 0 18px 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .gh-hero-inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .gh-hero-visual {
        min-height: 0;
        justify-content: flex-start;
    }

    .gh-sheet-card {
        transform: none;
    }

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

    .gh-practice-panel,
    .gh-ai-band {
        grid-template-columns: 1fr;
    }

    .gh-community-grid {
        grid-template-columns: 1fr;
    }

    .gh-faq {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (max-width: 720px) {
    .gh-hero {
        padding: 44px 0 40px;
    }

    .gh-hero h1 {
        font-size: 36px;
    }

    .gh-hero-lead {
        font-size: 14px;
    }

    .gh-search {
        padding-left: 12px;
    }

    .gh-search .btn {
        padding: 0 16px;
        font-size: 13px;
    }

    .gh-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .gh-hero-stats strong {
        font-size: 21px;
    }

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

    .gh-mini-measure {
        padding: 7px 6px 8px;
    }

    .gh-mini-lines {
        height: 34px;
    }

    .gh-float {
        display: none;
    }

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

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

    .gh-practice-panel,
    .gh-ai-band {
        padding: 22px;
        border-radius: 18px;
    }

    .gh-practice-step {
        gap: 10px;
        padding: 12px;
    }

    .gh-step-num {
        display: none;
    }

    .gh-plans {
        margin-top: 22px;
    }

    .gh-vip-benefits {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   乐谱详情：电脑一行 4 小节，移动端 2 小节
   ========================================================================== */
.sheet-roll {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
}

.sheet-roll .measure-sheet {
    width: 100%;
    height: auto;
    margin: 0;
    border-right: 1px solid #eee4d0;
    border-bottom: 1px solid #eee4d0;
}

.sheet-roll .measure-sheet:nth-child(4n) {
    border-right: 0;
}

.sheet-roll .measure-sheet.is-current {
    box-shadow: inset 0 0 0 3px rgba(215, 164, 64, 0.85);
}

@media (max-width: 860px) {
    .sheet-roll {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sheet-roll .measure-sheet:nth-child(4n) {
        border-right: 1px solid #eee4d0;
    }

    .sheet-roll .measure-sheet:nth-child(2n) {
        border-right: 0;
    }
}

/* 歌手筛选：可滚动标签墙 */
.artist-chips {
    max-height: 178px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.artist-chips::-webkit-scrollbar {
    width: 5px;
}

.artist-chips::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 999px;
}

/* 谱面密度切换 */
.sheet-density {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
}

.sheet-density button {
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.4;
    transition: 0.15s;
}

.sheet-density button:hover {
    color: var(--text-soft);
}

.sheet-density button.is-active {
    background: var(--gold-soft);
    color: var(--gold);
}

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

.sheet-roll.cols-1 {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.sheet-roll.cols-1 .measure-sheet {
    border-right: 0;
}

.sheet-roll.cols-2 .measure-sheet:nth-child(4n) {
    border-right: 1px solid #eee4d0;
}

.sheet-roll.cols-2 .measure-sheet:nth-child(2n) {
    border-right: 0;
}

.sheet-roll .measure-sheet {
    cursor: zoom-in;
}

/* 谱面放大预览 */
.sheet-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(3, 6, 13, 0.86);
    backdrop-filter: blur(8px);
}

.sheet-lightbox[hidden] {
    display: none;
}

.sheet-lightbox img {
    max-width: min(1100px, 96vw);
    max-height: 88vh;
    width: auto;
    background: #fffdf7;
    border-radius: 10px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.sheet-lightbox-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(10, 16, 30, 0.7);
    color: var(--text);
    font-size: 20px;
}

/* 谱面密度提示 */
.sheet-layout-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 18px 0;
    color: #8d806c;
    font-size: 12px;
}

.sheet-layout-hint .icon {
    width: 13px;
    height: 13px;
}

/* ==========================================================================
   在线鼓机
   ========================================================================== */
.drum-hero {
    padding-bottom: 26px;
}

.drum-machine {
    padding: 24px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(7, 193, 96, 0.08), transparent 60%),
        linear-gradient(160deg, #121c32, #0a1120 70%);
    box-shadow: var(--shadow);
}

.drum-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.drum-transport {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.drum-play {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-strong));
    color: #1b1406;
    font-weight: 720;
    font-size: 14px;
    box-shadow: 0 12px 30px rgba(232, 179, 75, 0.24);
    transition: 0.2s var(--ease);
}

.drum-play:hover {
    transform: translateY(-1px);
}

.drum-play.is-playing {
    background: linear-gradient(135deg, #ff8a8a, #e85b5b);
    color: #2a0808;
    box-shadow: 0 12px 30px rgba(232, 91, 91, 0.25);
}

.drum-play-icon .icon {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.drum-tempo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.03);
}

.drum-tempo label {
    color: var(--muted-2);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.drum-tempo input[type="number"] {
    width: 52px;
    border: 0;
    background: transparent;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}

.drum-tempo input[type="number"]::-webkit-outer-spin-button,
.drum-tempo input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.drum-tempo input[type="range"] {
    width: 110px;
    accent-color: var(--gold);
}

.drum-mix {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--muted);
}

.drum-field {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.drum-field input[type="range"] {
    width: 80px;
    accent-color: var(--gold);
}

.drum-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.drum-check input {
    accent-color: var(--gold);
}

.drum-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 14px 0;
}

.drum-presets > span {
    margin-right: 4px;
    color: var(--muted-2);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.drum-presets button {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 12px;
    transition: 0.15s;
}

.drum-presets button:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.drum-presets button.is-active {
    color: var(--gold);
    border-color: var(--gold-line);
    background: var(--gold-soft);
}

.drum-presets .drum-clear {
    margin-left: auto;
    color: var(--red);
    border-color: rgba(255, 114, 133, 0.3);
    background: var(--red-soft);
}

.drum-grid {
    overflow-x: auto;
    padding: 6px 0 12px;
    scrollbar-width: thin;
}

.drum-row {
    display: grid;
    grid-template-columns: 122px minmax(560px, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 700px;
    padding: 7px 0;
}

.drum-row-head {
    padding-top: 0;
    padding-bottom: 4px;
}

.drum-track {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drum-track-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
}

.drum-track-name {
    flex: 1;
    font-size: 12.5px;
    color: var(--text-soft);
}

.drum-mute {
    width: 22px;
    height: 22px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: transparent;
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1;
}

.drum-mute.is-muted {
    color: var(--red);
    border-color: rgba(255, 114, 133, 0.45);
    background: var(--red-soft);
}

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

.drum-step-label {
    text-align: center;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
}

.drum-step-label.is-beat {
    color: var(--gold);
}

.drum-step {
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
    transition: 0.12s;
}

.drum-step.is-beat {
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--line-strong);
}

.drum-step:hover {
    border-color: var(--gold-line);
}

.drum-step.is-on {
    border-color: rgba(7, 193, 96, 0.6);
    background: linear-gradient(180deg, rgba(7, 193, 96, 0.95), rgba(232, 179, 75, 0.82));
    box-shadow: 0 0 16px rgba(7, 193, 96, 0.24);
}

.drum-step.is-playing {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 0 18px rgba(7, 193, 96, 0.3);
}

.drum-step.is-on.is-playing {
    background: #ffe0a0;
}

.drum-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 12px;
}

.drum-status {
    color: var(--gold);
}

.drum-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.drum-hint .icon {
    width: 13px;
    height: 13px;
}

.drum-tips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.drum-tips .text-link {
    margin-top: 10px;
}

@media (max-width: 720px) {
    .drum-machine {
        padding: 16px;
        border-radius: 16px;
    }

    .drum-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .drum-transport {
        width: 100%;
    }

    .drum-tempo {
        flex: 1;
    }

    .drum-tempo input[type="range"] {
        width: 76px;
    }

    .drum-presets .drum-clear {
        margin-left: 0;
    }

    .drum-tips {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   同城广播 / 培训预约
   ========================================================================== */
.broadcast-type.is-share {
    color: var(--green);
    border-color: rgba(62, 224, 160, 0.35);
    background: var(--green-soft);
}

.community-search select,
.admin-filter-form select {
    height: 38px;
    padding: 0 30px 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-size: 13px;
    outline: none;
}

.community-search select:focus,
.admin-filter-form select:focus {
    border-color: var(--gold-line);
}

.admin-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-table-sub {
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.5;
}

.admin-empty {
    padding: 26px 12px !important;
    text-align: center;
    color: var(--muted-2);
    font-size: 12.5px;
}

/* 预约面板 */
.booking-block {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

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

.booking-head h2 {
    margin: 8px 0 8px;
    font-size: 22px;
}

.booking-head p {
    max-width: 560px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.booking-price {
    flex: 0 0 auto;
    padding: 12px 16px;
    border: 1px solid var(--gold-line);
    border-radius: 13px;
    background: var(--gold-soft);
    text-align: right;
}

.booking-price small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.booking-price strong {
    display: block;
    color: var(--gold);
    font-size: 21px;
    line-height: 1.3;
}

.booking-price span {
    color: var(--muted-2);
    font-size: 12px;
}

.booking-form {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.018);
}

.booking-form .form-grid {
    margin-bottom: 16px;
}

.booking-form-hint {
    margin-left: 12px;
    color: var(--muted-2);
    font-size: 12px;
}

.booking-guest {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px dashed var(--gold-line);
    border-radius: 14px;
    background: var(--gold-soft);
}

.booking-guest p {
    flex: 1;
    min-width: 220px;
    color: var(--muted);
    font-size: 13px;
}

.booking-admin-list h3 {
    margin-bottom: 10px;
    font-size: 15px;
}

.booking-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

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

.booking-row-main {
    flex: 1;
    min-width: 200px;
}

.booking-row-main strong {
    display: block;
    font-size: 13px;
}

.booking-row-main small {
    color: var(--muted-2);
    font-size: 12px;
}

@media (max-width: 720px) {
    .booking-head {
        flex-direction: column;
    }

    .booking-price {
        width: 100%;
        text-align: left;
    }

    .booking-form-hint {
        display: block;
        margin: 8px 0 0;
    }
}

/* Hero 浮动卡位置微调 */
.gh-float-a {
    left: -20px;
    bottom: -18px;
}

.gh-float-b {
    right: -14px;
    top: -18px;
}

/* 导航激活态：改为短下划线，比圆点更稳重 */
.nav-link.is-active::after {
    width: 16px;
    height: 2px;
    bottom: 2px;
    border-radius: 2px;
}

/* 首页精选：桌面 4 列 */
.gh-featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1080px) {
    .gh-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .gh-featured-grid {
        grid-template-columns: 1fr;
    }
}

/* 浮动卡片更贴近谱面卡 */
.gh-float-a {
    left: -24px;
    bottom: 58px;
}

.gh-float-b {
    right: -22px;
    top: 70px;
}

/* 无图广告：横向海报感 + 右侧纹理 */
.ad-card--plain .ad-card-link {
    min-height: 150px;
}

.ad-card--plain .ad-card-link::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background:
        repeating-linear-gradient(115deg, rgba(7, 193, 96, 0.16) 0 1px, transparent 1px 15px),
        radial-gradient(circle at 50% 50%, rgba(7, 193, 96, 0.12), transparent 62%);
    mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 68%);
    pointer-events: none;
}

.ad-card--plain .ad-card-body {
    position: relative;
    z-index: 1;
    max-width: 62%;
    min-height: 150px;
    padding: 24px 28px;
}

.ad-card--plain .ad-card-title {
    max-width: 15ch;
    font-size: clamp(22px, 2.4vw, 30px);
}

.ad-card--plain .ad-card-subtitle {
    font-size: 12.5px;
    line-height: 1.7;
    max-width: 44ch;
}

@media (max-width: 720px) {
    .ad-card--plain .ad-card-body {
        max-width: none;
        padding: 22px 18px;
    }

    .ad-card--plain .ad-card-link::after {
        width: 260px;
        height: 260px;
        right: -110px;
    }
}

/* 浅色主题下的广告与面板校正 */
html[data-theme="light"] .ad-card {
    background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .ad-card--plain .ad-card-link {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(184, 137, 50, 0.14), transparent 58%),
        radial-gradient(90% 120% at 0% 100%, rgba(66, 111, 206, 0.1), transparent 60%),
        linear-gradient(135deg, #ffffff, #f4f1e9);
}

html[data-theme="light"] .ad-flag {
    background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .gh-practice-panel {
    background:
        radial-gradient(90% 130% at 0% 0%, rgba(184, 137, 50, 0.1), transparent 60%),
        linear-gradient(145deg, #ffffff, #f4f2ec);
}

html[data-theme="light"] .gh-ai-band {
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(66, 111, 206, 0.12), transparent 62%),
        radial-gradient(70% 120% at 0% 100%, rgba(184, 137, 50, 0.1), transparent 60%),
        linear-gradient(135deg, #ffffff, #f3f5fb);
}

html[data-theme="light"] .gh-sheet-card {
    background: linear-gradient(160deg, #ffffff, #f6f3ec);
}

html[data-theme="light"] .gh-sheet-file,
html[data-theme="light"] .gh-sheet-foot {
    color: var(--muted);
}

/* ==========================================================================
   练习室：鼓机邀请卡与练习谱筛选
   ========================================================================== */
.practice-drum-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 30px;
    padding: 30px 34px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(7, 193, 96, 0.13), transparent 62%),
        linear-gradient(140deg, rgba(24, 34, 58, 0.9), rgba(9, 14, 26, 0.96));
}

.practice-drum-copy h2 {
    margin: 8px 0 10px;
    font-size: clamp(22px, 2.3vw, 28px);
}

.practice-drum-copy p {
    max-width: 520px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.8;
}

.practice-drum-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 7px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(7, 12, 24, 0.6);
}

.practice-drum-grid span {
    height: 34px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
}

.practice-drum-grid span.is-on {
    border-color: rgba(7, 193, 96, 0.6);
    background: linear-gradient(180deg, rgba(7, 193, 96, 0.95), rgba(232, 179, 75, 0.8));
    box-shadow: 0 0 14px rgba(7, 193, 96, 0.2);
}

.practice-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.practice-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.practice-chip-label {
    margin-right: 2px;
    color: var(--muted-2);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.practice-chip-label:not(:first-child) {
    margin-left: 10px;
}

.practice-chip-clear {
    margin-left: auto;
    color: var(--gold);
    font-size: 12px;
}

.practice-result-head {
    margin-top: 22px;
}

@media (max-width: 860px) {
    .practice-drum-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .practice-drum-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .practice-drum-grid span {
        height: 26px;
    }
}

/* ==========================================================================
   移动端细节修正：顶栏、谱面工具条、练习控制
   ========================================================================== */
@media (max-width: 720px) {
    .header-search,
    .header-login,
    .header-actions > .btn-primary {
        display: none;
    }

    .user-chip-copy {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .menu-toggle {
        flex: 0 0 auto;
    }

    .site-header .header-inner {
        gap: 10px;
    }

    .tab-detail-layout {
        display: block;
    }

    .tab-detail-main,
    .tab-detail-side,
    .tab-paper {
        min-width: 0;
    }

    .tab-paper {
        overflow: hidden;
    }

    .tab-paper-toolbar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
    }

    .tab-paper-title {
        width: 100%;
    }

    .tab-toolbar-controls {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }

    .sheet-count-badge {
        order: 5;
    }

    .sheet-density button {
        padding: 4px 7px;
    }

    .score-practice-main,
    .practice-range {
        flex-wrap: wrap;
        gap: 8px;
    }

    .practice-control {
        font-size: 12px;
    }

    .practice-control input[type="number"] {
        width: 54px;
    }

    .practice-range-hint {
        display: none;
    }

    .practice-live {
        display: none;
    }

    .sheet-roll {
        margin: 10px;
    }

    .sheet-layout-hint {
        margin: 8px 12px 0;
        font-size: 12px;
    }

    .sheet-locked-card {
        flex-direction: column;
        align-items: flex-start;
        margin: 0 10px 10px;
        padding: 16px;
    }

    .booking-head h2 {
        font-size: 19px;
    }
}


/* 主视觉只保留谱面卡，减少装饰性浮层 */
.gh-float {
    display: none;
}

.ad-card--plain .ad-card-title {
    max-width: none;
}

.ad-card--plain .ad-card-body {
    max-width: min(720px, 66%);
}

/* 广告标题不强制断行（覆盖模块默认的 22ch 限制） */
.ad-card--plain .ad-card-title {
    max-width: none !important;
    width: auto;
}

.ad-card--plain .ad-card-body {
    max-width: 760px;
}

/* ==========================================================================
   前台 Header：主导航靠 Logo 居左，VIP 与账号操作独立在右侧
   ========================================================================== */
.main-nav {
    margin-left: 24px;
    margin-right: auto;
    gap: 2px;
}

.header-actions {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
}

.header-vip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    transition: 0.18s var(--ease);
}

.header-vip:hover {
    border-color: var(--gold);
    background: rgba(7, 193, 96, 0.2);
}

.header-vip.is-active {
    background: var(--gold);
    border-color: var(--gold);
    color: #1b1406;
}

.header-vip .icon {
    width: 14px;
    height: 14px;
}

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

@media (max-width: 960px) {
    .main-nav {
        margin-left: 0;
        margin-right: 0;
    }

    .header-actions {
        padding-left: 0;
        border-left: 0;
    }

    .header-vip {
        display: none;
    }

    .mobile-nav-vip {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 11px 12px;
        border-radius: 9px;
        background: var(--gold-soft);
        color: var(--gold);
        font-size: 13px;
        font-weight: 650;
    }

    .mobile-nav-vip .icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 1180px) {
    .main-nav .nav-link {
        padding-left: 8px;
        padding-right: 8px;
    }

    .header-vip {
        padding: 0 10px;
    }
}

/* Header 仅保留头像入口，不再展示会员名称与退出按钮 */
.user-chip {
    padding: 4px;
    border-radius: 50%;
}

/* ==========================================================================
   练习谱：独立卡片、详情页与鼓机播放器
   ========================================================================== */
.practice-score-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.practice-score-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.018);
    transition: 0.2s var(--ease);
}

.practice-score-card:hover {
    border-color: var(--gold-line);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.practice-score-cover {
    position: relative;
    min-height: 132px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(120% 150% at 85% 0%, rgba(7, 193, 96, 0.12), transparent 58%),
        linear-gradient(135deg, #121b2e, #0b1120);
}

.practice-score-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.practice-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    font-weight: 600;
}

.practice-type-badge.type-fingerstyle {
    color: var(--gold);
    border-color: var(--gold-line);
    background: var(--gold-soft);
}

.practice-type-badge.type-strumming {
    color: var(--blue);
    border-color: rgba(7, 193, 96, 0.32);
    background: var(--blue-soft);
}

.practice-type-badge.type-rhythm {
    color: var(--green);
    border-color: rgba(62, 224, 160, 0.3);
    background: var(--green-soft);
}

.practice-type-badge.type-warmup {
    color: var(--muted);
    border-color: var(--line-strong);
}

.practice-drum-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
    font-size: 12px;
}

.practice-drum-badge .icon {
    width: 11px;
    height: 11px;
    color: var(--gold);
}

.practice-score-snippet {
    margin: 12px 0 0;
    overflow: hidden;
    max-height: 70px;
    color: rgba(205, 214, 232, 0.62);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.65;
    white-space: pre;
}

.practice-score-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 15px 16px 16px;
}

.practice-score-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.practice-score-title h3 {
    font-size: 15px;
    line-height: 1.45;
}

.practice-score-title p {
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 12px;
}

.practice-score-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    color: var(--muted-2);
    font-size: 12px;
}

.practice-score-pattern {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
}

.practice-score-pattern .icon {
    width: 12px;
    height: 12px;
}

.practice-score-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.practice-score-head-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.practice-score-head h1 {
    font-size: clamp(28px, 3.4vw, 42px);
}

.practice-score-actions {
    display: flex;
    gap: 8px;
}

.practice-score-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.practice-score-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.practice-score-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 鼓机 / 节拍器播放器 */
.practice-player {
    padding: 22px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(7, 193, 96, 0.08), transparent 60%),
        linear-gradient(150deg, #131d33, #0a1120);
}

.practice-player-off {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.practice-player-off h2 {
    margin: 6px 0;
    font-size: 20px;
}

.practice-player-off p {
    color: var(--muted);
    font-size: 13px;
}

.practice-player-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.practice-player-head h2 {
    margin: 5px 0 4px;
    font-size: 21px;
}

.practice-player-head p {
    color: var(--muted-2);
    font-size: 12px;
}

.practice-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--gold), var(--gold-strong));
    color: #1b1406;
    font-size: 13px;
    font-weight: 700;
}

.practice-play.is-playing {
    background: linear-gradient(135deg, #ff8a8a, #e85b5b);
    color: #2a0808;
}

.practice-play-icon .icon {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.practice-player-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.practice-player-controls .practice-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.practice-player-controls input[type="number"] {
    width: 58px;
    padding: 4px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
}

.practice-player-controls input[type="range"] {
    width: 80px;
    accent-color: var(--gold);
}

.practice-player-controls .practice-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.practice-player-controls input[type="checkbox"] {
    accent-color: var(--gold);
}

.practice-player-controls .practice-status {
    margin-left: auto;
    color: var(--gold);
    font-size: 12px;
}

.practice-beats {
    display: flex;
    gap: 6px;
    margin-top: 14px;
}

.practice-beats span {
    flex: 1;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
    transition: 0.1s;
}

.practice-beats span.is-active {
    border-color: var(--gold);
    background: var(--gold);
    color: #1b1406;
    box-shadow: 0 0 16px rgba(7, 193, 96, 0.25);
}

/* 谱面卡片 */
.practice-tab-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.018);
}

.practice-tab-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.practice-tab-head h2 {
    margin-top: 4px;
    font-size: 19px;
}

.practice-pattern-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
}

.practice-pattern-badge .icon {
    width: 12px;
    height: 12px;
}

.practice-tab-sheet {
    margin: 14px;
    padding: 18px 20px;
    overflow-x: auto;
    border: 1px solid #e5dac4;
    border-radius: 10px;
    background: #fffdf7;
    color: #2f2a22;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.85;
    white-space: pre;
    tab-size: 4;
}

.practice-tab-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 18px 16px;
    color: var(--muted-2);
    font-size: 12px;
}

.practice-tab-hint .icon {
    width: 12px;
    height: 12px;
}

.practice-description {
    padding: 20px;
}

/* 后台练习谱表单 */
.practice-tab-input {
    min-height: 300px;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.75;
    white-space: pre;
    tab-size: 4;
}

@media (max-width: 1080px) {
    .practice-score-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .practice-score-grid {
        grid-template-columns: 1fr;
    }

    .practice-score-cover {
        min-height: 112px;
    }

    .practice-tab-sheet {
        font-size: 12px;
        padding: 14px;
    }

    .practice-player {
        padding: 16px;
    }

    .practice-player-controls .practice-status {
        margin-left: 0;
        width: 100%;
    }
}

.practice-beats span {
    color: var(--text-soft);
    font-weight: 600;
}


/* --- ads.css --- */
/* ==========================================================================
   广告位系统 / Ads
   沿用深色 + 金色设计语言：颜色、圆角、字体全部取自 app.css 的 :root 变量。
   ========================================================================== */

/* ---------- 前台广告卡片 ---------- */

.ad-slot {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: 18px 0;
}

/* 直接挂在 main 下时（如首页顶部/中部），自动套用与 .container 一致的宽度。 */
.site-main > .ad-slot {
    width: min(var(--container), calc(100% - 48px));
    margin: 18px auto;
}

.ad-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    transition: 0.2s var(--ease);
}

.ad-card:hover {
    border-color: var(--gold-line);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.ad-card-link {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    color: inherit;
    text-decoration: none;
}

.ad-card-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.ad-card--media .ad-card-link {
    grid-template-columns: minmax(200px, 36%) minmax(0, 1fr);
}

.ad-flag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 2px 7px;
    border: 1px solid var(--gold-line);
    border-radius: 4px;
    background: rgba(8, 12, 22, 0.72);
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

.ad-card-media {
    position: relative;
    display: block;
    min-height: 168px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.12), rgba(138, 144, 153, 0.12));
}

.ad-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 168px;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.ad-card:hover .ad-card-media img {
    transform: scale(1.03);
}

.ad-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 24px 26px;
}

.ad-card-kicker {
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.ad-card-title {
    color: var(--text);
    font-size: clamp(19px, 2vw, 26px);
    font-weight: 720;
    letter-spacing: 0.01em;
    line-height: 1.32;
}

.ad-card-subtitle {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.ad-card-cta {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 6px 13px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 12px;
    font-weight: 650;
    transition: 0.18s;
}

.ad-card-cta .icon {
    width: 12px;
    height: 12px;
}

.ad-card:hover .ad-card-cta {
    background: rgba(7, 193, 96, 0.2);
    border-color: var(--gold);
}

/* 没有图片：渐变底 + 大标题排版 */

.ad-card--plain .ad-card-link {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(7, 193, 96, 0.16), transparent 58%),
        radial-gradient(90% 120% at 0% 100%, rgba(138, 144, 153, 0.16), transparent 60%),
        linear-gradient(135deg, rgba(20, 30, 52, 0.9), rgba(10, 16, 30, 0.92));
}

.ad-card--plain .ad-card-body {
    min-height: 172px;
    padding-top: 34px;
}

.ad-card--plain .ad-card-title {
    max-width: 22ch;
    font-size: clamp(23px, 2.7vw, 32px);
    line-height: 1.25;
}

/* 卡片式：图文上下堆叠 */

.ad-slot--card {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ad-slot--card .ad-card-link {
    grid-template-columns: minmax(0, 1fr);
}

.ad-slot--card .ad-card-media,
.ad-slot--card .ad-card-media img {
    min-height: 0;
    height: 132px;
}

.ad-slot--card .ad-card-body {
    min-height: 0;
    padding: 16px 18px 18px;
}

.ad-slot--card .ad-card--plain .ad-card-link,
.ad-slot--card .ad-card--plain .ad-card-body {
    min-height: 0;
}

.ad-slot--card .ad-card-title,
.ad-slot--card .ad-card--plain .ad-card-title {
    font-size: 16px;
}

.ad-slot--card .ad-card-subtitle {
    font-size: 12px;
}

/* 内联式：紧凑横排 */

.ad-slot--inline .ad-card--media .ad-card-link {
    grid-template-columns: minmax(0, 168px) minmax(0, 1fr);
}

.ad-slot--inline .ad-card-media,
.ad-slot--inline .ad-card-media img {
    min-height: 118px;
}

.ad-slot--inline .ad-card-body {
    min-height: 0;
    padding: 16px 20px;
}

.ad-slot--inline .ad-card-kicker {
    display: none;
}

.ad-slot--inline .ad-card-title,
.ad-slot--inline .ad-card--plain .ad-card-title {
    font-size: 15px;
}

.ad-slot--inline .ad-card-subtitle {
    font-size: 12px;
}

.ad-slot--inline .ad-card-cta {
    margin-top: 2px;
    padding: 4px 10px;
    font-size: 12px;
}

/* 侧栏式：竖向窄卡片 */

.ad-slot--sidebar .ad-card-link {
    grid-template-columns: minmax(0, 1fr);
}

.ad-slot--sidebar .ad-card-media,
.ad-slot--sidebar .ad-card-media img {
    min-height: 0;
    height: 112px;
}

.ad-slot--sidebar .ad-card-body {
    min-height: 0;
    padding: 15px 16px 17px;
}

.ad-slot--sidebar .ad-card-title,
.ad-slot--sidebar .ad-card--plain .ad-card-title {
    font-size: 14px;
}

.ad-slot--sidebar .ad-card-subtitle {
    font-size: 12px;
}

/* ---------- 后台：广告位管理 ---------- */

.ad-admin-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ad-admin-title > div {
    min-width: 0;
}

.ad-admin-thumb {
    display: block;
    flex: 0 0 auto;
    width: 64px;
    height: 40px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(8, 13, 25, 0.6);
}

.ad-admin-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-placement-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 12px;
    white-space: nowrap;
}

.ad-sort {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
}

.ad-metric {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ad-metric + small {
    display: block;
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 12px;
}

.ad-filter-hint {
    margin-left: auto;
    color: var(--muted-2);
    font-size: 12px;
}

.ad-admin-offline {
    align-items: flex-start;
}

.ad-admin-offline .icon {
    flex: 0 0 auto;
    margin-top: 1px;
}

.admin-tip code,
.ad-admin-offline code {
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(8, 13, 25, 0.55);
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
    .ad-card--media .ad-card-link {
        grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    }

    .ad-card--plain .ad-card-title {
        font-size: clamp(21px, 3vw, 27px);
    }
}

@media (max-width: 720px) {
    .ad-slot {
        gap: 10px;
        margin: 14px 0;
    }

    .site-main > .ad-slot {
        width: calc(100% - 32px);
        margin: 14px auto;
    }

    .ad-card--media .ad-card-link,
    .ad-slot--card .ad-card-link,
    .ad-slot--inline .ad-card--media .ad-card-link,
    .ad-slot--sidebar .ad-card-link {
        grid-template-columns: minmax(0, 1fr);
    }

    .ad-card-media,
    .ad-card-media img {
        height: 152px;
        min-height: 0;
    }

    .ad-card-body,
    .ad-card--plain .ad-card-body,
    .ad-slot--card .ad-card-body,
    .ad-slot--inline .ad-card-body,
    .ad-slot--sidebar .ad-card-body {
        min-height: 0;
        padding: 20px 18px 22px;
    }

    .ad-card--plain .ad-card-body {
        padding-top: 30px;
    }

    .ad-card-title,
    .ad-card--plain .ad-card-title,
    .ad-slot--card .ad-card-title,
    .ad-slot--card .ad-card--plain .ad-card-title {
        max-width: none;
        font-size: 19px;
    }

    .ad-slot--inline .ad-card-title,
    .ad-slot--sidebar .ad-card-title {
        font-size: 15px;
    }

    .ad-slot--inline .ad-card-kicker {
        display: block;
    }

    .ad-filter-hint {
        margin-left: 0;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ad-card,
    .ad-card-media img,
    .ad-card-cta {
        transition: none;
    }

    .ad-card:hover,
    .ad-card:hover .ad-card-media img {
        transform: none;
    }
}


/* --- ai.css --- */
/* ==========================================================================
   AI 实验室 / AI 写歌
   与站点深色底 + 金色点缀保持一致，所有类名使用 ai- 前缀。
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.ai-hero,
.ai-studio-hero,
.ai-song-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(90% 120% at 85% 0%, rgba(7, 193, 96, 0.09), transparent 55%),
        radial-gradient(80% 100% at 0% 100%, rgba(7, 193, 96, 0.06), transparent 50%);
}

.ai-hero {
    padding: 96px 0 54px;
}

.ai-studio-hero {
    padding: 92px 0 38px;
}

.ai-song-hero {
    padding: 88px 0 36px;
}

.ai-hero-glow {
    position: absolute;
    top: -220px;
    right: -160px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 193, 96, 0.14), transparent 64%);
    filter: blur(10px);
    pointer-events: none;
}

.ai-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 54px;
    align-items: center;
    margin-top: 18px;
}

.ai-hero-copy h1 {
    max-width: 760px;
    margin: 14px 0 18px;
    font-size: clamp(34px, 4.4vw, 58px);
    font-weight: 760;
    line-height: 1.14;
    letter-spacing: 0.01em;
}

.ai-hero-copy > p {
    max-width: 640px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.ai-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.ai-status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.ai-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-size: 12px;
}

.ai-status-pill.is-ready {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold);
}

.ai-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted-2);
}

.ai-status-pill.is-ready .ai-status-dot {
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(7, 193, 96, 0.12);
}

.ai-status-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 650;
}

.ai-status-link .icon {
    width: 13px;
    height: 13px;
}

.ai-hero-trust {
    margin-top: 30px;
}

.ai-hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.ai-orbit-large {
    position: relative;
    width: min(380px, 92%);
    aspect-ratio: 1;
    border: 1px solid var(--gold-line);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(7, 193, 96, 0.12), transparent 58%),
        rgba(255, 255, 255, 0.015);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32), inset 0 0 60px rgba(7, 193, 96, 0.05);
}

.ai-orbit-ring {
    position: absolute;
    border: 1px dashed rgba(7, 193, 96, 0.26);
    border-radius: 50%;
}

.ai-orbit-ring.ring-one {
    inset: 12%;
    animation: ai-spin 30s linear infinite;
}

.ai-orbit-ring.ring-two {
    inset: 27%;
    animation: ai-spin 22s linear infinite reverse;
}

.ai-orbit-core {
    position: absolute;
    inset: 38%;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold-line);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 193, 96, 0.18), rgba(17, 26, 46, 0.94));
    color: var(--gold);
    box-shadow: 0 0 50px rgba(7, 193, 96, 0.16);
}

.ai-orbit-core .icon {
    width: 40px;
    height: 40px;
}

.ai-orbit-tag {
    position: absolute;
    padding: 6px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(10, 16, 32, 0.88);
    color: var(--text-soft);
    font-size: 12px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.ai-orbit-tag.tag-theme {
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
}

.ai-orbit-tag.tag-chord {
    top: 44%;
    right: 0;
}

.ai-orbit-tag.tag-lyric {
    bottom: 7%;
    left: 8%;
}

.ai-orbit-tag.tag-melody {
    top: 30%;
    left: 0;
}

.ai-hero-caption {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.18em;
}

/* --------------------------------------------------------------------------
   Capability cards
   -------------------------------------------------------------------------- */

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

.ai-capability-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(100% 120% at 100% 0%, rgba(255, 255, 255, 0.05), transparent 56%),
        rgba(255, 255, 255, 0.018);
    transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.ai-capability-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-line);
    box-shadow: var(--shadow-sm);
}

.ai-capability-card.is-gold {
    background:
        radial-gradient(100% 130% at 100% 0%, rgba(7, 193, 96, 0.16), transparent 58%),
        rgba(255, 255, 255, 0.018);
}

.ai-capability-card.is-disabled {
    opacity: 0.58;
}

.ai-capability-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ai-capability-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--gold-line);
    border-radius: 15px;
    background: var(--gold-soft);
    color: var(--gold);
}

.ai-capability-icon .icon {
    width: 23px;
    height: 23px;
}

.ai-capability-index {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.16em;
}

.ai-capability-kicker {
    margin-top: 24px;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.16em;
}

.ai-capability-card h2 {
    margin-top: 7px;
    font-size: 28px;
    letter-spacing: 0.01em;
}

.ai-capability-card > p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

.ai-capability-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0 24px;
    padding: 0;
    list-style: none;
}

.ai-capability-list li {
    position: relative;
    padding-left: 18px;
    color: var(--text-soft);
    font-size: 12.5px;
}

.ai-capability-list li::before {
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
    content: "";
}

.ai-capability-foot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--gold);
    font-size: 13.5px;
    font-weight: 650;
}

.ai-capability-foot .icon {
    width: 15px;
    height: 15px;
    transition: transform 0.2s;
}

.ai-capability-card:hover .ai-capability-foot .icon {
    transform: translateX(3px);
}

.ai-capability-badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 12px;
}

.ai-capability-badge .icon {
    width: 11px;
    height: 11px;
}

/* --------------------------------------------------------------------------
   Flow
   -------------------------------------------------------------------------- */

.ai-flow {
    display: grid;
    grid-template-columns: 1fr 26px 1fr 26px 1fr 26px 1fr;
    gap: 8px;
    align-items: stretch;
    margin-top: 28px;
}

.ai-flow-step {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(100% 100% at 100% 0%, rgba(7, 193, 96, 0.05), transparent 58%),
        rgba(255, 255, 255, 0.018);
}

.ai-flow-num {
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
}

.ai-flow-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-top: 14px;
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--gold);
}

.ai-flow-icon .icon {
    width: 17px;
    height: 17px;
}

.ai-flow-step h3 {
    margin-top: 15px;
    font-size: 15px;
}

.ai-flow-step p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.ai-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    opacity: 0.42;
}

.ai-flow-arrow .icon {
    width: 15px;
    height: 15px;
}

/* --------------------------------------------------------------------------
   Recent works
   -------------------------------------------------------------------------- */

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

.ai-work-card {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        radial-gradient(100% 120% at 100% 0%, rgba(7, 193, 96, 0.06), transparent 58%),
        rgba(255, 255, 255, 0.018);
    transition: transform 0.2s var(--ease), border-color 0.2s;
}

.ai-work-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-line);
}

.ai-work-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ai-work-badge {
    padding: 3px 7px;
    border: 1px solid var(--gold-line);
    border-radius: 4px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 12px;
}

.ai-work-date {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
}

.ai-work-card h3 {
    display: -webkit-box;
    margin-top: 14px;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ai-work-card p {
    display: -webkit-box;
    margin-top: 6px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ai-work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.ai-work-meta span {
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted-2);
    font-size: 12px;
}

.ai-work-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 14px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 650;
}

.ai-work-link .icon {
    width: 13px;
    height: 13px;
}

.ai-empty {
    background: rgba(255, 255, 255, 0.012);
}

.ai-login-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px;
    border: 1px solid var(--gold-line);
    border-radius: 18px;
    background:
        radial-gradient(100% 140% at 100% 0%, rgba(7, 193, 96, 0.12), transparent 60%),
        rgba(255, 255, 255, 0.018);
}

.ai-login-strip h2 {
    margin-top: 5px;
    font-size: 22px;
}

.ai-login-strip p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12.5px;
}

.ai-login-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

/* --------------------------------------------------------------------------
   Coming soon / ad
   -------------------------------------------------------------------------- */

.ai-soon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(90% 130% at 100% 100%, rgba(7, 193, 96, 0.1), transparent 58%),
        rgba(255, 255, 255, 0.016);
}

.ai-soon h2 {
    margin-top: 6px;
    font-size: 24px;
}

.ai-soon p {
    max-width: 620px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.8;
}

.ai-soon-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}

.ai-soon-chips span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
}

.ai-soon-chips .icon {
    width: 12px;
    height: 12px;
    color: var(--gold);
}

.ai-soon-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 220px;
    height: 110px;
    flex: 0 0 auto;
}

.ai-soon-wave {
    width: 9px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--gold), rgba(7, 193, 96, 0.12));
    animation: ai-wave 1.8s ease-in-out infinite;
}

.ai-soon-wave:nth-child(1) {
    height: 28%;
    animation-delay: 0s;
}

.ai-soon-wave:nth-child(2) {
    height: 74%;
    animation-delay: 0.15s;
}

.ai-soon-wave:nth-child(3) {
    height: 48%;
    animation-delay: 0.3s;
}

.ai-soon-wave:nth-child(4) {
    height: 92%;
    animation-delay: 0.45s;
}

.ai-ad-slot {
    margin-top: 18px;
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.012);
}

/* --------------------------------------------------------------------------
   Songwriter studio
   -------------------------------------------------------------------------- */

.ai-studio-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 34px;
    margin-top: 18px;
}

.ai-studio-head h1 {
    margin: 12px 0 14px;
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 750;
    line-height: 1.16;
    letter-spacing: 0.01em;
}

.ai-studio-head p {
    max-width: 680px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.ai-studio-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    padding: 14px 16px;
    border: 1px solid var(--gold-line);
    border-radius: 14px;
    background: var(--gold-soft);
}

.ai-studio-badge-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: rgba(7, 193, 96, 0.16);
    color: var(--gold);
}

.ai-studio-badge-icon .icon {
    width: 18px;
    height: 18px;
}

.ai-studio-badge > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.ai-studio-badge strong {
    font-size: 12.5px;
}

.ai-studio-badge small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.ai-studio-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.ai-studio-steps span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted-2);
    font-size: 12px;
    white-space: nowrap;
}

.ai-studio-steps span.is-active {
    color: var(--gold);
}

.ai-studio-steps b {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
}

.ai-studio-steps i {
    height: 1px;
    flex: 1;
    background: var(--line);
}

.ai-studio-section {
    padding-top: 8px;
}

.ai-studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.ai-studio-main {
    min-width: 0;
}

.ai-song-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-form-block {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(100% 140% at 100% 0%, rgba(255, 255, 255, 0.03), transparent 58%),
        rgba(255, 255, 255, 0.015);
}

.ai-form-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.ai-form-num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid var(--gold-line);
    border-radius: 9px;
    background: var(--gold-soft);
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
}

.ai-form-head h2 {
    font-size: 17px;
    letter-spacing: 0.01em;
}

.ai-form-head p {
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 12px;
}

.ai-field-row {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 16px;
}

.ai-field-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ai-field-foot .field-hint {
    margin: 0;
}

.ai-counter {
    flex: 0 0 auto;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
}

.ai-counter b {
    color: var(--gold);
    font-weight: 600;
}

.ai-subblock {
    margin-top: 18px;
}

.ai-subblock:first-of-type {
    margin-top: 0;
}

.ai-subblock-label {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
}

/* Option cards */

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

.ai-option {
    position: relative;
    display: block;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
    transition: border-color 0.18s, background 0.18s, transform 0.18s var(--ease);
}

.ai-option:hover {
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.ai-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ai-option-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px;
}

.ai-option-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 2px;
    border-radius: 8px;
    background: var(--gold-soft);
    color: var(--gold);
}

.ai-option-icon .icon {
    width: 15px;
    height: 15px;
}

.ai-option strong {
    font-size: 12.5px;
}

.ai-option small {
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.5;
}

.ai-option-check {
    position: absolute;
    top: 9px;
    right: 9px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(10, 16, 32, 0.7);
    color: transparent;
    transition: 0.18s;
}

.ai-option-check .icon {
    width: 10px;
    height: 10px;
}

.ai-option.is-selected {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    box-shadow: 0 0 0 1px rgba(7, 193, 96, 0.1) inset;
}

.ai-option.is-selected .ai-option-check {
    border-color: var(--gold);
    background: var(--gold);
    color: #17130a;
}

.ai-option:has(input:focus-visible),
.ai-chip-option:has(input:focus-visible),
.ai-structure-option:has(input:focus-visible) {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

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

.ai-key-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ai-chip-option {
    position: relative;
    cursor: pointer;
}

.ai-chip-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ai-chip-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.018);
    color: var(--muted);
    font-size: 12px;
    transition: 0.18s;
}

.ai-chip-option:hover span {
    border-color: var(--line-strong);
    color: var(--text-soft);
}

.ai-chip-option.is-selected span {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold);
    font-weight: 650;
}

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

.ai-structure-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.018);
    transition: 0.18s;
}

.ai-structure-option:hover {
    border-color: var(--line-strong);
}

.ai-structure-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ai-structure-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-right: 22px;
}

.ai-structure-body strong {
    font-size: 12.5px;
}

.ai-structure-body small {
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.5;
}

.ai-structure-option.is-selected {
    border-color: var(--gold-line);
    background: var(--gold-soft);
}

.ai-structure-option.is-selected .ai-option-check {
    border-color: var(--gold);
    background: var(--gold);
    color: #17130a;
}

/* BPM */

.ai-bpm-panel {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    padding: 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.014);
}

.ai-bpm-readout {
    flex: 0 0 104px;
    padding-right: 20px;
    border-right: 1px solid var(--line);
    text-align: center;
}

.ai-bpm-readout strong {
    display: block;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 38px;
    line-height: 1;
    letter-spacing: 0.01em;
}

.ai-bpm-readout span {
    display: block;
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 12px;
    letter-spacing: 0.16em;
}

.ai-bpm-slider {
    flex: 1;
    min-width: 220px;
}

.ai-bpm-slider input[type="range"] {
    width: 100%;
    height: 4px;
    accent-color: var(--gold);
    cursor: pointer;
}

.ai-bpm-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 12px;
}

.ai-bpm-presets {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.ai-bpm-preset {
    min-width: 42px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    cursor: pointer;
    transition: 0.18s;
}

.ai-bpm-preset:hover {
    border-color: var(--gold-line);
    color: var(--gold);
}

/* Submit */

.ai-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 4px 0 8px;
}

.ai-submit {
    min-width: 268px;
}

.ai-submit-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.ai-song-form[data-loading="1"] .ai-submit-idle {
    display: none;
}

.ai-song-form[data-loading="1"] .ai-submit-loading {
    display: inline-flex;
}

.ai-song-form[data-loading="1"] .ai-submit {
    cursor: progress;
    opacity: 0.85;
}

.ai-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(23, 19, 10, 0.24);
    border-top-color: #17130a;
    border-radius: 50%;
    animation: ai-spin 0.7s linear infinite;
}

.ai-submit-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted-2);
    font-size: 12px;
}

.ai-submit-note .icon {
    width: 13px;
    height: 13px;
}

/* Sidebar */

.ai-studio-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: calc(var(--header-h) + 18px);
}

.ai-side-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.015);
}

.ai-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.ai-side-head h3 {
    font-size: 14px;
}

.ai-side-head > span {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 6px;
    background: var(--gold-soft);
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
}

.ai-mini-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-mini-work {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border-radius: 8px;
    transition: 0.18s;
}

.ai-mini-work:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ai-mini-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 7px;
    background: var(--gold-soft);
    color: var(--gold);
}

.ai-mini-icon .icon {
    width: 13px;
    height: 13px;
}

.ai-mini-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.ai-mini-copy strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-mini-copy small {
    overflow: hidden;
    color: var(--muted-2);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-mini-work > .icon {
    width: 12px;
    height: 12px;
    color: var(--muted-2);
}

.ai-side-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 8px;
    text-align: center;
}

.ai-side-empty-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold-line);
    border-radius: 11px;
    background: var(--gold-soft);
    color: var(--gold);
}

.ai-side-empty-icon .icon {
    width: 18px;
    height: 18px;
}

.ai-side-empty p {
    margin-top: 9px;
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.7;
}

.ai-tips-card h3 {
    margin: 5px 0 12px;
    font-size: 14px;
}

.ai-tip-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.ai-tip-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--line);
}

.ai-tip-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.ai-tip-list b {
    color: var(--text-soft);
    font-size: 12px;
}

.ai-tip-list span {
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.65;
}

.ai-side-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-side-links .text-link {
    font-size: 12px;
}

/* Upgrade */

.ai-upgrade-card {
    padding: 34px;
    border: 1px solid var(--gold-line);
    border-radius: 18px;
    background:
        radial-gradient(100% 130% at 100% 0%, rgba(7, 193, 96, 0.14), transparent 58%),
        rgba(255, 255, 255, 0.018);
}

.ai-upgrade-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border: 1px solid var(--gold-line);
    border-radius: 15px;
    background: var(--gold-soft);
    color: var(--gold);
}

.ai-upgrade-icon .icon {
    width: 23px;
    height: 23px;
}

.ai-upgrade-card h2 {
    margin-top: 8px;
    font-size: 27px;
}

.ai-upgrade-card > p {
    max-width: 640px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

.ai-upgrade-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.ai-upgrade-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 12.5px;
}

.ai-upgrade-list .icon {
    width: 14px;
    height: 14px;
    color: var(--gold);
}

.ai-upgrade-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Song detail
   -------------------------------------------------------------------------- */

.ai-song-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
    margin-top: 18px;
}

.ai-song-title h1 {
    margin: 12px 0 8px;
    font-size: clamp(32px, 4.2vw, 50px);
    font-weight: 760;
    line-height: 1.16;
    letter-spacing: 0.01em;
}

.ai-song-theme {
    color: var(--muted);
    font-size: 12.5px;
}

.ai-song-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

.ai-meta-chip {
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 12px;
}

.ai-meta-chip.is-gold {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold);
}

.ai-meta-chip.is-ghost {
    color: var(--muted-2);
}

.ai-song-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 4px;
}

.ai-song-actions form {
    display: inline-flex;
}

.ai-danger {
    color: var(--red);
}

.ai-danger:hover {
    background: var(--red-soft);
    color: var(--red);
}

.ai-song-section {
    padding-top: 10px;
}

.ai-song-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.ai-song-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.ai-paper {
    position: relative;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(100% 130% at 100% 0%, rgba(255, 255, 255, 0.025), transparent 56%),
        rgba(255, 255, 255, 0.015);
}

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

.ai-paper-head h2 {
    margin-top: 4px;
    font-size: 20px;
    letter-spacing: 0.01em;
}

.ai-paper-note {
    color: var(--muted-2);
    font-size: 12px;
    text-align: right;
}

.ai-lyrics {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ai-lyric-block {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.ai-lyric-block:first-child {
    padding-top: 0;
    border-top: 0;
}

.ai-lyric-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-lyric-index {
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.ai-lyric-label strong {
    font-size: 14px;
}

.ai-lyric-label small {
    color: var(--muted-2);
    font-size: 12px;
}

.ai-lyric-lines p {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 2.05;
}

.ai-copy-source {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ai-chord-sections {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-chord-section {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.015);
}

.ai-chord-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.ai-chord-section-head strong {
    min-width: 68px;
    font-size: 12.5px;
}

.ai-chord-progression {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ai-chord-progression span {
    padding: 2px 8px;
    border: 1px solid var(--gold-line);
    border-radius: 4px;
    background: var(--gold-soft);
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
}

.ai-chord-scroll {
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.ai-chord-line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: max-content;
    padding: 3px 0;
}

.ai-chord-line-no {
    width: 15px;
    flex: 0 0 auto;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
}

.ai-chord-cell {
    min-width: 54px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-soft);
    font-family: var(--mono);
    font-size: 12px;
    text-align: center;
}

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

.ai-melody-block {
    min-width: 0;
    padding: 12px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.015);
    scrollbar-width: thin;
}

.ai-melody-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.ai-melody-head strong {
    font-size: 12px;
}

.ai-melody-head span {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
}

.ai-jianpu {
    display: flex;
    gap: 5px;
    min-width: max-content;
}

.ai-note {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
}

.ai-note small {
    position: absolute;
    top: 2px;
    left: 4px;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 7px;
}

.ai-note b {
    margin-top: 6px;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 600;
}

.ai-note.is-hold {
    background: rgba(255, 255, 255, 0.01);
}

.ai-note.is-hold b {
    color: var(--muted-2);
}

.ai-notes {
    color: var(--text-soft);
    font-size: 12.5px;
    line-height: 1.95;
}

.ai-song-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: calc(var(--header-h) + 18px);
}

.ai-song-aside-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.015);
}

.ai-song-aside-card h3 {
    margin: 5px 0 14px;
    font-size: 15px;
}

.ai-facts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.ai-facts div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--line);
}

.ai-facts div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.ai-facts dt {
    color: var(--muted-2);
    font-size: 12px;
}

.ai-facts dd {
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
    text-align: right;
}

.ai-owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    padding: 4px 8px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 12px;
}

.ai-owner-badge .icon {
    width: 11px;
    height: 11px;
}

.ai-next-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.ai-next-card .btn {
    margin-top: 10px;
}

.ai-disclaimer-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ai-song-aside-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--gold-soft);
    color: var(--gold);
}

.ai-song-aside-icon .icon {
    width: 14px;
    height: 14px;
}

.ai-disclaimer-card p {
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Animation
   -------------------------------------------------------------------------- */

@keyframes ai-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ai-wave {
    0%,
    100% {
        transform: scaleY(0.7);
        opacity: 0.62;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-orbit-ring,
    .ai-soon-wave,
    .ai-spinner {
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .ai-hero-grid {
        gap: 34px;
    }

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

    .ai-flow-arrow {
        display: none;
    }

    .ai-studio-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .ai-song-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }
}

@media (max-width: 920px) {
    .ai-hero-grid {
        grid-template-columns: 1fr;
    }

    .ai-hero-visual {
        max-width: 420px;
        margin: 0 auto;
    }

    .ai-capability-grid {
        grid-template-columns: 1fr;
    }

    .ai-capability-card {
        min-height: 0;
    }

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

    .ai-flow {
        grid-template-columns: 1fr 1fr;
    }

    .ai-flow-arrow {
        display: none;
    }

    .ai-studio-grid,
    .ai-song-layout {
        grid-template-columns: 1fr;
    }

    .ai-studio-side,
    .ai-song-aside {
        position: static;
    }

    .ai-studio-head,
    .ai-song-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .ai-studio-badge {
        width: 100%;
    }

    .ai-song-actions {
        width: 100%;
    }

    .ai-song-meta {
        margin-top: 12px;
    }

    .ai-login-strip,
    .ai-soon {
        align-items: flex-start;
        flex-direction: column;
    }

    .ai-soon-visual {
        width: 100%;
        height: 48px;
    }

    .ai-soon-wave {
        width: 7px;
    }
}

@media (max-width: 680px) {
    .ai-hero,
    .ai-studio-hero,
    .ai-song-hero {
        padding-top: 76px;
    }

    .ai-hero-copy h1,
    .ai-studio-head h1,
    .ai-song-title h1 {
        font-size: 32px;
    }

    .ai-hero-actions .btn {
        flex: 1;
    }

    .ai-capability-card,
    .ai-form-block,
    .ai-paper,
    .ai-upgrade-card {
        padding: 18px;
    }

    .ai-field-row,
    .ai-option-grid,
    .ai-style-grid,
    .ai-mood-grid,
    .ai-structure-grid,
    .ai-melody-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ai-option-grid.ai-mood-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ai-work-grid {
        grid-template-columns: 1fr;
    }

    .ai-flow {
        grid-template-columns: 1fr;
    }

    .ai-lyric-block {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ai-lyric-label {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .ai-bpm-panel {
        gap: 14px;
    }

    .ai-bpm-readout {
        flex: 0 0 84px;
        padding-right: 14px;
    }

    .ai-bpm-readout strong {
        font-size: 30px;
    }

    .ai-submit {
        width: 100%;
        min-width: 0;
    }

    .ai-submit-row {
        gap: 8px;
    }

    .ai-song-meta {
        gap: 5px;
    }

    .ai-paper-note {
        display: none;
    }

    .ai-studio-steps i {
        min-width: 8px;
    }

    .ai-studio-steps span {
        font-size: 12px;
    }
}

@media (max-width: 460px) {
    .ai-field-row,
    .ai-option-grid,
    .ai-style-grid,
    .ai-mood-grid,
    .ai-structure-grid {
        grid-template-columns: 1fr;
    }

    .ai-song-actions .btn {
        flex: 1;
    }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
    @page {
        margin: 14mm;
    }

    body {
        background: #fff !important;
        color: #111 !important;
    }

    .site-header,
    .site-footer,
    .skip-link,
    .flash-stack,
    .ai-song-actions,
    .ai-song-aside,
    .ai-hero-glow,
    .breadcrumb,
    .ai-copy-source {
        display: none !important;
    }

    .ai-song-hero {
        padding: 0 0 18px;
        background: #fff !important;
    }

    .ai-song-head {
        display: block;
        margin: 0;
    }

    .ai-song-title h1,
    .ai-paper-head h2,
    .ai-lyric-lines p,
    .ai-notes,
    .ai-facts dd,
    .ai-lyric-label strong {
        color: #111 !important;
    }

    .ai-song-theme,
    .ai-paper-note,
    .ai-lyric-label small,
    .ai-facts dt {
        color: #555 !important;
    }

    .ai-song-section {
        padding: 0;
    }

    .ai-song-layout {
        display: block;
    }

    .ai-song-main {
        gap: 10px;
    }

    .ai-paper {
        padding: 14px 0;
        border: 0;
        border-top: 1px solid #ddd;
        border-radius: 0;
        background: #fff !important;
        box-shadow: none;
        break-inside: avoid;
    }

    .ai-meta-chip {
        border-color: #bbb;
        color: #333;
    }

    .ai-meta-chip.is-gold {
        background: #f6edda;
        color: #6b4a0c;
    }

    .ai-chord-section,
    .ai-melody-block {
        border-color: #ddd;
        background: #fff;
        break-inside: avoid;
    }

    .ai-chord-scroll,
    .ai-melody-block {
        overflow: visible !important;
    }

    .ai-chord-line,
    .ai-jianpu {
        flex-wrap: wrap;
        min-width: 0;
    }

    .ai-chord-progression span {
        border-color: #c9a34a;
        background: #faf3e2;
        color: #6b4a0c;
    }

    .ai-chord-cell,
    .ai-note {
        border-color: #ccc;
        background: #fff;
        color: #222;
    }

    .ai-note b {
        color: #333;
    }

    a {
        color: #111;
        text-decoration: none;
    }
}


/* --- publish.css --- */
/* ==========================================================================
   乐谱 / 练习谱发布界面
   ========================================================================== */
.publish-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
    margin-bottom: 24px;
}

.publish-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.publish-side {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.publish-card {
    padding: 22px;
}

.publish-step {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
}

/* 封面上传 */
.cover-upload {
    display: block;
    cursor: pointer;
}

.cover-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.cover-preview {
    display: grid;
    place-items: center;
    min-height: 220px;
    overflow: hidden;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    background:
        radial-gradient(70% 100% at 50% 0%, rgba(255, 255, 255, 0.04), transparent 70%),
        rgba(255, 255, 255, 0.02);
    background-size: cover;
    background-position: center;
    transition: border-color 0.2s;
}

.cover-upload:hover .cover-preview {
    border-color: var(--accent, var(--gold-line));
}

.cover-preview.has-image {
    border-style: solid;
    background-color: var(--surface-solid);
}

.cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--muted-2);
    text-align: center;
}

.cover-placeholder .icon {
    width: 30px;
    height: 30px;
    margin-bottom: 4px;
    color: var(--accent, var(--gold));
}

.cover-placeholder strong {
    color: var(--text-soft);
    font-size: 14px;
}

.cover-placeholder small {
    font-size: 12px;
}

/* SVG 小节编辑器 */
.svg-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.svg-row {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
    overflow: hidden;
}

.svg-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    font-size: 12px;
}

.svg-row textarea {
    display: block;
    width: 100%;
    min-height: 150px;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.65;
    resize: vertical;
    outline: none;
}

.svg-row textarea::placeholder {
    color: var(--muted-2);
}

.svg-editor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
}

/* 列表封面 */
.tab-card-cover-img {
    position: relative;
    z-index: 1;
    display: block;
    width: calc(100% + 30px);
    height: 132px;
    margin: -13px -15px 0;
    object-fit: cover;
}

.tab-card-cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 102px;
    margin: 4px -15px -13px;
    color: var(--muted-2);
    font-size: 12px;
}

.tab-card-cover-placeholder .icon {
    width: 26px;
    height: 26px;
    color: var(--accent, var(--gold));
    opacity: 0.7;
}

.tab-card:hover .tab-card-cover-img {
    transform: scale(1.02);
    transition: transform 0.4s var(--ease);
}

/* 详情封面 */
.tab-hero-cover {
    position: relative;
    width: 100%;
    height: clamp(180px, 26vw, 280px);
    margin: 16px 0 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.tab-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-hero-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(8, 9, 12, 0.7));
}

.practice-score-hero-cover {
    flex: 0 0 96px;
    width: 96px;
    height: 120px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.practice-score-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.practice-score-head-copy {
    flex: 1;
    min-width: 0;
}

.practice-score-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.practice-score-cover.has-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 9, 12, 0.1), rgba(8, 9, 12, 0.65));
}

.practice-score-cover-empty {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--muted-2);
}

.practice-score-cover-empty .icon {
    width: 30px;
    height: 30px;
    opacity: 0.6;
}

.practice-score-cover.has-cover .practice-score-badges {
    position: relative;
    z-index: 2;
}

@media (max-width: 1080px) {
    .publish-layout {
        grid-template-columns: 1fr;
    }

    .publish-side {
        position: static;
    }
}

@media (max-width: 720px) {
    .publish-card {
        padding: 16px;
    }

    .cover-preview {
        min-height: 160px;
    }

    .practice-score-head {
        align-items: flex-start;
    }

    .practice-score-hero-cover {
        width: 72px;
        height: 96px;
        flex-basis: 72px;
    }
}

/* 曲谱详情封面缩略图 */
.tab-detail-cover {
    flex: 0 0 150px;
    width: 150px;
    height: 190px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
}

.tab-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-detail-title {
    flex: 1;
    min-width: 0;
}

@media (max-width: 720px) {
    .tab-detail-cover {
        flex-basis: 92px;
        width: 92px;
        height: 118px;
    }
}

.practice-score-cover-img {
    object-position: center top;
}

.svg-import-button {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.svg-import-button input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}


/* --- theme-v2.css --- */
/* ==========================================================================
   有谱啦啦 · UI v2
   橙红 + 深灰 + 暖浅色；覆盖旧版香槟金 / 冷蓝色
   ========================================================================== */

:root {
    --bg: #141416;
    --bg-soft: #191a1d;
    --surface: rgba(31, 32, 36, 0.92);
    --surface-solid: #1f2024;
    --surface-2: #24262b;
    --surface-3: #2a2c32;
    --line: rgba(255, 255, 255, 0.085);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f7f3ed;
    --text-soft: #ded8d0;
    --muted: #a39d95;
    --muted-2: #7d7770;
    --gold: #07c160;
    --gold-strong: #059a4c;
    --gold-soft: rgba(7, 193, 96, 0.13);
    --gold-line: rgba(7, 193, 96, 0.38);
    --accent: #07c160;
    --accent-strong: #059a4c;
    --accent-soft: rgba(7, 193, 96, 0.13);
    --accent-line: rgba(7, 193, 96, 0.38);
    --green: #45c78c;
    --green-soft: rgba(69, 199, 140, 0.12);
    --red: #ff6f61;
    --red-soft: rgba(255, 111, 97, 0.12);
    --blue: #8a9099;
    --blue-soft: rgba(7, 193, 96, 0.12);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.28);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    --shadow-gold: 0 18px 50px rgba(7, 193, 96, 0.2);
}

html[data-theme="light"] {
    --bg: #f5f1eb;
    --bg-soft: #efe9e1;
    --surface: rgba(255, 253, 249, 0.95);
    --surface-solid: #ffffff;
    --surface-2: #f7f2ea;
    --surface-3: #efe8dd;
    --line: rgba(48, 38, 30, 0.1);
    --line-strong: rgba(48, 38, 30, 0.2);
    --text: #221f1b;
    --text-soft: #3b352e;
    --muted: #6f675e;
    --muted-2: #948b80;
    --gold: #e8502f;
    --gold-strong: #c93f23;
    --gold-soft: rgba(232, 80, 47, 0.1);
    --gold-line: rgba(232, 80, 47, 0.32);
    --accent: #e8502f;
    --accent-strong: #c93f23;
    --accent-soft: rgba(232, 80, 47, 0.1);
    --accent-line: rgba(232, 80, 47, 0.32);
    --green: #1b8c5f;
    --green-soft: rgba(27, 140, 95, 0.1);
    --red: #c84534;
    --red-soft: rgba(200, 69, 52, 0.1);
    --blue: #b06232;
    --blue-soft: rgba(176, 98, 50, 0.1);
    --shadow-sm: 0 10px 26px rgba(61, 45, 32, 0.08);
    --shadow: 0 24px 70px rgba(61, 45, 32, 0.12);
}

body {
    background:
        radial-gradient(1100px 620px at 88% -12%, rgba(7, 193, 96, 0.13), transparent 62%),
        radial-gradient(900px 600px at -5% 8%, rgba(7, 193, 96, 0.08), transparent 60%),
        var(--bg);
    letter-spacing: 0.005em;
}

html[data-theme="light"] body {
    background:
        radial-gradient(1100px 620px at 88% -12%, rgba(232, 80, 47, 0.1), transparent 62%),
        radial-gradient(900px 600px at -5% 8%, rgba(176, 98, 50, 0.07), transparent 60%),
        var(--bg);
}

html[data-theme="light"] body::before {
    background-image:
        linear-gradient(rgba(48, 38, 30, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(48, 38, 30, 0.028) 1px, transparent 1px);
}

::selection {
    background: rgba(7, 193, 96, 0.32);
}

/* 顶部 */
.site-header {
    background: rgba(20, 20, 22, 0.72);
}

.site-header.is-scrolled {
    background: rgba(20, 20, 22, 0.94);
    border-bottom-color: var(--line);
}

html[data-theme="light"] .site-header {
    background: rgba(250, 247, 242, 0.86);
}

html[data-theme="light"] .site-header.is-scrolled {
    background: rgba(250, 247, 242, 0.97);
}

.brand-mark {
    background: linear-gradient(145deg, #4ade80, #059a4c);
    color: #1c0d08;
    box-shadow: 0 10px 24px rgba(7, 193, 96, 0.28);
}

.brand-copy small {
    color: var(--muted-2);
    letter-spacing: 0.22em;
}

.header-vip {
    background: var(--accent-soft);
    border-color: var(--accent-line);
    color: var(--accent);
}

.header-vip.is-active,
.header-vip:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #1b0d08;
}

.text-gradient {
    background: linear-gradient(105deg, #4ade80 0%, #07c160 45%, #059a4c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html[data-theme="light"] .text-gradient {
    background: linear-gradient(105deg, #f07a50 0%, #e8502f 50%, #c93f23 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* 按钮 */
.btn-primary {
    background: linear-gradient(135deg, #22c55e, #059a4c);
    border-color: transparent;
    color: #1d0e08;
    box-shadow: 0 12px 30px rgba(7, 193, 96, 0.22);
}

.btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 16px 36px rgba(7, 193, 96, 0.3);
}

.btn-outline {
    border-color: var(--line-strong);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .btn-ghost:hover {
    background: rgba(48, 38, 30, 0.05);
}

.section-kicker,
.eyebrow,
.gh-eyebrow {
    color: var(--accent);
}

.gh-eyebrow {
    background: var(--accent-soft);
    border-color: var(--accent-line);
}

/* 首页主视觉 */
.gh-hero-glow-a {
    background: radial-gradient(circle, rgba(7, 193, 96, 0.17), transparent 65%);
}

.gh-hero-glow-b {
    background: radial-gradient(circle, rgba(7, 193, 96, 0.12), transparent 65%);
}

.gh-hero h1 {
    letter-spacing: 0.01em;
}

.gh-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(7, 193, 96, 0.1), 0 18px 50px rgba(0, 0, 0, 0.28);
}

.gh-quick a:hover,
.gh-category-chip:hover,
.gh-practice-step:hover {
    border-color: var(--accent-line);
    color: var(--accent);
    background: var(--accent-soft);
}

.gh-sheet-card {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(7, 193, 96, 0.12);
}

.gh-sheet-badge,
.gh-float-icon,
.gh-category-icon,
.gh-step-icon {
    color: var(--accent);
    background: var(--accent-soft);
}

.gh-practice-panel {
    background:
        radial-gradient(90% 130% at 0% 0%, rgba(7, 193, 96, 0.12), transparent 60%),
        linear-gradient(145deg, rgba(32, 33, 37, 0.96), rgba(22, 22, 25, 0.98));
}

.gh-ai-band {
    border-color: rgba(7, 193, 96, 0.22);
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(7, 193, 96, 0.15), transparent 62%),
        radial-gradient(70% 120% at 0% 100%, rgba(7, 193, 96, 0.1), transparent 60%),
        linear-gradient(135deg, #201d1e, #17171a 72%);
}

.gh-ai-tag,
.gh-ai-bars span {
    color: var(--accent);
    background: linear-gradient(180deg, var(--accent), rgba(7, 193, 96, 0.18));
}

.gh-ai-result span {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

.gh-vip-benefits .icon {
    color: var(--accent);
}

/* 卡片与筛选 */
.tab-card,
.practice-score-card,
.lesson-card,
.plan-card,
.content-card,
.filter-card,
.gh-community-col {
    border-color: var(--line);
    background: var(--surface);
}

.tab-card:hover,
.lesson-card:hover {
    border-color: var(--accent-line);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

.filter-chip.is-active,
.filter-tab.is-active,
.practice-type-badge.type-fingerstyle {
    color: var(--accent);
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.plan-card.is-featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-gold);
}

.plan-badge {
    background: linear-gradient(135deg, #4ade80, #059a4c);
    color: #1d0e08;
}

/* 详情谱面 */
.tab-paper {
    border-color: var(--line);
}

.tab-detail-hero,
.tab-hero,
.page-hero,
.practice-hero {
    background:
        radial-gradient(900px 480px at 88% -20%, rgba(7, 193, 96, 0.1), transparent 66%),
        rgba(255, 255, 255, 0.008);
}

.sheet-count-badge,
.practice-pattern-badge {
    color: var(--accent);
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.sheet-density button.is-active {
    color: var(--accent);
    background: var(--accent-soft);
}

/* 会员中心 */
.dashboard-hero {
    background:
        radial-gradient(800px 420px at 82% 0%, rgba(7, 193, 96, 0.16), transparent 62%),
        linear-gradient(180deg, #1b1a1c, #141416);
}

html[data-theme="light"] .dashboard-hero {
    background:
        radial-gradient(800px 420px at 82% 0%, rgba(232, 80, 47, 0.12), transparent 62%),
        linear-gradient(180deg, #fbf7f1, #f5f1eb);
}

.vip-dashboard-card {
    border-color: var(--accent-line);
    background:
        radial-gradient(100% 130% at 100% 0%, rgba(7, 193, 96, 0.18), transparent 55%),
        linear-gradient(135deg, #2a1b17, #1b1a1d 70%);
}

.vip-dashboard-card.is-active {
    box-shadow: 0 24px 70px rgba(7, 193, 96, 0.18);
}

.vip-state.is-on,
.vip-progress span {
    background: var(--accent);
    color: #1b0d08;
}

.vip-emblem {
    color: #1b0d08;
    background: linear-gradient(135deg, #4ade80, #059a4c);
}

.stat-card,
.quick-card a,
.order-list-item {
    border-color: var(--line);
}

.stat-card:hover {
    border-color: var(--accent-line);
}

.quick-card a:hover {
    background: var(--accent-soft);
}

.quick-card a > span {
    color: var(--accent);
    background: var(--accent-soft);
}

/* 发布 / 表单 */
.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-filter-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

.cover-preview,
.svg-row {
    border-color: var(--line-strong);
}

.publish-step {
    border-color: var(--accent-line);
    color: var(--accent);
    background: var(--accent-soft);
}

.switch input:checked + i {
    background: var(--accent);
}

.tag-checkbox input:checked + span {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

/* 后台 */
.admin-sidebar {
    background: #111214;
    border-right-color: var(--line);
}

.admin-nav-summary.is-active,
.admin-nav-sublink.is-active {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

.admin-nav-sublink.is-active .admin-nav-dot {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.admin-subnav-link.is-active {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

.admin-subnav-link em,
.nav-badge {
    background: var(--accent);
    color: #1b0d08;
}

.admin-stat-card,
.admin-card {
    border-color: var(--line);
}

.admin-stat-gold {
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(7, 193, 96, 0.16), transparent 60%),
        var(--surface);
}

.admin-stat-card strong,
.admin-stat-top span {
    color: var(--accent);
}

.admin-topbar {
    background: rgba(20, 20, 22, 0.9);
}

html[data-theme="light"] .admin-sidebar {
    background: #1d1c1f;
}

html[data-theme="light"] .admin-body {
    background: var(--bg);
}

/* 登录 / 注册 */
.auth-section {
    background:
        radial-gradient(900px 500px at 85% 0%, rgba(7, 193, 96, 0.13), transparent 62%),
        var(--bg);
}

.auth-logo {
    color: #1b0d08;
    background: linear-gradient(135deg, #4ade80, #059a4c);
}

/* 广告与提示色 */
.ad-flag {
    color: var(--accent);
    border-color: var(--accent-line);
}

.notice-bar {
    background: linear-gradient(90deg, rgba(7, 193, 96, 0.12), rgba(7, 193, 96, 0.02));
}

.notice-dot,
.live-dot {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* 滚动条 */
::-webkit-scrollbar-thumb {
    background: rgba(7, 193, 96, 0.3);
}

@media (max-width: 720px) {
    .gh-hero h1 {
        letter-spacing: 0.01em;
    }
}

/* 统一去掉残留冷蓝色块 */
.gh-sheet-card {
    background: linear-gradient(160deg, #2a211e, #171619);
}

.ad-card--plain .ad-card-link {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(7, 193, 96, 0.16), transparent 58%),
        radial-gradient(90% 120% at 0% 100%, rgba(7, 193, 96, 0.08), transparent 60%),
        linear-gradient(135deg, #24201f, #17171a 72%) !important;
}

.tab-card-cover,
.practice-score-cover {
    background:
        radial-gradient(120% 150% at 80% 0%, rgba(7, 193, 96, 0.14), transparent 58%),
        linear-gradient(135deg, #26201d, #171619);
}

.tab-card-cover-img {
    object-position: center top;
}

.practice-player,
.practice-tab-card,
.practice-score-card,
.practice-score-cover {
    border-color: var(--line);
}

.practice-player {
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(7, 193, 96, 0.1), transparent 60%),
        linear-gradient(150deg, #24201f, #171619);
}

.practice-player .practice-play {
    background: linear-gradient(135deg, #22c55e, #059a4c);
    color: #1b0d08;
}

.ad-flag,
.notice-bar,
.gh-eyebrow {
    border-color: var(--accent-line);
}

.admin-tab-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.admin-tab-thumb {
    width: 34px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    flex: 0 0 auto;
}

.ad-card--plain .ad-card-title {
    color: #f7f3ed !important;
}

.ad-card--plain .ad-card-subtitle {
    color: #c9c1b7 !important;
}

.ad-card--plain .ad-flag,
.ad-card--plain .ad-card-sponsor {
    color: #3ddc84 !important;
}

/* 谱面容器：去掉旧版深蓝 */
.tab-paper {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 30%),
        #17161a;
}

.score-practice {
    background:
        radial-gradient(600px 120px at 100% 0%, rgba(7, 193, 96, 0.09), transparent 60%),
        rgba(255, 255, 255, 0.022);
}

.tab-paper-toolbar {
    background: rgba(255, 255, 255, 0.025);
}

html[data-theme="light"] .gh-search,
html[data-theme="light"] .tab-search {
    background: #ffffff;
    border-color: var(--line-strong);
    box-shadow: 0 14px 34px rgba(61, 45, 32, 0.08);
}

html[data-theme="light"] .gh-search input,
html[data-theme="light"] .tab-search input {
    color: var(--text);
}

html[data-theme="light"] .gh-search input::placeholder,
html[data-theme="light"] .tab-search input::placeholder {
    color: var(--muted-2);
}

/* 浅色模式下保持会员黑卡内的浅色文字 */
html[data-theme="light"] .vip-dashboard-card {
    color: #f7f3ed;
}

html[data-theme="light"] .vip-dashboard-card .vip-dashboard-title h2,
html[data-theme="light"] .vip-dashboard-card .vip-dashboard-meta strong,
html[data-theme="light"] .vip-dashboard-card .vip-progress-label strong {
    color: #f7f3ed;
}

html[data-theme="light"] .vip-dashboard-card .vip-dashboard-meta small,
html[data-theme="light"] .vip-dashboard-card .vip-progress-label span,
html[data-theme="light"] .vip-dashboard-card .vip-dashboard-note {
    color: rgba(247, 243, 237, 0.58);
}

html[data-theme="light"] .tab-paper {
    background: #ffffff;
    border-color: var(--line-strong);
}

html[data-theme="light"] .tab-paper-toolbar,
html[data-theme="light"] .score-practice {
    background: #f8f3ec;
}

html[data-theme="light"] .score-practice {
    border-bottom-color: var(--line);
}

/* 浅色模式下练习鼓机卡片保持深色底 + 浅色文字 */
html[data-theme="light"] .practice-player {
    color: #f7f3ed;
}

html[data-theme="light"] .practice-player p,
html[data-theme="light"] .practice-player .practice-hint,
html[data-theme="light"] .practice-player .practice-status {
    color: rgba(247, 243, 237, 0.7);
}

html[data-theme="light"] .practice-player .practice-control {
    color: rgba(247, 243, 237, 0.8);
}

/* ========== 浅色模式可读性修正 ========== */
html[data-theme="light"] {
    --muted: #5f574e;
    --muted-2: #746b60;
    --text-soft: #332d27;
}

html[data-theme="light"] .alert {
    color: var(--text);
}

html[data-theme="light"] .alert strong {
    color: var(--text);
}

html[data-theme="light"] .alert p {
    color: var(--muted);
}

html[data-theme="light"] .alert-info {
    border-color: #c8d8ef;
    background: #f1f6fd;
}

html[data-theme="light"] .alert-success {
    border-color: #b9e3d0;
    background: #eefaf4;
}

html[data-theme="light"] .alert-warning {
    border-color: #edd8b4;
    background: #fff8e9;
}

html[data-theme="light"] .alert-error {
    border-color: #efc4bd;
    background: #fff3f0;
}

html[data-theme="light"] .filter-tab {
    border-color: var(--line);
    background: #f8f3ec;
    color: var(--muted);
}

html[data-theme="light"] .filter-tab:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

html[data-theme="light"] .filter-tab.is-active {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

html[data-theme="light"] .tag-checkbox span {
    border-color: var(--line-strong);
    background: #f8f3ec;
    color: var(--text-soft);
}

html[data-theme="light"] .tag-checkbox input:checked + span {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

html[data-theme="light"] .field-hint,
html[data-theme="light"] .table-sub,
html[data-theme="light"] .admin-table-sub {
    color: var(--muted);
}

html[data-theme="light"] .coupon-row .input-wrap input {
    border-color: var(--line-strong);
    background: #ffffff;
    color: var(--text);
}

html[data-theme="light"] .coupon-row .input-wrap input::placeholder {
    color: var(--muted-2);
}

html[data-theme="light"] .coupon-card small,
html[data-theme="light"] .coupon-meta {
    color: var(--muted);
}

html[data-theme="light"] .tab-card-meta,
html[data-theme="light"] .tab-card-summary,
html[data-theme="light"] .practice-score-meta {
    color: var(--muted);
}

html[data-theme="light"] .card-head p,
html[data-theme="light"] .section-head p,
html[data-theme="light"] .page-heading p {
    color: var(--muted);
}

input[type="range"] {
    accent-color: var(--accent);
}

/* 浅色模式二级文字再提一档 */
html[data-theme="light"] {
    --muted: #514a42;
    --muted-2: #6d645a;
    --text-soft: #2f2a25;
}

html[data-theme="light"] .field-hint {
    color: var(--muted);
    font-size: 12px;
}

html[data-theme="light"] .filter-tab {
    color: var(--text-soft);
    font-weight: 600;
}

html[data-theme="light"] .filter-tab.is-active {
    color: var(--accent);
}

html[data-theme="light"] .tag-checkbox span {
    color: var(--text-soft);
    font-weight: 500;
}

html[data-theme="light"] .footer-main,
html[data-theme="light"] .footer-main a,
html[data-theme="light"] .footer-copy {
    color: var(--muted);
}

html[data-theme="light"] .footer-main a:hover {
    color: var(--accent);
}

/* 后台深色表单：标签与辅助文字提高对比 */
.admin-form .field label,
.admin-card .field label {
    color: var(--text);
}

.admin-form .field-hint,
.admin-card .field-hint,
.admin-form .card-head p,
.admin-card .card-head p {
    color: var(--muted);
}

.admin-table th {
    color: var(--text-soft);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted-2);
    opacity: 1;
}

/* 结算页会员摘要卡：深灰底必须配浅色字 */
.checkout-plan-card {
    border-color: var(--accent-line);
    background:
        radial-gradient(100% 90% at 100% 0%, rgba(7, 193, 96, 0.18), transparent 58%),
        linear-gradient(145deg, #2b1c18, #1b1a1d 72%);
    color: #f7f3ed;
}

.checkout-plan-card h2,
.checkout-plan-price strong {
    color: #f7f3ed;
}

.checkout-plan-card > p,
.checkout-plan-price small {
    color: rgba(247, 243, 237, 0.68);
}

.checkout-plan-card .plan-features li {
    color: rgba(247, 243, 237, 0.86);
}

.checkout-plan-card .plan-features li::before {
    color: var(--accent);
}

html[data-theme="light"] .checkout-plan-card {
    color: #f7f3ed;
}


/* --- theme-fresh.css --- */
/* ==========================================================================
   有谱啦啦 · WeChat Green Theme
   微信绿主色 + 黑白浅灰 / 深灰
   加载于 theme-v2.css 之后
   ========================================================================== */

:root {
    --bg: #0f1112;
    --bg-soft: #16181a;
    --surface: rgba(27, 29, 31, 0.94);
    --surface-solid: #1b1d1f;
    --surface-2: #222528;
    --surface-3: #282b2e;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #f5f6f7;
    --text-soft: #e3e5e8;
    --muted: #a9aeb5;
    --muted-2: #8a9099;
    --gold: #07c160;
    --gold-strong: #059a4c;
    --gold-soft: rgba(7, 193, 96, 0.13);
    --gold-line: rgba(7, 193, 96, 0.38);
    --accent: #07c160;
    --accent-strong: #059a4c;
    --accent-soft: rgba(7, 193, 96, 0.13);
    --accent-line: rgba(7, 193, 96, 0.38);
    --green: #07c160;
    --green-soft: rgba(7, 193, 96, 0.12);
    --red: #e5484d;
    --red-soft: rgba(229, 72, 77, 0.12);
    --blue: #07c160;
    --blue-soft: rgba(7, 193, 96, 0.12);
    --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.3);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
    --shadow-gold: 0 18px 50px rgba(7, 193, 96, 0.2);
}

html[data-theme="light"] {
    --bg: #f7f8f9;
    --bg-soft: #eef0f2;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-solid: #ffffff;
    --surface-2: #f2f3f5;
    --surface-3: #e8eaed;
    --line: rgba(0, 0, 0, 0.1);
    --line-strong: rgba(0, 0, 0, 0.19);
    --text: #1b1f23;
    --text-soft: #343a40;
    --muted: #61676f;
    --muted-2: #7a8088;
    --gold: #07c160;
    --gold-strong: #059a4c;
    --gold-soft: rgba(7, 193, 96, 0.1);
    --gold-line: rgba(7, 193, 96, 0.3);
    --accent: #07c160;
    --accent-strong: #059a4c;
    --accent-soft: rgba(7, 193, 96, 0.1);
    --accent-line: rgba(7, 193, 96, 0.3);
    --green: #07c160;
    --green-soft: rgba(7, 193, 96, 0.1);
    --red: #d93f3f;
    --red-soft: rgba(217, 63, 63, 0.1);
    --blue: #07c160;
    --blue-soft: rgba(7, 193, 96, 0.1);
    --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.07);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.11);
}

body {
    background:
        radial-gradient(1100px 650px at 88% -10%, rgba(7, 193, 96, 0.13), transparent 60%),
        radial-gradient(900px 620px at -5% 8%, rgba(7, 193, 96, 0.09), transparent 62%),
        var(--bg);
}

html[data-theme="light"] body {
    background:
        radial-gradient(1100px 650px at 88% -10%, rgba(7, 193, 96, 0.05), transparent 60%),
        radial-gradient(900px 620px at -5% 8%, rgba(7, 193, 96, 0.04), transparent 62%),
        var(--bg);
}

html[data-theme="light"] body::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.026) 1px, transparent 1px);
}

::selection {
    background: rgba(7, 193, 96, 0.24);
}

/* 顶部导航 */
.site-header {
    background: rgba(15, 17, 18, 0.76);
}

.site-header.is-scrolled {
    background: rgba(15, 17, 18, 0.95);
}

html[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.84);
}

html[data-theme="light"] .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
}

.brand-mark {
    background: linear-gradient(145deg, #4ade80, #07c160);
    box-shadow: 0 10px 24px rgba(7, 193, 96, 0.24);
}

.header-vip {
    background: rgba(7, 193, 96, 0.08);
    border-color: rgba(7, 193, 96, 0.28);
    color: var(--accent);
}

.text-gradient {
    background: linear-gradient(105deg, #4ade80 0%, #07c160 48%, #059a4c 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-theme="light"] .text-gradient {
    background: linear-gradient(105deg, #4ade80 0%, #07c160 48%, #059a4c 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* 按钮 */
.btn-primary {
    background: linear-gradient(135deg, #22c55e, #06ad56);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(7, 193, 96, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 16px 38px rgba(7, 193, 96, 0.28);
}

/* 首页主视觉 */
.gh-hero-glow-a {
    background: radial-gradient(circle, rgba(7, 193, 96, 0.15), transparent 65%);
}

.gh-hero-glow-b {
    background: radial-gradient(circle, rgba(7, 193, 96, 0.12), transparent 65%);
}

.gh-eyebrow {
    background: rgba(7, 193, 96, 0.08);
    border-color: rgba(7, 193, 96, 0.24);
}

.gh-search {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .gh-search {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

.gh-search:focus-within {
    border-color: rgba(7, 193, 96, 0.5);
    box-shadow: 0 0 0 4px rgba(7, 193, 96, 0.08), 0 18px 44px rgba(0, 0, 0, 0.1);
}

.gh-quick a:hover,
.gh-category-chip:hover,
.gh-practice-step:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

.gh-sheet-card {
    border-color: rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(110% 90% at 100% 0%, rgba(7, 193, 96, 0.13), transparent 55%),
        linear-gradient(155deg, #1b1d1f, #101214 72%);
    box-shadow: 0 38px 90px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(7, 193, 96, 0.08);
}

.gh-sheet-badge,
.gh-float-icon,
.gh-category-icon,
.gh-step-icon {
    color: var(--accent);
    background: var(--accent-soft);
}

.gh-practice-panel {
    background:
        radial-gradient(90% 130% at 0% 0%, rgba(7, 193, 96, 0.12), transparent 60%),
        radial-gradient(80% 120% at 100% 100%, rgba(7, 193, 96, 0.09), transparent 60%),
        linear-gradient(145deg, rgba(27, 29, 31, 0.96), rgba(16, 18, 20, 0.98));
}

.gh-ai-band {
    border-color: rgba(7, 193, 96, 0.18);
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(7, 193, 96, 0.13), transparent 62%),
        radial-gradient(70% 120% at 0% 100%, rgba(7, 193, 96, 0.12), transparent 62%),
        linear-gradient(135deg, #1b1d1f, #101214 72%);
}

.gh-ai-tag,
.gh-ai-bars span {
    color: var(--accent);
    background: linear-gradient(180deg, var(--accent), rgba(7, 193, 96, 0.16));
}

.gh-ai-result span {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

/* 卡片、筛选与标签 */
.tab-card,
.practice-score-card,
.lesson-card,
.plan-card,
.content-card,
.filter-card,
.gh-community-col {
    border-color: var(--line);
    background: var(--surface);
}

.tab-card:hover,
.lesson-card:hover {
    border-color: var(--accent-line);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.1);
}

.filter-chip.is-active,
.filter-tab.is-active,
.practice-type-badge.type-fingerstyle {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

html[data-theme="light"] .filter-tab {
    background: #f2f3f5;
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-soft);
}

html[data-theme="light"] .filter-tab:hover,
html[data-theme="light"] .filter-tab.is-active {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

.plan-card.is-featured {
    border-color: var(--accent-line);
    background:
        radial-gradient(90% 100% at 100% 0%, rgba(7, 193, 96, 0.1), transparent 60%),
        var(--surface-solid);
    box-shadow: var(--shadow-gold);
}

.plan-badge {
    background: linear-gradient(135deg, #4ade80, #06ad56);
    color: #ffffff;
}

/* 谱面容器 */
.tab-paper {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 30%),
        #1b1d1f;
}

html[data-theme="light"] .tab-paper {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] .tab-paper-toolbar,
html[data-theme="light"] .score-practice {
    background: #ffffff;
}

.score-practice {
    background:
        radial-gradient(600px 120px at 100% 0%, rgba(7, 193, 96, 0.08), transparent 60%),
        rgba(255, 255, 255, 0.022);
}

html[data-theme="light"] .score-practice {
    background:
        radial-gradient(600px 120px at 100% 0%, rgba(7, 193, 96, 0.07), transparent 60%),
        #ffffff;
}

/* 会员中心 */
.dashboard-hero {
    background:
        radial-gradient(800px 430px at 82% 0%, rgba(7, 193, 96, 0.14), transparent 62%),
        radial-gradient(700px 430px at 0% 30%, rgba(7, 193, 96, 0.09), transparent 60%),
        linear-gradient(180deg, #1b1d1f, #0f1112);
}

html[data-theme="light"] .dashboard-hero {
    background:
        radial-gradient(800px 430px at 82% 0%, rgba(7, 193, 96, 0.1), transparent 62%),
        radial-gradient(700px 430px at 0% 30%, rgba(7, 193, 96, 0.1), transparent 60%),
        linear-gradient(180deg, #f7f8f9, #f7f8f9);
}

.vip-dashboard-card {
    border-color: rgba(7, 193, 96, 0.3);
    background:
        radial-gradient(100% 130% at 100% 0%, rgba(7, 193, 96, 0.16), transparent 55%),
        radial-gradient(80% 100% at 0% 100%, rgba(7, 193, 96, 0.1), transparent 60%),
        linear-gradient(135deg, #1b1d1f, #16181a 72%);
}

.vip-emblem {
    background: linear-gradient(135deg, #4ade80, #06ad56);
}

.vip-state.is-on,
.vip-progress span {
    background: var(--accent);
}

/* 练习鼓机 / 结算摘要：深色块保留，但改成清新深青 */
.practice-player {
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(7, 193, 96, 0.1), transparent 60%),
        radial-gradient(80% 120% at 0% 100%, rgba(7, 193, 96, 0.09), transparent 60%),
        linear-gradient(150deg, #1b1d1f, #101214);
}

.checkout-plan-card {
    border-color: rgba(7, 193, 96, 0.3);
    background:
        radial-gradient(100% 90% at 100% 0%, rgba(7, 193, 96, 0.16), transparent 58%),
        radial-gradient(80% 100% at 0% 100%, rgba(7, 193, 96, 0.1), transparent 58%),
        linear-gradient(145deg, #1b1d1f, #16181a 72%);
}

/* 广告深色卡使用深灰；浅色模式使用浅灰 */
.ad-card--plain .ad-card-link {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(7, 193, 96, 0.15), transparent 58%),
        radial-gradient(90% 120% at 0% 100%, rgba(7, 193, 96, 0.1), transparent 60%),
        linear-gradient(135deg, #1b1d1f, #0f1112 72%) !important;
}

html[data-theme="light"] .ad-card--plain .ad-card-link {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(7, 193, 96, 0.12), transparent 58%),
        radial-gradient(90% 120% at 0% 100%, rgba(7, 193, 96, 0.13), transparent 60%),
        linear-gradient(135deg, #f7f8f9, #f7f8f9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .ad-card--plain .ad-card-title {
    color: var(--text) !important;
}

html[data-theme="light"] .ad-card--plain .ad-card-subtitle {
    color: var(--muted) !important;
}

html[data-theme="light"] .ad-card--plain .ad-flag,
html[data-theme="light"] .ad-card--plain .ad-card-sponsor {
    color: var(--accent) !important;
}

/* 封面占位与上传区使用浅灰 */
.tab-card-cover,
.practice-score-cover {
    background:
        radial-gradient(120% 150% at 80% 0%, rgba(7, 193, 96, 0.1), transparent 58%),
        linear-gradient(135deg, #f2f3f5, #f7f8f9);
}

html[data-theme="dark"] .tab-card-cover,
html[data-theme="dark"] .practice-score-cover,
:root:not([data-theme="light"]) .tab-card-cover,
:root:not([data-theme="light"]) .practice-score-cover {
    background:
        radial-gradient(120% 150% at 80% 0%, rgba(7, 193, 96, 0.12), transparent 58%),
        linear-gradient(135deg, #1b1d1f, #101214);
}

.cover-preview {
    background:
        radial-gradient(70% 100% at 50% 0%, rgba(7, 193, 96, 0.05), transparent 70%),
        rgba(255, 255, 255, 0.02);
}

html[data-theme="light"] .cover-preview {
    background:
        radial-gradient(70% 100% at 50% 0%, rgba(7, 193, 96, 0.06), transparent 70%),
        #ffffff;
}

.publish-step {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

/* 后台深色控制台使用深灰 */
.admin-sidebar {
    background: #101214;
}

.admin-topbar {
    background: rgba(15, 17, 18, 0.92);
}

.admin-body {
    background: var(--bg);
}

/* 页脚 */
.site-footer {
    background:
        radial-gradient(700px 300px at 90% 0%, rgba(7, 193, 96, 0.06), transparent 65%),
        var(--bg-soft);
}

/* 移动端 */
@media (max-width: 720px) {
    html[data-theme="light"] body {
        background:
            radial-gradient(700px 420px at 100% 0%, rgba(7, 193, 96, 0.08), transparent 62%),
            radial-gradient(600px 400px at 0% 20%, rgba(7, 193, 96, 0.09), transparent 62%),
            var(--bg);
    }
}

/* 浅色模式下所有表单控件统一白底深字，避免黑底黑字 */
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.16);
    color: var(--text);
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: var(--muted-2);
    opacity: 1;
}

html[data-theme="light"] select option {
    background: #ffffff;
    color: var(--text);
}

html[data-theme="light"] .sort-form label {
    color: var(--muted);
    font-weight: 600;
}

html[data-theme="light"] .sort-form select {
    min-height: 36px;
    background: #ffffff;
    color: var(--text);
    border-color: rgba(0, 0, 0, 0.16);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* 微信绿点缀 */
html[data-theme="light"] .tab-hero-stats strong,
html[data-theme="light"] .gh-stats strong {
    color: var(--text);
}

html[data-theme="light"] .tab-category,
html[data-theme="light"] .difficulty-pill.diff-beginner,
html[data-theme="light"] .status-pill.status-paid {
    border-color: rgba(7, 193, 96, 0.24);
    background: rgba(7, 193, 96, 0.1);
    color: #059a4c;
}

html[data-theme="light"] .mini-badge {
    border-color: rgba(7, 193, 96, 0.22);
    background: rgba(7, 193, 96, 0.09);
    color: #059a4c;
}

/* 浅色广告位：浅灰底 + 微信绿强调 */
html[data-theme="light"] .ad-card--plain .ad-card-link {
    background:
        radial-gradient(110% 150% at 100% 0%, rgba(7, 193, 96, 0.14), transparent 56%),
        radial-gradient(90% 130% at 0% 100%, rgba(7, 193, 96, 0.16), transparent 62%),
        linear-gradient(135deg, #f2f3f5, #f7f8f9) !important;
    border: 1px solid rgba(7, 193, 96, 0.18);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .ad-card--plain .ad-card-cta {
    border-color: rgba(7, 193, 96, 0.34);
    color: var(--accent);
    background: rgba(255, 255, 255, 0.6);
}

/* 白天：白 / 浅灰底，绿色只做强调，不铺满整页 */
html[data-theme="light"] body {
    background: var(--bg);
}

html[data-theme="light"] .dashboard-hero,
html[data-theme="light"] .tab-detail-hero,
html[data-theme="light"] .tab-hero,
html[data-theme="light"] .page-hero,
html[data-theme="light"] .practice-hero {
    background: linear-gradient(180deg, #fbfcfc, #f4f5f6);
}

html[data-theme="light"] .site-footer {
    background: var(--bg-soft);
}

html[data-theme="light"] .gh-hero-glow-a {
    background: radial-gradient(circle, rgba(7, 193, 96, 0.06), transparent 65%);
}

html[data-theme="light"] .gh-hero-glow-b {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.025), transparent 65%);
}

html[data-theme="light"] .ad-card--plain .ad-card-link {
    background:
        radial-gradient(110% 150% at 100% 0%, rgba(7, 193, 96, 0.1), transparent 56%),
        linear-gradient(135deg, #f3f4f5, #ffffff) !important;
}

html[data-theme="light"] .ad-card--plain .ad-card-link::after {
    opacity: 0.55;
}

/* 深色卡上的绿色小胶囊提高亮度 */
.checkout-plan-card .status-pill,
.vip-dashboard-card .status-pill {
    border-color: rgba(74, 222, 128, 0.36);
    background: rgba(7, 193, 96, 0.16);
    color: #6ee7a0;
}

/* 夜间：深灰黑底为主，绿色只保留轻微氛围 */
html[data-theme="dark"] body {
    background:
        radial-gradient(1100px 650px at 88% -10%, rgba(7, 193, 96, 0.05), transparent 60%),
        radial-gradient(900px 620px at -5% 8%, rgba(7, 193, 96, 0.03), transparent 62%),
        var(--bg);
}

/* 会员中心练习记录 */
.practice-widget-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 16px;
}

.practice-widget-metrics > div {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.practice-widget-metrics strong {
    display: block;
    color: var(--accent);
    font-size: 26px;
    line-height: 1;
    letter-spacing: 0.01em;
}

.practice-widget-metrics span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.practice-widget-empty {
    padding: 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    text-align: center;
}

.practice-widget-list {
    display: flex;
    flex-direction: column;
}

.practice-widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
}

.practice-widget-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
}

.practice-widget-main {
    flex: 1;
    min-width: 0;
}

.practice-widget-main strong {
    display: block;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.practice-widget-main small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.practice-widget-time {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    white-space: nowrap;
}

.practice-widget-item:hover .practice-widget-main strong {
    color: var(--accent);
}

@media (max-width: 600px) {
    .practice-widget-metrics > div {
        padding: 11px;
    }

    .practice-widget-metrics strong {
        font-size: 22px;
    }
}

/* 歌手页 */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.artist-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.artist-card:hover {
    border-color: var(--accent-line);
    transform: translateY(-2px);
}

.artist-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 18px;
    font-weight: 700;
}

.artist-main {
    flex: 1;
    min-width: 0;
}

.artist-main strong,
.artist-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artist-main strong {
    font-size: 13px;
}

.artist-main small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.artist-card > .icon {
    width: 14px;
    height: 14px;
    color: var(--muted-2);
}

@media (max-width: 900px) {
    .artist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .artist-grid {
        grid-template-columns: 1fr;
    }
}

/* 30 天打卡 */
.challenge-hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(700px 360px at 85% 0%, rgba(7, 193, 96, 0.1), transparent 65%),
        var(--bg);
}

.challenge-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.challenge-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(34px, 5vw, 64px);
    letter-spacing: 0.01em;
}

.challenge-hero p {
    max-width: 560px;
    color: var(--muted);
}

.challenge-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.challenge-hero-mark {
    display: grid;
    place-items: center;
    width: 160px;
    height: 160px;
    flex: 0 0 auto;
    border: 1px solid var(--accent-line);
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    text-align: center;
}

.challenge-hero-mark strong {
    display: block;
    font-size: 54px;
    line-height: 1;
}

.challenge-hero-mark span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

.challenge-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.challenge-rules > div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.challenge-rules strong {
    display: block;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 18px;
}

.challenge-rules span {
    display: block;
    margin: 8px 0 4px;
    font-weight: 700;
}

.challenge-rules small {
    color: var(--muted);
    font-size: 12px;
}

.challenge-stats,
.report-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.challenge-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.challenge-stats > div,
.report-stats > div {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.challenge-stats strong,
.report-stats strong {
    display: block;
    color: var(--accent);
    font-size: 34px;
    line-height: 1;
    letter-spacing: 0.01em;
}

.challenge-stats span,
.report-stats span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.challenge-progress-bar {
    height: 8px;
    margin: 0 0 18px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-3);
}

.challenge-progress-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4ade80, #07c160);
}

.challenge-today {
    border-color: var(--accent-line);
}

.challenge-task {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.challenge-task-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.challenge-task-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
}

.challenge-task-main strong,
.challenge-task-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenge-task-main small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 7px;
}

.challenge-day {
    min-height: 58px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--muted);
    text-decoration: none;
}

.challenge-day strong {
    display: block;
    font-family: var(--mono);
    font-size: 12px;
}

.challenge-day span {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenge-day.is-done {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

.challenge-day.is-today {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
    color: var(--text);
}

.challenge-day.is-missed {
    opacity: 0.45;
}

.challenge-leaderboard {
    display: flex;
    flex-direction: column;
}

.challenge-leader-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.challenge-rank {
    width: 22px;
    color: var(--muted);
    font-family: var(--mono);
}

.challenge-leader-row strong {
    flex: 1;
}

.challenge-leader-row > span:last-child {
    color: var(--accent);
    font-size: 12px;
}

.report-list {
    display: flex;
    flex-direction: column;
}

.report-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
}

.report-row-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
}

.report-row-main {
    flex: 1;
    min-width: 0;
}

.report-row-main strong,
.report-row-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-row-main small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.report-row-time {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
}

.report-challenge {
    margin-top: 16px;
}

@media (max-width: 900px) {
    .challenge-rules {
        grid-template-columns: 1fr;
    }

    .challenge-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .report-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .challenge-hero .container {
        align-items: flex-start;
    }

    .challenge-hero-mark {
        width: 100px;
        height: 100px;
    }

    .challenge-hero-mark strong {
        font-size: 34px;
    }

    .challenge-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .challenge-stats > div,
    .report-stats > div {
        padding: 14px;
    }

    .challenge-stats strong,
    .report-stats strong {
        font-size: 26px;
    }

    .challenge-task {
        flex-wrap: wrap;
    }

    .challenge-task form,
    .challenge-task > .btn {
        flex: 1;
    }

    .challenge-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* 专题页 */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.topic-card {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.topic-card:hover {
    border-color: var(--accent-line);
    transform: translateY(-2px);
}

.topic-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
}

.topic-card strong {
    font-size: 18px;
}

.topic-card small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.topic-count {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--accent);
    font-size: 12px;
}

@media (max-width: 900px) {
    .topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .topic-grid {
        grid-template-columns: 1fr;
    }
}

/* 会员中心推荐 */
.recommend-tab-list {
    display: flex;
    flex-direction: column;
}

.recommend-tab {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
}

.recommend-tab-cover {
    width: 38px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 7px;
    object-fit: cover;
    background: var(--surface-2);
}

.recommend-tab-cover-empty {
    display: grid;
    place-items: center;
    color: var(--accent);
    background: var(--accent-soft);
}

.recommend-tab-main {
    flex: 1;
    min-width: 0;
}

.recommend-tab-main strong,
.recommend-tab-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-tab-main strong {
    font-size: 12px;
}

.recommend-tab-main small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.recommend-tab > .icon {
    width: 14px;
    height: 14px;
    color: var(--muted-2);
}

.recommend-tab:hover .recommend-tab-main strong {
    color: var(--accent);
}

/* 求谱悬赏 */
.bounty-box {
    margin: 20px 0;
    padding: 18px;
    border: 1px solid var(--accent-line);
    border-radius: 14px;
    background: var(--accent-soft);
}

.bounty-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bounty-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
}

.bounty-head > div {
    flex: 1;
    min-width: 0;
}

.bounty-head strong {
    display: block;
    font-size: 15px;
}

.bounty-head small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.bounty-submissions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--accent-line);
}

.bounty-submissions h3,
.bounty-submit h3 {
    margin-bottom: 10px;
    font-size: 13px;
}

.bounty-submission {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.bounty-submission-main {
    flex: 1;
    min-width: 0;
}

.bounty-submission-main strong {
    display: block;
    font-size: 12px;
}

.bounty-submission-main small {
    display: block;
    margin: 3px 0;
    color: var(--muted);
    font-size: 12px;
}

.bounty-submission-main p {
    margin: 5px 0;
    color: var(--muted);
    font-size: 12px;
}

.bounty-submit {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--accent-line);
}

.bounty-submit .field {
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .bounty-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .bounty-submission {
        flex-wrap: wrap;
    }
}

/* 新手偏好 */
.narrow-wrap {
    max-width: 760px;
}

.onboarding-form .field {
    margin-bottom: 22px;
}

.onboarding-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.onboarding-option {
    position: relative;
    cursor: pointer;
}

.onboarding-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.onboarding-option span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-soft);
    font-size: 12px;
    transition: 0.18s;
}

.onboarding-option input:checked + span {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.onboarding-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
}

.onboarding-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 16px;
    border: 1px solid var(--accent-line);
    border-radius: 14px;
    background: var(--accent-soft);
}

.onboarding-banner > .icon {
    color: var(--accent);
}

.onboarding-banner div {
    flex: 1;
}

.onboarding-banner strong {
    display: block;
    font-size: 13px;
}

.onboarding-banner p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.bounty-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 4px 9px;
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    white-space: nowrap;
}

/* 可视化制谱工作台 */
.studio-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
    gap: 16px;
    align-items: start;
}

.studio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.studio-palette {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 0 16px;
}

.studio-fret {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text-soft);
    font-family: var(--mono);
    font-size: 12px;
    cursor: pointer;
}

.studio-fret.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.studio-measure {
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-2);
}

.studio-measure-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
    font-size: 12px;
}

.studio-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.studio-string {
    display: flex;
    align-items: center;
    gap: 2px;
}

.studio-string-label {
    width: 14px;
    flex: 0 0 auto;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    text-align: center;
}

.studio-cell {
    width: 100%;
    min-width: 0;
    height: 24px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: rgba(127, 127, 127, 0.07);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    cursor: pointer;
}

.studio-cell:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.studio-cell.has-note {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}

.studio-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 600px;
    overflow: auto;
}

.studio-preview-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.studio-preview-item svg {
    display: block;
    width: 100%;
    height: auto;
}

.studio-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

@media (max-width: 900px) {
    .studio-layout {
        grid-template-columns: 1fr;
    }
}

/* 首页 VIP 套餐：一行三列 */
.gh-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.gh-plans .plan-card {
    height: 100%;
}

@media (max-width: 980px) {
    .gh-plans {
        grid-template-columns: 1fr;
    }
}

/* 首页歌手列表 */
.gh-artist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gh-artist-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.gh-artist-card:hover {
    border-color: var(--accent-line);
    transform: translateY(-1px);
}

.gh-artist-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.gh-artist-main {
    flex: 1;
    min-width: 0;
}

.gh-artist-main strong,
.gh-artist-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gh-artist-main strong {
    font-size: 12px;
}

.gh-artist-main small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.gh-artist-card > .icon {
    width: 14px;
    height: 14px;
    color: var(--muted-2);
}

@media (max-width: 900px) {
    .gh-artist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .gh-artist-grid {
        grid-template-columns: 1fr;
    }
}

.gh-artist-card-all {
    border-style: dashed;
    background: var(--accent-soft);
}

.gh-artist-card-all .gh-artist-avatar {
    background: var(--accent);
    color: #fff;
}

/* 全站内容宽度 */
:root {
    --container: 1400px;
}

/* 全站排版舒适度：字号阶梯 */
:root {
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
        "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --fs-caption: 12px;
    --fs-sm: 13px;
    --fs-body: 16px;
    --fs-lead: 15px;
    --fs-h4: 17px;
    --fs-h3: 20px;
    --fs-h2: clamp(24px, 2.8vw, 34px);
    --fs-h1: clamp(30px, 3.6vw, 42px);
}

body {
    font-size: var(--fs-body);
    line-height: 1.78;
    letter-spacing: 0.006em;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    letter-spacing: 0.01em;
    line-height: 1.3;
}

h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
}

h2 {
    font-size: var(--fs-h2);
    font-weight: 700;
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
    font-size: var(--fs-h4);
}

p,
li,
dd,
blockquote {
    line-height: 1.8;
}

small {
    font-size: var(--fs-caption);
    line-height: 1.6;
}

.section-kicker,
.eyebrow,
.plan-kicker {
    font-size: var(--fs-caption);
    letter-spacing: 0.12em;
}

.section-head p,
.gh-hero-lead {
    font-size: var(--fs-lead);
    line-height: 1.8;
}

.field-hint,
.form-hint,
.muted-text {
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.card-head p {
    font-size: var(--fs-sm);
    line-height: 1.65;
}

.btn {
    font-size: 14px;
    letter-spacing: 0.01em;
}

.btn-sm {
    font-size: var(--fs-sm);
}

.btn-xs {
    font-size: var(--fs-caption);
}

.nav a,
.main-nav a,
.gh-nav a {
    letter-spacing: 0.01em;
}

/* 后台字号 */
.admin-page-head h2 {
    font-size: 26px;
}

.admin-page-head p {
    font-size: 13px;
}

.admin-card-head h3 {
    font-size: 16px;
}

.admin-card-head p {
    font-size: 12px;
    line-height: 1.6;
}

.admin-nav-link,
.admin-nav-summary {
    font-size: 13px;
}

.admin-nav-sublink {
    font-size: 12.5px;
}

.sidebar-label {
    font-size: 12px;
}

.admin-table th {
    font-size: 12px;
}

.admin-table td {
    font-size: 12.5px;
}

.admin-table td small {
    font-size: 12px;
}

.settings-tab {
    font-size: 13px;
}

/* 后台安全 / 数据库 */
.text-warning { color: #b7791f; }
.text-danger { color: #d64545; }
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}
.checkbox-row input {
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
}

/* 后台系统设置分类 */
.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 18px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.settings-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.settings-tab:hover {
    color: var(--text);
}

.settings-tab.is-active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.settings-grid [data-settings-section][hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .settings-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .settings-tab {
        white-space: nowrap;
    }
}

/* 后台白底主题 */
.admin-light {
    --bg: #f5f6f7;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --surface-2: #f7f8fa;
    --surface-3: #eef0f3;
    --line: #e5e7eb;
    --line-strong: #d5d9df;
    --text: #1f2328;
    --text-soft: #3f4752;
    --muted: #667085;
    --muted-2: #8a919c;
    --gold: #07c160;
    --gold-soft: rgba(7, 193, 96, 0.1);
    --gold-line: rgba(7, 193, 96, 0.32);
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
    color: var(--text);
    background: #f5f6f7;
}

.admin-light.admin-body {
    background: #f5f6f7;
}

.admin-light .admin-sidebar {
    border-right-color: #e5e7eb;
    background: #ffffff;
    box-shadow: 8px 0 30px rgba(17, 24, 39, 0.03);
}

.admin-light .admin-topbar {
    border-bottom-color: #e5e7eb;
    background: rgba(255, 255, 255, 0.92);
}

.admin-light .admin-card,
.admin-light .stat-card {
    border-color: #e5e7eb;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.025);
}

.admin-light .admin-card-head p,
.admin-light .admin-page-head p,
.admin-light .sidebar-label,
.admin-light .admin-table th,
.admin-light .admin-table td small {
    color: var(--muted-2);
}

.admin-light .admin-nav-link:hover,
.admin-light .admin-nav-summary:hover,
.admin-light .admin-nav-sublink:hover,
.admin-light .admin-table tbody tr:hover td {
    background: #f2f5f3;
}

.admin-light .admin-nav-link.is-active,
.admin-light .admin-nav-summary.is-active,
.admin-light .admin-nav-sublink.is-active {
    border-color: rgba(7, 193, 96, 0.26);
    background: rgba(7, 193, 96, 0.1);
    color: #059b4c;
}

.admin-light .admin-nav-sub {
    border-left-color: #e5e7eb;
}

.admin-light .admin-table td {
    border-bottom-color: #eef0f3;
}

.admin-light .admin-table th {
    border-bottom-color: #e5e7eb;
}

.admin-light .admin-chip,
.admin-light .status-pill {
    background: #f7f8fa;
}

.admin-light .btn-ghost {
    color: var(--text-soft);
}

.admin-light input,
.admin-light select,
.admin-light textarea {
    border-color: #d5d9df;
    background: #ffffff;
    color: #1f2328;
}

.admin-light input::placeholder,
.admin-light textarea::placeholder {
    color: #98a0ab;
}

.admin-light input:focus,
.admin-light select:focus,
.admin-light textarea:focus {
    border-color: rgba(7, 193, 96, 0.55);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

.admin-light .settings-tabs {
    border-color: #e5e7eb;
    background: #f7f8fa;
}

.admin-light .settings-tab {
    color: #667085;
}

.admin-light .settings-tab.is-active {
    background: #07c160;
    color: #ffffff;
}

.admin-light .admin-nav-summary,
.admin-light .admin-nav-sublink,
.admin-light .admin-nav-link {
    color: #5f6773;
}

.admin-light .admin-nav-link.is-active,
.admin-light .admin-nav-summary.is-active,
.admin-light .admin-nav-sublink.is-active {
    color: #059b4c;
}

.admin-light .admin-brand .brand-copy strong,
.admin-light .admin-page-title h1,
.admin-light .admin-page-title h2,
.admin-light .admin-card-head h3,
.admin-light .admin-page-head h2 {
    color: #1f2328;
}

.admin-light .sidebar-admin,
.admin-light .sidebar-foot {
    border-color: #e5e7eb;
}

/* 后台白底：强制可读对比度 */
.admin-light,
.admin-light .admin-content,
.admin-light .admin-card,
.admin-light .stat-card,
.admin-light .admin-card-head h3,
.admin-light .admin-page-head h2,
.admin-light .admin-page-title h1,
.admin-light .admin-table td,
.admin-light .admin-table-primary,
.admin-light .settings-tab {
    color: #111827;
}

.admin-light .admin-page-title span,
.admin-light .admin-card-head p,
.admin-light .admin-page-head p,
.admin-light .admin-table th,
.admin-light .sidebar-label,
.admin-light .sidebar-site-link,
.admin-light .admin-table td small,
.admin-light .muted-text,
.admin-light .field-hint {
    color: #4b5563;
}

.admin-light .admin-nav-link,
.admin-light .admin-nav-summary,
.admin-light .admin-nav-sublink {
    color: #374151;
}

.admin-light .admin-nav-link.is-active,
.admin-light .admin-nav-summary.is-active,
.admin-light .admin-nav-sublink.is-active {
    color: #047a41;
}

.admin-light .admin-card-head h3,
.admin-light .admin-card-head p,
.admin-light .admin-page-head h2,
.admin-light .admin-page-head p,
.admin-light .admin-table td,
.admin-light .admin-table th,
.admin-light .detail-list span,
.admin-light .detail-list strong {
    opacity: 1;
}

/* 前台阅读字号：比后台更轻、更紧凑 */
.site-body {
    --fs-caption: 12px;
    --fs-sm: 13px;
    --fs-body: 15px;
    --fs-lead: 14.5px;
    --fs-h4: 16px;
    --fs-h3: 19px;
    --fs-h2: clamp(22px, 2.4vw, 32px);
    --fs-h1: clamp(28px, 3.2vw, 38px);
    font-size: var(--fs-body);
    line-height: 1.7;
    letter-spacing: 0;
}

.site-body p,
.site-body li {
    line-height: 1.72;
}

.site-body h1,
.site-body h2 {
    font-weight: 650;
}

.site-body .section-head h2 {
    font-size: clamp(24px, 2.7vw, 34px);
}

.site-body .gh-hero h1 {
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.18;
}

.site-body .section-head p,
.site-body .gh-hero-lead {
    font-size: var(--fs-lead);
    line-height: 1.75;
}

.site-body .tab-card-title-row h3 {
    font-size: 15px;
}

.site-body .tab-card-title-row p {
    margin-top: 3px;
    font-size: 12px;
}

.site-body .tab-card-summary {
    margin: 10px 0;
    font-size: 12px;
    line-height: 1.6;
}

.site-body .tab-card-meta {
    gap: 10px;
    font-size: 12px;
}

.site-body .tab-card-meta .icon {
    width: 12px;
    height: 12px;
}

.site-body .tab-card-tags span {
    font-size: 12px;
}

.site-body .tab-card-cover-top {
    z-index: 3;
}

.site-body .tab-card-cover-top .tab-category,
.site-body .tab-card-cover-top .tab-vip-badge {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.14);
}

.site-body .tab-card-cover-img {
    z-index: 1;
}

.site-body .tab-card {
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
}

/* 谱面卡片：上封面 + 下信息 */
.site-body .tab-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 12px;
}

.site-body .tab-card-cover {
    width: 100%;
    height: 192px;
    min-height: 192px;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
}

.site-body .tab-card-cover.has-cover::before {
    content: "";
    position: absolute;
    inset: -18px;
    z-index: 0;
    background-image: var(--tab-cover);
    background-position: center;
    background-size: cover;
    filter: blur(16px) saturate(0.85);
    opacity: 0.6;
    transform: scale(1.12);
}

.site-body .tab-card-cover.has-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.28));
}

.site-body .tab-card-cover::after {
    display: none;
}

.site-body .tab-card-cover-top {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    z-index: 3;
    gap: 6px;
}

.site-body .tab-card-cover-top .tab-category,
.site-body .tab-card-cover-top .tab-vip-badge {
    padding: 3px 7px;
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.94);
    color: #344054;
    font-size: 12px;
    line-height: 1.2;
    backdrop-filter: blur(8px);
}

.site-body .tab-card-cover-top .tab-vip-badge {
    color: #047a41;
}

.site-body .tab-card-cover-img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center 38%;
}

.site-body .tab-card-cover-placeholder {
    height: 100%;
    min-height: 192px;
    margin: 0;
}

.site-body .tab-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px 16px 14px;
}

.site-body .tab-card-title-row h3 {
    font-size: 15px;
    line-height: 1.45;
}

.site-body .tab-card-title-row > div {
    min-width: 0;
}

.site-body .tab-card-summary {
    margin: 8px 0 10px;
    font-size: 12px;
}

.site-body .tab-card-meta {
    font-size: 12px;
}

.site-body .tab-card-tags {
    margin-top: 9px;
    padding-top: 9px;
}

@media (max-width: 560px) {
    .site-body .tab-card-cover {
        height: 210px;
        min-height: 210px;
    }

    .site-body .tab-card-cover-placeholder {
        min-height: 210px;
    }
}

/* 首页 VIP 轻提示 */
.vip-ribbon {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(7, 193, 96, 0.08), rgba(7, 193, 96, 0.02));
}

.vip-ribbon .container {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.vip-ribbon-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
}

.vip-ribbon-copy {
    flex: 1;
    min-width: 0;
}

.vip-ribbon-copy strong,
.vip-ribbon-copy small {
    display: block;
}

.vip-ribbon-copy strong {
    font-size: 13px;
}

.vip-ribbon-copy small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 560px) {
    .vip-ribbon .container {
        flex-wrap: wrap;
    }

    .vip-ribbon-copy {
        flex: 1 1 calc(100% - 50px);
    }

    .vip-ribbon .btn {
        width: 100%;
    }
}

/* 后台移动端 */
@media (max-width: 720px) {
    .admin-light .admin-content {
        padding: 20px 16px 36px;
    }

    .admin-light .admin-topbar {
        padding: 12px 16px;
    }

    .admin-light .admin-page-head {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px;
    }

    .admin-light .admin-page-head h2 {
        font-size: 22px;
    }

    .admin-light .admin-card {
        padding: 18px 16px;
    }

    .admin-light .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-light .settings-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

@media (max-width: 520px) {
    .admin-light .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-light .admin-card-head {
        flex-wrap: wrap;
    }
}

/* FAQ 独立页 */
.faq-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
}

/* 练习器控制栏 */
.site-body .practice-control,
.site-body .practice-check {
    font-size: 12px;
}

.site-body .practice-player-controls {
    gap: 16px;
}

.site-body .practice-player-controls input[type="number"] {
    min-height: 36px;
    font-size: 13px;
}

.site-body .practice-player-controls input[type="range"] {
    height: 22px;
}

.site-body .practice-player-controls .practice-status {
    font-size: 12px;
}

.site-body .practice-play {
    min-height: 46px;
    padding: 0 22px;
    font-size: 13px;
}

@media (max-width: 720px) {
    .site-body .practice-player {
        padding: 18px;
    }

    .site-body .practice-player-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .site-body .practice-player-controls .practice-status {
        grid-column: 1 / -1;
        margin-left: 0;
        padding-top: 4px;
    }

    .site-body .practice-play {
        width: 100%;
        justify-content: center;
    }
}

/* 后台表格固定表头 */
.admin-light .admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    box-shadow: 0 1px 0 #e5e7eb;
}

.admin-light .admin-table tbody tr:hover td {
    background: #f7faf8;
}

/* 页脚移动端 */
@media (max-width: 460px) {
    .site-body .footer-main {
        grid-template-columns: 1fr;
    }
}

/* 卡片图片加载与按钮层级 */
.site-body .tab-card-cover-img {
    opacity: 1;
    transition: opacity 0.25s ease;
}

.site-body .tab-card-cover-img.is-loaded {
    opacity: 1;
}

.site-body .tab-card-cover.is-cover-error {
    background:
        radial-gradient(120% 150% at 80% 0%, rgba(7, 193, 96, 0.12), transparent 58%),
        #eef1f3;
}

.site-body .btn-primary {
    box-shadow: 0 6px 16px rgba(7, 193, 96, 0.18);
}

html[data-theme="light"] .site-body .btn-outline {
    background: #ffffff;
}

html[data-theme="dark"] .site-body .btn-outline {
    border-color: var(--line-strong);
    background: transparent;
    color: var(--text);
}

.site-body .btn-ghost {
    color: var(--text-soft);
}

.site-body .btn:focus-visible,
.site-body .tab-card:focus-visible {
    outline: 3px solid rgba(7, 193, 96, 0.3);
    outline-offset: 2px;
}

/* 后台批量操作 */
.admin-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
}

.admin-bulk-bar select {
    min-height: 32px;
    padding: 4px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
}

.bulk-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
}

.admin-bulk-bar .field-hint {
    margin: 0;
}

.admin-table input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
}

/* 搜索关键词高亮 */
.site-body mark {
    padding: 0 2px;
    border-radius: 3px;
    background: rgba(7, 193, 96, 0.18);
    color: inherit;
}

/* 移动端底部快捷导航 */
.mobile-tabbar {
    display: none;
}

@media (max-width: 720px) {
    .site-body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }

    .mobile-tabbar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        display: flex;
        justify-content: space-around;
        padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(16px);
    }

    .mobile-tabbar a {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 4px 2px;
        color: var(--muted);
        font-size: 12px;
        text-decoration: none;
    }

    .mobile-tabbar a span {
        display: grid;
        place-items: center;
        width: 24px;
        height: 24px;
        border-radius: 8px;
    }

    .mobile-tabbar a .icon {
        width: 19px;
        height: 19px;
    }

    .mobile-tabbar a.is-active {
        color: var(--accent);
        font-weight: 600;
    }

    .mobile-tabbar a.is-active span {
        background: var(--accent-soft);
    }

    .mobile-tabbar small {
        font-size: 12px;
        line-height: 1.2;
    }
}

/* 封面骨架屏 */
.tab-card-cover-skeleton {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(110deg, #eef1f4 8%, #f8fafb 18%, #eef1f4 33%);
    background-size: 200% 100%;
    animation: tab-skeleton 1.2s linear infinite;
}

.tab-card-cover-img.is-loaded + .tab-card-cover-skeleton {
    display: none;
}

@keyframes tab-skeleton {
    to { background-position-x: -200%; }
}

/* 移动端筛选手风琴 */
.mobile-filter-toggle {
    display: none;
}

@media (max-width: 720px) {
    .mobile-filter-toggle {
        display: inline-flex;
        margin-top: 16px;
    }

    .site-body .tab-filters {
        display: none;
        margin-bottom: 18px;
    }

    .site-body .tab-filters.is-open {
        display: block;
    }

    .site-body .tab-filters .filter-card {
        display: block;
    }

    .site-body .tab-filters .filter-card-head {
        margin-bottom: 8px;
    }
}

/* 统一空状态 */
.site-body .empty-state {
    padding: 34px 22px;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
}

.site-body .empty-state h3 {
    margin-top: 8px;
    font-size: 18px;
}

.site-body .empty-state p {
    max-width: 460px;
    margin: 6px auto 0;
    color: var(--muted);
    font-size: 13px;
}

.site-body .empty-search-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
}

.site-body .empty-search-links a {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--accent);
    text-decoration: none;
}

.site-body .empty-search-links a:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

/* 曲谱详情移动操作栏 */
.mobile-detail-actions {
    display: none;
}

@media (max-width: 720px) {
    .mobile-detail-actions {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 51;
        display: flex;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
    }

    .mobile-detail-actions form {
        display: contents;
    }

    .mobile-detail-action {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 4px 2px;
        border: 0;
        background: transparent;
        color: var(--muted);
        font: inherit;
        font-size: 12px;
        text-decoration: none;
    }

    .mobile-detail-action .icon {
        width: 19px;
        height: 19px;
    }

    .mobile-detail-action.is-active {
        color: var(--accent);
    }

    .mobile-detail-action small {
        font-size: 12px;
    }
}

/* 最近搜索 */
.recent-searches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.recent-searches a {
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-soft);
    text-decoration: none;
}

.recent-searches a:hover {
    border-color: var(--accent-line);
    color: var(--accent);
}

.last-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.last-filter a {
    color: var(--accent);
    text-decoration: none;
}

.last-filter a:hover {
    text-decoration: underline;
}

/* 后台列表缩略图加载骨架 */
.admin-light .admin-tab-thumb {
    background: linear-gradient(110deg, #eef1f4 8%, #f8fafb 18%, #eef1f4 33%);
    background-size: 200% 100%;
    animation: tab-skeleton 1.2s linear infinite;
}

/* AI 实验室排版收口 */
.site-body .ai-hero-copy {
    min-width: 0;
}

.site-body .ai-hero h1 {
    max-width: 820px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.18;
    text-wrap: balance;
}

.site-body .ai-studio-head h1 {
    text-wrap: balance;
}

/* AI 轨道视觉：明暗主题适配 */
html[data-theme="light"] .ai-orbit-large {
    border-color: rgba(7, 193, 96, 0.24);
    background:
        radial-gradient(circle at 50% 50%, rgba(7, 193, 96, 0.14), transparent 58%),
        #ffffff;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.09), inset 0 0 60px rgba(7, 193, 96, 0.04);
}

html[data-theme="light"] .ai-orbit-ring {
    border-color: rgba(7, 193, 96, 0.3);
}

html[data-theme="light"] .ai-orbit-core {
    border-color: rgba(7, 193, 96, 0.35);
    background: radial-gradient(circle, #ffffff, rgba(7, 193, 96, 0.16));
    color: #047a41;
    box-shadow: 0 0 42px rgba(7, 193, 96, 0.18);
}

html[data-theme="light"] .ai-orbit-tag {
    border-color: #e5e7eb;
    background: rgba(255, 255, 255, 0.96);
    color: #344054;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}

html[data-theme="light"] .ai-hero-caption {
    color: #667085;
}

html[data-theme="dark"] .ai-orbit-tag {
    color: #e5e7eb;
}

/* 练习室深色鼓机卡片：固定浅色文字，避免浅色主题下黑字黑底 */
.site-body .practice-drum-copy {
    color: #f4f7ff;
}

.site-body .practice-drum-copy h2 {
    color: #ffffff;
}

.site-body .practice-drum-copy p {
    color: rgba(230, 237, 245, 0.76);
}

.site-body .practice-drum-copy .section-kicker {
    color: #4ade80;
}

/* Header 排版 */
@media (min-width: 961px) {
    .site-body .header-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 28px;
    }

    .site-body .main-nav {
        justify-self: center;
        margin-left: 0;
        padding: 4px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(127, 127, 127, 0.045);
    }

    .site-body .nav-link {
        padding: 7px 15px;
        border-radius: 999px;
        font-size: 13px;
    }

    .site-body .nav-link.is-active {
        background: var(--accent-soft);
        color: var(--accent);
    }

    .site-body .nav-link.is-active::after {
        display: none;
    }

    .site-body .header-actions {
        gap: 8px;
    }
}

/* Footer 排版 */
.site-body .footer-main {
    grid-template-columns: 1.45fr 0.8fr 0.8fr 0.8fr 0.8fr 1.15fr;
    gap: 28px;
    padding: 46px 0 38px;
}

.site-body .footer-brand p {
    max-width: 240px;
    font-size: 12px;
}

.site-body .footer-col h4 {
    font-size: 12px;
    font-weight: 700;
}

.site-body .footer-col a,
.site-body .footer-col p {
    font-size: 12px;
    line-height: 1.75;
}

.site-body .footer-badges span {
    font-size: 12px;
}

.site-body .footer-bottom {
    font-size: 12px;
}

@media (max-width: 1100px) {
    .site-body .footer-main {
        grid-template-columns: 1.35fr repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .site-body .footer-note {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .site-body .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 22px;
        padding: 34px 0 28px;
    }

    .site-body .footer-brand,
    .site-body .footer-note {
        grid-column: 1 / -1;
    }
}

/* Header 居中导航最终定位 */
@media (min-width: 961px) {
    .site-body .header-inner {
        display: flex;
        position: relative;
    }

    .site-body .main-nav {
        position: absolute;
        left: 50%;
        margin-left: 0;
        transform: translateX(-50%);
    }

    .site-body .header-actions {
        margin-left: auto;
    }
}

/* Footer 右下角链接 */
.site-body .footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.site-body .footer-bottom-links a {
    color: var(--muted);
    text-decoration: none;
}

.site-body .footer-bottom-links a:hover {
    color: var(--accent);
}

@media (max-width: 560px) {
    .site-body .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/* 城市琴友 */
.city-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.city-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.city-card:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.city-card-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
}

.city-card > div {
    flex: 1;
    min-width: 0;
}

.city-card strong,
.city-card small {
    display: block;
}

.city-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 760px) {
    .city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .city-grid {
        grid-template-columns: 1fr;
    }
}

/* AI 练习计划 */
.plan-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 22px;
    align-items: start;
}

.plan-form-card {
    padding: 22px;
}

.plan-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.plan-history-item:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.plan-history-item small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.plan-day-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plan-day-card {
    padding: 18px 20px;
}

.plan-day-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.plan-day-no {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.plan-day-head h2 {
    margin: 5px 0 4px;
    font-size: 18px;
}

.plan-day-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
}

.plan-day-minutes {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
}

.plan-task-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.plan-task {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    text-decoration: none;
}

.plan-task:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.plan-task-type {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 5px;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 12px;
}

.plan-task-main {
    flex: 1;
    min-width: 0;
}

.plan-task-main strong,
.plan-task-main small {
    display: block;
}

.plan-task-main strong {
    font-size: 13px;
}

.plan-task-main small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.plan-task-minutes {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
}

/* 曲谱难点解析 */
.tab-insight-card {
    margin-top: 18px;
    padding: 20px;
}

.tab-insight-summary {
    margin: 0 0 14px;
    color: var(--text-soft);
    font-size: 13.5px;
    line-height: 1.8;
}

.tab-insight-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tab-insight-point {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-soft);
}

.tab-insight-point strong {
    display: block;
    font-size: 13px;
}

.tab-insight-point p {
    margin: 5px 0 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.tab-insight-point small {
    display: block;
    color: var(--accent);
    font-size: 12px;
    line-height: 1.6;
}

.tab-insight-steps {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.tab-insight-steps ol {
    margin: 0;
    padding-left: 18px;
    color: var(--text-soft);
    font-size: 12.5px;
    line-height: 1.9;
}

.tab-insight-provider {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
}

/* 创作者制谱助手 */
.creator-assistant {
    margin-bottom: 18px;
    padding: 20px;
}

.creator-assistant-form {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr auto;
    gap: 10px;
    align-items: end;
}

.creator-assistant-result {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.creator-assistant-summary {
    margin: 0 0 12px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.7;
}

.creator-assistant-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}

.creator-assistant-section {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg-soft);
}

.creator-assistant-section strong,
.creator-assistant-section span,
.creator-assistant-section small {
    display: block;
}

.creator-assistant-section span {
    margin: 4px 0;
    color: var(--accent);
    font-size: 12px;
}

.creator-assistant-section small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.creator-assistant-tips {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

/* AI 歌词 / 和弦改写 */
.ai-rewrite-form .field {
    margin-bottom: 8px;
}

.ai-rewrite-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-rewrite-item {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
}

.ai-rewrite-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ai-rewrite-head strong {
    font-size: 12px;
}

.ai-rewrite-head small {
    color: var(--muted);
    font-size: 12px;
}

.ai-rewrite-item p {
    margin: 6px 0 8px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.7;
}

.recommend-reason {
    display: block;
    margin-top: 4px;
    color: var(--accent);
    font-size: 12px;
    font-style: normal;
}

@media (max-width: 900px) {
    .plan-layout,
    .creator-assistant-form {
        grid-template-columns: 1fr;
    }

    .creator-assistant-form {
        gap: 8px;
    }

    .tab-insight-points {
        grid-template-columns: 1fr;
    }
}

/* 练习室 Hero 移动端收口 */
@media (max-width: 960px) {
    .site-body {
        overflow-x: hidden;
    }

    .practice-hero {
        overflow: hidden;
        padding-top: 54px;
    }

    .practice-hero .container,
    .practice-steps,
    .practice-step,
    .practice-hero .page-heading-actions {
        min-width: 0;
    }

    .practice-hero .page-heading-actions {
        margin-top: 16px;
        width: 100%;
    }

    .practice-hero .page-heading-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .practice-steps {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 22px;
    }

    .practice-step-arrow {
        display: none;
    }

    .practice-step {
        width: 100%;
        min-height: 0;
        padding: 18px;
    }
}

.site-body .practice-drum-copy p {
    color: rgba(230, 237, 245, 0.78) !important;
}

/* 练习室 CTA：桌面/平板保持紧凑，仅手机全宽 */
.site-body .practice-hero .page-heading-actions {
    width: auto;
    margin-top: 18px;
}

.site-body .practice-hero .page-heading-actions .btn {
    flex: 0 0 auto;
    width: auto;
    justify-content: center;
}

@media (max-width: 560px) {
    .site-body .header-vip {
        display: none;
    }

    .site-body .practice-hero .page-heading-actions {
        width: 100%;
    }

    .site-body .practice-hero .page-heading-actions .btn {
        width: 100%;
        flex: 1;
    }
}

/* 首页 AI 练习工具 */
.gh-ai-products {
    padding-top: 42px;
}

.gh-ai-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.gh-ai-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        radial-gradient(100% 100% at 100% 0%, rgba(7, 193, 96, 0.09), transparent 58%),
        var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.gh-ai-product-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-line);
}

.gh-ai-product-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
}

.gh-ai-product-icon .icon {
    width: 19px;
    height: 19px;
}

.gh-ai-product-badge {
    position: absolute;
    top: 22px;
    right: 20px;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.gh-ai-product-card h3 {
    margin: 20px 0 7px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.gh-ai-product-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.gh-ai-product-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 16px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 650;
}

.gh-ai-product-link .icon {
    width: 13px;
    height: 13px;
}

@media (max-width: 1000px) {
    .gh-ai-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .gh-ai-product-grid {
        grid-template-columns: 1fr;
    }

    .gh-ai-product-card {
        min-height: 0;
    }
}

/* 首页社区三块：完整显示标题，不被截断 */
.gh-post-item strong,
.gh-product-item strong,
.gh-lesson-item strong {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.gh-post-item > div,
.gh-product-item > div:last-child,
.gh-lesson-item > div {
    min-width: 0;
}

/* 首页卡片字号统一 */
.gh-community-head h3 {
    font-size: 16px;
}

.gh-post-item strong,
.gh-product-item strong,
.gh-lesson-item strong {
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
}

.gh-post-item small,
.gh-product-item small,
.gh-lesson-item small {
    font-size: 12px;
    line-height: 1.6;
}

.gh-ai-product-card h3 {
    font-size: 16px;
    line-height: 1.45;
}

.gh-ai-product-card p {
    font-size: 12.5px;
    line-height: 1.75;
}

.gh-ai-product-link {
    font-size: 12px;
}

.gh-practice-step strong,
.gh-artist-main strong {
    font-size: 15px;
}

/* =========================================================
   全站字号标准
   page 40 / section 30 / card 18 / title 16 / body 14 / meta 12 / caption 11
   ========================================================= */
.site-body {
    --type-page: clamp(32px, 3.5vw, 40px);
    --type-section: clamp(24px, 2.5vw, 30px);
    --type-card: 18px;
    --type-title: 16px;
    --type-body: 14px;
    --type-meta: 12px;
    --type-caption: 11px;
    font-size: var(--type-body);
    line-height: 1.65;
}

.site-body .page-hero h1,
.site-body .practice-hero h1,
.site-body .activity-hero h1,
.site-body .tab-detail-title h1,
.site-body .ai-hero h1,
.site-body .ai-studio-head h1,
.site-body .ai-song-title h1,
.site-body .dashboard-hero h1,
.site-body .auth-hero h1,
.site-body .editorial-hero h1 {
    font-size: var(--type-page);
    line-height: 1.16;
}

.site-body .section-head h2,
.site-body .gh-practice-copy h2,
.site-body .gh-ai-copy h2,
.site-body .ai-song-section h2,
.site-body .plan-day-head h2 {
    font-size: var(--type-section);
    line-height: 1.2;
}

.site-body .card-head h2,
.site-body .content-card .card-head h2,
.site-body .ai-paper-head h2 {
    font-size: var(--type-card);
    line-height: 1.35;
}

.site-body .tab-card h3,
.site-body .gh-ai-product-card h3,
.site-body .gh-community-head h3,
.site-body .artist-card strong,
.site-body .city-card strong,
.site-body .plan-history-item strong,
.site-body .recommend-tab strong {
    font-size: var(--type-title);
    line-height: 1.45;
}

.site-body .section-head p,
.site-body .card-head p,
.site-body .page-hero > .container > p,
.site-body .content-card > p,
.site-body .tab-card-summary {
    font-size: var(--type-body);
    line-height: 1.75;
}

.site-body small,
.site-body .tab-card-meta,
.site-body .gh-post-item small,
.site-body .gh-product-item small,
.site-body .gh-lesson-item small,
.site-body .artist-card small,
.site-body .city-card small {
    font-size: var(--type-meta);
    line-height: 1.6;
}

.site-body .tab-card-tags span,
.site-body .gh-ai-product-badge,
.site-body .section-kicker,
.site-body .eyebrow {
    font-size: var(--type-caption);
}

.site-body .btn,
.site-body .nav-link,
.site-body .editorial-search button {
    font-size: 13px;
}

@media (max-width: 720px) {
    .site-body {
        --type-page: 30px;
        --type-section: 24px;
        --type-card: 17px;
        --type-title: 15px;
    }
}

/* 活动角字号统一 */
.site-body .activity-tab {
    font-size: 13px;
}

.site-body .activity-feature {
    min-height: 232px;
}

.site-body .activity-feature-kicker {
    font-size: 12px;
}

.site-body .activity-feature h2 {
    font-size: 18px;
    line-height: 1.4;
}

.site-body .activity-feature p {
    font-size: 14px;
    line-height: 1.7;
}

.site-body .activity-feature .text-link {
    font-size: 12px;
}

.site-body .activity-list-card {
    padding: 18px;
}

.site-body .activity-list-card h3 {
    margin: 9px 0 5px;
    font-size: 16px;
    line-height: 1.45;
}

.site-body .activity-list-card p {
    font-size: 14px;
    line-height: 1.7;
}

.site-body .activity-list-card small {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 720px) {
    .site-body .activity-feature {
        min-height: 0;
    }
}

/* 活动角子页面：课堂 / 培训 / 商城字号统一 */
.site-body .filter-tab {
    font-size: 13px;
    padding: 7px 12px;
}

.site-body .community-search input,
.site-body .community-search select {
    min-height: 38px;
    font-size: 13px;
}

.site-body .content-type-badge,
.site-body .lesson-vip {
    font-size: 12px;
}

.site-body .lesson-grid,
.site-body .teacher-grid,
.site-body .product-grid {
    gap: 16px;
}

.site-body .lesson-cover {
    height: 158px;
}

.site-body .lesson-body {
    padding: 16px;
}

.site-body .lesson-body h2 {
    margin: 8px 0 5px;
    font-size: 16px;
    line-height: 1.45;
}

.site-body .lesson-body p {
    font-size: 14px;
    line-height: 1.7;
}

.site-body .lesson-body small {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.6;
}

.site-body .teacher-card {
    min-height: 190px;
    padding: 18px;
}

.site-body .teacher-avatar {
    width: 52px;
    height: 52px;
}

.site-body .teacher-body h2 {
    font-size: 16px;
    line-height: 1.4;
}

.site-body .teacher-city {
    font-size: 12px !important;
}

.site-body .teacher-body p {
    font-size: 14px;
    line-height: 1.7;
}

.site-body .teacher-body small {
    font-size: 12px;
    line-height: 1.6;
}

.site-body .teacher-rate {
    font-size: 14px;
    font-weight: 650;
}

.site-body .product-cover {
    height: 160px;
}

.site-body .product-body {
    padding: 14px;
}

.site-body .product-body h3 {
    margin: 8px 0 4px;
    font-size: 16px;
    line-height: 1.45;
}

.site-body .product-body p {
    font-size: 12px;
    line-height: 1.6;
}

.site-body .product-price {
    margin-top: 10px;
    font-size: 18px;
}

.site-body .product-price small {
    font-size: 12px;
}

@media (max-width: 720px) {
    .site-body .teacher-card {
        min-height: 0;
    }
}

/* 活动角首页：课堂 / 老师 / 商品小列表 */
.site-body .mini-lesson-list,
.site-body .mini-teacher-list {
    gap: 10px;
}

.site-body .mini-lesson,
.site-body .mini-teacher {
    padding: 14px;
}

.site-body .mini-lesson-icon,
.site-body .mini-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.site-body .mini-lesson strong,
.site-body .mini-teacher strong {
    overflow: visible;
    font-size: 16px;
    line-height: 1.45;
    text-overflow: clip;
    white-space: normal;
}

.site-body .mini-lesson small,
.site-body .mini-teacher small {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.6;
}

.site-body .mini-lesson > .icon,
.site-body .mini-teacher > .icon {
    width: 16px;
    height: 16px;
}

/* 同城广播列表字号统一 */
.site-body .broadcast-list {
    gap: 12px;
}

.site-body .broadcast-card {
    gap: 16px;
    padding: 20px;
}

.site-body .broadcast-type {
    padding: 4px 8px;
    font-size: 12px;
}

.site-body .broadcast-main h2 {
    font-size: 16px;
    line-height: 1.45;
}

.site-body .broadcast-main p {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.7;
}

.site-body .broadcast-meta {
    gap: 14px;
    margin-top: 11px;
    font-size: 12px;
    line-height: 1.6;
}

.site-body .broadcast-meta .icon {
    width: 14px;
    height: 14px;
}

.site-body .broadcast-card > .icon {
    width: 18px;
    height: 18px;
    margin-top: 16px;
}

.site-body .bounty-badge {
    font-size: 12px;
}

/* =========================================================
   全站字号标准 · 覆盖检查层
   页面 40 / 区块 30 / 卡片 18 / 标题 16 / 正文 14 / 辅助 12
   ========================================================= */
body.site-body {
    font-size: 14px;
    line-height: 1.7;
}

body.site-body h1 {
    font-size: 40px;
    line-height: 1.16;
}

body.site-body h2 {
    font-size: 30px;
    line-height: 1.2;
}

body.site-body h3 {
    font-size: 16px;
    line-height: 1.45;
}

body.site-body h4 {
    font-size: 15px;
    line-height: 1.5;
}

body.site-body p {
    font-size: 14px;
    line-height: 1.75;
}

body.site-body small {
    font-size: 12px;
    line-height: 1.6;
}

body.site-body label {
    font-size: 13px;
}

body.site-body input,
body.site-body select,
body.site-body textarea {
    font-size: 14px;
}

body.site-body .section-head h2,
body.site-body .gh-practice-copy h2,
body.site-body .gh-ai-copy h2,
body.site-body .plan-day-head h2 {
    font-size: 30px;
}

body.site-body .card-head h2,
body.site-body .content-card h2,
body.site-body .ai-paper-head h2,
body.site-body .activity-feature h2,
body.site-body .lesson-body h2,
body.site-body .teacher-body h2,
body.site-body .plan-day-head h2 {
    font-size: 18px;
}

body.site-body .tab-card h3,
body.site-body .gh-ai-product-card h3,
body.site-body .product-body h3,
body.site-body .gh-community-head h3,
body.site-body .artist-card strong,
body.site-body .city-card strong,
body.site-body .recommend-tab strong,
body.site-body .mini-lesson strong,
body.site-body .mini-teacher strong {
    font-size: 16px;
}

body.site-body .gh-hero h1 {
    font-size: clamp(44px, 5vw, 56px);
}

body.site-body .brand-copy small {
    font-size: 9px;
    letter-spacing: 0.16em;
}

body.site-body .card-head p,
body.site-body .section-head p {
    font-size: 14px;
}

body.site-body .tab-card-meta,
body.site-body .tab-card-tags,
body.site-body .tab-detail-meta small,
body.site-body .tab-detail-meta strong,
body.site-body .detail-list span,
body.site-body .detail-list strong,
body.site-body .practice-control,
body.site-body .practice-status,
body.site-body .practice-range,
body.site-body .sheet-count-badge,
body.site-body .sheet-layout-hint,
body.site-body .ai-facts dt,
body.site-body .ai-facts dd,
body.site-body .ai-meta-chip,
body.site-body .footer-col a,
body.site-body .footer-badges span,
body.site-body .footer-bottom {
    font-size: 12px;
}

body.site-body .sheet-layout-hint,
body.site-body .practice-hint {
    font-size: 12px;
}

body.site-body .tab-detail-meta strong {
    font-size: 14px;
}

body.site-body .footer-col h4 {
    font-size: 13px;
}

body.site-body .footer-brand p {
    font-size: 13px;
}

body.site-body .section-kicker,
body.site-body .eyebrow {
    font-size: 11px;
}

body.site-body .btn,
body.site-body .nav-link {
    font-size: 13px;
}

@media (max-width: 720px) {
    body.site-body h1 {
        font-size: 30px;
    }

    body.site-body h2,
    body.site-body .section-head h2 {
        font-size: 24px;
    }

    body.site-body .gh-hero h1 {
        font-size: 40px;
    }
}

/* 全站统一补充：表格、练习卡片、套餐、后台 */
body.site-body .practice-step strong {
    font-size: 16px;
}

body.site-body .practice-step small {
    font-size: 12px;
}

body.site-body .plan-card h3 {
    font-size: 18px;
}

body.site-body .plan-history-item strong {
    font-size: 16px;
}

body.site-body table {
    font-size: 14px;
}

body.site-body table th {
    font-size: 13px;
}

body.site-body table td {
    font-size: 14px;
}

body.admin-body {
    font-size: 14px;
    line-height: 1.65;
}

body.admin-body h1 {
    font-size: 30px;
    line-height: 1.2;
}

body.admin-body h2 {
    font-size: 20px;
    line-height: 1.3;
}

body.admin-body h3 {
    font-size: 16px;
}

body.admin-body p,
body.admin-body td {
    font-size: 14px;
}

body.admin-body small,
body.admin-body th {
    font-size: 12px;
}

body.admin-body label {
    font-size: 13px;
}

body.admin-body input,
body.admin-body select,
body.admin-body textarea {
    font-size: 14px;
}

body.admin-body .admin-nav a {
    font-size: 14px;
}

/* 全站字距与行距统一放松 */
body.site-body {
    letter-spacing: 0.025em;
    line-height: 1.75;
}

body.site-body h1,
body.site-body h2,
body.site-body h3,
body.site-body h4 {
    letter-spacing: 0.02em;
    line-height: 1.25;
}

body.site-body p,
body.site-body li,
body.site-body label,
body.site-body td,
body.site-body th,
body.site-body strong,
body.site-body em,
body.site-body small {
    letter-spacing: 0.02em;
}

body.site-body p {
    line-height: 1.8;
}

body.site-body a,
body.site-body button,
body.site-body input,
body.site-body select,
body.site-body textarea {
    letter-spacing: 0.03em;
}

body.site-body .btn,
body.site-body .nav-link {
    letter-spacing: 0.04em;
}

body.site-body .section-kicker,
body.site-body .eyebrow,
body.site-body .brand-copy small {
    letter-spacing: 0.14em;
}

body.site-body .brand-copy strong {
    letter-spacing: 0.04em;
}

body.admin-body {
    letter-spacing: 0.02em;
    line-height: 1.7;
}

body.admin-body h1,
body.admin-body h2,
body.admin-body h3,
body.admin-body p,
body.admin-body td,
body.admin-body th,
body.admin-body label,
body.admin-body small {
    letter-spacing: 0.02em;
}

/* 练习实时区标签不换行 */
.site-body .practice-live-row > span {
    flex: 0 0 34px;
    white-space: nowrap;
}

/* UI 提升：页面节奏、卡片密度与层级 */
body.site-body .section {
    padding: 72px 0;
}

body.site-body .section-tight {
    padding: 42px 0;
}

body.site-body .page-hero {
    padding: 60px 0 42px;
}

body.site-body .page-hero-compact {
    padding: 50px 0 36px;
}

body.site-body .page-hero p {
    max-width: 680px;
    line-height: 1.8;
}

@media (min-width: 1200px) {
    body.site-body .tab-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
}

body.site-body .tab-card {
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
}

body.site-body .tab-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.1);
}

body.site-body .tab-card-cover-img {
    transition: transform 0.6s ease;
}

body.site-body .tab-card:hover .tab-card-cover-img {
    transform: scale(1.025);
}

body.site-body .tab-card-body {
    padding: 15px 16px 14px;
}

body.site-body .tab-card-title-row h3 {
    letter-spacing: 0.01em;
}

body.site-body .filter-panel,
body.site-body .tab-filters {
    border-radius: 16px;
}

body.site-body .content-card {
    border-radius: 16px;
}

body.site-body .section-head {
    margin-bottom: 30px;
}

@media (max-width: 760px) {
    body.site-body .section {
        padding: 54px 0;
    }

    body.site-body .section-tight {
        padding: 34px 0;
    }
}

/* UI 提升：焦点、选中、交互反馈 */
body.site-body ::selection {
    background: var(--accent);
    color: #ffffff;
}

body.site-body :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

body.site-body .btn:active,
body.site-body .gh-ai-product-card:active,
body.site-body .tab-card:active {
    transform: translateY(0) scale(0.995);
}

body.site-body .gh-section > .container > .section-head {
    padding-top: 2px;
}

body.site-body .tab-card-cover,
body.site-body .tab-card-cover-img {
    background-color: #e9eef0;
}

body.site-body .content-card,
body.site-body .tab-card,
body.site-body .gh-ai-product-card {
    border-color: rgba(17, 24, 39, 0.09);
}

html[data-theme="dark"] body.site-body .content-card,
html[data-theme="dark"] body.site-body .tab-card,
html[data-theme="dark"] body.site-body .gh-ai-product-card {
    border-color: rgba(255, 255, 255, 0.09);
}

body.site-body .ad-card {
    border-radius: 12px;
}

body.site-body .ad-flag {
    letter-spacing: 0.12em;
}

body.site-body .tab-card-cover-img {
    opacity: 1;
}


/* 搜索无结果：相似 / 热门 / 求谱 / 到谱通知 */
.search-empty-card {
    padding: 28px;
}

.search-empty-card .empty-state {
    padding: 10px 0 18px;
    border: 0;
    background: transparent;
    text-align: left;
}

.search-empty-card .empty-state h3 {
    margin: 12px 0 6px;
    font-size: 20px;
}

.search-empty-card .empty-state p {
    max-width: 720px;
    margin: 0;
}

.search-empty-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.search-notify-form {
    display: contents;
}

.search-fallback-section {
    margin-top: 26px;
}

.search-fallback-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.search-fallback-head h4 {
    margin: 0;
    font-size: 18px;
}

.search-fallback-head span {
    color: var(--muted);
    font-size: 12px;
}

.search-fallback-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.search-fallback-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.search-fallback-card:hover {
    border-color: var(--accent-line);
    transform: translateY(-2px);
}

.search-fallback-card img,
.search-fallback-cover {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--bg-soft);
    object-fit: cover;
    color: var(--accent);
}

.search-fallback-card > span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.search-fallback-card strong,
.search-fallback-card small {
    display: block;
}

.search-fallback-card strong {
    font-size: 14px;
    line-height: 1.45;
}

.search-fallback-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.search-fallback-card > .icon {
    width: 16px;
    height: 16px;
    color: var(--muted-2);
}

@media (max-width: 680px) {
    .search-empty-card {
        padding: 18px;
    }

    .search-fallback-grid {
        grid-template-columns: 1fr;
    }

    .search-empty-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* =========================================================
   Home — Figma Make direction
   ========================================================= */
body.home-figma {
    --bg: #f4f1e8;
    --bg-soft: #ece8dc;
    --surface: #fffdf8;
    --surface-2: #f8f4ea;
    --text: #173b33;
    --text-soft: #405a52;
    --muted: #6d7f77;
    --muted-2: #98a69f;
    --line: rgba(23, 59, 51, 0.12);
    --line-strong: rgba(23, 59, 51, 0.22);
    --accent: #1f5c4d;
    --accent-2: #2f7a63;
    --accent-soft: #e4efe9;
    --accent-line: rgba(31, 92, 77, 0.24);
    --gold: #1f5c4d;
    background: #f4f1e8;
    color: #173b33;
}

html[data-theme="dark"] body.home-figma {
    --bg: #111815;
    --bg-soft: #18211d;
    --surface: #1b2520;
    --surface-2: #202b25;
    --text: #edf3ee;
    --text-soft: #b8c7bf;
    --muted: #87988f;
    --muted-2: #66776e;
    --line: rgba(237, 243, 238, 0.12);
    --line-strong: rgba(237, 243, 238, 0.24);
    --accent: #6cb99c;
    --accent-2: #8bd0b3;
    --accent-soft: rgba(108, 185, 156, 0.12);
    --accent-line: rgba(108, 185, 156, 0.28);
    background: #111815;
    color: #edf3ee;
}

body.home-figma .site-header {
    border-bottom: 1px solid rgba(23, 59, 51, 0.08);
    background: rgba(244, 241, 232, 0.9);
}

html[data-theme="dark"] body.home-figma .site-header {
    border-bottom-color: rgba(237, 243, 238, 0.1);
    background: rgba(17, 24, 21, 0.9);
}

body.home-figma .brand-mark {
    border: 0;
    border-radius: 50%;
    background: #1f5c4d;
    color: #f4f1e8;
}

body.home-figma .header-vip {
    display: none;
}

body.home-figma .main-nav {
    border-color: rgba(23, 59, 51, 0.12);
    background: rgba(255, 255, 255, 0.3);
}

body.home-figma .nav-link {
    color: #405a52;
}

body.home-figma .nav-link.is-active,
body.home-figma .nav-link:hover {
    background: rgba(31, 92, 77, 0.09);
    color: #1f5c4d;
}

body.home-figma .btn-primary,
body.home-figma .header-actions .btn-primary {
    border-color: #1f5c4d;
    background: #1f5c4d;
    color: #fffdf8;
}

body.home-figma .btn-primary:hover,
body.home-figma .header-actions .btn-primary:hover {
    background: #17483c;
}

body.home-figma .section {
    background: #f4f1e8;
}

body.home-figma .section-head h2,
body.home-figma .gh-ai-products h2,
body.home-figma .gh-practice-copy h2,
body.home-figma .gh-ai-copy h2 {
    color: #173b33;
}

body.home-figma .tab-card,
body.home-figma .gh-ai-product-card,
body.home-figma .content-card {
    border-color: rgba(23, 59, 51, 0.1);
    background: #fffdf8;
}

/* Hero */
.figma-hero {
    position: relative;
    overflow: hidden;
    padding: 62px 0 36px;
    background:
        radial-gradient(720px 560px at 78% 50%, rgba(31, 92, 77, 0.08), transparent 68%),
        #f4f1e8;
}

.figma-hero-orb {
    position: absolute;
    border: 1px solid rgba(31, 92, 77, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.figma-hero-orb-a {
    top: 40px;
    right: 2%;
    width: 720px;
    height: 720px;
}

.figma-hero-orb-b {
    top: 160px;
    right: 12%;
    width: 460px;
    height: 460px;
    border-style: dashed;
    opacity: 0.7;
}

.figma-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(480px, 1.02fr);
    gap: 64px;
    align-items: center;
}

.figma-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(31, 92, 77, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    color: #1f5c4d;
    font-size: 12px;
    font-weight: 650;
}

.figma-badge i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e4efe9;
}

.figma-badge .icon {
    width: 13px;
    height: 13px;
}

body.home-figma .figma-hero h1 {
    margin: 26px 0 22px;
    color: #173b33;
    font-size: clamp(48px, 5.3vw, 72px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.02em;
}

body.home-figma .figma-hero h1 em {
    color: #2f7a63;
    font-style: normal;
}

.figma-hero-copy > p {
    max-width: 540px;
    color: #62766d;
    font-size: 15px;
    line-height: 1.9;
}

.figma-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 570px;
    height: 62px;
    margin-top: 30px;
    padding: 6px 7px 6px 20px;
    border: 1px solid rgba(23, 59, 51, 0.1);
    border-radius: 999px;
    background: #fffdf8;
    box-shadow: 0 16px 38px rgba(23, 59, 51, 0.08);
}

.figma-search-icon {
    display: grid;
    place-items: center;
    color: #96a49e;
}

.figma-search-icon .icon {
    width: 20px;
    height: 20px;
}

.figma-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #173b33;
    font: inherit;
    font-size: 14px;
}

.figma-search input::placeholder {
    color: #9aa8a1;
}

.figma-search button {
    height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: #1f5c4d;
    color: #fffdf8;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.figma-hot-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    color: #8b9a93;
    font-size: 11px;
}

.figma-hot-search a {
    color: #527067;
    text-decoration: none;
}

.figma-hot-search a:hover {
    color: #1f5c4d;
    text-decoration: underline;
}

.figma-social-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.figma-avatars {
    display: flex;
}

.figma-avatars span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-left: -8px;
    border: 2px solid #f4f1e8;
    border-radius: 50%;
    background: #e5eee8;
    color: #1f5c4d;
    font-size: 11px;
    font-weight: 700;
}

.figma-avatars span:first-child {
    margin-left: 0;
}

.figma-avatars .is-more {
    background: #1f5c4d;
    color: #fffdf8;
}

.figma-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
}

.figma-rating strong {
    color: #173b33;
    font-size: 13px;
}

.figma-stars {
    color: #d8a947;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.figma-rating small {
    width: 100%;
    color: #7d8e86;
    font-size: 10.5px;
}

/* Hero practice card */
.figma-hero-visual {
    position: relative;
    min-width: 0;
    padding: 18px 0 18px;
}

.figma-practice-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 580px;
    margin-left: auto;
    padding: 22px;
    border: 1px solid rgba(23, 59, 51, 0.1);
    border-radius: 26px;
    background: #fffdf8;
    box-shadow: 0 30px 80px rgba(23, 59, 51, 0.13);
}

.figma-practice-head {
    display: grid;
    grid-template-columns: 50px 1fr 36px;
    gap: 12px;
    align-items: center;
}

.figma-practice-cover {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 12px;
    background: #1f5c4d;
    color: #fffdf8;
}

.figma-practice-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.figma-practice-cover .icon {
    width: 22px;
    height: 22px;
}

.figma-practice-head span {
    color: #8b9a93;
    font-size: 9px;
}

.figma-practice-head h2 {
    margin: 2px 0 1px;
    color: #173b33;
    font-size: 19px;
    line-height: 1.25;
}

.figma-practice-head small {
    color: #8b9a93;
    font-size: 10px;
}

.figma-heart {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e2e6df;
    border-radius: 50%;
    background: transparent;
    color: #7f9189;
    cursor: pointer;
}

.figma-heart .icon {
    width: 15px;
    height: 15px;
}

.figma-practice-tabs {
    display: flex;
    gap: 4px;
    margin: 18px 0 12px;
    padding: 3px;
    border-radius: 999px;
    background: #f1efe7;
}

.figma-practice-tabs span {
    flex: 1;
    padding: 6px 8px;
    border-radius: 999px;
    color: #8b9a93;
    font-size: 10px;
    text-align: center;
}

.figma-practice-tabs .is-active {
    background: #fffdf8;
    color: #1f5c4d;
    box-shadow: 0 3px 10px rgba(23, 59, 51, 0.08);
    font-weight: 650;
}

.figma-sheet {
    position: relative;
    padding: 11px 13px 15px;
    overflow: hidden;
    border: 1px solid #e7e5da;
    border-radius: 12px;
    background: #fbfaf4;
}

.figma-sheet-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #1f5c4d;
    font-family: var(--mono);
    font-size: 9px;
}

.figma-sheet-top small {
    color: #9aa79f;
    font-family: var(--sans);
    font-size: 9px;
}

.figma-sheet-top small:last-child {
    margin-left: auto;
}

.figma-string {
    display: flex;
    align-items: center;
    height: 15px;
}

.figma-string b {
    width: 16px;
    flex: 0 0 auto;
    color: #a3ada7;
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 400;
}

.figma-string span {
    flex: 1;
    height: 1px;
    background: #deddd3;
}

.figma-sheet-notes {
    position: absolute;
    top: 35px;
    right: 20px;
    left: 36px;
    display: flex;
    justify-content: space-between;
    color: #49675d;
    font-family: var(--mono);
    font-size: 8px;
}

.figma-sheet-notes i {
    font-style: normal;
}

.figma-sheet-selection {
    position: absolute;
    top: 30px;
    right: 30%;
    width: 22%;
    height: 100px;
    border-radius: 3px;
    background: rgba(31, 92, 77, 0.08);
    pointer-events: none;
}

.figma-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
    color: #9aa79f;
    font-size: 8px;
}

.figma-progress div {
    flex: 1;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7e6dd;
}

.figma-progress i {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: #1f5c4d;
}

.figma-practice-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.figma-practice-controls button {
    min-width: 34px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid #e7e5da;
    border-radius: 999px;
    background: #fffdf8;
    color: #7f9189;
    cursor: pointer;
    font: inherit;
    font-size: 9px;
}

.figma-practice-controls .figma-play {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    background: #1f5c4d;
    color: #fffdf8;
}

.figma-practice-controls .figma-play .icon {
    width: 18px;
    height: 18px;
}

.figma-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border: 1px solid rgba(23, 59, 51, 0.09);
    border-radius: 13px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 15px 35px rgba(23, 59, 51, 0.12);
}

.figma-float > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e4efe9;
    color: #1f5c4d;
}

.figma-float .icon {
    width: 14px;
    height: 14px;
}

.figma-float strong,
.figma-float small {
    display: block;
}

.figma-float strong {
    color: #173b33;
    font-size: 10px;
}

.figma-float small {
    margin-top: 2px;
    color: #93a19a;
    font-size: 9px;
}

.figma-float-smart {
    top: 32px;
    left: -72px;
}

.figma-float-goal {
    right: -16px;
    bottom: 34px;
}

.figma-trust {
    padding: 20px 0;
    border-top: 1px solid rgba(23, 59, 51, 0.09);
    border-bottom: 1px solid rgba(23, 59, 51, 0.09);
}

.figma-trust .container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 18px;
    flex-wrap: wrap;
}

.figma-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #60736b;
    font-size: 11px;
}

.figma-trust .icon {
    width: 13px;
    height: 13px;
    color: #1f5c4d;
}

@media (max-width: 1100px) {
    .figma-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
        gap: 30px;
    }

    .figma-float-smart {
        left: 0;
    }

    .figma-float-goal {
        right: 0;
    }
}

@media (max-width: 900px) {
    .figma-hero {
        padding: 36px 0 28px;
    }

    .figma-hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    body.home-figma .figma-hero h1 {
        font-size: clamp(40px, 9vw, 58px);
    }

    .figma-hero-visual {
        max-width: 620px;
        width: 100%;
        margin: 0 auto;
    }

    .figma-practice-card {
        max-width: none;
    }

    .figma-float {
        display: none;
    }

    .figma-trust .container {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .figma-hero {
        padding-top: 24px;
    }

    .figma-search {
        height: 56px;
        padding-left: 16px;
    }

    .figma-search button {
        height: 44px;
        padding: 0 18px;
    }

    .figma-practice-card {
        padding: 15px;
        border-radius: 18px;
    }

    .figma-practice-head {
        grid-template-columns: 44px 1fr 32px;
    }

    .figma-practice-cover {
        width: 44px;
        height: 44px;
    }

    .figma-trust {
        padding: 16px 0;
    }

    .figma-trust span {
        width: calc(50% - 9px);
        font-size: 10px;
    }
}

/* 全站视觉统一到 Figma 方向的森林绿 / 暖白 */
body.site-body {
    --bg: #f4f1e8;
    --bg-soft: #ece8dc;
    --surface: #fffdf8;
    --surface-2: #f8f4ea;
    --text: #173b33;
    --text-soft: #405a52;
    --muted: #6d7f77;
    --muted-2: #98a69f;
    --line: rgba(23, 59, 51, 0.12);
    --line-strong: rgba(23, 59, 51, 0.22);
    --accent: #1f5c4d;
    --accent-2: #2f7a63;
    --accent-soft: #e4efe9;
    --accent-line: rgba(31, 92, 77, 0.24);
    --gold: #1f5c4d;
    background: #f4f1e8;
    color: #173b33;
}

html[data-theme="dark"] body.site-body {
    --bg: #111815;
    --bg-soft: #18211d;
    --surface: #1b2520;
    --surface-2: #202b25;
    --text: #edf3ee;
    --text-soft: #b8c7bf;
    --muted: #87988f;
    --muted-2: #66776e;
    --line: rgba(237, 243, 238, 0.12);
    --line-strong: rgba(237, 243, 238, 0.24);
    --accent: #6cb99c;
    --accent-2: #8bd0b3;
    --accent-soft: rgba(108, 185, 156, 0.12);
    --accent-line: rgba(108, 185, 156, 0.28);
    --gold: #6cb99c;
    background: #111815;
    color: #edf3ee;
}

body.site-body .site-header {
    border-bottom-color: rgba(23, 59, 51, 0.08);
    background: rgba(244, 241, 232, 0.9);
}

html[data-theme="dark"] body.site-body .site-header {
    border-bottom-color: rgba(237, 243, 238, 0.1);
    background: rgba(17, 24, 21, 0.9);
}

body.site-body .site-footer {
    background: #ece8dc;
}

html[data-theme="dark"] body.site-body .site-footer {
    background: #18211d;
}

body.site-body .btn-primary {
    border-color: #1f5c4d;
    background: #1f5c4d;
    color: #fffdf8;
}

body.site-body .btn-primary:hover {
    background: #17483c;
}

body.site-body .main-nav {
    border-color: rgba(23, 59, 51, 0.12);
    background: rgba(255, 255, 255, 0.28);
}

body.site-body .nav-link {
    color: #405a52;
}

body.site-body .nav-link.is-active,
body.site-body .nav-link:hover {
    background: rgba(31, 92, 77, 0.09);
    color: #1f5c4d;
}

body.site-body .brand-mark {
    border: 0;
    border-radius: 50%;
    background: #1f5c4d;
    color: #f4f1e8;
}

body.site-body .section {
    background: #f4f1e8;
}

html[data-theme="dark"] body.site-body .section {
    background: #111815;
}

body.site-body .section-head h2,
body.site-body .card-head h2 {
    color: #173b33;
}

html[data-theme="dark"] body.site-body .section-head h2,
html[data-theme="dark"] body.site-body .card-head h2 {
    color: #edf3ee;
}

