/* ===== 35797_common.css — 35797.css 与 35797_app.css 的共享样式 ===== */

: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;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

/* ===== 背景装饰 ===== */
.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%);
        }

/* ===== 头部 ===== */
.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;
}

/* ===== Logo 域名标签 ===== */
.logo .domain-label {
    font-size: 11px;
    font-family: var(--font-body);
    font-weight: 700;
    background: linear-gradient(135deg, #0ea5e9, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    margin-left: 6px;
    align-self: flex-end;
    line-height: 2;
    user-select: none;
}

/* ===== Type Badge ===== */
.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;
    }

    .type-badge.macOS {
        color: #7c3aed;
        background: #ede9fe;
    }

    .type-badge.Linux {
        color: #dc2626;
        background: #fee2e2;
    }

    .type-badge + .type-badge {
        margin-left: 4px;
    }

/* ===== AI Badge ===== */
.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;
    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;
        }

/* ===== 浮动操作按钮 (QQ + 收藏 + 回到顶部) ===== */
.float-actions {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
    border: none;
    outline: none;
    text-decoration: none;
    flex-shrink: 0;
}

    .float-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    }

.float-top {
    background: #0f172a;
    color: #fff;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s, visibility 0.3s;
}

    .float-top.show {
        opacity: 1;
        visibility: visible;
    }

    .float-top:hover {
        background: #1e293b;
    }

.float-qq {
    background: #0d9488;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(13,148,136,0.3);
}

    .float-qq:hover {
        box-shadow: 0 6px 24px rgba(13,148,136,0.4);
        background: #0f766e;
    }

/* ===== 动画关键帧 ===== */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(-4px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes logoFlip {
    0%, 85%, 100% { transform: rotateY(0deg); }
    90%, 95% { transform: rotateY(180deg); }
}
