/* ===== 全局重置 & 变量 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0b1120;
    --bg-secondary: #111c2e;
    --bg-card: rgba(255, 255, 255, 0.04);
    --border-color: rgba(0, 212, 255, 0.12);
    --cyan: #00d4ff;
    --cyan-glow: rgba(0, 212, 255, 0.25);
    --text-primary: #f0f4ff;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --radius: 16px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
}
::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 10px;
}

/* ===== 粒子背景 ===== */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--cyan);
    border-radius: 50%;
    opacity: 0.2;
    animation: floatUp 18s infinite linear;
}
@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(60px);
        opacity: 0;
    }
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 17, 32, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    flex: 1 1 0;
    min-width: 0;
}
.nav-brand img {
    height: 32px;
    width: auto;
}
.nav-brand span {
    background: linear-gradient(135deg, var(--cyan), #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    flex: 0 0 auto;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width var(--transition);
}
.nav-links a:hover {
    color: #fff;
}
.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex: 1 1 0;
    min-width: 0;
}

.user-avatar-container {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    transition: all var(--transition);
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.user-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    min-width: 220px;
    background: rgba(17, 28, 46, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    z-index: 1000;
}

.user-avatar-container:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-balance {
    padding: 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
}

.balance-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 1.3rem;
    font-weight: bold;
    color: #4caf50;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

.dropdown-item.logout:hover {
    background: rgba(255, 23, 68, 0.1);
    color: #ff1744;
}

.btn {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--cyan), #0099cc);
    color: #fff;
    box-shadow: 0 4px 20px var(--cyan-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--cyan-glow);
}
.btn-outline {
    background: transparent;
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, 0.35);
}
.btn-outline:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--cyan);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 4px;
    transition: all var(--transition);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    z-index: 1;
    padding: 120px 2rem 80px;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 80vh;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.hero-text h1 .highlight {
    background: linear-gradient(135deg, var(--cyan), #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.8;
}
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ===== Hero 可视化 ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.topology {
    position: relative;
    width: 380px;
    height: 320px;
}
.center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: rgba(0, 212, 255, 0.04);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px var(--cyan-glow), inset 0 0 40px rgba(0, 212, 255, 0.04);
    animation: pulseGlow 3s ease-in-out infinite;
    backdrop-filter: blur(4px);
}
@keyframes pulseGlow {
    0%,
    100% {
        box-shadow: 0 0 40px var(--cyan-glow), inset 0 0 30px rgba(0, 212, 255, 0.04);
    }
    50% {
        box-shadow: 0 0 70px rgba(0, 212, 255, 0.35), inset 0 0 50px rgba(0, 212, 255, 0.08);
    }
}
.center-node i {
    font-size: 2.8rem;
    color: var(--cyan);
    margin-bottom: 4px;
}
.center-node .label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cyan);
}
.center-node .sublabel {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.satellite {
    position: absolute;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 10px;
    padding: 0.4rem 0.9rem;
    backdrop-filter: blur(4px);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.satellite i {
    color: var(--cyan);
}
.satellite:hover {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.08);
    transform: scale(1.04);
}
.satellite:nth-child(2) {
    top: 0;
    right: 10px;
}
.satellite:nth-child(3) {
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
}
.satellite:nth-child(4) {
    top: 0;
    right: 140px;
}
.satellite:nth-child(5) {
    bottom: 0;
    right: 10px;
}

/* ===== 通用 Section ===== */
.section {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
}
.section-header h2 i {
    color: var(--cyan);
    margin-right: 0.5rem;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== 功能卡片 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.feature-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.feature-card .icon {
    font-size: 2.2rem;
    color: var(--cyan);
    margin-bottom: 1rem;
}
.feature-card .icon img {
    width: 40px;
    height: 40px;
}
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}
.feature-card ul {
    list-style: none;
    margin-top: 1rem;
}
.feature-card ul li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.25rem 0;
    padding-left: 1.2rem;
    position: relative;
}
.feature-card ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 0.5rem;
    top: 0.45rem;
}

