/* ============================================================
   style.css  —  Lw Studios 公共样式
   ============================================================ */

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

body {
    background: #0b0d15;
    font-family: 'Segoe UI', 'Poppins', system-ui, -apple-system, sans-serif;
    color: #eef2f6;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
}

.site-wrapper {
    max-width: 1280px;
    width: 100%;
    background: rgba(18, 22, 33, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 3rem 3rem 2rem 2rem;
    padding: 2.5rem 2.8rem;
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(90, 150, 255, 0.08);
    border: 1px solid rgba(70, 130, 255, 0.15);
    transition: all 0.2s ease;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(60, 100, 200, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 100, 200, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* ----- 头部 & 导航 ----- */
.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 1.5rem;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.brand h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(145deg, #b6d0ff, #5f8aff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(70, 130, 255, 0.25);
}

.brand .badge {
    background: rgba(70, 130, 255, 0.18);
    padding: 0.2rem 0.9rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #a0c0ff;
    border: 1px solid rgba(70, 130, 255, 0.2);
    backdrop-filter: blur(2px);
    letter-spacing: 0.3px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-weight: 500;
    flex-wrap: wrap;
}

.nav-links a {
    color: #b6c8e6;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.4rem 0.2rem;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: white;
    border-bottom-color: #5f8aff;
}

.nav-links a i {
    margin-right: 6px;
    opacity: 0.7;
}

.nav-links a.active {
    color: white;
    border-bottom-color: #5f8aff;
}

/* ----- 英雄区 ----- */
.hero {
    margin: 1rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hero h2 {
    font-size: 2.4rem;
    font-weight: 600;
    background: linear-gradient(to right, #e0ecff, #9bbaff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #b0c6e5;
    max-width: 780px;
    opacity: 0.9;
}

.hero p i {
    color: #6f9eff;
    margin: 0 6px;
}

.hero-tag {
    display: inline-block;
    margin-left: 8px;
    background: rgba(70, 130, 255, 0.12);
    padding: 0 14px;
    border-radius: 40px;
    font-size: 0.9rem;
    border: 1px solid rgba(70, 130, 255, 0.1);
}

/* ----- CLI 标签 ----- */
.cli-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 200, 100, 0.15);
    color: #5ce0a0;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.7rem;
    border-radius: 40px;
    border: 1px solid rgba(0, 200, 100, 0.2);
    letter-spacing: 0.3px;
    margin-left: 6px;
}

.cli-badge i {
    font-size: 0.6rem;
    color: #5ce0a0;
}

/* ----- 文件大小标签 ----- */
.size-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: #8aa4d9;
    font-size: 0.75rem;
    padding: 0.05rem 0.8rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-left: 10px;
}

.size-badge i {
    font-size: 0.65rem;
}

/* ----- 页面标题 ----- */
.page-header {
    margin: 0.5rem 0 2rem 0;
}

.page-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #d6e5ff;
}

.page-header h2 i {
    color: #7ba3ff;
    margin-right: 10px;
}

.page-header p {
    color: #b0c6e5;
    font-size: 1.1rem;
    opacity: 0.85;
    margin-top: 0.2rem;
}

/* ----- 主页双栏卡片 ----- */
.studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2.5rem 0 3rem;
}

.studio-card {
    background: rgba(26, 32, 50, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 2.5rem;
    padding: 2rem 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.studio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3a7aff, #9ac0ff);
    opacity: 0.3;
}

.studio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(90, 150, 255, 0.3);
    box-shadow: 0 25px 40px -16px #1b2a5e;
    background: rgba(30, 38, 60, 0.7);
}

.card-icon {
    font-size: 2.8rem;
    color: #7ba3ff;
    margin-bottom: 0.6rem;
    display: inline-block;
    background: rgba(60, 110, 255, 0.08);
    padding: 0.4rem 0.8rem 0.2rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(70, 130, 255, 0.1);
    width: fit-content;
}

.studio-card h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: -0.3px;
    color: #d6e5ff;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.studio-card h3 span {
    font-weight: 300;
    font-size: 1rem;
    color: #7f9ed0;
    background: rgba(255, 255, 255, 0.03);
    padding: 0 12px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.studio-card p {
    color: #b9cef0;
    margin: 0.6rem 0 1.4rem;
    font-size: 1.05rem;
}

/* ----- 项目列表 (主页卡片内) ----- */
.project-list {
    margin-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.project-item {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(100, 160, 255, 0.08);
    backdrop-filter: blur(2px);
    transition: 0.2s;
}

.project-item:hover {
    border-color: rgba(100, 160, 255, 0.3);
    background: rgba(20, 28, 48, 0.5);
}

.project-item .top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.8rem;
}

.project-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #d0e2ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-name i {
    color: #6f9eff;
    font-size: 1rem;
}

.project-versions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.8rem;
    font-size: 0.85rem;
    color: #b0ccff;
}

