/* 新闻详情页样式 */

/* 页面布局 */
.news-detail-page {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
    background-color: #f8f9fa;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主要内容区域 */
.news-detail-main {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.news-detail-article {
    padding: 40px;
}

/* 文章头部 */
.article-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

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

.article-tag {
    padding: 4px 12px;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.article-tag.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.article-tag.policy {
    background: linear-gradient(135deg, #3742fa, #2f3542);
}

.article-tag.guide {
    background: linear-gradient(135deg, #2ed573, #1e8449);
}

.article-date,
.article-views {
    color: #888;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0 0 20px 0;
}

.article-summary {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* 文章内容 */
.article-content {
    line-height: 1.8;
    color: #333;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    position: relative;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.content-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #34495e;
    margin: 30px 0 15px 0;
}

.content-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #34495e;
    margin: 20px 0 10px 0;
}

.content-section p {
    margin-bottom: 16px;
    text-align: justify;
}

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

.content-section li {
    margin-bottom: 8px;
}

/* 信息框样式 */
.info-box,
.highlight-box,
.warning-box {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    position: relative;
}

.info-box {
    background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
    border-left: 4px solid #2196f3;
}

.highlight-box {
    background: linear-gradient(135deg, #fff3e0, #f8f9fa);
    border-left: 4px solid #ff9800;
}

.warning-box {
    background: linear-gradient(135deg, #ffebee, #f8f9fa);
    border-left: 4px solid #f44336;
}

.info-box h4,
.highlight-box h4,
.warning-box h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.info-box p,
.highlight-box p,
.warning-box p {
    margin: 8px 0;
}

.highlight-box p i {
    color: #ff9800;
    margin-right: 8px;
}

.warning-box i {
    color: #f44336;
    margin-right: 8px;
}

/* 流程步骤 */
.process-steps {
    margin: 30px 0;
}

.step {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 50px;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #3498db, #e8f4fd);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 20px;
}

.step-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #2c3e50;
}

.step-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* 文章底部 */
.article-footer {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-label {
    color: #666;
    font-weight: 500;
}

.tag {
    padding: 4px 12px;
    background: #f1f3f4;
    color: #5f6368;
    border-radius: 16px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #3498db;
    color: white;
}

.article-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.action-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.action-btn i {
    margin-right: 6px;
}

/* 相关推荐 */
.related-news {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
}

.related-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item {
    border: 1px solid #eee;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.related-item:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.related-link {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    gap: 15px;
}

.related-tag {
    padding: 4px 8px;
    background: #f8f9fa;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
    flex-shrink: 0;
}

.related-title-text {
    flex: 1;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.related-date {
    color: #888;
    font-size: 14px;
    flex-shrink: 0;
}

/* 右侧边栏 */
.news-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.sidebar-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.sidebar-item a:hover {
    color: #3498db;
}

.sidebar-date {
    color: #888;
    font-size: 12px;
}

/* 底部导航栏 */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 998;
    padding: 8px 0;
}

.bottom-nav-container {
    display: flex;
    justify-content: stretch;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    gap: 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    padding: 15px 10px;
    transition: all 0.3s ease;
    flex: 1;
    gap: 8px;
}

.bottom-nav-item:last-child {
    border-right: none;
}

.bottom-nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.bottom-nav-item span {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* 电话按钮特殊样式 */
.phone-nav {
    background: #fff;
    color: #333;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.phone-nav:hover {
    background: #f8f9fa;
    color: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.phone-nav i {
    color: #2c5aa0;
}

/* 微信按钮特殊样式 */
.wechat-nav {
    background: #fff;
    color: #333;
    border-right: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wechat-nav:hover {
    background: #f8f9fa;
    color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.wechat-nav i {
    color: #4CAF50;
}

/* 固定联系按钮 */
.contact-fixed {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.phone-btn {
    background: #4caf50;
    color: white;
}

.wechat-btn {
    background: #07c160;
    color: white;
}

.contact-btn i {
    font-size: 1.1rem;
}

/* 微信二维码弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal .qr-code {
    padding: 1rem;
}

.modal .qr-code img {
    width: 200px;
    height: 273px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal .qr-code p {
    margin-top: 1rem;
    color: #666;
    font-weight: bold;
}

.wechat-info {
    margin: 20px 0;
}

.wechat-info p {
    margin: 15px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.wechat-info #wechatId {
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: monospace;
    font-weight: bold;
    color: #07c160;
}

.copy-btn {
    background: #07c160;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 10px 0;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    background: #06a94f;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #28a745;
}

.modal-tip {
    color: #666;
    font-size: 0.85rem;
    margin: 10px 0 0;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .news-detail-article {
        padding: 25px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .content-section h2 {
        font-size: 20px;
    }
    
    .content-section h3 {
        font-size: 18px;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step {
        margin-bottom: 20px;
    }
    
    .step:not(:last-child)::after {
        height: 30px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .process-steps {
        margin: 20px 0;
    }
    
    .related-link {
        padding: 12px;
    flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .related-tag {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .news-detail-page {
        padding: 20px 0;
    }
    
    .news-detail-article {
        padding: 20px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .content-section {
        margin-bottom: 30px;
    }
    
    .info-box,
    .highlight-box,
    .warning-box {
        padding: 15px;
    }
    
    .service-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .sidebar-section {
        padding: 20px;
    }
    
    /* 底部导航栏移动端 */
    .bottom-navbar {
        bottom: 0;
        padding: 6px 0;
    }
    
    .bottom-nav-container {
        padding: 0;
        gap: 0;
    }
    
    .bottom-nav-item {
        padding: 12px 8px;
        flex-direction: row;
        gap: 6px;
    }
    
    .bottom-nav-item i {
        font-size: 1.3rem;
    }
    
    .bottom-nav-item span {
        font-size: 0.8rem;
    }

    /* 固定联系按钮移动端 */
    .contact-fixed {
        bottom: 90px;
        right: 15px;
    }
    
    .contact-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .contact-btn span {
        display: none;
    }
    
    .contact-btn i {
        font-size: 1.2rem;
    }
    
    /* 微信弹窗移动端 */
    .modal-content {
        margin: 15% auto;
        width: 95%;
        max-width: 350px;
        padding: 1.5rem;
    }
    
    .wechat-info p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .news-detail-page {
        padding: 20px 0;
    }
    
    .news-detail-article {
        padding: 20px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .content-section {
        margin-bottom: 30px;
    }
    
    .info-box,
    .highlight-box,
    .warning-box {
        padding: 15px;
    }
    
    .sidebar-section {
        padding: 20px;
    }
    
    /* 底部导航栏超小屏幕 */
    .bottom-navbar {
        bottom: 0;
        padding: 4px 0;
    }
    
    .bottom-nav-container {
        gap: 0;
        padding: 0;
    }
    
    .bottom-nav-item {
        padding: 10px 6px;
        flex-direction: column;
        gap: 4px;
    }
    
    .bottom-nav-item i {
        font-size: 1.2rem;
    }
    
    .bottom-nav-item span {
        font-size: 0.7rem;
        display: block;
    }

    .contact-fixed {
        bottom: 85px;
        right: 10px;
    }
    
    .contact-btn {
        padding: 8px 12px;
    }
}
