:root {
    --purple: #724bff;
    --purple-light: #a78bfa;
    --purple-dark: #583ed3;
    --purple-gradient: linear-gradient(135deg, #724bff, #583ed3);
    --green: #28b894;
    --green-light: #32e6b9;
    --orange: #ff9500;
    --red: #ff3b30;
    --gray: #8e8e93;
    --bg: #252736;
    --bg-light: #2e3044;
    --surface: #252735;
    --surface-light: #352a6e;
    --surface-dark: #1e1b3a;
    --surface-elevated: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(114, 75, 255, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.45);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
}
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
.lines-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.line-item {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    flex: 0 0 auto;
    min-width: 0;
}
.line-item:hover {
    border-color: var(--purple-light);
    background: rgba(114, 75, 255, 0.05);
}
.line-item.selected {
    border-color: var(--purple);
    background: rgba(114, 75, 255, 0.15);
}
.line-item-name {
    font-weight: 500;
    color: var(--text);
}
.line-item-region {
    color: var(--text-dim);
    font-size: 12px;
}
.line-item-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}
.line-item-badge.normal {
    background: rgba(40, 184, 148, 0.2);
    color: var(--green);
}
.line-item-badge.warning {
    background: rgba(255, 149, 0, 0.2);
    color: var(--orange);
}
.line-item-badge.congested {
    background: rgba(255, 59, 48, 0.2);
    color: var(--red);
}
.line-section {
    margin-top: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}
.line-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}
.current-line-info {
    display: none;
    margin-left: auto;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-size: inherit;
    line-height: inherit;
    vertical-align: baseline;
}
.line-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.topbar {
    background: rgba(37, 39, 54, 0.92);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}
