/* 视觉画廊 - 简化版CSS文件 */
/* 基础样式重置与优化 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #eef2ff;
    --secondary-color: #7209b7;
    --accent-color: #f72585;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --danger-color: #f94144;
    
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-light: #e9ecef;
    --gray: #adb5bd;
    --gray-dark: #495057;
    
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-xs: 6px;
    --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --box-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: #f9fafb;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 电脑端优化：更精细的间距和排版 */
@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
    
    body {
        font-size: 16px;
        line-height: 1.8;
    }
}

/* 按钮样式优化 */
.btn-primary, .btn-secondary, .btn-outline, .btn-login, .btn-donation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--box-shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--box-shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--gray-dark);
    border: 2px solid var(--gray-light);
    width: 100%;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-login {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--gray-light);
    padding: 10px 24px;
}

.btn-login:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.btn-donation {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    width: 100%;
    font-size: 18px;
    padding: 16px;
    box-shadow: var(--box-shadow-sm);
}

.btn-donation:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* 电脑端按钮优化 */
@media (min-width: 1024px) {
    .btn-primary, .btn-secondary, .btn-outline, .btn-login, .btn-donation {
        padding: 16px 36px;
        font-size: 17px;
    }
}

/* 导航栏优化 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    font-size: 26px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 30px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
    padding: 10px 0;
    position: relative;
    font-size: 15px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

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

.search-box {
    display: flex;
    background-color: var(--light-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.search-box input {
    padding: 12px 18px;
    border: none;
    background: transparent;
    width: 240px;
    outline: none;
    font-size: 15px;
}

.search-box button {
    background-color: transparent;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.search-box button:hover {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow-lg);
    width: 280px;
    padding: 24px;
    margin-top: 12px;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: var(--transition);
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gray-light);
}

.user-info img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.user-info div {
    flex: 1;
}

.user-info strong {
    display: block;
    font-size: 17px;
    margin-bottom: 4px;
}

.user-info span {
    font-size: 14px;
    color: var(--gray);
    background-color: var(--primary-light);
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    border-radius: var(--border-radius-xs);
    padding-left: 8px;
}

.user-dropdown a:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
    padding-left: 12px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--dark-color);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-xs);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* 移动端菜单优化 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 999;
    padding: 24px;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--dark-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-weight: 600;
    font-size: 17px;
    border: 1px solid transparent;
}

.mobile-menu a:hover, .mobile-menu a.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.mobile-user-actions {
    padding: 24px 0 0;
    border-top: 1px solid var(--gray-light);
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 移动端优化：触摸目标更大，间距更合理 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links, .nav-actions .search-box {
        display: none;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .logo i {
        font-size: 26px;
    }
    
    /* 移动端按钮优化 */
    .btn-primary, .btn-secondary, .btn-outline, .btn-login, .btn-donation {
        padding: 16px 28px;
        min-height: 56px;
        font-size: 17px;
    }
    
    /* 移动端模态框优化 */
    .modal-content {
        width: 95%;
        padding: 24px;
        margin: 20px;
    }
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.hero-content p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 10px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat h3 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat p {
    font-size: 16px;
    opacity: 0.8;
}

/* 特色区域 */
.featured-section, .membership-section, .donation-section {
    padding: 30px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

.view-all:hover {
    gap: 12px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 28px;
    margin-top: 32px;
    list-style: none;
    padding: 0;
}

.featured-grid li {
    margin: 0;
    padding: 0 0 10px 0;
    list-style: none;
    display: block;
}

.featured-item {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.featured-item a {
    text-decoration: none;
}

.featured-item span {
    margin-left: 10px;
}

.featured-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.15);
    border-color: var(--primary-color);
}

.featured-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    border-radius: 16px 16px 0 0;
}

.featured-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.05);
}

