﻿:root {
    --primary: #0d9488;
    --primary-light: #14b8a6;
    --primary-lighter: #ccfbf1;
    --primary-dark: #0f766e;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --bg: #f0fdfa;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
    --font-display: 'ZCOOL QingKe HuangYou',cursive;
    --font-body: 'Noto Sans SC',-apple-system,BlinkMacSystemFont,sans-serif
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none
}

input {
    font-family: inherit;
    border: none;
    outline: none
}

::-webkit-scrollbar {
    width: 6px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--text-secondary)
    }

.bg-deco {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden
}

    .bg-deco .circle {
        position: absolute;
        border-radius: 50%;
        opacity: 0.3
    }

        .bg-deco .circle:nth-child(1) {
            width: 600px;
            height: 600px;
            top: -200px;
            right: -150px;
            background: radial-gradient(circle,rgba(13,148,136,0.15),transparent 70%)
        }

        .bg-deco .circle:nth-child(2) {
            width: 400px;
            height: 400px;
            bottom: -100px;
            left: -100px;
            background: radial-gradient(circle,rgba(245,158,11,0.1),transparent 70%)
        }

        .bg-deco .circle:nth-child(3) {
            width: 300px;
            height: 300px;
            top: 40%;
            left: 50%;
            background: radial-gradient(circle,rgba(6,182,212,0.08),transparent 70%)
        }

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    background: rgba(240,253,250,0.8);
    border-bottom: 1px solid rgba(226,232,240,0.6);
    padding: 0 24px
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--primary-dark);
    letter-spacing: 1px;
    position: relative
}

.logo-text-wrap {
    position: relative;
    display: inline-block
}

.logo .domain-label {
    font-size: 11px;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-left: 6px;
    align-self: flex-end;
    line-height: 2;
    user-select: none
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg,var(--primary),var(--primary-light));
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px
}

    .header-actions .count-badge {
        font-size: 14px;
        color: var(--text-secondary);
        background: var(--border-light);
        padding: 6px 14px;
        border-radius: 20px
    }

.hero {
    padding: 60px 24px 40px;
    text-align: center;
    position: relative
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px,6vw,56px);
    color: var(--primary-dark);
    letter-spacing: 3px;
    line-height: 1.2;
    margin-bottom: 12px
}

.hero-subtitle {
    font-size: clamp(15px,2vw,18px);
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto
}

.search-wrapper {
    max-width: 640px;
    margin: 0 auto 28px;
    position: relative
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 4px 4px 4px 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm)
}

    .search-box:focus-within {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 4px rgba(13,148,136,0.1)
    }

    .search-box .search-icon {
        color: var(--text-muted);
        font-size: 18px;
        flex-shrink: 0
    }

    .search-box input {
        flex: 1;
        padding: 12px 14px;
        font-size: 16px;
        background: transparent;
        color: var(--text)
    }

        .search-box input::placeholder {
            color: var(--text-muted)
        }

    .search-box .clear-btn {
        display: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        color: var(--text-muted);
        font-size: 16px;
        transition: var(--transition)
    }

        .search-box .clear-btn:hover {
            color: var(--text-secondary)
        }

        .search-box .clear-btn.visible {
            display: flex;
            align-items: center;
            justify-content: center
        }

    .search-box .search-submit {
        padding: 10px 28px;
        background: linear-gradient(135deg,var(--primary),var(--primary-light));
        color: white;
        border-radius: 50px;
        font-size: 15px;
        font-weight: 500;
        transition: var(--transition);
        white-space: nowrap
    }

        .search-box .search-submit:hover {
            transform: scale(1.03);
            box-shadow: 0 4px 12px rgba(13,148,136,0.3)
        }

.tags-section {
    max-width: 800px;
    margin: 0 auto 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 24px
}

.tag {
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    user-select: none
}

    .tag:hover {
        border-color: var(--primary-light);
        color: var(--primary)
    }

    .tag.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary)
    }

