/* ============================================================
   LinkCtrl 主页 · Aurora Light 风格
   独立样式表，仅用于 index.html，不依赖 style.css
   ============================================================ */

/* ===== 重置 & 变量 ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f5f6fb;
    --bg-2: #eceefa;
    --surface: #ffffff;
    --surface-2: #fbfbfe;
    --text: #0f1222;
    --text-2: #5b6178;
    --text-3: #8a90a5;
    --border: rgba(17, 24, 39, 0.08);
    --border-strong: rgba(17, 24, 39, 0.14);

    --accent: #6d5efc;
    --accent-2: #8b5cf6;
    --accent-3: #ec4899;
    --accent-soft: rgba(109, 94, 252, 0.10);
    --accent-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 52%, #ec4899 100%);
    --accent-grad-soft: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(236,72,153,0.12));

    --ok: #10b981;
    --run: #6d5efc;
    --idle: #94a3b8;

    --radius: 20px;
    --radius-sm: 13px;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04), 0 4px 14px rgba(17, 24, 39, 0.05);
    --shadow-md: 0 10px 34px rgba(17, 24, 39, 0.09);
    --shadow-lg: 0 24px 70px rgba(17, 24, 39, 0.14);
    --t: 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);

    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-head: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    font-family: var(--font-head);
    letter-spacing: -0.02em;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(109, 94, 252, 0.32);
    border-radius: 10px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(109, 94, 252, 0.55);
}

/* ===== 极光背景 ===== */
.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    will-change: transform;
}
.blob-1 {
    width: 520px;
    height: 520px;
    top: -160px;
    left: -120px;
    background: radial-gradient(circle at 30% 30%, #818cf8, transparent 70%);
    animation: drift1 22s ease-in-out infinite;
}
.blob-2 {
    width: 560px;
    height: 560px;
    top: -80px;
    right: -160px;
    background: radial-gradient(circle at 60% 40%, #f0abfc, transparent 70%);
    animation: drift2 26s ease-in-out infinite;
}
.blob-3 {
    width: 600px;
    height: 600px;
    bottom: -240px;
    left: 30%;
    background: radial-gradient(circle at 50% 50%, #a5b4fc, transparent 70%);
    opacity: 0.42;
    animation: drift3 30s ease-in-out infinite;
}
@keyframes drift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 80px) scale(1.12); }
}
@keyframes drift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-70px, 50px) scale(1.08); }
}
@keyframes drift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, -60px) scale(1.1); }
}
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow var(--t), background var(--t);
}
.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.86);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-head);
}
.nav-brand img {
    height: 30px;
    width: auto;
}
.nav-brand span {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color var(--t);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-grad);
    transition: width var(--t);
}
.nav-links a:hover {
    color: var(--text);
}
.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* 用户头像下拉 */
.user-avatar-container {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    transition: transform var(--t), box-shadow var(--t);
    box-shadow: 0 4px 14px rgba(109, 94, 252, 0.35);
}
.user-avatar-container:hover .user-avatar {
    transform: scale(1.06);
    box-shadow: 0 6px 22px rgba(109, 94, 252, 0.5);
}
.user-dropdown {
    position: absolute;
    top: 54px;
    right: 0;
    min-width: 230px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--t);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}
.user-avatar-container:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-balance {
    padding: 12px 14px;
    background: var(--accent-grad-soft);
    border-radius: 12px;
    margin-bottom: 8px;
}
.balance-label {
    display: block;
    font-size: 0.76rem;
    color: var(--text-3);
    margin-bottom: 3px;
}
.balance-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}
.dropdown-item i {
    color: var(--accent);
    width: 16px;
    text-align: center;
}
.dropdown-item:hover {
    background: var(--accent-soft);
}
.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.dropdown-item.logout:hover i {
    color: #ef4444;
}