.featured-item h3 {
    margin: 10px 10px 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1ab8;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.featured-item span a {
    display: inline-block;
    margin-right: 8px;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-light), #ffffff);
    border: 1px solid rgba(67, 97, 238, 0.2);
    border-radius: 10px;
    padding: 2px 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.featured-item span a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }
    
    .featured-item {
        border-radius: 16px;
    }
    
    .featured-item img {
        height: 180px;
    }
    
    .featured-item h3 {
        font-size: 1.1rem;
        margin: 14px 16px 10px;
    }
    
    .featured-item span {
        padding: 0 16px 16px;
    }
}

/* 会员区域 */
.membership-section {
    background: #f8f9fb;
    padding: 60px 0;
}

.membership-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.membership-card {
    border-radius: 12px;
    border: 1px solid #e0e4eb;
    background: #fff;
    padding: 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.membership-card.featured {
    border-color: #ffbb33;
    box-shadow: 0 12px 26px rgba(255,187,51,.25);
}

.membership-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.membership-card .price {
    font-size: 1.5rem;
    color: #ff8a00;
}

.membership-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.membership-card li {
    margin-bottom: 8px;
    color: #555;
}

.membership-card button {
    width: 100%;
}

/* 打赏系统介绍区域 */
.donation-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    position: relative;
    overflow: hidden;
}

.donation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.donation-text h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.donation-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 30px;
}

.donation-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--primary-light);
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.feature i {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-light), white);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.feature h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

.donation-visual {
    position: relative;
}

.donation-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.donation-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
}

.donation-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-light), white);
    border-bottom: 1px solid var(--gray-light);
}

.donation-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--box-shadow-sm);
}

.donation-header div {
    flex: 1;
}

.donation-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark-color);
}

.donation-header p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

.donation-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.donation-actions {
    padding: 24px;
}

.donation-amounts {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.donation-amounts span {
    padding: 10px 20px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    color: var(--gray-dark);
    cursor: pointer;
    transition: var(--transition);
    min-width: 60px;
    text-align: center;
}

.donation-amounts span:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.donation-amounts span.active {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    box-shadow: var(--box-shadow-sm);
}

/* 页脚 */
.footer {
    background: #1a1f2b;
    color: #d8dce9;
    padding: 40px 0;
}

.footer a {
    color: #d8dce9;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 16px;
}

.footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 28px;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer .footer-links a {
    margin-left: 12px;
}

.footer .logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 1;
}

.modal-close:hover {
    color: #333;
}

/* 模态框标签页 */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid #e0e4eb;
}

.modal-tabs .tab {
    flex: 1;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-tabs .tab.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

/* 标签内容 */
.tab-content {
    display: none;
    padding: 30px 40px;
}

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

.tab-content h3 {
    margin-bottom: 24px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.forgot-password {
    color: #007bff;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 社交登录 */
.social-login {
    margin-top: 24px;
    text-align: center;
}

.social-login p {
    margin-bottom: 16px;
    color: #666;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.btn-social {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-social:hover {
    border-color: #ccc;
    background: #f8f9fa;
}

.btn-social.wechat:hover {
    border-color: #07c160;
    color: #07c160;
}

.btn-social.qq:hover {
    border-color: #12b7f5;
    color: #12b7f5;
}

/* 打赏模态框内容 */
.creator-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e4eb;
}

.creator-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.creator-info h4 {
    margin: 0 0 4px;
    font-size: 18px;
}

.creator-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.donation-options h4,
.payment-methods h4 {
    margin-bottom: 16px;
    color: #333;
    font-size: 18px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.amount-option {
    padding: 12px;
    border: 2px solid #e0e4eb;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-option:hover,
.amount-option.active {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
}

.custom-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #e0e4eb;
    border-radius: 8px;
    background: #fff;
}

.custom-amount input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 500;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e0e4eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.payment-option input[type="radio"] {
    margin: 0;
}

.payment-option i {
    font-size: 20px;
    color: #666;
}

.payment-option span {
    font-weight: 500;
}

/* 画廊页面样式 */
.gallery-page {
    padding: 40px 0 60px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    min-height: calc(100vh - 200px);
}

/* 页面标题区域 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.page-header h1 i {
    font-size: 36px;
    color: var(--primary-color);
}

.page-header p {
    font-size: 18px;
    color: var(--gray-dark);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 筛选器区域 */
.filters-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px 32px;
    margin-bottom: 32px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    border: 1px solid var(--primary-light);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-group label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 16px;
    white-space: nowrap;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--gray-light);
    background: white;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    color: var(--gray-dark);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.filter-btn.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--box-shadow-sm);
}