.stats-bar {
    max-width: 1200px;
    margin: 0 auto 8px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px
}

    .stats-bar .result-count {
        font-size: 14px;
        color: var(--text-secondary)
    }

    .stats-bar .sort-options {
        display: flex;
        gap: 4px
    }

    .stats-bar .sort-btn {
        padding: 4px 14px;
        font-size: 13px;
        border-radius: 20px;
        color: var(--text-muted);
        transition: var(--transition)
    }

        .stats-bar .sort-btn:hover {
            color: var(--text-secondary)
        }

        .stats-bar .sort-btn.active {
            color: var(--primary);
            background: var(--primary-lighter)
        }

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px 80px
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    gap: 20px
}

    .app-grid.empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 300px;
        color: var(--text-muted)
    }

    .app-grid .empty-icon {
        font-size: 48px;
        margin-bottom: 12px;
        opacity: 0.5
    }

    .app-grid .empty-text {
        font-size: 16px
    }

.app-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    animation: cardFadeIn 0.4s ease both;
    position: relative;
    overflow: hidden
}

    .app-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg,var(--primary),var(--primary-light));
        opacity: 0;
        transition: var(--transition)
    }

    .app-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
        border-color: var(--border)
    }

        .app-card:hover::before {
            opacity: 1
        }

@@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.app-card .card-category {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-lighter);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px
}

.app-card .card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.app-card .card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.app-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-light)
}

.app-card .card-source {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px
}

.app-card .card-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent)
}

    .app-card .card-rating .star {
        color: var(--accent-light);
        font-size: 13px
    }

.card-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap
}

    .card-header-row .card-category {
        margin-bottom: 0
    }

.type-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    line-height: 1.4
}

    .type-badge.WEB {
        color: #1d4ed8;
        background: #dbeafe
    }

    .type-badge.EXE {
        color: #b45309;
        background: #fef3c7
    }

    .type-badge.APK {
        color: #047857;
        background: #d1fae5
    }

.ai-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 5px;
    line-height: 1.4;
    color: #7c3aed;
    background: #ede9fe
}

.footer {
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 13px
}

    .footer a {
        color: var(--primary)
    }

        .footer a:hover {
            text-decoration: underline
        }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
    margin-bottom: 14px;
    font-size: 13px
}

    .footer-links .fl-title {
        color: var(--text-muted);
        font-weight: 500
    }

    .footer-links a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: var(--transition)
    }

        .footer-links a:hover {
            color: var(--primary);
            text-decoration: none
        }

.footer-note {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted)
}

.footer-icp {
    margin-top: 6px;
    font-size: 12px
}

    .footer-icp a {
        color: var(--text-muted) !important;
        text-decoration: none
    }

        .footer-icp a:hover {
            color: var(--primary) !important
        }

/* ===== Fixed QQ ===== */
.fixed-qq {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 50;
}

    .fixed-qq a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #0d9488;
        color: #fff;
        font-size: 24px;
        box-shadow: 0 4px 16px rgba(13,148,136,0.3);
        transition: transform 0.2s, box-shadow 0.2s;
    }

        .fixed-qq a:hover {
            transform: scale(1.08);
            box-shadow: 0 6px 24px rgba(13,148,136,0.4);
        }

@@media (max-width:768px) {
    .header-inner {
        height: 56px
    }

    .logo {
        font-size: 20px
    }

    .hero {
        padding: 40px 16px 28px
    }

    .search-box {
        padding: 2px 2px 2px 14px
    }

        .search-box input {
            font-size: 15px;
            padding: 10px 10px
        }

        .search-box .search-submit {
            padding: 8px 20px;
            font-size: 14px
        }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .grid-container {
        padding: 12px 16px 60px
    }

    .header-actions .count-badge {
        font-size: 12px;
        padding: 4px 10px
    }

    .tags-section {
        gap: 6px
    }

    .tag {
        font-size: 13px;
        padding: 5px 14px
    }

    .fixed-qq {
        right: 16px;
        bottom: 24px;
    }

        .fixed-qq a {
            width: 46px;
            height: 46px;
            font-size: 20px;
        }
}

@@media (max-width:480px) {
    .app-grid {
        grid-template-columns: 1fr
    }

    .stats-bar {
        flex-direction: column;
        align-items: flex-start
    }
}

.hidden {
    display: none !important
}