.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 56px;
    padding: 8px 0;
    position: relative;
}
.topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    padding: 4px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.topbar-logo:hover {
    background: rgba(114, 75, 255, 0.08);
    box-shadow: 0 0 20px rgba(114, 75, 255, 0.25);
}
.topbar-logo:hover span {
    filter: drop-shadow(0 0 8px rgba(114, 75, 255, 0.8)) drop-shadow(0 0 16px rgba(40, 184, 148, 0.5));
    background: linear-gradient(135deg, #a78bfa, #5eead4, #a78bfa);
    background-size: 200% auto;
    animation: gradientShift 2s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.topbar-logo:hover img {
    filter: drop-shadow(0 0 10px rgba(114, 75, 255, 0.7)) drop-shadow(0 0 20px rgba(40, 184, 148, 0.4));
    transform: scale(1.05);
}
@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}
.topbar-logo svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.topbar-logo img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
}
.topbar-logo span {
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(
        135deg,
        #a78bfa,
        #724bff,
        #32e6b9,
        #28b894,
        #ff9500,
        #a78bfa
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradient 8s linear infinite;
}
@keyframes logoGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
.topbar-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.nav-links {
    display: flex;
    gap: clamp(16px, 11vw, 170px);
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.nav-link {
    text-decoration: none;
    display: inline-block;
    height: 24px;
    overflow: hidden;
    position: relative;
}
.nav-link-inner {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link-text {
    display: block;
    height: 24px;
    line-height: 24px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.nav-link-text:first-child {
    color: rgba(255, 255, 255, 0.85);
}
.nav-link-text:last-child {
    color: var(--green);
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.nav-link:hover .nav-link-inner {
    transform: translateY(-24px);
}
.nav-link:hover::after {
    transform: scaleX(1);
}
.nav-user {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-user .nav-link {
    height: 24px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    display: inline-block;
}
.nav-user .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.nav-user:hover .nav-link::after {
    transform: scaleX(1);
}
.nav-user .nav-link-inner {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-user:hover .nav-link-inner {
    transform: translateY(-24px);
}
.nav-arrow {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
    transform: translateY(-5px);
}
.nav-user:hover .nav-arrow {
    transform: translateY(-5px) rotate(-180deg);
    color: var(--green);
}
.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(37, 39, 54, 0.98);
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 120px;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    backdrop-filter: blur(20px);
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.nav-user:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.nav-dropdown-item:hover {
    color: var(--red, #ef4444);
    background: rgba(239, 68, 68, 0.1);
}
.logout-btn-cancel {
    flex: 1;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    transition: all 0.25s ease;
}
.logout-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}
.logout-btn-confirm {
    flex: 1;
    padding: 13px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #ef4444, #f43f5e);
    color: #fff;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transition: all 0.25s ease;
}
.logout-btn-confirm:hover {
    background: linear-gradient(135deg, #dc2626, #e11d48);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
    transform: translateY(-1px);
}
.activate-btn-confirm {
    flex: 1;
    padding: 13px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.25s ease;
}
.activate-btn-confirm:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}
.btn {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-elevated);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1.4;
    backdrop-filter: blur(8px);
}
.btn:hover {
    border-color: var(--border-light);
    color: var(--text);
    background: rgba(114, 75, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.btn:active {
    transform: translateY(0);
}
.btn-primary {
    background: var(--purple);
    border-color: rgba(114, 75, 255, 0.6);
    color: #fff;
}
.btn-primary:hover {
    background: #6341e6;
    border-color: rgba(114, 75, 255, 0.8);
    box-shadow: 0 4px 16px rgba(114, 75, 255, 0.35);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-success {
    background: var(--green);
    border-color: rgba(40, 184, 148, 0.6);
    color: #fff;
}
.btn-success:hover {
    background: #229e80;
    border-color: rgba(40, 184, 148, 0.8);
    box-shadow: 0 4px 16px rgba(40, 184, 148, 0.35);
    transform: translateY(-1px);
}
#pay-submitBtn-alipay:hover {
    background: #1677ff;
    border-color: rgba(22, 119, 255, 0.8);
    box-shadow: 0 4px 16px rgba(22, 119, 255, 0.45);
}
.btn-success:active {
    transform: translateY(0);
}
.btn-warning {
    background: var(--orange);
    border-color: rgba(255, 149, 0, 0.6);
    color: #fff;
}
.btn-warning:hover {
    background: #e68600;
    border-color: rgba(255, 149, 0, 0.8);
    box-shadow: 0 4px 16px rgba(255, 149, 0, 0.35);
    transform: translateY(-1px);
}
.btn-warning:active {
    transform: translateY(0);
}
.btn-large {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.main {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 32px;
}
.hero {
    text-align: center;
    padding: 0 20px 40px;
    margin-bottom: 20px;
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid;
    cursor: default;
    transition: all 0.25s ease;
}
.badge:hover {
    transform: translateY(-3px);
    filter: brightness(1.3);
    box-shadow: 0 4px 16px currentColor;
}
.badge-purple {
    background: rgba(108, 77, 255, 0.08);
    border-color: rgba(108, 77, 255, 0.2);
    color: var(--purple-light);
}
.badge-purple:hover {
    background: rgba(108, 77, 255, 0.2);
    border-color: rgba(108, 77, 255, 0.5);
    box-shadow: 0 4px 16px rgba(108, 77, 255, 0.4);
}
.badge-green {
    background: rgba(40, 184, 148, 0.08);
    border-color: rgba(40, 184, 148, 0.2);
    color: var(--green-light);
}
.badge-green:hover {
    background: rgba(40, 184, 148, 0.2);
    border-color: rgba(40, 184, 148, 0.5);
    box-shadow: 0 4px 16px rgba(40, 184, 148, 0.4);
}
.badge-blue {
    background: rgba(0, 122, 255, 0.08);
    border-color: rgba(0, 122, 255, 0.2);
    color: #5ac8fa;
}
.badge-blue:hover {
    background: rgba(0, 122, 255, 0.2);
    border-color: rgba(0, 122, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
}
.badge-orange {
    background: rgba(255, 149, 0, 0.08);
    border-color: rgba(255, 149, 0, 0.2);
    color: #ffaa33;
}
.badge-orange:hover {
    background: rgba(255, 149, 0, 0.2);
    border-color: rgba(255, 149, 0, 0.5);
    box-shadow: 0 4px 16px rgba(255, 149, 0, 0.4);
}
/* ===== Robot Composite Hero ===== */
.robot-container {
    width: 380px;
    height: 420px;
    margin: 0 auto -126px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.7);
    transform-origin: center top;
}
.robot-body {
    width: 280px;
    height: auto;
    position: absolute;
    left: 51px;
    top: 205px;
    transform-origin: 140px 103px;
    z-index: 2;
}
.robot-head {
    width: 200px;
    height: auto;
    position: absolute;
    left: 93px;
    top: 37px;
    transform-origin: 100px 92px;
    z-index: 3;
    transform-style: preserve-3d;
    animation: headNod3D 5s ease-in-out infinite;
}
.robot-wing {
    width: 180px;
    height: auto;
    position: absolute;
    z-index: 1;
}
.robot-wing-left {
    left: 154px;
    top: 39px;
    transform-origin: -21px 137px;
    animation: wingFlapLeft 3s ease-in-out infinite;
}
.robot-wing-right {
    left: 226px;
    top: 58px;
    transform-origin: 25px 173px;
    animation: wingFlapRight 3s ease-in-out infinite;
}
.robot-recharge {
    width: 150px;
    height: auto;
    position: absolute;
    left: 1px;
    top: 289px;
    transform: rotate(3deg);
    transform-origin: 75px 31px;
    opacity: 0.85;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ===== Speech Bubble ===== */
.speech-bubble {
    position: absolute;
    top: 90px;
    right: -70px;
    transform: rotate(-1deg) scale(1.15);
    background: #fff0f5;
    border: 2px solid #ff8fab;
    border-radius: 16px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #c44b6e;
    white-space: nowrap;
    z-index: 20;
    box-shadow: 0 2px 12px rgba(255,143,171,0.25);
    animation: bubbleFloat 10s ease-in-out infinite;
}
.speech-bubble::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 18px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 10px 7px 0;
    border-color: transparent #ff8fab transparent transparent;
}
.speech-bubble::after {
    content: "";
    position: absolute;
    left: -7px;
    top: 19px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 9px 6px 0;
    border-color: transparent #fff0f5 transparent transparent;
}
@keyframes bubbleFloat {
    0%, 100% { transform: rotate(-7deg) scale(1.15) translateY(0) translateX(0); }
    20% { transform: rotate(-10deg) scale(1.15) translateY(-3px) translateX(2px); }
    40% { transform: rotate(-4deg) scale(1.15) translateY(-5px) translateX(-1px); }
    60% { transform: rotate(-9deg) scale(1.15) translateY(-2px) translateX(3px); }
    80% { transform: rotate(-5deg) scale(1.15) translateY(-4px) translateX(-2px); }
}

@keyframes headNod3D {
    0%, 100% {
        transform: perspective(600px) rotateX(0deg) rotateZ(0deg) perspective(300px) rotateX(0deg);
        top: 37px;
    }
    4% {
        transform: perspective(600px) rotateX(-6deg) rotateZ(3deg) perspective(300px) rotateX(-3deg);
        top: 43px;
    }
    8% {
        transform: perspective(600px) rotateX(-10deg) rotateZ(-2deg) perspective(300px) rotateX(-5deg);
        top: 48px;
    }
    12% {
        transform: perspective(600px) rotateX(-4deg) rotateZ(2deg) perspective(300px) rotateX(-2deg);
        top: 41px;
    }
    16% {
        transform: perspective(600px) rotateX(-8deg) rotateZ(-3deg) perspective(300px) rotateX(-4deg);
        top: 46px;
    }
    20% {
        transform: perspective(600px) rotateX(0deg) rotateZ(1deg) perspective(300px) rotateX(0deg);
        top: 39px;
    }
    26% {
        transform: perspective(600px) rotateX(-5deg) rotateZ(-2deg) perspective(300px) rotateX(-3deg);
        top: 43px;
    }
    30% {
        transform: perspective(600px) rotateX(-7deg) rotateZ(2deg) perspective(300px) rotateX(-3deg);
        top: 45px;
    }
    34% {
        transform: perspective(600px) rotateX(0deg) rotateZ(0deg) perspective(300px) rotateX(0deg);
        top: 37px;
    }
    44% {
        transform: perspective(600px) rotateX(-3deg) rotateZ(-1deg) perspective(300px) rotateX(-2deg);
        top: 40px;
    }
    50% {
        transform: perspective(600px) rotateX(-6deg) rotateZ(2deg) perspective(300px) rotateX(-3deg);
        top: 43px;
    }
    56% {
        transform: perspective(600px) rotateX(0deg) rotateZ(0deg) perspective(300px) rotateX(0deg);
        top: 37px;
    }
    68% {
        transform: perspective(600px) rotateX(-4deg) rotateZ(1deg) perspective(300px) rotateX(-2deg);
        top: 41px;
    }
    74% {
        transform: perspective(600px) rotateX(-7deg) rotateZ(-2deg) perspective(300px) rotateX(-3deg);
        top: 45px;
    }
    80% {
        transform: perspective(600px) rotateX(0deg) rotateZ(0deg) perspective(300px) rotateX(0deg);
        top: 37px;
    }
}

@keyframes wingFlapLeft {
    0%, 100% {
        transform: scaleX(-1) rotate(57deg);
        top: 39px;
        transform-origin: -21px 137px;
    }
    50% {
        transform: scaleX(-1) rotate(7deg);
        top: 55px;
        transform-origin: 1px 142px;
    }
}
@keyframes wingFlapRight {
    0%, 100% { transform: rotate(57deg); }
    50%      { transform: rotate(7deg); }
}

/* ===== Music Notes ===== */
.music-notes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}
.music-note {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: noteFloat 3s ease-out forwards;
}
@keyframes noteFloat {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5) rotate(0deg);
    }
    15% {
        opacity: 0.9;
        transform: translate(10px, -20px) scale(1) rotate(-5deg);
    }
    100% {
        opacity: 0;
        transform: translate(60px, -120px) scale(0.7) rotate(15deg);
    }
}

/* ===== Robot Debug Mode ===== */
.robot-debug-mode .robot-wing-left,
.robot-debug-mode .robot-wing-right,
.robot-debug-mode .robot-recharge {
    animation: none !important;
}
.robot-debug-mode .robot-wing-left {
    transform: scaleX(-1) rotate(57deg);
}
.robot-debug-mode .robot-wing-right {
    transform: rotate(57deg);
}
.robot-debug-mode {
    outline: 2px dashed rgba(255, 255, 0, 0.4);
    outline-offset: -2px;
}
.robot-debug-mode .robot-body,
.robot-debug-mode .robot-head,
.robot-debug-mode .robot-wing,
.robot-debug-mode .robot-recharge {
    cursor: grab !important;
    outline: 2px dashed rgba(0, 255, 0, 0.6);
    outline-offset: -2px;
}
.robot-debug-mode .robot-body.dragging,
.robot-debug-mode .robot-head.dragging,
.robot-debug-mode .robot-wing.dragging,
.robot-debug-mode .robot-recharge.dragging {
    cursor: grabbing !important;
    outline-color: rgba(255, 80, 80, 0.9);
}
.robot-debug-mode .robot-body::after,
.robot-debug-mode .robot-head::after,
.robot-debug-mode .robot-wing-left::after,
.robot-debug-mode .robot-wing-right::after,
.robot-debug-mode .robot-recharge::after {
    content: attr(data-name);
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 11px;
    line-height: 16px;
    padding: 1px 6px;
    background: rgba(0, 200, 100, 0.9);
    color: #000;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 99;
    pointer-events: none;
    font-family: monospace;
}

/* ===== 动画关闭模式 ===== */
body.no-anim .robot-head {
    animation: none !important;
    transform: perspective(600px) rotateX(0deg) rotateZ(0deg);
    top: 37px;
}
body.no-anim .robot-wing-left {
    animation: none !important;
    transform: scaleX(-1) rotate(17deg);
    top: 39px;
    transform-origin: -21px 137px;
}
body.no-anim .robot-wing-right {
    animation: none !important;
    transform: rotate(17deg);
}
body.no-anim .robot-recharge {
    animation: none !important;
}
body.no-anim .speech-bubble {
    animation: none !important;
    transform: rotate(-7deg) scale(1.15);
    top: 80px;
}
body.no-anim .hero-cursor {
    display: none !important;
}

.robot-debug-panel {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 99999;
    background: rgba(15, 15, 25, 0.96);
    border: 1px solid rgba(114, 75, 255, 0.5);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
    font-size: 12px;
    color: #ccc;
    min-width: 260px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}
.robot-debug-panel h3 {
    margin: 0 0 8px;
    font-size: 13px;
    color: #72eb4f;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.robot-debug-panel .dbg-row {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
    align-items: center;
}
.robot-debug-panel .dbg-label {
    width: 55px;
    color: #888;
    flex-shrink: 0;
}
.robot-debug-panel .dbg-val {
    color: #4fc3f7;
    font-weight: bold;
    min-width: 50px;
}
.robot-debug-panel .dbg-unit {
    color: #666;
    font-size: 10px;
}
.robot-debug-panel .dbg-mini-btn {
    padding: 1px 6px;
    margin-left: 2px;
    background: rgba(80, 80, 100, 0.5);
    border: 1px solid rgba(150, 150, 180, 0.4);
    border-radius: 3px;
    color: #bbb;
    cursor: pointer;
    font-size: 10px;
    font-family: inherit;
    line-height: 1.4;
    transition: all 0.1s;
}
.robot-debug-panel .dbg-mini-btn:hover {
    background: rgba(114, 75, 255, 0.5);
    color: #fff;
    border-color: rgba(114, 75, 255, 0.8);
}
.robot-debug-panel .dbg-hint {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 10px;
    color: #777;
    line-height: 1.6;
}
.robot-debug-panel .dbg-btn {
    display: inline-block;
    padding: 4px 10px;
    margin-top: 6px;
    margin-right: 4px;
    background: rgba(114, 75, 255, 0.3);
    border: 1px solid rgba(114, 75, 255, 0.6);
    border-radius: 5px;
    color: #ddd;
    cursor: pointer;
    font-size: 11px;
    font-family: inherit;
    transition: all 0.15s;
}
.robot-debug-panel .dbg-btn:hover {
    background: rgba(114, 75, 255, 0.6);
    color: #fff;
}
.robot-debug-panel .dbg-btn-close {
    background: rgba(255, 80, 80, 0.2);
    border-color: rgba(255, 80, 80, 0.5);
}
.robot-debug-panel .dbg-btn-close:hover {
    background: rgba(255, 80, 80, 0.5);
}
.robot-debug-panel .dbg-output {
    margin-top: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    font-size: 10px;
    color: #8f8;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}
.robot-debug-panel .dbg-output.visible {
    display: block;
}

.hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    min-height: 42px;
    line-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero h1 .hero-cursor {
    -webkit-text-fill-color: #ffffff;
    margin-left: 2px;
    font-weight: 300;
    position: relative;
    top: -2px;
    animation: hero-blink 0.8s step-end infinite;
}
@keyframes hero-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
.hero p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.card {
    background: var(--surface-elevated);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-subtle);
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}
.card:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(114, 75, 255, 0.12);
    background: rgba(114, 75, 255, 0.04);
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}
.card-icon.purple {
    background: rgba(114, 75, 255, 0.1);
}
.card-icon.green {
    background: rgba(40, 184, 148, 0.1);
}
.card-icon.orange {
    background: rgba(255, 149, 0, 0.1);
}
.card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}
.card .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    padding: 10px 20px;
}
.form-container {
    background: var(--surface-elevated);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-subtle);
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}
.form-header {
    text-align: center;
    margin-bottom: 28px;
}
.form-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-header p {
    font-size: 14px;
    color: var(--text-secondary);
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: Consolas, "SF Mono", monospace;
    background: rgba(0, 0, 0, 0.15);
    color: var(--text);
    outline: none;
    transition: all 0.2s ease;
}
.form-input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(114, 75, 255, 0.15);
    background: rgba(0, 0, 0, 0.2);
}
/* 积分查询输入框：蓝色外发光，与「积分查询」按钮配色一致 */
#query-buddyKey:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18);
}
/* 积分充值输入框：绿色外发光，与「立即充值」按钮配色一致 */
#recharge-buddyKey:focus,
#recharge-redeemCode:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(40, 184, 148, 0.18);
}
.form-input::placeholder {
    color: var(--text-dim);
}
.form-input.large {
    padding: 14px 18px;
    font-size: 17px;
    letter-spacing: 0.5px;
}
.form-hint {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 6px;
}
.hint-link {
    color: var(--purple-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.hint-link:hover {
    color: var(--purple);
    text-decoration: underline;
}
.form-hint-actions {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 10px;
}
.hint-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    background: rgba(114, 75, 255, 0.06);
    border: 1px solid rgba(114, 75, 255, 0.12);
    border-radius: 6px;
    transition: all 0.2s ease;
}
.hint-action:hover {
    color: var(--purple-light);
    background: rgba(114, 75, 255, 0.12);
    border-color: rgba(114, 75, 255, 0.25);
}
.hint-action-sep {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 8px;
}
.form-tip {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(40, 184, 148, 0.06);
    border: 1px solid rgba(40, 184, 148, 0.15);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}
.form-actions {
    margin-top: 28px;
}
.form-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
}
.result-box {
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    display: none;
    backdrop-filter: blur(4px);
}
.result-box.show {
    display: block;
}
.result-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--purple-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.result-value {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface-elevated);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}
.result-value span {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    font-family: Consolas, "SF Mono", monospace;
    color: var(--text);
    word-break: break-all;
}
.result-copy {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    background: var(--purple);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.result-copy:hover {
    background: var(--purple-light);
}
.result-warning {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 149, 0, 0.06);
    border: 1px solid rgba(255, 149, 0, 0.15);
    border-radius: 8px;
    font-size: 13px;
    color: var(--orange);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.result-warning::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9500' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cline x1='12' x2='12' y1='9' y2='13'/%3E%3Cline x1='12' x2='12.01' y1='17' y2='17'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.info-section {
    background: var(--surface-elevated);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-subtle);
    margin-top: 32px;
    backdrop-filter: blur(4px);
}
.info-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-list {
    list-style: none;
}
.info-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.info-list li:last-child {
    border-bottom: none;
}
.info-list li::before {
    content: "•";
    color: var(--purple);
    font-weight: bold;
    flex-shrink: 0;
}