.filter-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-color);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label:hover .checkmark {
    border-color: var(--primary-color);
}

/* 画廊网格 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 图片卡片样式 */
.image-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    position: relative;
}

.image-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.image-card .card-content {
    padding: 20px;
}

.image-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.image-card h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.image-card h3 a:hover {
    color: var(--primary-color);
}

.image-card p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.image-card p a {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-light), #ffffff);
    border: 1px solid rgba(67, 97, 238, 0.2);
    border-radius: 10px;
    padding: 4px 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.image-card p a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.image-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

.image-card .author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-card .author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.image-card .author span {
    font-size: 14px;
    color: var(--gray-dark);
    font-weight: 500;
}

.image-card .stats {
    display: flex;
    gap: 12px;
}

.image-card .stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--gray);
}

.image-card .stat i {
    font-size: 14px;
}

.image-card .premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--box-shadow-sm);
    z-index: 2;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.page-btn {
    padding: 12px 24px;
    border: 2px solid var(--gray-light);
    background: white;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    color: var(--gray-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

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

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-light);
    background: white;
    border-radius: var(--border-radius-xs);
    font-weight: 600;
    color: var(--gray-dark);
    cursor: pointer;
    transition: var(--transition);
}

.page-number:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.page-number.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--box-shadow-sm);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 24px;
    }
    
    .filters-section {
        padding: 20px 24px;
        gap: 20px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .gallery-page {
        padding: 30px 0 40px;
    }
    
    .page-header h1 {
        font-size: 30px;
        flex-direction: column;
        gap: 12px;
    }
    
    .page-header h1 i {
        font-size: 28px;
    }
    
    .page-header p {
        font-size: 16px;
        padding: 0 16px;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 20px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .page-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .page-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .image-card img {
        height: 180px;
    }
    
    .page-header h1 {
        font-size: 26px;
    }
    
    .page-header p {
        font-size: 15px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    .pagination {
        flex-direction: column;
        gap: 16px;
    }
    
    .page-numbers {
        order: 1;
    }
    
    .page-btn {
        order: 2;
        width: 100%;
        justify-content: center;
    }
}

/* 图片详情页基础样式 */
.image-detail-section {
    padding: 40px 0;
}

.image-detail-section .breadcrumb {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.image-detail-section .breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.image-detail-container {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 24px;
    align-items: flex-start;
}

.image-display {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    padding: 16px;
}

.image-display .image-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.nav-btn {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: #333;
}

.nav-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.detail-image {
    width: 100%;
    border-radius: 12px;
    display: block;
    max-height: 580px;
    object-fit: contain;
}

.image-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action {
    border: 1px solid #d8dce9;
    border-radius: 8px;
    background: #fff;
    padding: 8px 12px;
    color: #333;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-action:hover {
    background: #f0f4ff;
    border-color: #95b4ff;
}

.image-preview-thumbnails {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 8px;
}

.image-preview-thumbnails img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #e4e9f2;
}

.image-description, .image-article {
    margin-top: 18px;
}

.image-info-panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    padding: 18px;
}

.image-info-panel h1 {
    margin: 0 0 14px;
    font-size: 1.72rem;
    line-height: 1.2;
}

.image-meta {
    border-bottom: 1px solid #e7ecf4;
    padding-bottom: 14px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.author-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}

.author-info h3 {
    margin: 0;
    font-size: 1.05rem;
}

.image-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #555;
    font-size: 0.94rem;
}

