/* 简洁列表样式 - 覆盖原有 grid 布局 */
.article-list .gt-article-item-simple,
.article-list.single-column .gt-article-item-simple {
    display: flex !important;
    grid-template-columns: none !important;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gt-border-color, rgba(255,255,255,0.06));
    transition: background-color 0.2s ease;
    align-items: center;
}
.gt-article-item-simple:hover {
    background-color: var(--gt-hover-bg, rgba(255,255,255,0.03));
}
.gt-article-item-simple:last-child {
    border-bottom: none;
}
.gt-article-simple-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/* 圆形头像 */
.gt-article-item-simple .gt-article-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
}
.gt-article-item-simple .gt-article-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 面包屑导航与发布按钮同行布局 */
.gt-breadcrumb-wrap {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0.25rem 1rem !important;
    margin: 0 0 0.25rem 0 !important;
}
.gt-breadcrumb-wrap .gt-breadcrumb {
    flex: 1;
    min-width: 0;
}
.gt-resource-publish-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 18px;
    border-radius: 6px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}
.gt-resource-publish-btn:hover {
    opacity: 0.88;
    color: #fff !important;
    text-decoration: none !important;
}
.gt-resource-publish-btn i {
    font-size: 15px;
}
/* 文章列表区域对齐和间距优化 */
.main-inner-content {
    padding: 0.35rem 0 0.38rem 0 !important;
}
/* 文章列表与导航栏完全对齐 */
.article-list-main {
    padding-left: var(--gt-page-padding);
    padding-right: var(--gt-page-padding);
}

