/* ========================================
   码农像素卡牌素材集 - 全局样式
   赛博朋克暗色主题 + 像素风格
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1623;
    --bg-card: #111827;
    --bg-card-hover: #1a2235;
    --accent-cyan: #00f5ff;
    --accent-purple: #bf5af2;
    --accent-pink: #ff2d78;
    --accent-yellow: #ffd60a;
    --accent-green: #32d74b;
    --accent-orange: #ff9500;
    --text-primary: #e8eaed;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: #1e293b;
    --glow-cyan: rgba(0, 245, 255, 0.15);
    --glow-purple: rgba(191, 90, 242, 0.15);
    --font-main: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) var(--bg-secondary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 3px; }

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ---------- 背景粒子 ---------- */
.bg-particles {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% { transform: translateY(100vh) scale(1); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-10vh) scale(0.5); opacity: 0; }
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon { font-size: 28px; }

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.nav-cta:hover {
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
    transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,245,255,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    background: rgba(0, 245, 255, 0.08);
    border: 1px solid rgba(0, 245, 255, 0.2);
    padding: 6px 20px;
    border-radius: 100px;
    margin-bottom: 28px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(0,245,255,0.2); }
    50% { box-shadow: 0 0 25px rgba(0,245,255,0.4); }
}

.hero-title {
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title-line {
    display: block;
    color: var(--text-primary);
}

.hero-title-line.accent {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-num {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 30px rgba(0, 245, 255, 0.3);
    transition: var(--transition);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 245, 255, 0.4);
}

.hero-cta svg { transition: transform 0.3s; }
.hero-cta:hover svg { transform: translateY(3px); }

/* ---------- Section Common ---------- */
section {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ---------- Showcase ---------- */
.showcase {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    border-color: rgba(0,245,255,0.4);
    color: var(--text-primary);
}

.filter-tab.active {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0,245,255,0.15);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.card-item:hover {
    transform: translateY(-6px);
    border-color: rgba(0,245,255,0.4);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(0,245,255,0.1);
}

.card-item.blurred {
    cursor: pointer;
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 5/7;
    background: #080c14;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.card-item:hover .card-img { transform: scale(1.05); }

.card-item.blurred .card-img {
    filter: blur(16px) brightness(0.6);
}

.card-blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 16px;
}

.card-blur-overlay svg {
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(0,245,255,0.6));
}

.card-category-tag {
    position: absolute;
    top: 10px; left: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.15);
}

.card-body {
    padding: 14px;
}

.card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.card-visual {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-visual .tech-label {
    color: var(--accent-cyan);
    font-weight: 600;
}

.card-item.blurred .card-body { opacity: 0.7; }

.showcase-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- Unlock Section ---------- */
.unlock-section {
    padding: 80px 24px;
    background: linear-gradient(180deg, transparent, rgba(0,245,255,0.03) 50%, transparent);
}

.unlock-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(0,245,255,0.2);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.unlock-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
}

.unlock-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-purple);
    margin-bottom: 16px;
}

.unlock-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.unlock-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

.unlock-desc .keyword {
    display: inline-block;
    background: rgba(0,245,255,0.1);
    color: var(--accent-cyan);
    padding: 2px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 14px;
    border: 1px solid rgba(0,245,255,0.3);
}

.unlock-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-text {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.step-arrow {
    color: var(--text-muted);
    padding: 0 4px;
}

.qrcode-area {
    margin-bottom: 32px;
}

.qrcode-extra-tip {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(255,255,255,0.1);
}

.qrcode-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid rgba(0,245,255,0.3);
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0; left: 0;
}

.qrcode-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
}

.qrcode-loading.hidden { display: none; }

.spinner {
    width: 32px; height: 32px;
    border: 3px solid rgba(0,245,255,0.2);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.qrcode-tip {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.qrcode-subtip {
    font-size: 12px;
    color: var(--text-muted);
}

.package-info {
    background: rgba(50,215,75,0.06);
    border: 1px solid rgba(50,215,75,0.2);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    text-align: left;
}

.package-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 12px;
}

.package-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.package-info li {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ---------- More Section ---------- */
.more-section {
    padding: 80px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-group {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.category-group.open {
    border-color: rgba(0,245,255,0.3);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition);
    gap: 12px;
}

.category-header:hover { background: rgba(255,255,255,0.02); }

.category-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.category-count {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 2px 10px;
    border-radius: 100px;
}

.category-toggle {
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.category-group.open .category-toggle { transform: rotate(180deg); }

.category-cards {
    display: none;
    padding: 0 20px 16px;
    flex-wrap: wrap;
    gap: 6px;
}

.category-group.open .category-cards { display: flex; }

.card-tag {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.card-tag:hover {
    color: var(--text-secondary);
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.1);
}

/* ---------- Modal ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active { display: flex; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    max-width: 480px;
    width: 100%;
    animation: modal-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: -48px; right: 0;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.modal-close:hover { background: rgba(255,255,255,0.2); }

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.modal-img-wrapper {
    position: relative;
    aspect-ratio: 5/7;
    background: #080c14;
    max-height: 350px;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-info {
    padding: 24px;
}

.modal-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding: 3px 12px;
    border-radius: 100px;
    display: inline-block;
    border: 1px solid;
}

.modal-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.modal-visual {
    margin-bottom: 12px;
}

.modal-tech-section {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

.modal-tech-section .tech-label {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--accent-cyan);
    min-width: 50px;
}

.modal-tech-section .tech-content {
    color: var(--text-primary);
    line-height: 1.5;
}

.modal-lore {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    border-left: 3px solid rgba(0,245,255,0.3);
    margin-bottom: 16px;
}

.modal-unlock-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--accent-yellow);
    background: rgba(255,214,10,0.08);
    border: 1px solid rgba(255,214,10,0.2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

/* ---------- Fixed CTA ---------- */
.fixed-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
}

.fixed-cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 30px rgba(0,245,255,0.3);
    transition: var(--transition);
}

.fixed-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0,245,255,0.4);
}

/* ---------- Footer ---------- */
.footer {
    padding: 32px 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-inner p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .header-inner { padding: 0 16px; }
    .nav-link:not(.nav-cta) { display: none; }
    .hero { padding: 100px 16px 60px; }
    .hero-stats { gap: 16px; }
    .stat-divider { display: none; }
    .showcase { padding: 60px 16px; }
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .unlock-card { padding: 32px 24px; }
    .unlock-steps { gap: 12px; }
    .step-arrow { display: none; }
    .more-section { padding: 60px 16px; }
    .fixed-cta { bottom: 16px; right: 16px; }
    .fixed-cta-btn span { display: none; }
}

@media (max-width: 480px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-text { font-size: 15px; }
}
