/* 雪茄监控系统 - 自定义样式 */

:root {
    --price-up: #ef4444;     /* 涨→红 (中国股市风格) */
    --price-down: #10b981;   /* 跌→绿 */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border: #334155;
    --accent: #f59e0b;       /* 雪茄金 */
    --accent2: #d97706;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Auth */
.auth-screen,
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.12), transparent 34%),
        linear-gradient(135deg, #0f172a 0%, #111827 52%, #1e293b 100%);
}

.auth-loading {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-panel {
    width: min(100%, 380px);
    background: rgba(30, 41, 59, 0.96);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.login-mark {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-size: 24px;
}

.login-brand h1 {
    font-size: 22px;
    line-height: 1.1;
    color: var(--accent);
}

.login-brand p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

.login-error {
    margin: 8px 0 14px;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 13px;
}

.login-submit {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.logout-button {
    width: 100%;
    margin-top: 14px;
}

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 20px 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* Sidebar */
.sidebar-logo {
    padding: 0 20px 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-logo span {
    font-size: 24px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-size: 14px;
    border-left: 3px solid transparent;
}

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

.nav-item.active {
    background: var(--bg-hover);
    color: var(--accent);
    border-left-color: var(--accent);
}

.nav-item .icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 6px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card .stat-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
    white-space: nowrap;
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.data-table th.sortable:hover {
    color: var(--accent);
}

.data-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.data-table tr:hover td {
    background: rgba(51, 65, 85, 0.3);
}

.data-table .price-up { color: var(--price-up); }
.data-table .price-down { color: var(--price-down); }
.data-table .price-stable { color: var(--text-secondary); }

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-in-stock { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-out-of-stock { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-unknown { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.badge-new { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-promo { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-lcdh { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.badge-grey { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.badge-auth { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-cuban { background: rgba(220, 38, 38, 0.15); color: #ef4444; }
.badge-noncuban { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-combo { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.badge-accessory { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }
.badge-small { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.badge-needs-review { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-matched { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-back-in-stock { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; }
.edition-badge {
    border: 1px solid currentColor;
    border-color: rgba(255, 255, 255, 0.08);
}
.edition-regular { background: rgba(34, 197, 94, 0.13); color: #22c55e; }
.edition-regional { background: rgba(59, 130, 246, 0.14); color: #60a5fa; }
.edition-limited { background: rgba(245, 158, 11, 0.16); color: #f59e0b; }
.edition-lcdh { background: rgba(139, 92, 246, 0.16); color: #a78bfa; }
.edition-reserva { background: rgba(236, 72, 153, 0.14); color: #f472b6; }
.edition-gran_reserva { background: rgba(250, 204, 21, 0.16); color: #facc15; }
.edition-anejados { background: rgba(20, 184, 166, 0.14); color: #2dd4bf; }
.edition-jar { background: rgba(168, 85, 247, 0.14); color: #c084fc; }
.edition-travel { background: rgba(14, 165, 233, 0.14); color: #38bdf8; }
.edition-coleccion { background: rgba(244, 114, 182, 0.14); color: #f9a8d4; }
.edition-year_of { background: rgba(248, 113, 113, 0.14); color: #f87171; }
.edition-other_special { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }
.edition-unknown { background: rgba(148, 163, 184, 0.13); color: #94a3b8; }

/* Variant detail rows */
.variant-detail-row td { border-bottom: 1px solid rgba(255,255,255,0.05); }
.variant-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.variant-item:last-child { border-bottom: none; }
@media (max-width: 768px) {
    .latest-card-header {
        align-items: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }
    .latest-site-filter { width: 100%; }

    .variant-item { flex-wrap: wrap; gap: 8px; font-size: 12px; }
}

/* Nav badge */
.nav-badge {
    display: inline-block;
    background: var(--price-up);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 6px;
    min-width: 20px;
    text-align: center;
}

/* Site Status Cards */
.site-status-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid #94a3b8;
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 200px;
    flex: 1;
    transition: transform 0.2s;
}
.site-status-card:hover { transform: translateY(-2px); }

.site-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Review Listing */
.review-listing {
    transition: border-color 0.2s;
}
.review-listing:hover {
    border-color: var(--accent);
}

/* Product Detail Header */
.product-detail-header {
    background: linear-gradient(135deg, var(--bg-card), rgba(245, 158, 11, 0.05));
    border-color: rgba(245, 158, 11, 0.2);
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

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

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
}

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

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
}

.latest-site-filter {
    width: 180px;
    flex-shrink: 0;
}

.site-link {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0;
    text-align: left;
}

.site-link:hover {
    color: var(--accent2);
    text-decoration: underline;
}

.compact-empty {
    padding: 32px 20px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.tab-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Search & Filter Bar */
.toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

/* Wishlist priority */
.priority-1 { color: #ef4444; }
.priority-2 { color: #f97316; }
.priority-3 { color: #eab308; }
.priority-4 { color: #22c55e; }
.priority-5 { color: #94a3b8; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Alerts */
.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background 0.2s;
}

.alert-item:hover { background: rgba(51, 65, 85, 0.3); }
.alert-item.unread { box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.18); }

.alert-item-drop { background: rgba(16, 185, 129, 0.08); border-left-color: rgba(16, 185, 129, 0.75); }
.alert-item-drop:hover { background: rgba(16, 185, 129, 0.14); }
.alert-item-rise { background: rgba(239, 68, 68, 0.08); border-left-color: rgba(239, 68, 68, 0.75); }
.alert-item-rise:hover { background: rgba(239, 68, 68, 0.14); }
.alert-item-restock { background: rgba(14, 165, 233, 0.08); border-left-color: rgba(14, 165, 233, 0.75); }
.alert-item-restock:hover { background: rgba(14, 165, 233, 0.14); }
.alert-item-listed { background: rgba(134, 239, 172, 0.08); border-left-color: rgba(134, 239, 172, 0.72); }
.alert-item-listed:hover { background: rgba(134, 239, 172, 0.14); }
.alert-item-delisted,
.alert-item-soldout { background: rgba(252, 165, 165, 0.08); border-left-color: rgba(252, 165, 165, 0.72); }
.alert-item-delisted:hover,
.alert-item-soldout:hover { background: rgba(252, 165, 165, 0.14); }
.alert-item-changed { background: rgba(245, 158, 11, 0.08); border-left-color: rgba(245, 158, 11, 0.72); }
.alert-item-changed:hover { background: rgba(245, 158, 11, 0.14); }

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.35;
}

.alert-title strong { font-weight: 800; color: var(--text-primary); }
.alert-kind { color: var(--accent); font-weight: 800; }
.alert-kind-drop { color: var(--price-down); }
.alert-kind-rise { color: var(--price-up); }
.alert-kind-restock { color: #0ea5e9; }
.alert-kind-listed { color: #86efac; }
.alert-kind-delisted,
.alert-kind-soldout { color: #fca5a5; }
.alert-site { color: var(--text-secondary); font-weight: 500; }

.alert-message {
    font-size: 12px;
    color: var(--text-secondary);
}

.alert-detail-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.45;
}

.alert-time {
    font-size: 11px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Site info */
.site-info-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 16px;
    font-size: 13px;
}

.site-info-label {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Section title */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Group title for brand page */
.group-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Brand card */
.brand-card {
    transition: all 0.2s;
    border: 2px solid transparent;
}
.brand-card:hover { border-color: var(--border); }
.brand-card.brand-expanded {
    border-color: var(--accent);
    background: rgba(245,158,11,0.05);
}

/* Product mini card in brand expanded view */
.product-mini-card {
    transition: all 0.15s;
    border: 1px solid var(--border);
}
.product-mini-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.edition-product-sections {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.edition-product-section {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.edition-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    border-radius: 6px;
    padding: 4px 2px;
}

.edition-section-header:hover {
    color: var(--text-primary);
    background: rgba(51, 65, 85, 0.22);
}

.edition-section-header strong {
    color: var(--text-primary);
    font-size: 15px;
}

.edition-section-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    color: var(--text-secondary);
    font-size: 13px;
}

.edition-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin-bottom: 0;
}

.regular-series-section {
    padding: 10px 0 14px;
    border-top: 1px solid rgba(51, 65, 85, 0.55);
}

.regular-series-section:first-child {
    border-top: 0;
    padding-top: 0;
}

.regular-series-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.regular-series-header strong {
    color: var(--text-primary);
    font-size: 13px;
}

.edition-inline-fold {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 14px 0 2px;
    color: var(--text-secondary);
}

.edition-inline-fold span {
    height: 1px;
    background: rgba(148, 163, 184, 0.22);
}

.edition-inline-fold button {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
}

.edition-inline-fold button:hover {
    color: var(--text-primary);
    border-color: var(--border);
    background: rgba(51, 65, 85, 0.35);
}

.folded-product-grid {
    margin-top: 12px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 20px;
    z-index: 2000;
    animation: slideUp 0.3s ease;
}

.toast-success { border-color: #10b981; }
.toast-error { border-color: #ef4444; }

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

/* 手机端布局（由 UA 检测决定，非媒体查询） */
.app-layout.mobile { display: block; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { padding: 12px; padding-bottom: 76px; }
    .section-title { font-size: 18px; margin-bottom: 14px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
    .stat-card { padding: 12px; border-radius: 8px; }
    .stat-card .stat-label { font-size: 11px; margin-bottom: 4px; }
    .stat-card .stat-value { font-size: 22px; line-height: 1.15; }
    .stat-card .stat-sub { font-size: 10px; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 12px; }
    .card { padding: 14px; border-radius: 8px; margin-bottom: 12px; }
    .card-header { margin-bottom: 12px; padding-bottom: 10px; }
    .site-card-grid { grid-template-columns: 1fr; }

    /* 工具栏堆叠 */
    .toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
    .toolbar .form-control, .toolbar select, .toolbar .search-input { width: 100% !important; min-width: 0; }

    /* 弹窗 */
    .modal { padding: 16px; width: 95%; }
    /* 表格 → 字段卡片 */
    .data-table {
        display: block;
        background: transparent;
        border-radius: 0;
        overflow: visible;
    }
    .data-table thead { display: none; }
    .data-table tbody {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 10px;
    }
    .data-table tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 10px;
        margin: 0;
    }
    .data-table tr:hover td { background: transparent; }
    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
        padding: 0;
        border: none;
        white-space: normal !important;
        font-size: 12px;
        text-align: right;
    }
    .data-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--text-secondary);
        font-weight: 600;
        text-align: left;
    }
    .data-table td[data-label="商品"],
    .data-table td[data-label="标题"] {
        display: block;
        text-align: left;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 2px;
    }
    .data-table td[data-label="商品"]::before,
    .data-table td[data-label="标题"]::before {
        display: none;
    }
    .variant-detail-row { display: block !important; }
    .variant-detail-row td {
        display: block;
        text-align: left;
        padding: 0 !important;
        background: transparent !important;
    }
    .variant-detail-row td::before { display: none; }

    /* 待审核选择器 */
    .review-listing select, .review-listing .form-control { max-width: 100%; font-size: 12px; }

    /* 心愿清单单列 */
    [style*="display:flex;align-items:center;gap:16px"] { flex-direction: column; align-items: stretch !important; gap: 8px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .data-table tbody { grid-template-columns: 1fr; }
    .alert-item { padding: 10px 0; gap: 10px; }
    .alert-time { font-size: 10px; max-width: 72px; text-align: right; }
    .bottom-nav-item { min-width: 0; flex: 1; }
}

/* 底部导航栏 */
.bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    z-index: 999;
    justify-content: space-around;
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px 6px;
    min-width: 45px;
    transition: color 0.15s, transform 0.1s;
}
.bottom-nav-item:active { transform: scale(0.9); }

.bottom-nav-item.active { color: var(--accent); }

.bnav-icon { font-size: 20px; line-height: 1.2; }
.bnav-label { font-size: 10px; margin-top: 2px; line-height: 1; }

/* Site card grid */
.site-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.site-mini-card {
    transition: all 0.15s;
}
.site-mini-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
