/* Base Styles */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;

    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    font-weight: 500;
}

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

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    display: none;
}

body.light .theme-toggle .sun-icon {
    display: block;
}

body.dark .theme-toggle .moon-icon {
    display: block;
}

/* Language Select */
.lang-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: var(--transition-fast);
}

.lang-select:hover {
    border-color: var(--border-hover);
}

.lang-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 8px;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: var(--transition-fast);
}

.user-avatar:hover {
    border-color: var(--primary-color);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition-fast);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.user-dropdown button {
    border-top: 1px solid var(--border-color);
    color: var(--error-color);
}

/* Hero Section - 图片轮播 */
.hero {
    position: relative;
    padding: 120px 20px;
    color: white;
    text-align: center;
    min-height: 500px;
    overflow: hidden;
    background-color: #0f172a;
}

.hero-carousel .carousel-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 32px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.hero-actions .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.hero-actions .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 轮播控制 */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 4;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }

.carousel-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    padding: 0;
}

.carousel-indicator.active {
    background: white;
    width: 28px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 20px;
        min-height: 400px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

/* Stats Section */
.stats {
    padding: 48px 0;
    background-color: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Featured Section */
.featured {
    padding: 48px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.featured-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.featured-main:hover img {
    transform: scale(1.05);
}

.featured-side {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 16px;
}

.featured-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.featured-item:hover img {
    transform: scale(1.05);
}

/* ==================== 精选作品覆盖层 ==================== */
.featured-main,
.featured-item {
    position: relative;
}

.featured-main a,
.featured-item a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.photo-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    color: #fff;
    pointer-events: none;
}

.photo-overlay h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.photo-overlay h4 {
    margin: 0 0 2px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.photo-overlay p {
    margin: 2px 0;
    font-size: 0.85rem;
    opacity: 0.9;
    color: #f0f0f0;
}

.photo-overlay-meta {
    font-size: 0.85rem;
}

.photo-overlay-stats {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    margin-top: 6px;
    opacity: 0.95;
}

.photo-overlay-small {
    padding: 10px 12px;
}

.photo-overlay-small h4 {
    font-size: 0.9rem;
}

.photo-overlay-small p {
    font-size: 0.75rem;
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    min-height: 200px;
}

/* ==================== 分类精选 ==================== */
.featured-by-category {
    padding: 32px 0;
    background: var(--bg-secondary);
}

.featured-by-category h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.category-row {
    margin-bottom: 32px;
}

.category-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.category-row-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.category-row-more {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
}

.category-row-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .category-row-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-photo {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    background: var(--bg-tertiary);
}

.category-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-photo:hover img {
    transform: scale(1.04);
}

.category-photo-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 10px;
    font-size: 12px;
}

.category-photo-overlay strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

/* ==================== 首页新闻资讯 ==================== */
.homepage-news {
    padding: 32px 0 48px;
    background: var(--bg-primary);
}

.hp-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.hp-news-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.hp-news-more {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
}

.hp-news-more:hover { text-decoration: underline; }

.hp-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    min-height: 200px;
}

@media (max-width: 900px) {
    .hp-news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .hp-news-grid { grid-template-columns: 1fr; }
}

.hp-news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

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

.hp-news-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* 没图时的渐变占位 */
.hp-news-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
}

/* 通用新闻图片占位（新闻列表页）*/
.news-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.hp-news-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hp-news-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-news-excerpt {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
}