/* 支持的客户端卡片 */
.clients-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}
.client-card {
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.2s ease;
    min-width: 0;       /* 关键：允许 grid 子项收缩到内容以下，不被 marquee 撑开 */
    overflow: hidden;   /* 超出部分隐藏 */
}
.client-card:hover {
    border-color: rgba(147, 51, 234, 0.35);
}
.client-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin: 0 auto 14px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    margin-bottom: 14px;
}
.client-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 8px 4px;
}
.client-icons > * {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.client-icons img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.2s ease;
}
.client-icons img:hover {
    transform: scale(1.1);
}
.client-icons span {
    font-size: 11.5px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.client-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.client-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.client-icon-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.client-icon-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s ease;
}
.client-icon-item img:hover {
    transform: scale(1.12);
}
.client-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
/* IDE 插件 — 横向无限循环滚动 */
.client-tags-marquee {
    flex-wrap: nowrap;
    overflow: hidden;
    justify-content: flex-start;
    gap: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.client-tags-marquee .marquee-track {
    display: flex;
    flex-shrink: 0;
    animation: marquee-scroll 30s linear infinite;
}
.client-tags-marquee .marquee-set {
    display: flex;
    flex-shrink: 0;
}
.client-tags-marquee .marquee-set .client-tag {
    margin-right: 10px;
}
.client-tags-marquee:hover .marquee-track {
    animation-play-state: paused;
}
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-33.333%); }
}
.client-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid rgba(147, 51, 234, 0.25);
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.06);
    width: 84px;        /* 固定宽度，所有图标等宽 */
    min-width: 84px;
    flex-shrink: 0;
    box-sizing: border-box;
}
.client-tag img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s ease;
}
.client-tag img:hover {
    transform: scale(1.12);
}
.client-tag em {
    font-style: normal;
    font-size: 11px;
    color: var(--purple-light);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-subtle);
}
.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    font-family: Consolas, "SF Mono", monospace;
}
.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
}
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 24px;
    background: rgba(37, 39, 54, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast.success {
    border-color: rgba(40, 184, 148, 0.4);
}
.toast.error {
    border-color: rgba(255, 59, 48, 0.4);
}
.footer {
    background: transparent;
    padding: 24px 20px;
    text-align: center;
    margin-top: 48px;
    border-top: 1px solid var(--border-subtle);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-dim);
}
.footer-brand {
    font-weight: 600;
    background: linear-gradient(135deg, var(--purple-light), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-sep {
    opacity: 0.3;
}
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #724bff;
    animation: spin 0.8s linear infinite;
}
.loading-text {
    color: white;
    font-size: 16px;
    margin-top: 16px;
    text-align: center;
}
.input-valid {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 2px rgba(40, 184, 148, 0.2) !important;
}
.input-invalid {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.2) !important;
}
.validation-message {
    font-size: 12px;
    margin-top: 4px;
    display: none;
}
.validation-message.show {
    display: block;
}
.validation-message.success {
    color: var(--green);
}
.validation-message.error {
    color: var(--red);
}
.error-msg {
    background: rgba(255, 59, 48, 0.06);
    border: 1px solid rgba(255, 59, 48, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--red);
    margin-bottom: 16px;
    display: none;
}
.error-msg.show {
    display: block;
}
@media (min-width: 1024px) {
    .hero {
        padding: 0 20px 40px;
    }
    .hero h1 {
        font-size: 34px;
    }
    .hero-icon {
        width: 250px;
        height: 250px;
        font-size: 42px;
    }
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .card {
        padding: 28px;
    }
    .form-container {
        padding: 48px;
    }
    .form-input.large {
        font-size: 18px;
        padding: 16px 20px;
    }
    .form-header h2 {
        font-size: 24px;
    }
    .stat-value {
        font-size: 28px;
    }
}
@media (max-width: 768px) {
    .topbar-inner {
        min-height: 48px;
        padding: 8px 16px;
    }
    .topbar-logo span {
        font-size: 15px;
    }
    .topbar-nav {
        gap: 4px;
    }
    .topbar-nav .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .main {
        padding: 20px 16px;
    }
    .hero {
        padding: 0 16px 30px;
    }
    .hero h1 {
        font-size: 24px;
    }
    .hero p {
        font-size: 14px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .form-container {
        padding: 24px 20px;
    }
    .form-header h2 {
        font-size: 20px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stat-value {
        font-size: 20px;
    }
    .btn {
        padding: 7px 14px;
        font-size: 12px;
    }
    .btn-large {
        padding: 10px 20px;
        font-size: 14px;
    }
    .line-section {
        padding: 12px;
    }
    .line-item {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }
    .form-hint-actions {
        flex-wrap: wrap;
        gap: 6px;
    }
    .hint-action-sep {
        display: none;
    }
}
@media (max-width: 480px) {
    .topbar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main {
        padding: 16px 12px;
    }
    .form-container {
        padding: 20px 16px;
    }
    .lines-list {
        flex-direction: column;
        gap: 6px;
    }
    .line-item {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 6px;
    }
    .line-item-name {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .line-item-region {
        order: 3;
        width: 100%;
        margin-top: 2px;
    }
}
#query-expiredPacksSection {
    margin-top: 16px;
}
#query-expiredPacksSection summary {
    cursor: pointer;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    list-style: none;
}
#query-expiredPacksSection summary::-webkit-details-marker {
    display: none;
}
#query-expiredPacksSection summary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}
#query-expiredPacksSection[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}
#query-expiredPacksSection .details-arrow {
    transition: transform 0.2s ease;
}
#query-expiredPacksSection[open] .details-arrow {
    transform: rotate(180deg);
}
#query-expiredPacksList {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: rgba(0, 0, 0, 0.1);
}
#query-expiredPacksList > div:last-child {
    border-bottom: none;
}
#query-expiredPacksList .progress-container {
    opacity: 0.5;
}
#query-expiredPacksList .progress-bar {
    background: var(--gray);
}
code {
    background: var(--surface-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, "SF Mono", monospace;
    font-size: 0.9em;
}
.models-section {
    max-width: 800px;
    margin: 24px auto 0;
}
.models-card {
    background: var(--surface-elevated);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}
.models-header {
    text-align: center;
    margin-bottom: 24px;
}
.models-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.models-header p {
    font-size: 14px;
    color: var(--text-secondary);
}
.models-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.models-actions .btn {
    flex: 1;
}
.models-preview {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border-subtle);
    max-height: 200px;
    overflow-y: auto;
}
.models-preview pre {
    margin: 0;
    font-family: Consolas, "SF Mono", monospace;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
}
.models-tutorial {
    margin-top: 24px;
    padding: 20px;
    background: rgba(108, 77, 255, 0.04);
    border: 1px solid rgba(108, 77, 255, 0.1);
    border-radius: 10px;
}
.models-tutorial h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--purple-light);
}
.models-tutorial ol {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 2;
}
.btn-generate-config {
    background: linear-gradient(135deg, #ffc800, #e6b400);
    border-color: rgba(255, 200, 0, 0.6);
    color: #000;
    font-weight: 600;
}
.btn-generate-config:hover {
    background: linear-gradient(135deg, #ffd633, #ffc800);
    box-shadow: 0 4px 16px rgba(255, 200, 0, 0.35);
    transform: translateY(-1px);
    border-color: rgba(255, 200, 0, 0.8);
}
.btn-generate-config:active {
    transform: translateY(0);
}
.btn-query {
    background: linear-gradient(135deg, #007aff, #0055d4);
    border-color: rgba(0, 122, 255, 0.6);
    color: #fff;
    font-weight: 600;
}
.btn-query:hover {
    background: linear-gradient(135deg, #3395ff, #007aff);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
    transform: translateY(-1px);
    border-color: rgba(0, 122, 255, 0.8);
}
.btn-query:active {
    transform: translateY(0);
}
.quick-guide {
    margin-top: 32px;
    background: var(--surface-elevated);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.guide-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.guide-close {
    padding: 6px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.guide-close:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
    color: var(--text);
}
.guide-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
}
.guide-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    flex: 1;
    min-width: 0;
    max-width: none;
    transition: all 0.2s ease;
}
.guide-step:hover {
    background: rgba(114, 75, 255, 0.06);
    border-color: var(--border-light);
    transform: translateY(-2px);
}
.guide-step-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
    padding-bottom: 1px;
}
.guide-step-info {
    flex: 1;
}
.guide-step-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.guide-step-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}
.guide-step-btn {
    padding: 6px 12px;
    background: var(--purple);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.guide-step-btn:hover {
    background: var(--purple-dark);
    transform: scale(1.05);
}
.guide-step-done {
    padding: 6px 12px;
    background: rgba(40, 184, 148, 0.15);
    border: 1px solid rgba(40, 184, 148, 0.3);
    border-radius: 6px;
    color: var(--green);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.guide-step-arrow {
    color: var(--text-dim);
    flex-shrink: 0;
}
.quick-guide.hidden {
    display: none;
}
.card-icon.blue {
    background: rgba(0, 122, 255, 0.1);
}
.card-icon.yellow {
    background: rgba(255, 200, 0, 0.1);
}
.client-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 16px 0;
}
.client-card {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: all 0.2s ease;
}
.client-card:hover {
    border-color: var(--border-light);
    background: rgba(114, 75, 255, 0.04);
}
.client-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.client-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.client-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 8px 4px;
}
.client-icons > * {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.client-icons img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.2s ease;
}
.client-icons img:hover {
    transform: scale(1.1);
}
.client-icons span {
    font-size: 11.5px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.client-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.client-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.client-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    background: rgba(108, 77, 255, 0.06);
    color: var(--purple-light);
    border: 1px solid rgba(108, 77, 255, 0.1);
}
.client-note {
    font-size: 13px;
    color: var(--green);
    text-align: center;
    margin-top: 12px;
    padding: 10px;
    background: rgba(40, 184, 148, 0.06);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}
.client-note:hover {
    background: rgba(40, 184, 148, 0.15);
    border-color: rgba(40, 184, 148, 0.35);
    box-shadow: 0 4px 16px rgba(40, 184, 148, 0.2);
    transform: translateY(-2px);
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.2s ease;
}
.faq-item:hover {
    border-color: var(--border);
    background: rgba(0, 0, 0, 0.12);
}
.faq-item summary {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: "+";
    font-size: 18px;
    color: var(--text-dim);
    transition: transform 0.2s;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item summary:hover {
    background: var(--surface-light);
}
.faq-answer {
    padding: 0 16px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.faq-answer p {
    margin-bottom: 8px;
}
.faq-answer p:last-child {
    margin-bottom: 0;
}
.faq-answer a {
    color: var(--purple-light);
    text-decoration: underline;
}
.faq-answer code {
    background: var(--surface-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.model-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 12px;
}
.model-list-table th {
    text-align: left;
    padding: 6px 10px;
    background: rgba(114, 75, 255, 0.08);
    color: var(--text);
    font-weight: 600;
    border-bottom: 2px solid var(--border-subtle);
    white-space: nowrap;
}
.model-list-table td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}
.model-list-table tr:last-child td {
    border-bottom: none;
}
.model-list-table tr:hover td {
    background: rgba(114, 75, 255, 0.03);
}
.model-list-table .model-name-cell {
    font-weight: 600;
    color: var(--text);
}
.model-list-table .model-yes {
    color: var(--green);
}
.model-list-table .model-no {
    color: var(--text-dim);
}
.progress-container {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    height: 12px;
    overflow: hidden;
}
.progress-bar {
    background: rgb(114 75 255 / var(--un-bg-opacity, 1));
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s;
}
.tutorial-section {
    margin-top: 24px;
    padding: 24px;
    background: rgba(108, 77, 255, 0.04);
    border: 1px solid rgba(108, 77, 255, 0.08);
    border-radius: 12px;
}
.tutorial-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--purple-light);
}
.tutorial-block {
    background: var(--surface-elevated);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-subtle);
}
.tutorial-block:last-of-type {
    margin-bottom: 0;
}
.tutorial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.tutorial-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.tutorial-icon img {
    border-radius: 6px;
}
.tutorial-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tutorial-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}
.step-content {
    flex: 1;
}
.step-content strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
}
.step-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.step-content code {
    background: var(--surface-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.tutorial-tip {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(40, 184, 148, 0.04);
    border: 1px solid rgba(40, 184, 148, 0.1);
    border-radius: 8px;
}
.tutorial-tip p {
    font-size: 13px;
    color: var(--green-light);
    margin: 0;
}
.legal-section {
    background: transparent;
    border-top: 1px solid var(--border-subtle);
    padding: 32px 20px;
    margin-top: 40px;
}
.legal-inner {
    max-width: 800px;
    margin: 0 auto;
}
.legal-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}
.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.legal-list li {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 16px;
    position: relative;
}
.legal-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-dim);
}
.legal-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
}
.legal-links a {
    color: var(--purple-light);
    text-decoration: none;
    transition: color 0.15s;
}
.legal-links a:hover {
    color: var(--purple);
    text-decoration: underline;
}
.legal-sep {
    color: var(--text-dim);
}
.page-section {
    display: none;
}
.page-section.active {
    display: block;
}
.script-guide {
    margin-top: 24px;
    padding: 20px;
    background: rgba(108, 77, 255, 0.04);
    border: 1px solid rgba(108, 77, 255, 0.1);
    border-radius: 10px;
}
.script-guide h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--purple-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.script-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.script-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}
.script-step-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}
.script-step-info {
    flex: 1;
}
.script-step-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.script-step-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}
.script-note {
    padding: 12px 16px;
    background: rgba(40, 184, 148, 0.04);
    border: 1px solid rgba(40, 184, 148, 0.1);
    border-radius: 8px;
}
.script-note p {
    font-size: 13px;
    color: var(--green-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.script-section {
    padding: 16px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}
.script-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.script-section-header strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.script-section-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
    color: var(--text);
}
.topbar-nav .btn.active {
    background: var(--purple);
    border-color: rgba(114, 75, 255, 0.6);
    color: #fff;
    box-shadow: 0 2px 8px rgba(114, 75, 255, 0.2);
}
.cards-grid .card {
    cursor: pointer;
}
.cards-grid .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(114, 75, 255, 0.12);
}
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
}
.icon svg {
    width: 100%;
    height: 100%;
}
.icon-sm {
    font-size: 14px;
}
.icon-md {
    font-size: 16px;
}
.icon-lg {
    font-size: 20px;
}
.icon-xl {
    font-size: 24px;
}
.config-methods {
    margin-bottom: 24px;
}

