/* ========================================
   轻旅人图床 - 瀑布流图片展示
   Waterfall Gallery v1.0
   ======================================== */

/* --- CSS 变量 (Light Mode 默认) --- */
:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --bg-hover: #dee2e6;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-tertiary: #adb5bd;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: #eef2ff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --navbar-height: 60px;
    --max-width: 1440px;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1d27;
    --bg-tertiary: #252836;
    --bg-hover: #2d3142;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --text-tertiary: #5f6368;
    --border-color: #2d3142;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
    --accent-light: #1e1b4b;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, button { font-size: inherit; }

/* --- Navbar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--navbar-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background var(--transition), border-color var(--transition);
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    letter-spacing: -0.3px;
}

.navbar-logo svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.navbar-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.navbar-search input {
    width: 100%;
    height: 38px;
    padding: 0 40px 0 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition);
    outline: none;
}

.navbar-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
    background: var(--bg-secondary);
}

.navbar-search input::placeholder {
    color: var(--text-tertiary);
}

.navbar-search .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* 登录状态徽章 */
.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--success);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--text-tertiary);
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition);
}

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

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

/* --- Toolbar --- */
.toolbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar-stats {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.toolbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-bar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.batch-bar.visible {
    display: flex;
}

.batch-bar .btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 4px 12px;
    font-size: 0.8rem;
}

/* --- Sort Selector --- */
.sort-select {
    padding: 6px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
}

.sort-select:focus {
    border-color: var(--accent);
}

/* --- Waterfall Grid --- */
.gallery-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 40px;
}

.waterfall {
    columns: 4;
    column-gap: 16px;
}

@media (max-width: 1200px) {
    .waterfall { columns: 3; }
}

@media (max-width: 768px) {
    .waterfall { columns: 2; column-gap: 10px; }
    .gallery-container { padding: 0 12px 40px; }
}

@media (max-width: 480px) {
    .waterfall { columns: 1; }
}

/* --- Image Card --- */
.image-card {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    position: relative;
}

.image-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.image-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}

.image-card .card-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.image-card .card-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.image-card .card-img-wrap img.loaded {
    opacity: 1;
}

.image-card:hover .card-img-wrap img {
    transform: scale(1.04);
}

/* Checkbox overlay */
.image-card .card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition);
    z-index: 2;
    backdrop-filter: blur(4px);
}

.image-card:hover .card-check,
.image-card.selected .card-check {
    opacity: 1;
}

.image-card.selected .card-check {
    background: var(--accent);
    border-color: var(--accent);
}

.card-check svg {
    width: 12px;
    height: 12px;
    color: #fff;
    display: none;
}

.image-card.selected .card-check svg {
    display: block;
}

/* Card info */
.image-card .card-info {
    padding: 10px 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.card-info .card-filename {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

/* 景区标签 */
.card-site-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.card-info .card-filename {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.card-info .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.card-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
}

.card-btn {
    flex: 1;
    padding: 4px 0;
    font-size: 0.7rem;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.card-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.lightbox.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background var(--transition);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background var(--transition);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.lightbox-info {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    z-index: 10;
}

/* --- Upload Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 28px;
    width: 90%;
    max-width: 520px;
    box-shadow: var(--shadow-xl);
    position: relative;
    transition: background var(--transition);
}

.modal h2 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.modal .modal-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-primary);
    margin-bottom: 16px;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.drop-zone svg {
    width: 48px;
    height: 48px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.drop-zone .drop-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.drop-zone .drop-text strong {
    color: var(--accent);
}

.drop-zone .drop-hint {
    color: var(--text-tertiary);
    font-size: 0.78rem;
    margin-top: 4px;
}

.upload-preview {
    display: none;
    margin-bottom: 16px;
}

.upload-preview.visible {
    display: block;
}

.upload-preview .preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.preview-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.preview-item .preview-name {
    flex: 1;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-item .preview-size {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.preview-item .preview-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.1rem;
}

.upload-progress {
    display: none;
    margin-bottom: 16px;
}

.upload-progress.visible {
    display: block;
}

.progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar .progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 6px;
    text-align: center;
}

/* --- Toast --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideInRight 0.3s ease;
    max-width: 360px;
    border: 1px solid var(--border-color);
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--accent); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Loader --- */
.loader {
    display: none;
    justify-content: center;
    padding: 40px;
}

.loader.visible {
    display: flex;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* --- Load More --- */
.load-more-wrap {
    text-align: center;
    padding: 20px;
}

.load-more-btn {
    padding: 10px 32px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.load-more-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 24px 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 0.8rem;
    transition: border-color var(--transition);
}

.site-footer a {
    color: var(--accent);
    font-weight: 500;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .navbar-logo span {
        display: none;
    }
    
    .navbar-search {
        max-width: 200px;
    }
    
    .navbar-actions .btn span {
        display: none;
    }
    
    .btn {
        padding: 8px 12px;
    }
    
    .lightbox-nav {
        width: 36px;
        height: 36px;
    }
    
    .toolbar {
        gap: 8px;
    }
    
    .toolbar-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* --- Utility --- */
.hidden {
    display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ========================================
   辅助类
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   导航链接
   ======================================== */

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: block;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

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

.nav-links li a[aria-current="page"] {
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-light);
}

/* ========================================
   面包屑导航
   ======================================== */

.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 20px 0;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-tertiary);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb li[aria-current="page"] {
    color: var(--text-primary);
}

/* ========================================
   About / Sites 通用页面样式
   ======================================== */

.page-hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px 20px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.page-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-light);
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* 功能列表 */
.feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.feature-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition);
}

.feature-list li:hover {
    border-color: var(--accent);
}

.feature-list strong {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.feature-list span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* 格式网格 */
.format-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.format-item {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition);
}

.format-item:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* 使用说明列表 */
.howto-list {
    padding-left: 20px;
}

.howto-list li {
    margin-bottom: 16px;
}

.howto-list strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.howto-list p {
    margin-top: 4px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* FAQ 列表 */
.faq-list dt {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 16px;
    margin-bottom: 4px;
    cursor: default;
}

.faq-list dd {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-left: 0;
    padding-left: 12px;
    border-left: 2px solid var(--accent-light);
    line-height: 1.7;
}

/* ========================================
   景区索引页（sites.html）
   ======================================== */

.sites-search {
    max-width: 500px;
    margin: 0 auto 24px;
    padding: 0 20px;
}

.sites-search input {
    width: 100%;
    height: 42px;
    padding: 0 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
}

.sites-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.sites-search input::placeholder {
    color: var(--text-tertiary);
}

.sites-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 60px;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.site-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition);
}

.site-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.site-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.site-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.site-card:hover .site-card-img img {
    transform: scale(1.06);
}

.site-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.site-card-info {
    padding: 14px 16px;
}

.site-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.site-card-count {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ========================================
   页脚增强
   ======================================== */

.footer-nav {
    margin-bottom: 8px;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-divider {
    margin: 0 8px;
    color: var(--border-color);
}

.footer-copyright {
    margin-top: 4px;
}