.version-badge {
    background: rgba(70, 130, 255, 0.1);
    padding: 0.1rem 0.9rem;
    border-radius: 40px;
    border: 1px solid rgba(70, 130, 255, 0.08);
    font-size: 0.75rem;
}

.version-badge i {
    margin-right: 4px;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    margin-top: 0.4rem;
}

/* ----- 下载按钮 (小) ----- */
.download-btn-sm {
    background: linear-gradient(145deg, #2a4a8a, #1a3568);
    border: none;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid rgba(90, 150, 255, 0.2);
    text-decoration: none;
    box-shadow: 0 2px 8px -2px #0f1a33;
}

.download-btn-sm i {
    font-size: 0.7rem;
}

.download-btn-sm:hover {
    background: linear-gradient(145deg, #3a5fa8, #254a82);
    border-color: #6f9eff;
    transform: scale(1.02);
}

/* ----- 详情链接 ----- */
.detail-link {
    color: #8aa4d9;
    font-size: 0.8rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.detail-link:hover {
    color: white;
    border-bottom-color: #5f8aff;
}

.empty-hint {
    color: #8aa4d9;
    font-weight: 300;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px dashed rgba(100, 160, 255, 0.15);
}

.empty-sub {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #5d7aad;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.empty-sub span {
    color: #7b99d6;
}

/* ----- Tools / Games 全量列表 ----- */
.project-list-full {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.project-item-full {
    background: rgba(26, 32, 50, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 2rem;
    padding: 1.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    transition: 0.3s;
}

.project-item-full:hover {
    border-color: rgba(90, 150, 255, 0.2);
    background: rgba(30, 38, 60, 0.7);
    transform: translateY(-3px);
}

.project-icon {
    font-size: 2.8rem;
    color: #7ba3ff;
    background: rgba(60, 110, 255, 0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(70, 130, 255, 0.1);
    flex-shrink: 0;
}

.project-info {
    flex: 1;
    min-width: 200px;
}

.project-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.5rem;
    margin-bottom: 0.3rem;
}

.project-title-row .project-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #d6e5ff;
}

.project-desc {
    color: #b9cef0;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.project-desc i {
    color: #6f9eff;
    margin-right: 6px;
}

.project-actions-full {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.2rem;
    margin-top: 0.4rem;
}

/* ----- 下载按钮 (大) ----- */
.download-btn {
    background: linear-gradient(145deg, #2a4a8a, #1a3568);
    border: none;
    color: white;
    padding: 0.5rem 1.6rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid rgba(90, 150, 255, 0.2);
    text-decoration: none;
    box-shadow: 0 4px 10px -4px #0f1a33;
}

.download-btn i {
    font-size: 0.9rem;
}

.download-btn:hover {
    background: linear-gradient(145deg, #3a5fa8, #254a82);
    border-color: #6f9eff;
    transform: scale(1.02);
    box-shadow: 0 6px 16px -4px #1d3a77;
}

/* ----- 空状态 (Games) ----- */
.empty-state-games {
    background: rgba(26, 32, 50, 0.4);
    border-radius: 2.5rem;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px dashed rgba(100, 160, 255, 0.15);
}

.empty-state-games .empty-icon {
    font-size: 4rem;
    color: #5d7aad;
    margin-bottom: 1rem;
}

.empty-state-games .empty-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: #b9cef0;
    margin-bottom: 0.4rem;
}

.empty-state-games .empty-desc {
    color: #8aa4d9;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.empty-state-games .empty-sub {
    color: #5d7aad;
    font-size: 0.9rem;
}

.empty-hint-full {
    color: #8aa4d9;
    font-weight: 300;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    border: 1px dashed rgba(100, 160, 255, 0.15);
    justify-content: center;
}

/* ----- 底部 ----- */
.footer {
    margin-top: 2rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.footer .status-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #98b2e0;
    font-size: 0.95rem;
}

.status-tag .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #40d47a;
    border-radius: 50%;
    box-shadow: 0 0 12px #34b86a;
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.5; transform: scale(0.9); }
}

.footer-badge {
    margin-left: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 0 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.footer .social-links {
    display: none !important;
}

.footer .copy {
    font-size: 0.85rem;
    color: #6c84b0;
    letter-spacing: 0.3px;
}

/* ----- 响应式 ----- */
@media (max-width: 860px) {
    .site-wrapper {
        padding: 1.8rem 1.5rem;
    }
    .studio-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    .brand h1 {
        font-size: 2.1rem;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    .nav-links {
        gap: 1.2rem;
    }
    .project-item-full {
        flex-direction: column;
        align-items: stretch;
    }
    .project-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .site-wrapper {
        padding: 1.2rem 1rem;
        border-radius: 2rem;
    }
    .studio-card {
        padding: 1.5rem;
    }
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .project-item .top {
        flex-direction: column;
        align-items: flex-start;
    }
    .project-actions-full {
        flex-direction: column;
        align-items: stretch;
    }
    .download-btn {
        justify-content: center;
    }
}