/* ===== 全局样式 ===== */
/* 顶部悬浮Logo和导航 */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo链接样式 */
a.logo,
a.logo:hover,
a.logo:focus,
a.logo:active {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* ===== 面包屑导航 ===== */
.position {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.position a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.position a:hover {
    color: #00b22d;
}

.position a:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: #999;
}

/* ===== 分类导航 ===== */
/* PC端导航 */
.categories-nav {
    display: flex;
    list-style: none;
}

.categories-nav li {
    margin-left: 22px;
}

.categories-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: all 0.2s;
    padding: 6px 0;
    position: relative;
    font-size: 15px;
}

.categories-nav a:hover,
.categories-nav a.active {
    color: #00b22d;
}

.categories-nav a.active {
    font-weight: 700;
}

.categories-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #00b22d;
    border-radius: 2px;
}

/* 移动端导航 */
.mobile-categories {
    display: none;
    width: 100%;
    overflow-x: auto;
    margin-top: 3px;
    -webkit-overflow-scrolling: touch;
}

.mobile-category-list {
    display: flex;
    list-style: none;
    white-space: nowrap;
    padding-bottom: 5px;
}

.mobile-category-list li {
    margin-right: 12px;
}

.mobile-category-list a {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    padding: 6px 12px;
    display: block;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.mobile-category-list a.active {
    color: #00b22d;
    background-color: rgba(0, 178, 45, 0.1);
}

.mobile-category-list a:hover {
    background-color: rgba(0, 178, 45, 0.05);
}

/* ===== 主容器布局 ===== */
/* 列表页容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 90px auto 30px;
    padding: 0 20px;
    flex: 1;
}

/* 详情页容器 */
.main-container {
    max-width: 1200px;
    margin: 130px auto 50px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* ===== 内容标题区域 ===== */
/* 列表页标题 */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.content-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.image-count {
    background: #f5f5f5;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 详情页标题 */
.article-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.article-meta span {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 6px;
    color: #888;
    font-size: 13px;
}

/* AI生成标签 */
.ai-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00b22d, #00d93a);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 10px;
    vertical-align: middle;
}

/* ===== 图片/媒体展示区域 ===== */
/* 列表页图片网格 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 图片卡片 */
.image-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.image-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.image-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

/* 图片信息区域 */
.image-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.image-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.image-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* 详情页媒体容器 */
.media-container {
    width: 100%;
    margin-bottom: 30px;
}

.main-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.main-image img, .main-image video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.main-image:hover img, .main-image:hover video {
    transform: scale(1.03);
}

/* 缩略图网格 */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    width: 100%;
}

.thumbnail-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 1/1;
    cursor: pointer;
}

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

.thumbnail-item.active {
    box-shadow: 0 0 0 3px rgba(0, 178, 45, 0.5);
}

.thumbnail-item img, .thumbnail-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.thumbnail-item:hover img, .thumbnail-item:hover video {
    transform: scale(1.05);
}

/* 视频标识 */
.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* ===== 分类标签系统 ===== */
/* 列表页分类标签 */
.category-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.category-tag.nature {
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
}

.category-tag.city {
    background: rgba(33, 150, 243, 0.12);
    color: #1565c0;
}

.category-tag.art {
    background: rgba(156, 39, 176, 0.12);
    color: #7b1fa2;
}

.category-tag.animal {
    background: rgba(255, 152, 0, 0.12);
    color: #ef6c00;
}

.category-tag.food {
    background: rgba(244, 67, 54, 0.12);
    color: #d32f2f;
}

.category-tag.travel {
    background: rgba(0, 150, 136, 0.12);
    color: #00796b;
}

/* 详情页标签 */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background-color: rgba(0, 178, 45, 0.1);
    color: #00b22d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s;
}

.tag:hover {
    background-color: rgba(0, 178, 45, 0.2);
    transform: translateY(-2px);
}

/* 浏览量 */
.image-views {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
}

.image-views i {
    margin-right: 4px;
    color: #888;
    font-size: 11px;
}

/* ===== 侧边栏 ===== */
.sidebar {
    position: relative;
}

.sticky-sidebar {
    position: sticky;
    top: 110px;
    margin-top: 20px;
}

/* 文章信息卡片 */
.article-info-card {
    background-color: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 22px;
    color: #222;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.info-title i {
    margin-right: 10px;
    color: #00b22d;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.info-label {
    color: #666;
    font-weight: 500;
    font-size: 14.5px;
}

.info-value {
    color: #333;
    font-weight: 600;
    font-size: 14.5px;
}

/* ===== 文章内容 ===== */
.article-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #444;
    margin-top: 20px;
}

.article-content p {
    margin-bottom: 22px;
}

/* 生成信息 */
.generation-info {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    border-left: 4px solid #00b22d;
}

.generation-info h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    align-items: center;
}

.generation-info h4 i {
    margin-right: 8px;
    color: #00b22d;
}

.generation-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 5px;
}

/* ===== 其他组件 ===== */
/* 加载更多 */
.load-more {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
}

/* 页脚 */
footer {
    margin-top: 40px;
    padding: 20px 0;
    background: #f8f9fa;
    text-align: center;
}

.copyright {
    font-size: 13px;
    color: #666;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 1100px) {
    .main-container {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 992px) {
    .container {
        margin-top: 80px;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        order: 3;
    }
    
    .sticky-sidebar {
        position: static;
        margin-top: 0;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .image-item img {
        height: 180px;
    }
    
    .image-info {
        padding: 14px;
    }
    
    .image-title {
        font-size: 15px;
        min-height: 42px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        margin-top: 70px;
        padding: 0 15px;
    }
    
    .categories-nav {
        display: none;
    }
    
    .mobile-categories {
        display: block;
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .image-item img {
        height: 160px;
    }
    
    .image-info {
        padding: 12px;
    }
    
    .image-title {
        font-size: 14px;
        min-height: 40px;
        margin-bottom: 10px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .content-header h2 {
        font-size: 22px;
    }
    
    .article-title {
        font-size: 1.7rem;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .article-info-card {
        padding: 22px;
    }
}

@media (max-width: 576px) {
    .image-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .image-item img {
        height: 180px;
    }
    
    .image-title {
        font-size: 15px;
    }
    
    .position {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .main-image {
        border-radius: 10px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thumbnail-item {
        aspect-ratio: 1/1;
    }
    
    .info-item {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 12px;
    }
    
    .image-item img {
        height: 160px;
    }
    
    .image-info {
        padding: 10px;
    }
    
    .image-title {
        font-size: 14px;
        min-height: 38px;
    }
    
    .category-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .article-title {
        font-size: 1.4rem;
    }
}