.hp-news-meta {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* ==================== 轮换淡入淡出动画 ==================== */
.rotating-fade {
    animation: rotating-fade-in 0.6s ease;
}
@keyframes rotating-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 照片卡片底部统计 */
.photo-stats {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 轮播占位（无配置图时显示渐变） */
.carousel-slide-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* ==================== 公告弹窗 ==================== */
.ann-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: ann-fade-in 0.2s ease;
}
@keyframes ann-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.ann-modal {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 32px;
    border-radius: 16px;
    width: 92%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
    position: relative;
    animation: ann-pop 0.25s cubic-bezier(.16,1,.3,1);
}
@keyframes ann-pop {
    from { transform: scale(0.95) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.ann-modal.ann-layout-compact { max-width: 420px; padding: 24px; }
.ann-modal.ann-layout-full { max-width: 800px; }
.ann-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
}
.ann-close:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.ann-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-right: 32px;
    color: var(--text-primary);
}
.ann-content {
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.ann-content p { margin: 8px 0; }
.ann-content h3, .ann-content h4 { margin: 16px 0 8px; }
.ann-content a { color: var(--primary-color); }
.ann-github {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.ann-github h4 { font-size: 0.95rem; margin-bottom: 10px; }
.ann-github-list { list-style: none; padding: 0; margin: 0; }
.ann-github-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}
.ann-github-list li:last-child { border-bottom: none; }
.ann-github-list a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
}
.ann-github-list a:hover { color: var(--primary-color); }
.ann-github-list code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    margin-right: 6px;
}
.ann-github-list small {
    display: block;
    color: var(--text-tertiary);
    font-size: 0.78rem;
    margin-top: 2px;
}
.ann-meta {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin: 16px 0;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}
.ann-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}
.ann-btn-primary, .ann-btn-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: background 0.15s;
}
.ann-btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.ann-btn-primary:hover { background: #1d4ed8; }
.ann-btn-secondary {
    background: transparent;
    color: var(--text-primary);
}
.ann-btn-secondary:hover { background: var(--bg-tertiary); }

/* ==================== 审核流程图 ==================== */
.review-flow {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
}
.rf-title {
    font-size: 1.1rem;
    margin: 0 0 16px;
    color: var(--text-primary);
}
.rf-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}
.rf-status-pending { background: #fef3c7; color: #92400e; }
.rf-status-approved { background: #d1fae5; color: #065f46; }
.rf-status-rejected { background: #fee2e2; color: #991b1b; }
body.dark .rf-status-pending { background: #422006; color: #fbbf24; }
body.dark .rf-status-approved { background: #064e3b; color: #6ee7b7; }
body.dark .rf-status-rejected { background: #7f1d1d; color: #fecaca; }

.rf-steps {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
}
.rf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 100px;
    padding: 0 8px;
}
.rf-step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.3s ease;
}
.rf-step.rf-completed .rf-step-circle {
    background: #10b981;
    border-color: #10b981;
    color: white;
}
.rf-step.rf-current .rf-step-circle {
    background: var(--primary-color, #2563eb);
    border-color: var(--primary-color, #2563eb);
    color: white;
    animation: rf-pulse 1.8s ease-in-out infinite;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}
.rf-step.rf-rejected .rf-step-circle {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}
@keyframes rf-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2); }
    50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.05); }
}
.rf-check {
    position: absolute;
    top: -4px;
    right: -4px;
    background: white;
    color: #10b981;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #10b981;
}
.rf-step-icon { line-height: 1; }
.rf-step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.rf-step-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.rf-step.rf-pending { opacity: 0.5; }
.rf-connector {
    flex: 0 0 auto;
    height: 3px;
    background: var(--border-color);
    align-self: flex-start;
    margin-top: 28px;
    min-width: 40px;
    flex-grow: 1;
}
.rf-connector.rf-completed { background: #10b981; }

@media (max-width: 640px) {
    .rf-steps { flex-direction: column; align-items: flex-start; }
    .rf-step { flex-direction: row; text-align: left; min-width: auto; width: 100%; padding: 8px 0; }
    .rf-step-circle { margin-bottom: 0; margin-right: 16px; flex-shrink: 0; }
    .rf-connector { width: 3px; height: 24px; min-width: auto; margin: 0 0 0 26px; }
}

/* Latest Section */
.latest {
    padding: 48px 0;
}

.latest h2,
.featured h2 {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.photo-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    cursor: pointer;
}

.photo-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.photo-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.photo-info {
    padding: 12px;
}

.photo-title {
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 16px;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 16px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

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

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-side {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 全局移动端适配 ==================== */
@media (max-width: 768px) {
    /* Navbar 折叠 */
    .nav-container {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 8px;
    }
    .nav-logo img {
        height: 28px;
    }
    .nav-menu {
        order: 3;
        width: 100%;
        overflow-x: auto;
        gap: 12px;
        padding: 4px 0;
        -webkit-overflow-scrolling: touch;
    }
    .nav-menu a {
        font-size: 13px;
        white-space: nowrap;
    }
    .nav-actions {
        gap: 6px;
    }
    .nav-actions .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .lang-select {
        padding: 4px 6px;
        font-size: 12px;
    }

    /* Hero carousel */
    .hero-carousel {
        height: 220px;
    }
    .hero-content h1 {
        font-size: 1.3rem;
    }
    .hero-content p {
        font-size: 0.85rem;
    }

    /* Featured grid → 单列 */
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .featured-side {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-main {
        aspect-ratio: 16/10;
    }

    /* 分类精选 → 2 列 */
    .category-row-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 首页新闻 → 单列 */
    .hp-news-grid {
        grid-template-columns: 1fr;
    }

    /* Photo grid → 2 列 */
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 统计卡片 → 2 列 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-item {
        padding: 12px;
    }
    .stat-number {
        font-size: 1.5rem;
    }

    /* Footer → 单列 */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Auth 容器全宽 */
    .auth-container {
        padding: 16px;
    }
    .auth-box {
        padding: 24px 20px;
    }

    /* 轮播图控制 */
    .carousel-prev, .carousel-next {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .carousel-indicators {
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    /* 导航进一步精简 */
    .nav-menu a {
        font-size: 12px;
        padding: 4px 6px;
    }
    .theme-toggle svg {
        width: 16px;
        height: 16px;
    }

    /* Hero 更矮 */
    .hero-carousel {
        height: 180px;
    }
    .hero-content h1 {
        font-size: 1.1rem;
    }
    .hero-content p {
        font-size: 0.78rem;
    }

    /* Featured → 全单列 */
    .featured-side {
        grid-template-columns: 1fr;
    }
    .featured-main {
        aspect-ratio: 4/3;
    }

    /* 分类精选 → 1 列 */
    .category-row-grid {
        grid-template-columns: 1fr;
    }

    /* Photo grid → 1 列 */
    .photo-grid {
        grid-template-columns: 1fr;
    }

    /* 统计 → 2 列保持 */
    .stat-number {
        font-size: 1.3rem;
    }

    /* 新闻卡片 */
    .news-card {
        grid-template-columns: 1fr;
    }
    .news-featured-item {
        grid-template-columns: 1fr;
    }
    .news-featured-image {
        max-height: 200px;
    }

    /* 容器内边距 */
    .container {
        padding: 0 12px;
    }
    section {
        padding: 24px 0;
    }
}

/* ==================== 仪表盘移动端 ==================== */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        padding: 0 8px;
    }
    .dashboard-sidebar {
        position: static;
        margin-bottom: 16px;
    }
    .dashboard-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }
    .dash-tab {
        font-size: 12px;
        padding: 8px 10px;
        flex: 1 1 auto;
        text-align: center;
        white-space: nowrap;
    }
    .dashboard-content {
        padding: 16px;
    }
    .dash-panel h2 {
        font-size: 1.15rem;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-value {
        font-size: 1.5rem;
    }
}

/* ==================== 登录/注册页移动端 ==================== */
@media (max-width: 480px) {
    .auth-box {
        padding: 20px 14px;
        border-radius: 10px;
    }
    .auth-box h1 {
        font-size: 1.3rem;
    }
    .auth-box .form-group input {
        padding: 10px;
        font-size: 15px; /* 防止 iOS 缩放 */
    }
    .code-input {
        width: 40px;
        height: 48px;
        font-size: 20px;
    }
}

/* ==================== 新闻详情页移动端 ==================== */
@media (max-width: 768px) {
    .news-detail-title {
        font-size: 1.3rem;
    }
    .news-detail-cover {
        max-height: 240px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 图库/搜索页移动端 ==================== */
@media (max-width: 768px) {
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 8px;
    }
    .filter-tab {
        font-size: 12px;
        padding: 6px 12px;
        white-space: nowrap;
    }
    .search-form {
        flex-direction: column;
        gap: 8px;
    }
    .search-form input {
        width: 100%;
    }
}

/* ==================== 触摸友好 ==================== */
@media (hover: none) and (pointer: coarse) {
    /* 增大点击区域 */
    .nav-link, .btn, .dash-tab, .tab, .filter-tab {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    /* 去掉 hover 效果（移动端无意义） */
    .photo-card:hover {
        transform: none;
    }
    .category-photo:hover img {
        transform: none;
    }
}