/* ===== More Settings (Model Selection) ===== */
.more-settings {
    margin-bottom: 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-elevated);
}
.more-settings-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.more-settings-header:hover {
    background: rgba(114, 75, 255, 0.05);
}
.more-settings-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}
.more-settings-summary {
    font-size: 13px;
    color: var(--text-dim);
    background: rgba(114, 75, 255, 0.08);
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.more-settings-arrow {
    display: flex;
    align-items: center;
    color: var(--text-dim);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.more-settings-body {
    padding: 0 16px 16px;
    animation: settingsSlideDown 0.25s ease;
}
.more-settings-hint {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 12px;
    padding-top: 4px;
}
.model-checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.model-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.2s;
}
.model-checkbox-item:hover {
    border-color: var(--purple-light);
    background: rgba(114, 75, 255, 0.03);
}
.model-checkbox-item.checked {
    border-color: var(--purple);
    background: rgba(114, 75, 255, 0.06);
}
.model-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.model-checkbox-box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.2s;
}
.model-checkbox-item.checked .model-checkbox-box {
    background: var(--purple);
    border-color: var(--purple);
}
.model-checkbox-item.checked .model-checkbox-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.model-checkbox-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.model-checkbox-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 5px;
}
.model-tip-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 500;
    color: #f5a623;
    background: rgba(245, 166, 35, 0.12);
    padding: 1px 7px 1px 5px;
    border-radius: 10px;
    line-height: 1.4;
    white-space: nowrap;
}
.model-tip-badge svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}
.model-checkbox-desc {
    font-size: 11px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.more-settings-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.more-settings-actions .btn {
    padding: 4px 14px;
    font-size: 12px;
}
.backup-node-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    margin-left: 8px;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
}
.backup-node-toggle:hover {
    border-color: var(--purple-light);
}
.backup-node-toggle.checked {
    border-color: var(--purple);
    background: rgba(114, 75, 255, 0.06);
}
.backup-node-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.backup-node-box {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}
.backup-node-toggle.checked .backup-node-box {
    background: var(--purple);
    border-color: var(--purple);
}
.backup-node-toggle.checked .backup-node-box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.backup-node-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}
@keyframes settingsSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.method-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.method-tab {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-elevated);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1.4;
    backdrop-filter: blur(8px);
}
.method-tab:hover {
    background: rgba(114, 75, 255, 0.1);
    border-color: var(--border-light);
    color: var(--text);
}
.method-tab.active {
    background: var(--purple);
    border-color: rgba(114, 75, 255, 0.6);
    color: #fff;
    box-shadow: 0 2px 8px rgba(114, 75, 255, 0.2);
}
.method-content {
    display: none;
}
.method-content.active {
    display: block;
}
.method-header {
    margin-bottom: 20px;
}
.method-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.method-header p {
    font-size: 14px;
    color: var(--text-secondary);
}
.method-steps {
    margin-top: 24px;
    padding: 20px;
    background: rgba(108, 77, 255, 0.04);
    border: 1px solid rgba(108, 77, 255, 0.08);
    border-radius: 10px;
}
.method-steps h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--purple-light);
}
.path-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.os-path {
    background: var(--surface-elevated);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border-subtle);
}
.os-path strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 12px;
}
.os-path ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.os-path li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.os-path li:last-child {
    border-bottom: none;
}
.os-path code {
    background: var(--surface-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    word-break: break-all;
}
.ai-prompt-preview {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border-subtle);
    max-height: 200px;
    overflow-y: auto;
}
.ai-prompt-preview pre {
    margin: 0;
    font-family: Consolas, "SF Mono", monospace;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
}
.cli-command-preview {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border-subtle);
    max-height: 200px;
    overflow-y: auto;
}
.cli-command-preview pre {
    margin: 0;
    font-family: Consolas, "SF Mono", monospace;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
}
.cli-open-section {
    margin-top: 24px;
    padding: 20px;
    background: rgba(108, 77, 255, 0.04);
    border: 1px solid rgba(108, 77, 255, 0.08);
    border-radius: 10px;
}
.cli-open-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--purple-light);
}
.cli-open-header strong {
    font-weight: 600;
}
.cli-open-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cli-open-card {
    background: var(--surface-elevated);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    padding: 16px;
}
.cli-open-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--text);
}
.cli-open-card-header strong {
    font-weight: 600;
}
.cli-open-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cli-shortcut {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cli-shortcut-label {
    font-size: 12px;
    color: var(--text-secondary);
}
.cli-shortcut-keys {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text);
}
.cli-shortcut-keys kbd {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: Consolas, "SF Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    min-width: 20px;
    text-align: center;
}
.key-plus {
    font-size: 11px;
    color: var(--text-tertiary);
}
.cli-shortcut-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 4px;
}
.cli-shortcut-desc code {
    font-size: 12px;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.08);
}
@media (max-width: 640px) {
    .cli-open-grid {
        grid-template-columns: 1fr;
    }
}
.tip-box {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(40, 184, 148, 0.04);
    border: 1px solid rgba(40, 184, 148, 0.1);
    border-radius: 8px;
}
.tip-box p {
    font-size: 13px;
    color: var(--green-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tutorial-card {
    background: var(--surface-elevated);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.tutorial-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.tutorial-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-subtle);
}
.tutorial-card-icon {
    display: flex;
    gap: 8px;
    align-items: center;
}
.tutorial-card-icon img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.tutorial-card-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
}
.tutorial-card-header p {
    font-size: 13px;
    color: var(--text-dim);
    margin: 0;
}
.tutorial-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tutorial-step-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}
.tutorial-step-card:hover {
    background: rgba(114, 75, 255, 0.06);
    border-color: var(--border-light);
}
.step-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(114, 75, 255, 0.3);
}
.step-info {
    flex: 1;
}
.step-info h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px 0;
}
.step-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* 步骤提示标签缩放动画 */
.ai-step-tip {
    animation: pulse-tip 1.8s ease-in-out infinite;
}