.image-stats .stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.image-tags {
    margin-top: 16px;
}

.image-tags h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

#tagsContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#tagsContainer a {
    color: #007bff;
    background: #f0f6ff;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.86rem;
}

.image-actions-panel {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.btn-donation, .btn-secondary {
    width: 100%;
    text-align: center;
}

.comments-section, .related-images {
    margin-top: 24px;
}

.comments-section h2,
.related-images h2 {
    margin-bottom: 14px;
}

.comment-form textarea {
    width: 100%;
    min-height: 95px;
    resize: vertical;
    border: 1px solid #d8e1ed;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
}

.comment-form button {
    margin-top: 10px;
}

.comment-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.comment-list li {
    border-bottom: 1px solid #eef2f7;
    padding: 10px 0;
}

.related-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.related-grid .related-item {
    border: 1px solid #e8edf4;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    text-align: center;
}

.related-grid .related-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.related-grid .related-item h4 {
    margin: 8px;
    font-size: 0.92rem;
}

.image-zoom-modal {
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.66);
    display: none;
    align-items: center;
    justify-content: center;
}

.image-zoom-modal.active {
    display: flex;
}

.zoom-close {
    position: absolute;
    top: 21px;
    right: 21px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.zoomed-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

@media (max-width: 1100px) {
    .image-detail-container {
        grid-template-columns: 1fr;
    }
    .image-info-panel {
        margin-top: 20px;
    }
}

@media (max-width: 760px) {
    .container { padding: 0 14px; }
    .image-detail-section { padding: 24px 0; }
    .image-display, .image-info-panel {
        padding: 14px;
    }
    .image-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    .image-preview-thumbnails {
        grid-template-columns: repeat(5, 1fr);
    }
    .image-tags { margin-top: 12px; }
}

@media (max-width: 520px) {
    .image-preview-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    .nav-btn {
        width: 34px;
        height: 34px;
    }
    .detail-image {
        max-height: 400px;
    }
}

/* 加载动画 */
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 全局图片基础 */
img {
    display: block;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* 详情页主图 */
.detail-image {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    border-radius: 10px;
}

/* 详情页预览缩略图 */
.image-preview-thumbnails img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

/* 详情页相关图 */
.related-grid .related-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* 详情页作者头像 */
.author-info img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 50%;
}

/* 底部/卡片类小图 */
.membership-card img,
.footer .logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.tag-link {
    color: #333;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.86rem;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.tag-link:hover {
    opacity: 0.8; 
}

/* ==================== 标签页面样式优化 ==================== */

/* 面包屑导航 */
.breadcrumb {
    background-color: var(--primary-light);
    padding: 16px 0;
    border-bottom: 1px solid rgba(67, 97, 238, 0.1);
    margin-bottom: 30px;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--gray-dark);
}

/* 标签页面主容器 */
.tags-section {
    padding: 40px 0 60px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    min-height: calc(100vh - 200px);
}

/* 页面标题区域 */
.tags-section .page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.tags-section .page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: 18px;
    color: var(--gray-dark);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

/* 热门标签区域 */
.popular-tags {
    background: white;
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--primary-light);
}

.popular-tags h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.popular-tags h2 i {
    color: var(--accent-color);
}

.section-description {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* 标签云样式 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-light), white);
    border: 2px solid rgba(67, 97, 238, 0.2);
    border-radius: var(--border-radius-sm);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tag-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.tag-item:hover i {
    color: white;
}

.tag-item i {
    font-size: 18px;
    color: var(--primary-color);
    transition: var(--transition);
}