/* ===== 按钮 ===== */
.btn {
    padding: 0.62rem 1.3rem;
    border-radius: 11px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
    white-space: nowrap;
    font-family: var(--font-body);
}
.btn-sm {
    padding: 0.46rem 0.9rem;
    font-size: 0.82rem;
    border-radius: 9px;
    gap: 0.4rem;
}
.btn-primary {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 6px 20px rgba(109, 94, 252, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(109, 94, 252, 0.5);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.btn-ghost.light {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost.light:hover {
    background: rgba(255, 255, 255, 0.26);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}
/* 兼容旧标记 */
.btn-outline {
    background: rgba(255, 255, 255, 0.7);
    color: var(--accent);
    border: 1px solid var(--border-strong);
}
.btn-outline:hover {
    background: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 4px;
    transition: all var(--t);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    z-index: 1;
    padding: 130px 2rem 70px;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
    min-height: 86vh;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.eyebrow i {
    font-size: 0.75rem;
}
.hero-text h1 {
    font-size: clamp(2.6rem, 5.2vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.2rem;
}
.hero-text h1 .highlight {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.hero-text p {
    font-size: 1.08rem;
    color: var(--text-2);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.8;
}
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.6rem;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.stat {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-3);
    font-weight: 500;
}
.stat-div {
    width: 1px;
    height: 30px;
    background: var(--border-strong);
}

/* ===== Hero 可视化 · Bento ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.bento {
    position: relative;
    width: 100%;
    max-width: 440px;
    animation: floatBento 6s ease-in-out infinite;
}
@keyframes floatBento {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.bento-main {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 1.4rem;
    box-shadow: var(--shadow-lg);
}
.bento-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.bento-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.06); }
}
.bento-title {
    font-weight: 600;
    font-size: 0.95rem;
    flex: 1;
    color: var(--text);
}
.bento-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ok);
    background: rgba(16, 185, 129, 0.12);
    padding: 3px 9px;
    border-radius: 100px;
}
.bento-live i {
    font-size: 0.5rem;
    animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}
.tile {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 0.7rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: transform var(--t), box-shadow var(--t);
}
.tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}
.tile i {
    font-size: 1.05rem;
    color: var(--accent);
    margin-bottom: 2px;
}
.tile span {
    font-size: 0.72rem;
    color: var(--text-2);
    font-weight: 500;
}
.tile em {
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 100px;
    margin-top: 2px;
}
.tile em.ok { color: var(--ok); background: rgba(16,185,129,0.12); }
.tile em.run { color: var(--run); background: rgba(109,94,252,0.12); }
.tile em.idle { color: var(--idle); background: rgba(148,163,184,0.16); }

.bento-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 0.55rem 0.85rem;
    box-shadow: var(--shadow-md);
    animation: floatChip 5s ease-in-out infinite;
}
.bento-chip i {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.82rem;
}
.bento-chip strong {
    display: block;
    font-size: 0.78rem;
    color: var(--text);
    line-height: 1.2;
}
.bento-chip small {
    display: block;
    font-size: 0.68rem;
    color: var(--text-3);
}
.chip-1 {
    top: -22px;
    left: -28px;
    animation-delay: 0s;
}
.chip-1 i { background: var(--accent-grad); }
.chip-2 {
    bottom: 30px;
    right: -34px;
    animation-delay: 1.2s;
}
.chip-2 i { background: linear-gradient(135deg, #f59e0b, #ec4899); }
.chip-3 {
    bottom: -22px;
    left: 20px;
    animation-delay: 2.4s;
}
.chip-3 i { background: linear-gradient(135deg, #10b981, #06b6d4); }
@keyframes floatChip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* ===== 通用 Section ===== */
.section {
    position: relative;
    z-index: 1;
    padding: 5.5rem 2rem;
    max-width: 1240px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 5px 13px;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.kicker.light {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.18);
}
.section-header h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.section-header p {
    color: var(--text-2);
    font-size: 1.02rem;
}

/* ===== 模块说明 · 功能卡片 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.feature-card:hover::before {
    transform: scaleX(1);
}
.f-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--accent-grad-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
    transition: transform var(--t);
}
.feature-card:hover .f-icon {
    transform: scale(1.08) rotate(-4deg);
}
.feature-card h3 {
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===== 产品卡片 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.product-card .head {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.product-card .head .icon {
    width: 58px;
    height: 58px;
    background: var(--accent-grad-soft);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.product-card .head .icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.product-card .head .info {
    flex: 1;
    min-width: 0;
}
.product-card .head .info .sub {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-head);
}
.product-card .head .info .version,
.product-card .head .info .platform-tag {
    font-size: 0.72rem;
    padding: 2px 9px;
    border-radius: 100px;
    display: inline-block;
    margin-top: 5px;
}
.product-card .head .info .version {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 600;
}
.product-card .head .info .platform-tag {
    color: var(--text-2);
    background: var(--bg-2);
}
.product-card .head .info .platform-tag i {
    color: var(--accent);
    font-size: 0.68rem;
    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: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    text-decoration: none;
    transition: background var(--t), transform var(--t);
    margin-top: 5px;
}
.tutorial-link:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
}
.product-card .body {
    padding: 1.25rem 1.5rem;
    flex: 1;
}
.product-card .body p {
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.product-card .body ul {
    list-style: none;
}
.product-card .body ul li {
    color: var(--text-2);
    font-size: 0.86rem;
    padding: 0.28rem 0;
    padding-left: 1.4rem;
    position: relative;
}
.product-card .body ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.62rem;
    top: 0.5rem;
}
.product-card .foot {
    padding: 1rem 1.5rem 1.4rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.product-card .foot .foot-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

/* ===== 下载中心 ===== */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
}
.download-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    box-shadow: var(--shadow-sm);
}
.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.dl-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dl-icon {
    width: 54px;
    height: 54px;
    background: var(--accent-grad-soft);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.dl-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.dl-info {
    flex: 1;
    min-width: 0;
}
.dl-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-head);
}
.dl-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.dl-meta .version {
    font-size: 0.74rem;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 9px;
    border-radius: 100px;
    font-weight: 600;
}
.dl-meta .platform-tag {
    font-size: 0.72rem;
    color: var(--text-2);
    background: var(--bg-2);
    padding: 2px 9px;
    border-radius: 100px;
}
.dl-meta .platform-tag i {
    color: var(--accent);
    font-size: 0.66rem;
    margin-right: 0.2rem;
}
.dl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

/* ===== 插件中心 ===== */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.plugin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    box-shadow: var(--shadow-sm);
}
.plugin-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.plugin-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-grad-soft);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    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.98rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text);
    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.73rem;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 1px 8px;
    border-radius: 100px;
    font-weight: 600;
}
.plugin-meta .platform-tag {
    font-size: 0.7rem;
    color: var(--text-2);
    background: var(--bg-2);
    padding: 1px 8px;
    border-radius: 100px;
}
.plugin-meta .platform-tag i {
    color: var(--accent);
    font-size: 0.62rem;
    margin-right: 0.15rem;
}
.plugin-meta .size {
    font-size: 0.72rem;
    color: var(--text-3);
}
.plugin-meta .size i {
    color: var(--accent);
    font-size: 0.62rem;
    margin-right: 0.15rem;
}
.plugin-desc {
    font-size: 0.82rem;
    color: var(--text-2);
    line-height: 1.55;
    margin-top: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 加载占位 ===== */
.product-card.loading,
.download-card.loading,
.plugin-card.loading {
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: var(--text-3);
    text-align: center;
}
.plugin-card.loading {
    min-height: 110px;
}
.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--accent-soft);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 0.8rem;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== CTA Band ===== */
.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--accent-grad);
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 30px 80px rgba(109, 94, 252, 0.35);
}
.cta-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.18), transparent 45%);
    pointer-events: none;
}
.cta-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}
.cta-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
}
.cta-content p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.04rem;
    margin-bottom: 1.8rem;
}
.cta-btns {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 页脚 ===== */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem 1.8rem;
    max-width: 1240px;
    margin: 2rem auto 0;
    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: 700;
    color: var(--text);
    font-family: var(--font-head);
}
.footer-brand img {
    height: 28px;
    width: auto;
}
.footer-brand span {
    background: var(--accent-grad);
    -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-2);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--t);
}
.footer-links a:hover {
    color: var(--accent);
}
.footer-copy {
    width: 100%;
    text-align: center;
    color: var(--text-3);
    font-size: 0.78rem;
    margin-top: 1rem;
}