/* ===== 产品卡片 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.product-card .head {
    padding: 1.5rem 1.5rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.product-card .head .icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    flex-shrink: 0;
}
.product-card .head .icon img {
    width: 40px;
    height: 40px;
}
.product-card .head .info {
    flex: 1;
}
.product-card .head .info .sub {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}
.product-card .head .info .version {
    font-size: 0.78rem;
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-right: 0.4rem;
}
.product-card .head .info .platform-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}
.product-card .head .info .platform-tag i {
    color: var(--cyan);
    font-size: 0.7rem;
    margin-right: 0.2rem;
}
.product-card .head .info .tags {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.tutorial-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan);
    font-size: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
    margin-left: 0.2rem;
}
.tutorial-link:hover {
    background: rgba(0, 212, 255, 0.25);
    transform: scale(1.1);
}
.product-card .body {
    padding: 1.25rem 1.5rem;
    flex: 1;
}
.product-card .body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.product-card .body ul {
    list-style: none;
}
.product-card .body ul li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.25rem 0;
    padding-left: 1.2rem;
    position: relative;
}
.product-card .body ul li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 0.5rem;
    top: 0.45rem;
}
.product-card .foot {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}
.product-card .foot .foot-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.product-card.loading {
    align-items: center;
    justify-content: center;
    min-height: 200px;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 插件中心 ===== */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1rem;
}
.plugin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.plugin-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.plugin-card.loading {
    justify-content: center;
    min-height: 120px;
}
.plugin-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    flex-shrink: 0;
}
.plugin-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.plugin-info {
    flex: 1;
    min-width: 0;
}
.plugin-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.plugin-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.plugin-meta .version {
    font-size: 0.75rem;
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.1);
    padding: 1px 7px;
    border-radius: 8px;
}
.plugin-meta .platform-tag {
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 7px;
    border-radius: 8px;
}
.plugin-meta .platform-tag i {
    color: var(--cyan);
    font-size: 0.65rem;
    margin-right: 0.15rem;
}
.plugin-meta .size {
    font-size: 0.72rem;
    color: var(--text-secondary);
}
.plugin-meta .size i {
    color: var(--cyan);
    font-size: 0.65rem;
    margin-right: 0.15rem;
}
.plugin-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 页脚 ===== */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 2rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: #fff;
}
.footer-brand img {
    height: 28px;
    width: auto;
}
.footer-brand span {
    background: linear-gradient(135deg, var(--cyan), #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--cyan);
}
.footer-copy {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    margin-top: 1rem;
}


/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }
    .hero-text p {
        margin: 1rem auto;
    }
    .hero-btns {
        justify-content: center;
    }
    .topology {
        width: 300px;
        height: 280px;
    }
    .center-node {
        width: 110px;
        height: 110px;
    }
    .center-node i {
        font-size: 2rem;
    }
    .satellite {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(11, 17, 32, 0.96);
        backdrop-filter: blur(18px);
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.open {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .nav-actions .btn-outline {
        display: none;
    }
    .hero {
        padding: 100px 1.25rem 60px;
    }
    .section {
        padding: 3rem 1.25rem;
    }
    .footer {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 下载中心 ===== */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.download-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.download-card.loading {
    align-items: center;
    justify-content: center;
    min-height: 150px;
}
.dl-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dl-icon {
    width: 52px;
    height: 52px;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    flex-shrink: 0;
}
.dl-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.dl-info {
    flex: 1;
    min-width: 0;
}
.dl-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dl-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.dl-meta .version {
    font-size: 0.75rem;
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.1);
    padding: 1px 7px;
    border-radius: 8px;
}
.dl-meta .platform-tag {
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 7px;
    border-radius: 8px;
}
.dl-meta .platform-tag i {
    color: var(--cyan);
    font-size: 0.65rem;
    margin-right: 0.15rem;
}
.dl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

/* ===== 教程页面 ===== */
.tutorial-content {
    max-width: 900px;
    margin: 0 auto;
}
.tutorial-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}
.tutorial-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}
.tutorial-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tutorial-section-title i {
    color: var(--cyan);
}
.tutorial-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}
.tutorial-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.tutorial-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, var(--cyan), #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}
.step-content {
    flex: 1;
}
.step-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.step-image {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}
.step-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== 函数管理模态框 ===== */
.func-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.func-modal {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.func-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.func-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}
.func-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    transition: var(--transition);
}
.func-modal-close:hover {
    color: #fff;
}
.func-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}
.func-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== 认证页面 ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: rgba(17, 28, 46, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-header .logo img {
    height: 36px;
    width: auto;
}

.auth-header .logo span {
    background: linear-gradient(135deg, var(--cyan), #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid transparent;
}

.tab-btn.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan);
    border-color: rgba(0, 212, 255, 0.3);
}

.tab-btn:hover {
    background: rgba(0, 212, 255, 0.05);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.toggle-password {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--cyan);
}

.code-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.code-input-wrapper input {
    flex: 1;
}

