﻿: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;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

::-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;
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--primary-dark);
    cursor: pointer;
}

    .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: 34px;
    height: 34px;
    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: 16px;
    font-weight: 700;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 15px;
    padding: 6px 14px;
    border-radius: 50px;
    transition: var(--transition);
}

    .back-link:hover {
        background: var(--border-light);
        color: var(--primary);
    }

/* ===== Detail Favorites Button ===== */
.detail-fav {
    margin-left: auto;
    font-size: 22px;
    cursor: pointer;
    color: #cbd5e1;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
    line-height: 1;
}

    .detail-fav:hover {
        color: #ef4444;
        transform: scale(1.15);
    }

    .detail-fav.active {
        color: #ef4444;
    }

.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0px 20px;
}

.not-found {
    text-align: center;
    padding: 80px 24px;
}

    .not-found .icon {
        font-size: 56px;
        margin-bottom: 16px;
    }

    .not-found p {
        font-size: 16px;
        color: var(--text-muted);
        margin-bottom: 24px;
    }

    .not-found .btn-back {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 28px;
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        color: white;
        border-radius: 50px;
        font-size: 15px;
        font-weight: 500;
    }

        .not-found .btn-back:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(13,148,136,0.3);
        }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    animation: fadeUp 0.45s ease;
}

    .detail-card .banner {
        height: 4px;
        background: linear-gradient(90deg, #0d9488, #14b8a6, #f59e0b);
    }

    .detail-card .body {
        padding: 28px 36px 16px;
    }

    .detail-card .detail-footer-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 24px 8px;
        border-top: 1px solid rgba(0,0,0,0.025);
        user-select: none;
    }

        .detail-card .detail-footer-bar .detail-tips {
            font-size: 12px;
            color: rgba(148,163,184,0.6);
            letter-spacing: 0.5px;
            font-weight: 400;
        }

        .detail-card .detail-footer-bar .detail-source {
            font-size: 13px;
            color: rgba(148,163,184,0.35);
            letter-spacing: 1px;
            font-weight: 300;
        }

    .detail-card .detail-category {
        display: inline-block;
        font-size: 13px;
        font-weight: 500;
        color: #0d9488;
        background: #ccfbf1;
        padding: 5px 16px;
        border-radius: 50px;
    }

.detail-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.detail-card .detail-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 18px;
    color: #0f172a;
}

.detail-card .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.detail-card .detail-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #64748b;
}

    .detail-card .detail-meta-item .label {
        color: #94a3b8;
        font-size: 13px;
    }

    .detail-card .detail-meta-item .stars {
        color: #f59e0b;
        letter-spacing: 2px;
        font-size: 15px;
    }

    .detail-card .detail-meta-item .value {
        font-weight: 600;
        color: #1e293b;
    }

    .detail-card .detail-meta-item .rating-count {
        display: none;
        font-size: 12px;
        font-weight: 500;
        color: #0d9488;
        background: linear-gradient(135deg, #ccfbf1, #f0fdfa);
        padding: 3px 12px;
        border-radius: 20px;
        border: 1px solid rgba(13,148,136,0.12);
        margin-left: 2px;
    }

        .detail-card .detail-meta-item .rating-count.has-ratings {
            display: inline-block;
        }

    #ratingArea {
        margin-left: auto;
    }

    .detail-card .detail-meta-item .rating-hint {
        font-size: 11px;
        color: #0d9488;
        background: #ccfbf1;
        padding: 2px 10px;
        border-radius: 10px;
        font-weight: 500;
        transition: opacity 0.3s;
        animation: ratingHintPulse 2s ease-in-out infinite;
        cursor: pointer;
    }

        .detail-card .detail-meta-item .rating-hint:hover {
            animation: none;
            background: #0d9488;
            color: #fff;
            transform: scale(1.05);
        }

    @keyframes ratingHintPulse {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(13,148,136,0.3);
        }
        50% {
            transform: scale(1.05);
            box-shadow: 0 0 0 6px rgba(13,148,136,0);
        }
    }

