/* 全局样式 */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --sidebar-width: 260px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* 应用布局 */
.app {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}

.nav-item:hover {
    background: var(--bg-color);
    color: var(--text-color);
}

.nav-item.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.nav-icon {
    font-size: 1.25rem;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* 主内容区 */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* 卡片 */
.card {
    background: var(--card-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

/* 表单 */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

/* 结果显示 */
.result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 0.5rem;
    display: none;
    width: 100%;
}

.result.show {
    display: block;
}

.result.success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success-color);
}

.result.error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger-color);
}

.result.loading {
    background: rgba(79, 70, 229, 0.1);
    border-left: 4px solid var(--primary-color);
}

/* 价格显示 */
.price-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 0.5rem;
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-item .label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.price-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.price-item .value.up {
    color: var(--danger-color);
}

.price-item .value.down {
    color: var(--success-color);
}

/* 游戏结果卡片 */
.game-card {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
}

.game-cover {
    width: 280px;
    height: 160px;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    flex-shrink: 0;
    background: #f3f4f6;
}

.game-info {
    flex: 1;
    min-width: 0;
}

.game-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 0.75rem;
}

.stat-item {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.3;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.stat-item strong {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: normal;
    word-break: break-word;
}

.game-info p {
    line-height: 1.8;
    color: var(--text-color);
}

/* 音乐列表 */
.music-list {
    list-style: none;
    width: 100%;
}

.music-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.music-item:last-child {
    border-bottom: none;
}

.music-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.music-item a:hover {
    text-decoration: underline;
}

/* 法律结果 */
.law-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.law-result-item:last-child {
    border-bottom: none;
}

.law-result-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 法律滚动容器 */
.law-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb #f9fafb;
}

.law-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.law-scroll-container::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 3px;
}