/* 标签 - 与标题同行 */
.gt-article-item-simple .gt-article-tags {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    width: auto !important;
    flex-wrap: nowrap;
}
.gt-article-item-simple .gt-article-tags * {
    display: inline-flex !important;
}
.gt-article-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 2px;
    font-weight: 500;
    line-height: 16px;
    height: 18px;
}
.gt-article-tag.tag-new {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.gt-article-tag.tag-ad {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.gt-article-tag.tag-res {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.gt-article-tag.tag-share {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}
.gt-article-tag.tag-site {
    background: rgba(255, 152, 0, 0.15);
    color: #ffa726;
    border: 1px solid rgba(255, 152, 0, 0.25);
}
/* IDC广告标签 - 对应首页标签颜色 */
.gt-article-tag.idc-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
    line-height: 16px;
    height: 18px;
    border: none;
}
.gt-article-tag.idc-tag-promo-flash {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}
.gt-article-tag.idc-tag-promo-new {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
}
.gt-article-tag.idc-tag-ending {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
}
.gt-article-tag.idc-tag-normal {
    background: #67727f;
    color: #fff;
}

/* 中间内容区 */
.gt-article-item-simple .gt-article-simple-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}
.gt-article-item-simple .gt-article-simple-title {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--gt-text-color, #e0e0e0);
    line-height: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.gt-article-item-simple .gt-article-simple-title .gt-article-tags {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    width: auto !important;
    flex-wrap: nowrap;
}
.gt-article-item-simple .gt-article-simple-title .gt-article-tags > * {
    flex-shrink: 0;
}
.gt-article-item-simple .gt-article-simple-title .gt-title-text {
    color: var(--gt-text-color, #e0e0e0) !important;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block !important;
    visibility: visible !important;
}
.gt-article-item-simple .gt-article-simple-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gt-text-secondary, #888);
}
.gt-article-item-simple .gt-article-simple-meta time i {
    font-size: 12px;
    margin-right: 2px;
    vertical-align: -1px;
}
.gt-article-item-simple .gt-article-simple-author {
    display: inline-flex;
    align-items: center;
    color: var(--gt-main-color, #60a5fa);
    font-weight: 500;
    background: rgba(96, 165, 250, 0.12);
    padding: 0 5px;
    border-radius: 3px;
    font-size: 0.75rem;
    line-height: 1.6;
    vertical-align: middle;
}
.gt-article-item-simple .gt-article-simple-dot {
    color: rgba(255,255,255,0.2);
}
.gt-article-item-simple .gt-article-simple-cat-sep {
    display: inline-block;
    width: 12px;
}
.gt-article-item-simple .gt-article-simple-cat {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

/* 右侧统计信息 */
.gt-article-item-simple .gt-article-simple-stats {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 12px;
}
.gt-article-item-simple .gt-article-simple-views,
.gt-article-item-simple .gt-article-simple-comments {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--gt-text-secondary, #888);
    white-space: nowrap;
}
.gt-article-item-simple .gt-article-simple-views i,
.gt-article-item-simple .gt-article-simple-comments i {
    font-size: 14px;
    opacity: 0.7;
}

/* VIP徽章 */
.gt-vip-badge {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    height: 18px;
    margin-left: 4px;
    vertical-align: middle;
}
.gt-vip-badge.vip-level-1 {
    background: rgba(192, 192, 192, 0.2);
    color: #c0c0c0;
    border: 1px solid rgba(192, 192, 192, 0.3);
}
.gt-vip-badge.vip-level-2 {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.gt-vip-badge.vip-level-3 {
    background: rgba(0, 191, 255, 0.15);
    color: #00bfff;
    border: 1px solid rgba(0, 191, 255, 0.3);
}
[data-theme="light"] .gt-vip-badge.vip-level-1 {
    background: rgba(150, 150, 150, 0.12);
    color: #888;
    border-color: rgba(150, 150, 150, 0.25);
}
[data-theme="light"] .gt-vip-badge.vip-level-2 {
    background: rgba(202, 168, 0, 0.12);
    color: #b8860b;
    border-color: rgba(202, 168, 0, 0.25);
}
[data-theme="light"] .gt-vip-badge.vip-level-3 {
    background: rgba(0, 150, 200, 0.1);
    color: #0088cc;
    border-color: rgba(0, 150, 200, 0.2);
}

/* 认证徽章 */
.gt-cert-badge {
    display: inline-flex;
    align-items: center;
    padding: 0 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    height: 16px;
    margin-left: 4px;
    vertical-align: middle;
    color: #fff;
}
.gt-cert-badge.cert-official {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.gt-cert-badge.cert-business {
    background: linear-gradient(135deg, #10b981, #059669);
}
.gt-cert-badge.cert-invited {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.gt-cert-badge.cert-expert {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* 桌面端隐藏移动端统计信息 */
.gt-article-item-simple .gt-mobile-stats {
    display: none;
}

/* 暗色模式适配（已是暗色默认，补充 hover 等） */
[data-theme="dark"] .gt-article-item-simple {
    border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .gt-article-item-simple:hover {
    background-color: rgba(255,255,255,0.03);
}
[data-theme="light"] .gt-article-item-simple {
    border-bottom-color: var(--gt-border-color, #f0f0f0);
}
[data-theme="light"] .gt-article-item-simple:hover {
    background-color: var(--gt-hover-bg, #f5f5f5);
}
[data-theme="light"] .gt-article-item-simple .gt-article-simple-title {
    color: #1a1a1a;
}
[data-theme="light"] .gt-article-item-simple .gt-article-simple-title .gt-title-text {
    color: #1a1a1a !important;
}
[data-theme="light"] .gt-article-item-simple .gt-article-simple-dot {
    color: #ccc;
}
[data-theme="light"] .gt-article-item-simple .gt-article-simple-cat {
    color: #999;
}
[data-theme="light"] .gt-article-item-simple .gt-article-avatar {
    background: #e5e7eb;
}
[data-theme="light"] .gt-article-tag.tag-new {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.2);
}
[data-theme="light"] .gt-article-tag.tag-ad {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.2);
}
[data-theme="light"] .gt-article-tag.tag-res {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}
[data-theme="light"] .gt-article-tag.tag-share {
    background: rgba(168, 85, 247, 0.1);
    color: #7c3aed;
    border-color: rgba(168, 85, 247, 0.2);
}
[data-theme="light"] .gt-article-item-simple .gt-article-avatar {
    background: #e5e7eb;
}
[data-theme="light"] .gt-article-item-simple .gt-article-simple-title .gt-title-text {
    color: var(--gt-text-color, #333);
    display: block;
}
[data-theme="light"] .gt-article-tag.tag-site {
    background: rgba(255, 152, 0, 0.1);
    color: #e65100;
    border-color: rgba(255, 152, 0, 0.2);
}
/* IDC广告标签 - 亮色模式保持原色 */
[data-theme="light"] .gt-article-tag.idc-tag-promo-flash {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}
[data-theme="light"] .gt-article-tag.idc-tag-promo-new {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
}
[data-theme="light"] .gt-article-tag.idc-tag-ending {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
}
[data-theme="light"] .gt-article-tag.idc-tag-normal {
    background: #67727f;
    color: #fff;
}
[data-theme="light"] .gt-article-item-simple .gt-article-simple-author {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}
[data-theme="light"] .gt-article-item-simple .gt-article-simple-meta {
    color: #666;
}
[data-theme="light"] .gt-article-item-simple .gt-article-simple-views,
[data-theme="light"] .gt-article-item-simple .gt-article-simple-comments {
    color: #666;
}
[data-theme="light"] .gt-article-item-simple .gt-mobile-views,
[data-theme="light"] .gt-article-item-simple .gt-mobile-comments {
    color: #666;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .gt-article-item-simple {
        padding: 12px;
    }
    .gt-article-item-simple .gt-article-avatar {
        width: 40px;
        height: 40px;
        margin-right: 4px;
    }
    
    /* 标题区域 - 手机版三行布局 */
    /* 第一行：标签 */
    .gt-article-item-simple .gt-article-simple-title {
        font-size: 15px;
        line-height: 22px;
        gap: 4px !important;
        flex-wrap: wrap;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .gt-article-item-simple .gt-article-simple-title .gt-article-tags {
        margin-bottom: 1px;
    }
    /* 第二行：文章标题 - 允许换行 */
    .gt-article-item-simple .gt-article-simple-title .gt-title-text {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        width: 100%;
        margin-bottom: 1px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    /* 第三行：meta信息（作者、时间、浏览量、评论）已经在下面的 .gt-article-simple-meta 中 */
    
    /* meta行优化 - 移除分类名，添加统计数据 */
    .gt-article-item-simple .gt-article-simple-meta {
        font-size: 11px;
        gap: 8px;
        flex-wrap: wrap;
    }
    /* 隐藏分类名称（资源分享） */
    .gt-article-item-simple .gt-article-simple-cat {
        display: none !important;
    }
    .gt-article-item-simple .gt-article-simple-cat-sep {
        display: none !important;
    }
    
    /* 标签样式微调 */
    .gt-article-tag {
        font-size: 10px;
        padding: 1px 5px;
        height: 16px;
        line-height: 14px;
    }
    
    /* 隐藏右侧统计区域（移动端改为在meta行显示） */
    .gt-article-item-simple .gt-article-simple-stats {
        display: none !important;
    }
    /* 移动端统计信息显示在meta行 */
    .gt-article-item-simple .gt-mobile-stats {
        display: inline-flex !important;
        align-items: center;
        gap: 10px;
        margin-left: auto;
    }
    .gt-article-item-simple .gt-mobile-views,
    .gt-article-item-simple .gt-mobile-comments {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        font-size: 11px;
        color: var(--gt-text-secondary, #888);
    }
    .gt-article-item-simple .gt-mobile-views i,
    .gt-article-item-simple .gt-mobile-comments i {
        font-size: 12px;
        opacity: 0.7;
    }
    
    .gt-resource-publish-btn {
        padding: 5px 14px;
        font-size: 12px;
    }
    .gt-resource-publish-btn i {
        font-size: 13px;
    }
}
