/* articles.css - 文章页面专属样式 */

/* 文章分类导航 */
.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.category-item {
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-item:hover,
.category-item.active {
    background-color: #1a5276;
    color: white;
    border-color: #1a5276;
}

/* 推荐文章 */
.featured-articles {
    margin: 50px 0;
}

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

.featured-article.large {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-article.large:hover {
    transform: translateY(-5px);
}

.featured-article.large .article-content {
    padding: 30px;
}

.featured-articles-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-article.small {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.featured-article.small:hover {
    transform: translateY(-3px);
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #e8f4fc;
    color: #2e86c1;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-category.tax-policy {
    background-color: #e8f4fc;
    color: #2e86c1;
}

.article-category.tax-practice {
    background-color: #fff8e6;
    color: #e6a700;
}

.article-category.foreign-tax {
    background-color: #e6f7f0;
    color: #28a745;
}

.article-category.registration {
    background-color: #f2e6ff;
    color: #8a2be2;
}

.featured-article.large h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.featured-article.large h3 a {
    color: #1a5276;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-article.large h3 a:hover {
    color: #e74c3c;
}

.featured-article.large p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.featured-article.small h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.featured-article.small h4 a {
    color: #1a5276;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-article.small h4 a:hover {
    color: #e74c3c;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #888;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 5px;
}

/* 全部文章列表 */
.articles-section {
    margin: 60px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.article-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-card .article-content {
    padding: 25px;
}

.article-card h3 {
    font-size: 18px;
    margin: 15px 0 10px;
    line-height: 1.4;
}

.article-card h3 a {
    color: #1a5276;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: #e74c3c;
}

.article-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 订阅区块 */
.subscribe-section {
    background: linear-gradient(135deg, #1a5276, #2e86c1);
    color: white;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    margin: 60px 0;
}

.subscribe-content h2 {
    color: white;
    margin-bottom: 15px;
}

.subscribe-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 16px;
}

.subscribe-form button {
    padding: 15px 30px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
    background-color: #c0392b;
}

.subscribe-tip {
    font-size: 14px;
    margin-top: 15px;
    opacity: 0.7;
}

/* 文章详情页样式 */
.article-detail {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #2e86c1;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-title {
    color: #1a5276;
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.meta-item i {
    margin-right: 5px;
    color: #2e86c1;
}

.article-content h2 {
    color: #1a5276;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.article-content h3 {
    color: #1a5276;
    margin: 30px 0 15px;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.content-summary {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid #2e86c1;
}

.content-summary h3 {
    color: #1a5276;
    margin-bottom: 15px;
}

.info-box,
.warning-box {
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid;
}

.info-box {
    background-color: #e8f4fc;
    border-left-color: #2e86c1;
}

.warning-box {
    background-color: #fff8f6;
    border-left-color: #e74c3c;
}

.info-box h3,
.warning-box h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
}

.info-box h3 i,
.warning-box h3 i {
    margin-right: 10px;
}

.table-container {
    overflow-x: auto;
    margin: 25px 0;
}

.policy-table,
.timeline-table,
.criteria-table,
.vat-policy-table,
.export-process-table,
.lost-invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.policy-table th,
.policy-table td,
.timeline-table th,
.timeline-table td,
.criteria-table th,
.criteria-table td,
.vat-policy-table th,
.vat-policy-table td,
.export-process-table th,
.export-process-table td,
.lost-invoice-table th,
.lost-invoice-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.policy-table th,
.timeline-table th,
.criteria-table th,
.vat-policy-table th,
.export-process-table th,
.lost-invoice-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #1a5276;
}

.policy-table tr:nth-child(even),
.timeline-table tr:nth-child(even),
.criteria-table tr:nth-child(even),
.vat-policy-table tr:nth-child(even),
.export-process-table tr:nth-child(even),
.lost-invoice-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.article-conclusion {
    background-color: #e8f4fc;
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
}

.article-conclusion h2 {
    margin-top: 0;
}

.article-cta {
    background: linear-gradient(135deg, #1a5276, #2e86c1);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
}

.article-cta h3 {
    color: white;
    margin-bottom: 15px;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.article-tags {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-tags a {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f8f9fa;
    color: #666;
    border-radius: 20px;
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background-color: #2e86c1;
    color: white;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-prev,
.nav-next {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    max-width: 45%;
}

.nav-prev:hover,
.nav-next:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.nav-prev i {
    margin-right: 10px;
}

.nav-next i {
    margin-left: 10px;
}

.related-articles {
    margin: 60px 0;
}

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

.related-article {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.related-article:hover {
    transform: translateY(-5px);
}

.related-article h3 {
    margin-bottom: 10px;
}

.related-article h3 a {
    color: #1a5276;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article h3 a:hover {
    color: #e74c3c;
}

.related-article p {
    color: #666;
    line-height: 1.6;
}

/* 转化引导 */
.conversion-funnel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.funnel-step {
    background: linear-gradient(135deg, #1a5276, #2e86c1);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.funnel-step h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 20px;
}

.wechat-btn, .taobao-btn {
    display: inline-block;
    background-color: white;
    color: #1a5276;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s;
}

.wechat-btn:hover, .taobao-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.taobao-btn {
    background-color: #ff4e00;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .category-item {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input {
        border-radius: 50px;
        margin-bottom: 10px;
    }
    
    .subscribe-form button {
        border-radius: 50px;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-prev, .nav-next {
        max-width: 100%;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .conversion-funnel {
        grid-template-columns: 1fr;
    }
}