.law-scroll-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.law-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.law-result-item mark {
    background: rgba(245, 158, 11, 0.3);
    padding: 0 0.25rem;
    border-radius: 0.25rem;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 768px) {
    /* 移动端测试标记 - 验证 CSS 是否生效 */
    body::before {
        content: "MOBILE";
        display: none;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .logo {
        padding: 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        border-radius: 0.375rem;
    }

    .nav-item.active {
        border-right: none;
        background: rgba(79, 70, 229, 0.15);
    }

    .content {
        margin-left: 0;
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1rem;
    }

    .form-group input,
    .form-group select {
        font-size: 0.875rem;
        padding: 0.625rem 0.75rem;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }

    /* 游戏卡片移动端优化 */
    .game-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .game-cover {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        margin: 0 auto;
    }

    /* 左侧信息框（图片下方） */
    .game-card > div:first-child {
        width: 100% !important;
    }

    .game-card > div:first-child > div:last-child {
        width: 100% !important;
    }

    .game-info {
        margin-top: 0.5rem !important;
    }

    .game-info h3 {
        font-size: 1.125rem;
        margin-bottom: 0.375rem;
    }

    /* 标签行优化 */
    .game-info > div:nth-child(3) {
        gap: 0.375rem !important;
    }

    .game-info > div:nth-child(3) span {
        font-size: 0.7rem !important;
        padding: 0.1875rem 0.5rem !important;
    }

    /* 游戏标签优化 */
    .game-info > div:nth-child(4) {
        gap: 0.375rem !important;
        margin-bottom: 1rem !important;
    }

    .game-info > div:nth-child(4) span {
        font-size: 0.7rem !important;
        padding: 0.1875rem 0.5rem !important;
    }

    /* 统计网格优化 */
    .game-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.75rem;
        font-size: 0.75rem;
    }

    .stat-item {
        font-size: 0.75rem;
    }

    .stat-item strong {
        font-size: 0.8125rem;
        display: block;
        margin-top: 0.125rem;
    }

    /* 价格区域优化 */
    .game-info > div:nth-child(7) {
        padding: 0.75rem !important;
    }

    /* 获奖情况优化 */
    .game-card > div:first-child > div:last-child {
        padding: 0.625rem !important;
        max-height: 150px !important;
    }

    .game-card > div:first-child > div:last-child strong {
        font-size: 0.8125rem !important;
    }

    .game-card > div:first-child > div:last-child div {
        font-size: 0.75rem !important;
    }

    /* 硬件配置表格优化 */
    .game-info table {
        font-size: 0.7rem !important;
    }

    .game-info table th,
    .game-info table td {
        padding: 0.375rem !important;
    }

    /* 游戏介绍优化 */
    .game-info h4 {
        font-size: 0.8125rem !important;
    }

    .game-info p {
        font-size: 0.8125rem;
        line-height: 1.6;
    }

    /* 结果区域优化 */
    .result {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    /* 价格显示优化 */
    .price-display {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .price-item .value {
        font-size: 1.25rem;
    }
}

/* 超小屏幕优化（< 480px） */
@media (max-width: 480px) {
    .content {
        padding: 0.75rem;
    }

    .game-card {
        padding: 0.75rem;
    }

    .game-info h3 {
        font-size: 1rem;
    }

    .game-stats {
        grid-template-columns: 1fr;
        font-size: 0.75rem;
    }

    .stat-item {
        padding: 0.375rem;
    }

    .btn {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ==================== Bilibili Cookie 弹窗 ==================== */
.bili-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.bili-cookie-content {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bili-cookie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.bili-cookie-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.bili-cookie-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.bili-cookie-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.bili-cookie-body {
    padding: 1.5rem;
    color: #374151;
    line-height: 1.7;
    max-height: 50vh;
    overflow-y: auto;
}

.bili-cookie-body code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85em;
    color: #dc2626;
}

/* Cookie 输入框样式 */
.cookie-guide ol {
    margin: 1rem 0 1rem 1.5rem;
}

.cookie-guide li {
    margin-bottom: 0.5rem;
}

.cookie-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.cookie-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.cookie-field label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.cookie-field input {
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.cookie-field input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.cookie-field .required {
    color: #dc2626;
    font-weight: bold;
}

.cookie-field .saved-hint {
    display: block;
    font-size: 0.75rem;
    color: #16a34a;
    margin-top: 0.25rem;
}

.bili-cookie-clear {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.bili-cookie-clear:hover {
    background: #fecaca;
}

.cookie-tips {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.cookie-tips p {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0369a1;
}

.cookie-tips ul {
    margin-left: 1.25rem;
    color: #0c4a6e;
}

.cookie-tips li {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

/* Cookie 过期错误提示样式 */
.cookie-error-box {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid #fecaca;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.cookie-error-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.cookie-error-box h4 {
    color: #dc2626;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.cookie-error-message {
    color: #991b1b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(254, 202, 202, 0.3);
    border-radius: 0.375rem;
}

.cookie-error-tips {
    text-align: left;
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cookie-error-tips p {
    color: #991b1b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cookie-error-tips ul {
    margin-left: 1.25rem;
    color: #7f1d1d;
}

.cookie-error-tips li {
    margin-bottom: 0.375rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.cookie-error-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-renew-cookie,
.btn-use-1080p {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-renew-cookie {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: white;
}

.btn-renew-cookie:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-use-1080p {
    background: #f3f4f6;
    color: #374151;
}

.btn-use-1080p:hover {
    background: #e5e7eb;
}

/* Cookie 成功提示样式 */
.cookie-success-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #bbf7d0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.cookie-success-box .success-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.cookie-success-box h4 {
    color: #16a34a;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.cookie-success-box p {
    color: #166534;
    font-size: 0.9rem;
}

.cookie-success-box .vip-badge {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    color: #92400e;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

/* 下载任务进度样式 */
.download-task-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.task-header h4 {
    color: #1f2937;
    font-size: 1rem;
    margin: 0;
}

.task-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background: #f3f4f6;
    color: #6b7280;
}

.status-downloading {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-completed {
    background: #dcfce7;
    color: #16a34a;
}

.status-failed,
.status-expired {
    background: #fee2e2;
    color: #dc2626;
}

.task-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progress-bar {
    flex: 1;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #4338ca);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4f46e5;
    min-width: 3rem;
    text-align: right;
}

.task-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.task-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-download,
.btn-download-secondary {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-download {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: white;
}

.btn-download:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-download-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-download-secondary:hover {
    background: #e5e7eb;
}

.task-tips {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    color: #92400e;
    font-size: 0.85rem;
}

.task-error {
    margin-top: 1rem;
    padding: 1rem;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    color: #dc2626;
}

.btn-retry {
    padding: 0.625rem 1.25rem;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-retry:hover {
    background: #e5e7eb;
}

.btn-use-480p {
    padding: 0.625rem 1.25rem;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-use-480p:hover {
    background: #e5e7eb;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .task-actions {
        flex-direction: column;
    }
    
    .btn-download,
    .btn-download-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .cookie-error-actions {
        flex-direction: column;
    }
    
    .btn-renew-cookie,
    .btn-use-1080p {
        width: 100%;
    }
}

.bili-cookie-body kbd {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.125rem 0.375rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85em;
    color: #374151;
}

.bili-cookie-body a {
    color: #4f46e5;
    text-decoration: none;
}

.bili-cookie-body a:hover {
    text-decoration: underline;
}

.bili-cookie-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 1rem 1rem;
}

.bili-cookie-cancel,
.bili-cookie-confirm {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.bili-cookie-cancel {
    background: #f3f4f6;
    color: #374151;
}

.bili-cookie-cancel:hover {
    background: #e5e7eb;
}

.bili-cookie-confirm {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: white;
}

.bili-cookie-confirm:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .bili-cookie-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .bili-cookie-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .bili-cookie-footer {
        flex-direction: column;
    }
    
    .bili-cookie-cancel,
    .bili-cookie-confirm {
        width: 100%;
    }
}

/* ==================== 音乐下载优化样式 ==================== */

/* 搜索头部 */
.music-search-header {
    padding: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 0.75rem;
    border: 1px solid #bae6fd;
}

.search-info {
    color: #0369a1;
    font-size: 0.95rem;
}

.search-info strong {
    color: #0284c7;
}

/* 音乐列表样式 */
.music-list-styled {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.music-item-styled {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.music-item-styled:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    transform: translateY(-1px);
}

.music-item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.music-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4f46e5;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.music-item-info {
    flex: 1;
    min-width: 0;
}

.music-item-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.music-item-author {
    font-size: 0.85rem;
    color: #6b7280;
}

/* 音质标签 */
.quality-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.quality-flac {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* 下载按钮 */
.download-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.download-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

/* 原帖按钮 */
.original-post-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.original-post-btn:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
    transform: translateY(-1px);
}

/* 下载详情页面 */
.download-detail {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #e5e7eb;
}

.download-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-title {
    flex: 1;
    min-width: 0;
    font-size: 1.125rem;
    color: #1f2937;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

/* 详情页原帖按钮 */
.original-post-btn-inline {
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.original-post-btn-inline:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
    transform: translateY(-1px);
}

.download-links-container {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
}

.links-title {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 1rem;
    font-weight: 600;
}

.download-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-link-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.link-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.link-type {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.code-badge {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.link-url {
    font-size: 0.875rem;
    color: #4b5563;
    word-break: break-all;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 0.375rem;
}

.link-code {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.75rem;
}

.link-code strong {
    color: #f59e0b;
    font-size: 1rem;
}

.open-link-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.open-link-btn:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-text {
    font-size: 1.125rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-hint {
    font-size: 0.875rem;
    color: #6b7280;
}

/* 错误提示 */
.error-tip {
    padding: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    color: #dc2626;
    text-align: center;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .music-item-styled {
        padding: 0.75rem;
    }

    .music-index {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }

    .music-item-title {
        font-size: 0.9rem;
    }

    .download-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }

    .download-detail {
        padding: 1rem;
    }

    .download-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .download-title {
        font-size: 1rem;
    }

    .original-post-btn-inline {
        width: 100%;
        justify-content: center;
    }
}

/* 游戏查询结果移动端优化 */
@media (max-width: 768px) {
    .game-card {
        padding: 0.75rem !important;
    }
    
    .game-left-col {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .game-cover {
        width: 100% !important;
        height: auto !important;
        max-height: 200px !important;
        object-fit: cover !important;
    }
    
    .game-info-box,
    .game-awards-box {
        font-size: 0.85rem !important;
    }
    
    .game-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        font-size: 0.75rem !important;
    }
    
    .stat-item {
        padding: 0.5rem !important;
    }
    
    /* 在线趋势图表移动端优化 */
    .trend-chart-section {
        margin-top: 1rem !important;
    }
    
    .trend-chart-section h4 {
        font-size: 0.85rem !important;
    }
    
    .trend-chart-section > div[style*="height:280px"] {
        height: 220px !important;
    }
    
    .trend-chart-section .stat-card,
    .trend-chart-section > div:last-child > div {
        padding: 0.5rem !important;
    }
    
    .trend-chart-section .stat-card > div:first-child,
    .trend-chart-section > div:last-child > div > div:first-child {
        font-size: 1rem !important;
    }
    
    .trend-chart-section .stat-card > div:last-child,
    .trend-chart-section > div:last-child > div > div:last-child {
        font-size: 0.7rem !important;
    }
    
    /* DLC 卡片移动端优化 */
    .dlc-section > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .dlc-section img[style*="height:160px"] {
        height: 140px !important;
    }
    
    /* DLC 滚动容器 */
    .dlc-scroll-container {
        max-height: 420px !important;
        scrollbar-width: thin;
        scrollbar-color: #e5e7eb #f9fafb;
    }
    
    /* 相似游戏卡片移动端优化 */
    .morelike-section > div[style*="grid-template-columns"] {
        grid-template-columns: repeat(3, minmax(80px,1fr)) !important;
    }
    
    .morelike-section img {
        border-radius: 0.25rem !important;
        object-fit: cover !important;
    }
    
    .morelike-section div[style*="font-size:0.7rem"] {
        font-size: 0.65rem !important;
    }
    
    .morelike-section h4 {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .dlc-scroll-container::-webkit-scrollbar {
        width: 6px;
    }
    
    .dlc-scroll-container::-webkit-scrollbar-track {
        background: #f9fafb;
        border-radius: 3px;
    }
    
    .dlc-scroll-container::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 3px;
    }
    
    .dlc-scroll-container::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }
    
    /* 硬件配置表格移动端优化 */
    .hardware-table {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .hardware-table table {
        min-width: 100% !important;
        font-size: 0.8rem !important;
    }
    
    .hardware-table th,
    .hardware-table td {
        padding: 0.5rem !important;
        white-space: nowrap !important;
    }
}

/* 超小屏幕优化（< 480px） */
@media (max-width: 480px) {
    .content {
        padding: 0.75rem;
    }

    .game-card {
        padding: 0.75rem;
    }

    .game-info h3 {
        font-size: 1rem;
    }

    .game-stats {
        grid-template-columns: 1fr;
        font-size: 0.75rem;
    }

    .stat-item {
        padding: 0.375rem;
    }

    .btn {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* 趋势图表进一步优化 */
    .trend-chart-section > div[style*="height:220px"] {
        height: 180px !important;
    }
    
    /* 统计卡片改为 2x2 布局 */
    .trend-chart-section > div:last-child {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