.tag-item.popular {
    background: linear-gradient(135deg, #ffd166, #ffb347);
    border-color: rgba(255, 179, 71, 0.3);
    color: #8a5a00;
}

.tag-item.popular:hover {
    background: linear-gradient(135deg, #ffb347, #ff8a00);
    border-color: #ff8a00;
    color: white;
}

.tag-count {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 4px;
}

.tag-item:hover .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tag-item.popular .tag-count {
    background: rgba(255, 255, 255, 0.9);
    color: #ff8a00;
}

.tag-item.popular:hover .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 标签网格 */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tag-category {
    background: white;
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.tag-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.tag-category h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag-category h3 i {
    color: var(--primary-color);
    font-size: 20px;
}

.category-description {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tags .tag-item {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    background: var(--light-color);
    border: 1px solid var(--gray-light);
    color: var(--gray-dark);
}

.category-tags .tag-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
}

/* 标签页面响应式设计 */
@media (max-width: 1024px) {
    .tags-section .page-header h1 {
        font-size: 36px;
    }
    
    .page-description {
        font-size: 16px;
        padding: 0 16px;
    }
    
    .tags-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }
    
    .popular-tags {
        padding: 24px;
    }
    
    .tag-category {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .tags-section {
        padding: 30px 0 40px;
    }
    
    .tags-section .page-header h1 {
        font-size: 30px;
    }
    
    .page-description {
        font-size: 15px;
    }
    
    .popular-tags h2 {
        font-size: 24px;
    }
    
    .section-description {
        font-size: 15px;
    }
    
    .tags-cloud {
        gap: 12px;
    }
    
    .tag-item {
        padding: 10px 16px;
        font-size: 15px;
    }
    
    .tags-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tag-category h3 {
        font-size: 20px;
    }
    
    .breadcrumb {
        padding: 12px 0;
    }
    
    .breadcrumb .container {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tags-section .page-header h1 {
        font-size: 26px;
    }
    
    .page-description {
        font-size: 14px;
    }
    
    .popular-tags {
        padding: 20px;
    }
    
    .popular-tags h2 {
        font-size: 22px;
    }
    
    .tags-cloud {
        justify-content: flex-start;
    }
    
    .tag-item {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .tag-category {
        padding: 20px;
    }
    
    .category-tags {
        justify-content: center;
    }
    
    .category-tags .tag-item {
        flex: 1;
        min-width: 100px;
        text-align: center;
        justify-content: center;
    }
}

/* ==================== 文章详情页面样式优化 ==================== */

/* 文章详情主容器 */
.article-detail-section {
    padding: 40px 0 60px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    min-height: calc(100vh - 200px);
}

/* 文章内容包装器 */
.article-content-wrapper {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--gray-light);
}

/* 文章布局 */
.article-layout {
    display: grid;
    /* grid-template-columns: 1fr 320px; */
    gap: 40px;
    padding: 40px 32px;
}

/* 文章导航操作区域 */
.article-navigation-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 32px;
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-light);
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.nav-prev-article, .nav-next-article {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    background: white;
    border: 2px solid var(--gray-light);
    color: var(--gray-dark);
    transition: var(--transition);
}

.nav-prev-article:hover, .nav-next-article:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-wechat, .share-weibo, .share-qq, .share-link {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    background: white;
    border: 2px solid var(--gray-light);
    color: var(--gray-dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-wechat:hover {
    border-color: #07c160;
    color: #07c160;
    background-color: rgba(7, 193, 96, 0.05);
    transform: translateY(-2px);
}

.share-weibo:hover {
    border-color: #e6162d;
    color: #e6162d;
    background-color: rgba(230, 22, 45, 0.05);
    transform: translateY(-2px);
}

.share-qq:hover {
    border-color: #12b7f5;
    color: #12b7f5;
    background-color: rgba(18, 183, 245, 0.05);
    transform: translateY(-2px);
}

.share-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* 右边：侧边栏 */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* 热门内容和最新内容列表 */
.trending-list, .latest-list {
    margin-bottom: 20px;
}

.trending-item, .latest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--light-color);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    text-decoration: none;
    color: var(--dark-color);
}

.trending-item:hover, .latest-item:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    transform: translateX(4px);
}

.trending-item img, .latest-item img {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-xs);
    object-fit: cover;
}

.trending-item-content, .latest-item-content {
    flex: 1;
}

.trending-item h4, .latest-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.trending-item-meta, .latest-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gray);
}