.btn-sm {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-captcha {
    margin-top: 0.4rem;
}

.slider-track {
    position: relative;
    height: 40px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.slider-target {
    position: absolute;
    width: 44px;
    height: 36px;
    top: 2px;
    right: 20px;
    background: rgba(0, 212, 255, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.6);
    border-radius: 18px;
}

.slider-btn {
    position: absolute;
    width: 44px;
    height: 36px;
    top: 2px;
    left: 2px;
    background: linear-gradient(135deg, var(--cyan), #0099cc);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
    user-select: none;
}

.slider-btn i {
    color: #fff;
    font-size: 0.8rem;
}

.slider-btn:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.slider-btn.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.slider-tip {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.checkbox input {
    width: auto;
    padding: 0;
    margin: 0;
}

.forgot-link {
    font-size: 0.8rem;
    color: var(--cyan);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
    font-size: 0.95rem;
}

.btn-spinner {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-spinner {
    display: inline-flex;
}

.send-spinner {
    display: none;
}

.btn.loading .send-text {
    display: none;
}

.btn.loading .send-spinner {
    display: inline-flex;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-footer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--cyan);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== Toast 提示 ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.show {
    display: flex;
}

.toast.success {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}

.toast.error {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.toast.info {
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
}

/* ===== 后台管理页面 ===== */
.admin-page {
    background: var(--bg-primary);
    min-height: 100vh;
}

.admin-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-navbar .nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-navbar .nav-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.admin-navbar .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.user-info i {
    font-size: 1.2rem;
    color: var(--cyan);
}

.admin-layout {
    display: flex;
    padding-top: 56px;
    min-height: 100vh;
}

.admin-sidebar {
    width: 200px;
    background: rgba(17, 28, 46, 0.9);
    border-right: 1px solid var(--border-color);
    padding-top: 1rem;
    position: fixed;
    left: 0;
    top: 56px;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(0, 212, 255, 0.05);
    color: #fff;
}

.menu-item.active {
    background: rgba(0, 212, 255, 0.08);
    color: var(--cyan);
    border-left-color: var(--cyan);
}

.menu-item i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}

.admin-content {
    flex: 1;
    margin-left: 200px;
    padding: 1.5rem;
}

.page-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-content.hidden {
    display: none;
}

.page-func-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    padding: 0;
    overflow: hidden;
}
.page-func-layout.hidden {
    display: none;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

.page-header h2 i {
    color: var(--cyan);
    margin-right: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.header-actions input {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    min-width: 180px;
}

.header-actions input:focus {
    border-color: var(--cyan);
}

/* ===== 统计卡片 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--cyan);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== 通用卡片 ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyan);
}

.card-body {
    padding: 1.25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* ===== 数据表格 ===== */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

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

.data-table th,
.data-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.85rem;
}

.data-table th {
    background: rgba(0, 212, 255, 0.05);
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.data-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.03);
}

.data-table .action-btns {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.35rem 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.action-btn.edit {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.action-btn.edit:hover {
    background: rgba(59, 130, 246, 0.25);
}

.action-btn.delete {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.25);
}

.action-btn.view {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.action-btn.view:hover {
    background: rgba(16, 185, 129, 0.25);
}

/* ===== 状态标签 ===== */
.status-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-tag.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.status-tag.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.status-tag.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.status-tag.used {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.status-tag.unused {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.status-tag.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.status-tag.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.status-tag.info {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.status-tag.disabled {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.action-btn {
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-right: 0.3rem;
}

.action-btn.approve {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.action-btn.approve:hover {
    background: rgba(16, 185, 129, 0.25);
}

.action-btn.reject {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.action-btn.reject:hover {
    background: rgba(239, 68, 68, 0.25);
}
.action-btn.download {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
    color: #4caf50;
}
.action-btn.download:hover {
    background: rgba(76, 175, 80, 0.25);
}

.upload-area {
    border: 2px dashed rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 212, 255, 0.02);
    position: relative;
    overflow: hidden;
}
.upload-area:hover {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.06);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}
.upload-area.dragover {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.1);
    transform: scale(1.02);
}
.upload-icon {
    font-size: 3rem;
    color: var(--cyan);
    margin-bottom: 0.75rem;
}
.upload-text {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}
.upload-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.upload-progress {
    margin-top: 1rem;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}
.upload-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), #0099cc);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}
.upload-progress .progress-text {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}
.upload-progress.hidden {
    display: none;
}
.uploaded-file-name {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    color: #4caf50;
    font-size: 0.9rem;
    display: none;
}
.uploaded-file-name.show {
    display: block;
}

.download-progress-container {
    margin-top: 1rem;
}

.download-progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.download-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.download-progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.download-info {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
}

.download-info p {
    margin: 0.5rem 0;
}

/* ===== 响应式后台管理 ===== */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 180px;
    }
    .admin-content {
        margin-left: 180px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 60px;
        padding-top: 0.5rem;
    }
    .admin-content {
        margin-left: 60px;
        padding: 1rem;
    }
    .menu-item span {
        display: none;
    }
    .menu-item {
        justify-content: center;
        padding: 0.75rem;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .table-container {
        overflow-x: auto;
    }
}