.detail-card .detail-desc {
    margin-bottom: 24px;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    overflow: hidden;
}

    .detail-card .detail-desc .detail-desc-title {
        text-align: center;
        font-size: 13px;
        font-weight: 600;
        color: #fff;
        background: linear-gradient(135deg, #0d9488, #14b8a6);
        padding: 10px 0;
        letter-spacing: 3px;
        position: relative;
    }

        .detail-card .detail-desc .detail-desc-title::before,
        .detail-card .detail-desc .detail-desc-title::after {
            content: '';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 5px;
            height: 5px;
            background: rgba(255,255,255,0.35);
            border-radius: 50%;
        }

        .detail-card .detail-desc .detail-desc-title::before { left: 20px; }
        .detail-card .detail-desc .detail-desc-title::after { right: 20px; }

    .detail-card .detail-desc .detail-desc-content {
        font-size: 15px;
        line-height: 2;
        color: #334155;
        text-indent: 2em;
        letter-spacing: 0.3px;
        padding: 18px 22px 22px;
    }

.detail-card .detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding-top: 4px;
}

.detail-card .detail-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 44px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: white;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(13,148,136,0.25);
    animation: visitPulse 3s ease-in-out infinite;
}

    .detail-card .detail-visit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(13,148,136,0.4);
        animation: none;
    }

@keyframes visitPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(13,148,136,0.25); }
    50% { box-shadow: 0 8px 28px rgba(13,148,136,0.4); }
}

.detail-card .detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 15px;
    color: var(--text-secondary);
    transition: var(--transition);
}

    .detail-card .detail-back-btn:hover {
        border-color: var(--primary-light);
        color: var(--primary);
    }

/* ===== Type Badge ===== */
.type-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

    .type-badge.WEB {
        color: #1d4ed8;
        background: #dbeafe;
    }

    .type-badge.EXE {
        color: #b45309;
        background: #fef3c7;
    }

    .type-badge.APK {
        color: #047857;
        background: #d1fae5;
    }

    .type-badge.DMG {
        color: #7c3aed;
        background: #ede9fe;
    }

    .type-badge.LINUX {
        color: #dc2626;
        background: #fee2e2;
    }

    .type-badge + .type-badge {
        margin-left: 4px;
    }

.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: 28px 24px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 13px;
}

    .footer a {
        color: #0d9488;
    }

        .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: 0.2s;
    }

        .footer-links a:hover {
            color: #0d9488;
            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: #0d9488 !important;
        }
/* ===== Visit Confirm Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

    .modal-overlay.open {
        display: flex;
    }

.modal-box {
    background: #fff;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: modalEntry 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes modalEntry {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-top-deco {
    height: 4px;
    background: linear-gradient(90deg, #0d9488, #14b8a6, #f59e0b);
}

.modal-body {
    padding: 28px 10px 0px;
    text-align: center;
}

.modal-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px rgba(245,158,11,0.2);
}

    .modal-icon-wrap .modal-icon {
        font-size: 30px;
        line-height: 1;
    }

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.modal-logo-text {
    font-family: var(--font-display);
    color: var(--primary-dark);
    font-size: 15px;
    letter-spacing: 1px;
}

.modal-desc-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 16px 18px;
    text-align: left;
}

    .modal-desc-box .modal-desc-label {
        font-size: 13px;
        font-weight: 600;
        color: #94a3b8;
        margin-right: 6px;
        display: inline;
    }

        .modal-desc-box .modal-desc {
            font-size: 14px;
            color: #475569;
            line-height: 1.7;
        }

            .modal-desc-box .modal-desc strong {
                color: #0d9488;
                font-weight: 600;
            }

        .modal-warning {
            margin-top: 12px;
            padding: 10px 12px;
            border-radius: 8px;
            background: linear-gradient(135deg, #fef3c7, #fffbeb);
            border: 1px solid #fde68a;
            text-align: left;
            font-size: 13px;
            color: #92400e;
            font-weight: 500;
            line-height: 1.6;
        }

        .modal-warning-link {
            color: #0d9488;
            font-weight: 600;
            text-decoration: underline;
            text-underline-offset: 2px;
            text-decoration-color: rgba(13,148,136,0.3);
            transition: color 0.2s, text-decoration-color 0.2s;
            white-space: nowrap;
        }

            .modal-warning-link:hover {
                color: #0f766e;
                text-decoration-color: #0f766e;
            }

.modal-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0 32px;
}

.modal-remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-top: 4px;
    user-select: none;
}

    .modal-remember input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #0d9488;
        cursor: pointer;
    }

.modal-remember-text {
    font-size: 13px;
    color: #94a3b8;
    transition: color 0.2s;
}

.modal-remember:hover .modal-remember-text {
    color: #64748b;
}

.modal-actions {
    display: flex;
    gap: 10px;
    padding: 18px 32px 24px;
    justify-content: center;
}

.modal-btn {
    flex: 1;
    padding: 11px 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.modal-btn-cancel {
    background: #f1f5f9;
    color: #64748b;
}

    .modal-btn-cancel:hover {
        background: #e2e8f0;
        color: #475569;
    }

.modal-btn-confirm {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13,148,136,0.25);
}

    .modal-btn-confirm:hover {
        box-shadow: 0 6px 20px rgba(13,148,136,0.4);
        transform: translateY(-1px);
    }

    .modal-btn-confirm:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(13,148,136,0.2);
    }

/* ===== Recommended Apps ===== */
.recommend-section {
    max-width: 900px;
    margin: 0 auto;
}