/* ===== Toast（兼容 app.js，主页一般不触发） ===== */
/* 注：.toast 的样式统一在下方「Toast 提示」处定义（右上角固定小条）。
   此处原有一份重复定义（bottom 居中版），与下方规则打架导致动画 transform
   残留 + flex 拉伸出满屏高度，已删除。 */

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
    .features-grid,
    .products-grid,
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .plugins-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 110px;
        gap: 3.5rem;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btns,
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        order: -1;
    }
    .bento {
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        transform: none;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(18px);
        padding: 1.2rem 2rem;
        gap: 0.6rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        padding: 0.6rem 0;
        font-size: 0.98rem;
    }
    .hamburger {
        display: flex;
    }
    .nav-actions .btn-outline,
    .nav-actions .btn-primary {
        display: none;
    }
    .hero {
        padding: 100px 1.25rem 60px;
    }
    .section {
        padding: 3.5rem 1.25rem;
    }
    .cta-band {
        padding: 2.8rem 1.5rem;
    }
    .footer {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .features-grid,
    .products-grid,
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 2.1rem;
    }
    .hero-stats {
        gap: 1rem;
    }
    .stat-div {
        display: none;
    }
    .bento {
        max-width: 320px;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .chip-1 { left: -8px; }
    .chip-2 { right: -8px; }
}