.trending-item-meta i, .latest-item-meta i {
    font-size: 11px;
}

.loading-trending, .loading-latest {
    text-align: center;
    padding: 20px;
    color: var(--gray);
    font-style: italic;
}

/* 收藏按钮 */
.article-collect {
    background: linear-gradient(135deg, #ffd166, #ffb347);
    color: white;
    border: none;
}

.article-collect:hover {
    background: linear-gradient(135deg, #ffb347, #ff8a00);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .article-sidebar {
        position: static;
        order: -1;
    }
    
    .article-navigation-actions {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .nav-buttons {
        justify-content: center;
    }
    
    .share-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .article-layout {
        padding: 30px 24px;
        gap: 24px;
    }
    
    .article-navigation-actions {
        padding: 16px;
        margin: 20px 0 24px;
    }
    
    .nav-prev-article, .nav-next-article {
        flex: 1;
        text-align: center;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .share-wechat, .share-weibo, .share-qq, .share-link {
        flex: 1;
        min-width: 70px;
        justify-content: center;
    }
    
    .trending-item, .latest-item {
        padding: 10px;
    }
    
    .trending-item img, .latest-item img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .article-layout {
        padding: 20px 0;
        gap: 20px;
    }
    
    .article-navigation-actions {
        padding: 12px;
        margin: 16px 0 20px;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-prev-article, .nav-next-article {
        width: 100%;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .share-wechat, .share-weibo, .share-qq, .share-link {
        width: 100%;
        justify-content: center;
    }
    
    .trending-item, .latest-item {
        flex-direction: column;
        text-align: center;
    }
    
    .trending-item img, .latest-item img {
        width: 100%;
        height: 80px;
    }
    
    .trending-item-content, .latest-item-content {
        width: 100%;
    }
}

/* ==================== 站长素材风格图片详情页面样式 ==================== */

/* 图片详情主容器 */
.image-detail-section {
    padding: 30px 0 50px;
    background-color: #f5f7fa;
    min-height: calc(100vh - 200px);
}

/* 面包屑导航 */
.breadcrumb {
    background-color: white;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #1890ff;
}

.breadcrumb span {
    color: #999;
}

/* 图片详情内容区域 */
.image-detail-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-top: 20px;
}

/* 左侧：图片展示区域 */
.image-display-area {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

/* 图片标题 */
.image-title-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.image-title-section h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
}

.image-meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.image-meta-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.image-meta-info i {
    color: #999;
}

/* 主图展示 */
.main-image-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

/* 图片操作按钮 */
.image-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-download, .btn-preview, .btn-collect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.btn-download {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

.btn-download:hover {
    background: #40a9ff;
    border-color: #40a9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.btn-preview {
    background: white;
    color: #666;
    border-color: #d9d9d9;
}

.btn-preview:hover {
    color: #1890ff;
    border-color: #1890ff;
    transform: translateY(-2px);
}

.btn-collect {
    background: white;
    color: #666;
    border-color: #d9d9d9;
}

.btn-collect:hover {
    color: #ff4d4f;
    border-color: #ff4d4f;
    transform: translateY(-2px);
}

/* 图片信息表格 */
.image-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.image-info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.image-info-table tr:last-child {
    border-bottom: none;
}

.image-info-table td {
    padding: 12px 0;
    color: #666;
}

.image-info-table td:first-child {
    width: 100px;
    color: #999;
    font-weight: 500;
}

.image-info-table td:last-child {
    color: #333;
}

/* 图片描述 */
.image-description-box {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.image-description-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.image-description-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* 右侧：相关信息区域 */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 相关图片 */
.related-images-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.related-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.related-image-item {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
}

.related-image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.related-image-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.related-image-item .image-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.related-image-item:hover .image-title {
    opacity: 1;
}

/* 标签区域 */
.tags-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f2f5;
    color: #666;
    font-size: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    background: #1890ff;
    color: white;
    transform: translateY(-2px);
}

/* 下载信息 */
.download-info-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.download-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #666;
}

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

.download-info-item .label {
    color: #999;
}

.download-info-item .value {
    color: #333;
    font-weight: 500;
}

/* ==================== 套图展示样式 ==================== */

/* 套图容器 */
.image-gallery-container {
    margin-bottom: 30px;
}

/* 主图包装器 */
.main-image-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
}

/* 画廊导航按钮 */
.gallery-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #d9d9d9;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.gallery-nav-btn:hover {
    background: #1890ff;
    border-color: #1890ff;
    color: white;
    transform: scale(1.1);
}

.gallery-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gallery-nav-btn:disabled:hover {
    background: white;
    border-color: #d9d9d9;
    color: #666;
    transform: none;
}

/* 主图容器 */
.main-image-container {
    position: relative;
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

/* 图片计数器 */
.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* 缩略图导航 */
.thumbnail-nav {
    margin-bottom: 20px;
    overflow: hidden;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #d9d9d9 #f5f5f5;
}

.thumbnail-list::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.thumbnail-list::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 3px;
}

.thumbnail-list::-webkit-scrollbar-thumb:hover {
    background: #b3b3b3;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.thumbnail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail-item.active {
    border-color: #1890ff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 下载全部按钮 */
.btn-download-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    background: #52c41a;
    color: white;
    border-color: #52c41a;
}

.btn-download-all:hover {
    background: #73d13d;
    border-color: #73d13d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

/* 响应式设计优化 */
@media (max-width: 1024px) {
    .image-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar-area {
        order: -1;
    }
    
    .related-images-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .main-image-container {
        min-height: 350px;
    }
    
    .main-image {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .image-detail-section {
        padding: 20px 0 30px;
    }
    
    .image-title-section h1 {
        font-size: 20px;
    }
    
    .main-image-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        order: 3;
        margin-top: 10px;
    }
    
    .prev-btn {
        order: 1;
    }
    
    .next-btn {
        order: 2;
    }
    
    .main-image-container {
        min-height: 300px;
        order: 0;
        width: 100%;
    }
    
    .main-image {
        max-height: 400px;
    }
    
    .image-actions {
        flex-direction: column;
    }
    
    .btn-download, .btn-download-all, .btn-preview, .btn-collect {
        width: 100%;
        justify-content: center;
    }
    
    .related-images-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .thumbnail-item {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .image-title-section h1 {
        font-size: 18px;
    }
    
    .image-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .main-image-container {
        min-height: 250px;
    }
    
    .main-image {
        max-height: 300px;
    }
    
    .related-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-info-table td:first-child {
        width: 80px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .image-counter {
        bottom: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    /* 移动端优化：确保主图展示在最上面 */
    .image-detail-content {
        display: flex;
        flex-direction: column;
    }
    
    .image-display-area {
        order: 1;
    }
    
    .sidebar-area {
        order: 2;
    }
}

/* 移动端特别优化 */
@media (max-width: 768px) {
    /* 确保移动端主图展示在最上面 */
    .image-detail-content {
        display: flex;
        flex-direction: column;
    }
    
    .image-display-area {
        order: 1;
    }
    
    .sidebar-area {
        order: 2;
        margin-top: 20px;
    }
    
    /* 移动端图片操作按钮优化 */
    .image-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .btn-download, .btn-download-all, .btn-preview, .btn-collect {
        width: 100%;
        padding: 12px;
        font-size: 13px;
    }
    
    .btn-download-all {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .image-actions {
        grid-template-columns: 1fr;
    }
    
    .btn-download-all {
        grid-column: span 1;
    }
}