.ai-step-tip:nth-of-type(2) {
    animation-delay: 0.9s;
}

@keyframes pulse-tip {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.92;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: translateX(-50%) scale(1.08);
        opacity: 1;
        box-shadow: 0 6px 22px rgba(114, 75, 255, 0.65);
    }
}
.step-paths {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.step-path {
    display: flex;
    align-items: center;
    gap: 10px;
}
.os-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.os-badge.win {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
    border: 1px solid rgba(0, 122, 255, 0.2);
}
.os-badge.mac {
    background: rgba(255, 149, 0, 0.15);
    color: #ff9500;
    border: 1px solid rgba(255, 149, 0, 0.2);
}
.step-path code {
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-family: Consolas, "SF Mono", monospace;
    flex: 1;
}
.path-note {
    font-size: 11px;
    color: var(--text-dim);
    padding: 0 4px;
}
.step-hint {
    font-size: 12px;
    color: var(--text-dim);
    margin: 8px 0 0 0;
    font-style: italic;
}
.path-value {
    display: flex;
    align-items: center;
    gap: 8px;
}
.path-value code {
    flex: 1;
}
.copy-btn {
    padding: 6px 8px;
    background: rgba(114, 75, 255, 0.15);
    border: 1px solid rgba(114, 75, 255, 0.3);
    border-radius: 6px;
    color: var(--purple-light);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.copy-btn:hover {
    background: rgba(114, 75, 255, 0.25);
    border-color: rgba(114, 75, 255, 0.5);
    transform: scale(1.05);
}
.copy-btn:active {
    transform: scale(0.95);
}
.copy-btn .icon {
    width: 14px;
    height: 14px;
}
.tutorial-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.tutorial-header-bar h3 {
    margin-bottom: 0;
}
.tutorial-mode {
    display: none;
}
.tutorial-mode.active {
    display: block;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline:hover {
    background: var(--surface-elevated);
    border-color: var(--border-light);
    color: var(--text);
}
.quick-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.quick-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: var(--surface-elevated);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}
.quick-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}
.quick-step-content {
    flex: 1;
}
.quick-step-content strong {
    display: block;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 4px;
}
.quick-step-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}
.path-section {
    margin-top: 24px;
    padding: 20px;
    background: rgba(108, 77, 255, 0.04);
    border: 1px solid rgba(108, 77, 255, 0.08);
    border-radius: 10px;
}
.path-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--purple-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.path-card {
    background: var(--surface-elevated);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    padding: 16px;
}
.path-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--text);
}
.path-card-header strong {
    font-weight: 600;
}
.path-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.path-item {
    margin-bottom: 0;
}
.path-label {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.path-item code {
    display: block;
    background: rgba(0, 0, 0, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-all;
    font-family: Consolas, "SF Mono", monospace;
}
