:root {
    --bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.3);
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --code-color: #fca5a5;
}

/* 字体导入 - 使用 woff2 格式以优化性能 */
@font-face {
    font-family: 'AlibabaPuHuiTi';
    src: url('fonts/AlibabaPuHuiTi-3/AlibabaPuHuiTi-3-55-Regular.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AlibabaPuHuiTi';
    src: url('fonts/AlibabaPuHuiTi-3/AlibabaPuHuiTi-3-85-Bold.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: 'AlibabaKaiti';
    src: url('fonts/阿里巴巴刀隶体/IKBB880qmbVd.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Maple Mono NL';
    src: url('fonts/MapleMonoNL-Woff2/MapleMonoNL-Regular.ttf.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Maple Mono NL';
    src: url('fonts/MapleMonoNL-Woff2/MapleMonoNL-Bold.ttf.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'AlibabaPuHuiTi', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    cursor: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="28" height="28"><path d="M250.752 208.448a32 32 0 0 0-41.216 41.216l207.36 550.4a32 32 0 0 0 60.8-2.624l55.936-198.528A96 96 0 0 1 600 532.48l198.528-55.936a32 32 0 0 0 2.56-60.8l-550.4-207.36z m-101.12 63.808c-29.12-77.248 46.4-152.832 123.712-123.712l550.336 207.36c86.72 32.704 81.408 157.12-7.808 182.272l-198.528 56a32 32 0 0 0-22.144 22.08l-55.936 198.528c-25.152 89.216-149.568 94.528-182.208 7.808l-207.424-550.4z" fill="%2338bdf8"/></svg>') 2 2, auto;
}

/* 背景装饰 */
.background-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1a2a4a 25%, #0d1f3a 50%, #1e1a3a 75%, #0f172a 100%);
    z-index: -1;
}

/* 鼠标发光效果 */
.mouse-glow {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    box-shadow: 0 0 30px 15px rgba(56, 189, 248, 0.3), 0 0 50px 25px rgba(56, 189, 248, 0.15);
    background: radial-gradient(circle, rgba(56, 189, 248, 0.6) 0%, rgba(56, 189, 248, 0.3) 30%, rgba(56, 189, 248, 0) 70%);
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    filter: blur(15px);
    opacity: 0.9;
}

header {
    text-align: center;
    padding: 60px 20px 40px;
}

header h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
    font-family: 'AlibabaKaiti', 'AlibabaPuHuiTi', -apple-system, sans-serif;
}
header p {
    font-weight: bold;
}

.highlight { color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }

/* 搜索和过滤 */
.search-section {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

#searchBar {
    width: 100%;
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--card-bg);
    color: white;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    transition: 0.3s;
}

#searchBar:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.filter-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-dim);
    padding: 8px 18px;
    border-radius: 50px;
    cursor: inherit;
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
}

/* 卡片网格 */
.bind-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.bind-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bind-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.bind-header h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--accent); font-weight: bold; }
.bind-header p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 20px; }

.code-area {
    background: rgba(0,0,0,0.3);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

code { font-family: 'Maple Mono NL', monospace; color: var(--code-color); font-size: 0.85rem; }

.copy-icon {
    background: none; border: none; cursor: inherit;
    color: var(--text-dim); transition: 0.2s;
}

.copy-icon:hover { color: var(--accent); }

/* 吐司提示 */
.toast {
    position: fixed;
    bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent);
    color: var(--bg);
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.4s;
    opacity: 0;
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.section-divider { margin: 60px 0; height: 1px; background: linear-gradient(to right, transparent, var(--accent), transparent); }

.download-section {
    margin: 40px auto;
    padding: 0 20px;
    max-width: 1200px;
}

.download-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-group {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: 0.3s;
}

.category-group:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.15);
}

.category-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.category-name::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 10px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    transition: 0.2s;
    font-size: 0.9rem;
}

.file-item:hover {
    background: rgba(56, 189, 248, 0.1);
}

.file-name {
    color: var(--text-main);
    flex: 1;
    word-break: break-word;
}

.file-download-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: inherit;
    font-size: 1.2rem;
    padding: 0 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-download-btn:hover {
    color: #a78bfa;
    transform: scale(1.2);
}

footer { text-align: center; padding: 60px; color: var(--text-dim); font-size: 0.8rem; }

/* 悬浮栏按钮箭头 */
.btn-arrow {
    width: 32px;
    height: 32px;
    display: block;
}

/* 悬浮栏 */
.floating-sidebar {
    position: fixed;
    right: 30px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

.float-btn {
    width: auto;
    height: auto;
    background: none;
    border: none;
    color: white;
    cursor: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    position: relative;
    padding: 0;
}

.float-btn:hover {
    background: none;
    transform: scale(1.15);
    box-shadow: none;
}

.float-btn:active {
    transform: scale(1.05);
    box-shadow: none;
}