/* ============================================
   摆摊技术页面 - 专属样式
   ============================================ */

/* ---------- 顶部 Banner ---------- */
.tan-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #c73e1d 100%);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}
.tan-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.tan-banner h2 {
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.tan-banner h2 i {
    margin-right: 8px;
}
.tan-banner .sub-title {
    font-size: 15px;
    opacity: 0.95;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.tan-banner .desc {
    font-size: 13px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* ---------- 三大工程标签 ---------- */
.tan-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.tan-tab {
    flex: 1;
    padding: 14px 15px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #f5f5f5;
    user-select: none;
}
.tan-tab:hover {
    background: #fff0e6;
    border-color: #ff6b35;
}
.tan-tab.active {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}
.tan-tab i {
    font-size: 18px;
    margin-right: 5px;
}
.tan-tab .tab-name {
    font-size: 15px;
    font-weight: 600;
}

/* ---------- 工程详情卡片 ---------- */
.tan-detail {
    display: none;
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border-left: 4px solid #ff6b35;
}
.tan-detail.active {
    display: block;
    animation: tanFadeIn 0.4s ease;
}
@keyframes tanFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.tan-detail h3 {
    color: #ff6b35;
    font-size: 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.tan-detail h3 i {
    margin-right: 8px;
    font-size: 22px;
}
.tan-detail .detail-meta {
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
}
.tan-detail .detail-desc {
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ---------- 项目卡片网格 ---------- */
.tan-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.tan-project-card {
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.tan-project-card:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* 项目图片 */
.tan-project-img {
    width: 100%;
    height: 350px;
   /* aspect-ratio: 4 / 3;*/
    overflow: hidden;
    position: relative;
    background: #e8e8e8;
}
.tan-project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.tan-project-card:hover .tan-project-img img {
    transform: scale(1.05);
}

/* 项目编号角标 */
.tan-project-num {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

/* 项目信息 */
.tan-project-info {
    padding: 15px;
}
.tan-project-info h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 600;
}
.tan-project-info .tag {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.tan-project-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tan-project-info ul li {
    font-size: 12px;
    color: #555;
    padding: 3px 0;
    padding-left: 14px;
    position: relative;
    line-height: 1.6;
}
.tan-project-info ul li::before {
    content: '•';
    color: #ff6b35;
    position: absolute;
    left: 0;
    font-weight: bold;
}
.tan-project-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
    font-size: 11px;
    color: #888;
}
.tan-project-footer i {
    color: #ff6b35;
    margin-right: 4px;
}

/* ---------- 文章列表区域 ---------- */
.tan-article-section {
    margin-top: 35px;
}
.tan-article-section .section-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 4px solid #ff6b35;
    font-weight: 600;
}

/* 分类筛选 */
.tan-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.tan-filter a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    background: #f5f5f5;
    color: #333;
}
.tan-filter a:hover {
    background: #fff0e6;
    color: #ff6b35;
}
.tan-filter a.active {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
}
.tan-filter .filter-num {
    margin-left: 4px;
    font-size: 12px;
}

/* 文章列表 */
.tan-article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.tan-article-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.tan-article-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.tan-article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.tan-article-img {
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: #e8e8e8;
}
.tan-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.tan-article-item:hover .tan-article-img img {
    transform: scale(1.05);
}
.tan-article-info {
    padding: 14px 16px 18px;
}
.tan-article-title {
    font-size: 26px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 500;
}
.tan-article-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.tan-article-meta {
    font-size: 12px;
    color: #999;
}
.tan-article-meta span {
    margin-right: 15px;
}
.tan-article-meta i {
    margin-right: 3px;
}

/* 分页 */
.tan-page {
    text-align: center;
    margin-top: 30px;
}
.tan-page a,
.tan-page span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}
.tan-page a {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}
.tan-page a:hover {
    background: #ff6b35;
    color: #fff;
    border-color: #ff6b35;
}
.tan-page span.current {
    background: #ff6b35;
    color: #fff;
    border: 1px solid #ff6b35;
}

/* ============================================
   移动端适配 (max-width: 768px)
   ============================================ */
@media screen and (max-width: 768px) {
    
    .tan-banner {
        padding: 25px 15px;
        border-radius: 12px;
    }
    .tan-banner h2 {
        font-size: 20px;
    }
    .tan-banner .sub-title {
        font-size: 13px;
    }
    .tan-banner .desc {
        font-size: 11px;
    }
    
    /* 标签竖排 */
    .tan-tabs {
        flex-direction: column;
        gap: 10px;
    }
    .tan-tab {
        padding: 12px;
    }
    .tan-tab .tab-name {
        font-size: 14px;
    }
    
    /* 项目卡片单列 */
    .tan-projects {
        grid-template-columns: 1fr;
    }
    .tan-project-img {
        height: 200px;
    }
    
    /* 文章列表单列 */
    .tan-article-list {
        grid-template-columns: 1fr;
    }
    .tan-article-img {
        height: 200px;
    }
    
    /* 筛选标签换行 */
    .tan-filter {
        gap: 8px;
    }
    .tan-filter a {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .tan-detail {
        padding: 18px;
    }
    .tan-detail h3 {
        font-size: 18px;
    }
}

/* 更小屏幕 */
@media screen and (max-width: 480px) {
    .tan-project-img {
        height: 160px;
    }
    .tan-article-img {
        height: 160px;
    }
    .tan-project-info h4 {
        font-size: 14px;
    }
    .tan-article-title {
        font-size: 14px;
    }
}

/* ==================== 文章列表容器 ==================== */
.article-list {
    max-width: 900px;
    padding: 20px;
}

/* ==================== 单个文章项 - 左右布局 ==================== */
.list-item {
    display: flex;              /* 横向排列 */
    align-items: flex-start;    /* 顶部对齐 */
    gap: 20px;                  /* 图片和文字间距 */
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #ddd;
}

.list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ==================== 左侧图片 ==================== */
.list-item .thumb {
    width: 140px;
    height: 100px;            /* 固定高度 */
    object-fit: cover;          /* 裁剪填充 */
    border-radius: 8px;
    flex-shrink: 0;             /* 不被压缩 */
    display: block;
}

/* ==================== 右侧内容 ==================== */
.list-item .content {
    flex: 1;                    /* 占据剩余空间 */
    min-width: 0;               /* 防止文字溢出 */
}

/* 标题 */
.list-item .content h3 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.list-item .content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.list-item .content h3 a:hover {
    color: #FF6B35;
}

/* 摘要 */
.list-item .content p {
    font-size: 12px;
    color: #666;
    line-height: 1.7;
    
    /* 限制显示2行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 日期 */
.list-item .content .date {
    font-size: 12px;
    color: #999;
}

/* 标签（置顶/推荐） */
.list-item .content .tag {
    display: inline-block;
    background: #FF6B35;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ==================== 响应式 - 手机端 ==================== */
@media (max-width: 768px) {
    .list-item {
        flex-direction: column;     /* 手机端上下排列 */
        gap: 12px;
    }
    
    .list-item .thumb {
        width: 100%;                /* 图片全宽 */
        height: 200px;
    }
    
    .list-item .content h3 {
        font-size: 16px;
    }
}