.recommend-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

    .recommend-header svg {
        color: var(--accent);
        flex-shrink: 0;
    }

.recommend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.recommend-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

    .recommend-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);
    }

    .recommend-card:hover {
        animation: cardFloat 1.6s ease-in-out infinite;
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
        text-decoration: none;
    }

        .recommend-card:hover::before {
            opacity: 1;
        }

.rc-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.rc-card-cat {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-lighter);
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.rc-card-type {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

    .rc-card-type.WEB { color: #1d4ed8; background: #dbeafe; }
    .rc-card-type.EXE { color: #b45309; background: #fef3c7; }
    .rc-card-type.APK { color: #047857; background: #d1fae5; }
    .rc-card-type.DMG { color: #7c3aed; background: #ede9fe; }
    .rc-card-type.LINUX { color: #dc2626; background: #fee2e2; }

    .rc-card-type + .rc-card-type { margin-left: 4px; }

.rc-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;
}

.rc-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;
}

.rc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.rc-card-source {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.rc-card-fav {
    cursor: pointer;
    font-size: 18px;
    color: #cbd5e1;
    transition: color 0.2s;
    line-height: 1;
}

    .rc-card-fav:hover {
        color: #ef4444;
    }

.recommend-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 600px) {
    .recommend-grid {
        grid-template-columns: 1fr;
    }

    .recommend-section {
        padding: 0 16px 24px;
    }
}

/* ===== Rating Picker ===== */
.rating-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: modalFadeIn 0.2s ease;
}

    .rating-picker-overlay.submitting {
        pointer-events: none;
    }

        .rating-picker-overlay.submitting .rating-picker {
            animation: rpPulse 0.6s ease-in-out infinite;
        }

        .rating-picker-overlay.submitting .rp-star {
            animation: rpStarSpin 0.6s ease-in-out infinite alternate;
        }

    .rating-picker-overlay.success .rating-picker {
        animation: rpSuccess 0.5s cubic-bezier(0.34,1.56,0.64,1);
    }

@keyframes rpPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
    50% { transform: scale(1.01); box-shadow: 0 20px 60px rgba(13,148,136,0.2); }
}

@keyframes rpStarSpin {
    0% { transform: scale(1) rotate(0deg); color: #cbd5e1; }
    100% { transform: scale(1.3) rotate(15deg); color: #f59e0b; }
}

@keyframes rpSuccess {
    0% { transform: scale(1); }
    40% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.rating-picker {
    background: #fff;
    border-radius: 20px;
    padding: 32px 36px 28px;
    text-align: center;
    max-width: 340px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: modalEntry 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.rp-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.rp-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rp-star {
    font-size: 36px;
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.15s, transform 0.15s;
    line-height: 1;
    user-select: none;
}

    .rp-star.active {
        color: #f59e0b;
    }

    .rp-star:hover {
        transform: scale(1.2);
    }

.rp-hint {
    font-size: 14px;
    color: #94a3b8;
    transition: color 0.2s;
}

    .rp-hint.star-1 { color: #ef4444; font-weight: 600; }
    .rp-hint.star-2 { color: #f97316; font-weight: 600; }
    .rp-hint.star-3 { color: #eab308; font-weight: 600; }
    .rp-hint.star-4 { color: #22c55e; font-weight: 600; }
    .rp-hint.star-5 { color: #0d9488; font-weight: 700; }

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(-4px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== Floating Actions (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;
    }

@media (max-width: 768px) {
    .header-inner {
        height: 56px;
    }

    .logo {
        font-size: 18px;
    }

    .back-link {
        font-size: 14px;
        padding: 4px 10px;
    }

    .page-container {
        padding: 24px 16px 60px;
    }

    .detail-card .body {
        padding: 24px 20px 16px;
    }

    .detail-card .detail-source {
        padding: 6px 16px 6px;
        font-size: 11px;
    }



    .detail-card .detail-title {
        font-size: 24px;
    }

    .detail-card .detail-meta {
        gap: 16px;
    }

    .float-actions {
        right: 16px;
        gap: 8px;
    }

    .float-btn {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }
}