/* ============================================================
   认证页面（登录 / 注册 / 管理员登录）· Aurora Light 风格
   ============================================================ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.25rem;
    position: relative;
}

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

.auth-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 2.6rem 2.4rem;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.8rem;
}
.auth-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-decoration: none;
    font-family: var(--font-head);
}
.auth-header .logo img {
    height: 36px;
    width: auto;
}
.auth-header .logo span {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-header h2 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
    color: var(--text);
}
.auth-header h2 i {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.3rem;
}
.auth-header p {
    color: var(--text-2);
    font-size: 0.92rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.6rem;
    padding: 4px;
    background: var(--bg-2);
    border-radius: 13px;
}
.tab-btn {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--text-2);
    transition: all var(--t);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
}
.tab-btn.active {
    background: var(--surface);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}
.tab-btn:hover:not(.active) {
    color: var(--text);
}

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

.form-group {
    position: relative;
}
.form-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-2);
    margin-bottom: 0.45rem;
    font-weight: 600;
}
.form-group label i {
    color: var(--accent);
    font-size: 0.75rem;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text);
    font-size: 0.92rem;
    transition: border-color var(--t), background var(--t), box-shadow var(--t);
    outline: none;
    font-family: var(--font-body);
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group input::placeholder {
    color: var(--text-3);
}

.toggle-password {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color var(--t);
    padding: 2px;
}
.toggle-password:hover {
    color: var(--accent);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
    font-size: 0.95rem;
}
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.btn-spinner,
.send-spinner {
    display: none;
}
.btn.loading .btn-text {
    display: none;
}
.btn.loading .btn-spinner {
    display: inline-flex;
}
.btn.loading .send-text {
    display: none;
}
.btn.loading .send-spinner {
    display: inline-flex;
}

/* 滑块验证 */
.slider-captcha {
    margin-top: 0.4rem;
}
.slider-track {
    position: relative;
    height: 42px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 21px;
    overflow: hidden;
}
.slider-target {
    position: absolute;
    width: 46px;
    height: 36px;
    top: 2px;
    right: 20px;
    background: var(--accent-soft);
    border: 2px solid rgba(109, 94, 252, 0.45);
    border-radius: 18px;
}
.slider-btn {
    position: absolute;
    width: 46px;
    height: 36px;
    top: 2px;
    left: 2px;
    background: var(--accent-grad);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: transform var(--t), box-shadow var(--t);
    box-shadow: 0 3px 12px rgba(109, 94, 252, 0.35);
    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);
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.4);
}
.slider-tip {
    margin-top: 0.55rem;
    font-size: 0.76rem;
    color: var(--text-3);
    text-align: center;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.2rem;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-2);
}
.checkbox input {
    width: auto;
    padding: 0;
    margin: 0;
    accent-color: var(--accent);
}
.checkbox a {
    color: var(--accent);
    text-decoration: none;
}
.checkbox a:hover {
    text-decoration: underline;
}
.forgot-link {
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.forgot-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 1.6rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.auth-footer p {
    font-size: 0.86rem;
    color: var(--text-2);
}
.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover {
    text-decoration: underline;
}

/* Toast 提示 */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10001;
    width: auto;
    height: auto;
    max-width: 360px;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    display: none;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease-out;
    line-height: 1.4;
}
.toast i {
    font-size: 0.85rem;
    flex-shrink: 0;
}
@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.toast.show {
    display: inline-flex;
    transform: none;
}
.toast.success {
    background: rgba(16, 185, 129, 0.96);
    color: #fff;
}
.toast.error {
    background: rgba(239, 68, 68, 0.96);
    color: #fff;
}
.toast.info {
    background: rgba(109, 94, 252, 0.96);
    color: #fff;
}

/* 粒子背景兼容（auth 页面不再使用，置空避免残留） */
#particles {
    display: none;
}

@media (max-width: 560px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    .auth-header h2 {
        font-size: 1.4rem;
    }
}

/* ===== 模态框（忘记密码等） ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 18, 34, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalFade 0.25s ease-out;
}
.modal-overlay.show {
    display: flex;
}
@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    padding: 2.2rem 2rem 1.8rem;
    box-shadow: var(--shadow-lg);
    animation: modalPop 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes modalPop {
    from { transform: translateY(16px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--bg-2);
    color: var(--text-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t), color var(--t);
    font-size: 0.9rem;
}
.modal-close:hover {
    background: var(--accent-soft);
    color: var(--accent);
}
.modal-head {
    text-align: center;
    margin-bottom: 1.5rem;
}
.modal-head h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
    color: var(--text);
}
.modal-head h3 i {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.35rem;
}
.modal-head p {
    color: var(--text-2);
    font-size: 0.86rem;
}
