/**
 * Station Resource 主样式
 *
 * 资源站特有的UI组件样式。
 * 变量定义在 style.css 中。
 */

/* ===== 筛选栏 ===== */
.station-filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 20px;
    background: var(--station-card-bg);
    border: 1px solid var(--station-border);
    border-radius: var(--station-radius);
    margin-bottom: 24px;
}
.station-filter-bar select,
.station-filter-bar input[type="search"] {
    padding: 8px 12px;
    border: 1px solid var(--station-border);
    border-radius: 6px;
    font-size: .9rem;
}
.station-filter-bar input[type="search"] {
    min-width: 200px;
}

/* ===== 资源详情 ===== */
.station-resource-article h2 { font-size: 1.4rem; margin: 32px 0 16px; }
.station-resource-article h3 { font-size: 1.2rem; margin: 24px 0 12px; }
.station-resource-article pre {
    background: #1e293b; color: #e2e8f0;
    padding: 20px; border-radius: 8px;
    overflow-x: auto; font-size: .9rem;
    line-height: 1.6;
}
.station-resource-article code {
    background: #f1f5f9; padding: 2px 6px;
    border-radius: 4px; font-size: .88em;
}
.station-resource-article pre code {
    background: none; padding: 0;
}
.station-content-locked {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

/* ===== 资源卡片 ===== */
.station-resource-card .station-card-image {
    width: 100%; height: 180px;
    object-fit: cover;
    border-radius: var(--station-radius) var(--station-radius) 0 0;
    margin: -24px -24px 16px;
}
.station-resource-card .station-download-btn {
    font-size: .85rem;
}

/* ===== VIP升级页 ===== */
.station-pricing-card.featured {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .station-pricing-card.featured {
        transform: none;
    }
}

/* ===== 用户中心 ===== */
.station-user-content table {
    width: 100%; border-collapse: collapse;
}
.station-user-content table th,
.station-user-content table td {
    padding: 10px 12px; text-align: left;
    border-bottom: 1px solid var(--station-border);
}
.station-user-content table th {
    background: var(--station-bg); font-weight: 600;
}

/* ===== 搜索高亮 ===== */
.station-search-highlight {
    background: #fde68a; padding: 0 2px;
}

/* ===== Footer ===== */
.station-footer {
    margin-top: 64px; padding: 32px 0;
    background: var(--station-bg);
    border-top: 1px solid var(--station-border);
    text-align: center; font-size: .9rem;
    color: var(--station-text-muted);
}
.station-footer a { color: var(--station-text); }

/* ===== 加载动画 ===== */
.station-spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid var(--station-border);
    border-top-color: var(--station-primary);
    border-radius: 50%;
    animation: station-spin .6s linear infinite;
}
@keyframes station-spin {
    to { transform: rotate(360deg); }
}

/* ===== Toast ===== */
.station-toast {
    position: fixed; top: 20px; right: 20px;
    z-index: 9999; padding: 14px 22px;
    border-radius: 8px; color: #fff;
    font-size: .92rem; box-shadow: 0 4px 12px rgba(0,0,0,.15);
    animation: station-slide-in .3s ease;
}
.station-toast-success { background: var(--station-success); }
.station-toast-error   { background: var(--station-danger); }
.station-toast-info    { background: var(--station-primary); }
@keyframes station-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ===== Modal ===== */
.station-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9998;
    display: flex; align-items: center; justify-content: center;
}
.station-modal {
    background: #fff; border-radius: 12px;
    padding: 32px; max-width: 500px; width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.station-modal h3 { margin-top: 0; }

/* ===== 暗色模式适配 ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --station-bg: #0f172a;
        --station-card-bg: #1e293b;
        --station-border: #334155;
        --station-text: #f1f5f9;
        --station-text-muted: #94a3b8;
    }
    .station-modal { background: #1e293b; }
    .station-resource-article code { background: #334155; }
    .station-resource-article pre { background: #0f172a; color: #cbd5e1; }
}
