/* 新闻页面样式 - 重新设计 */

/* 导航样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand h1 {
    color: #2c5aa0;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

/* 底部导航栏 */
.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: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);
}

.qr-code-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.qr-pattern {
    width: 120px;
    height: 120px;
    background: #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.qr-squares {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 80px;
    height: 80px;
}

.qr-square {
    background: white;
    border-radius: 2px;
}

.qr-square:nth-child(1),
.qr-square:nth-child(3),
.qr-square:nth-child(5),
.qr-square:nth-child(7),
.qr-square:nth-child(9) {
    background: #333;
}

.qr-square:nth-child(2),
.qr-square:nth-child(4),
.qr-square:nth-child(6),
.qr-square:nth-child(8) {
    background: white;
}

.qr-label {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.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;
}

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 12px 0;
    margin-top: 70px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
    color: #666;
}

.current-position {
    margin-right: 8px;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
    margin: 0 4px;
}

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

.separator {
    margin: 0 8px;
    color: #999;
}

.current {
    color: #333;
    font-weight: 500;
}

/* 新闻页面主体 */
.news-page {
    background: #f5f5f5;
    min-height: calc(100vh - 140px);
    padding: 20px 0;
}

.news-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 左侧新闻列表 */
.news-main {
    flex: 1;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.news-list {
    padding: 0;
}

/* 新闻文章项 */
.news-article {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.news-article:last-child {
    border-bottom: none;
}

.news-article:hover {
    background-color: #fafafa;
}

.news-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.news-title a:hover {
    color: #007bff;
}

.news-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

/* 分页导航 */
.pagination {
    background: #fff;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.pagination .page-link,
.pagination .page-current {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.pagination .page-current,
.pagination .page-link.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

.pagination .page-link.disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f8f9fa;
}

.pagination .page-link.disabled:hover {
    background-color: #f8f9fa;
    color: #ccc;
}

/* 右侧边栏 */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-section {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.sidebar-title {
    background: #f8f9fa;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    border-bottom: 1px solid #f0f0f0;
}

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

.sidebar-list a {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.2s;
}

.sidebar-list a:hover {
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

/* 侧边栏新闻项 */
.sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

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

.sidebar-item:hover {
    background-color: #f8f9fa;
}

.sidebar-item a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
    margin-right: 10px;
    padding: 0;
    display: block;
}

.sidebar-item a:hover {
    color: #007bff;
    background-color: transparent;
}

.sidebar-date {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 底部样式 */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
}

.social-link:hover {
    background: #007bff;
}

.footer .qr-code {
    text-align: center;
}

.footer .qr-code img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.footer .qr-code p {
    font-size: 0.8rem;
    color: #bdc3c7;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    
    .nav-brand h1 {
        font-size: 1.3rem;
    }
    
    /* 底部导航栏移动端 */
    .bottom-navbar {
        bottom: 0;
        padding: 6px 0;
    }
    
    .bottom-nav-container {
        padding: 0;
        gap: 0;
    }
    
    .bottom-nav-item {
        padding: 12px 8px;
        gap: 6px;
    }
    
    .bottom-nav-item i {
        font-size: 1.3rem;
        margin-bottom: 0;
    }
    
    .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;
    }
    
    .copy-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .modal-tip {
        font-size: 0.8rem;
    }
    
    .breadcrumb .container {
        padding: 0 15px;
    }
    
    .news-page .container {
        padding: 0 15px;
    }
    
    .news-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .news-article {
        padding: 15px;
    }
    
    .news-title {
        font-size: 15px;
    }
    
    .news-excerpt {
        font-size: 13px;
    }
    
    .sidebar-list a {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .sidebar-item {
        padding: 10px 15px;
    }
    
    .sidebar-item a {
        font-size: 13px;
        margin-right: 8px;
    }
    
    .sidebar-date {
        font-size: 11px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 0 10px;
    }
    
    .breadcrumb .container {
        padding: 0 10px;
    }
    
    .news-page .container {
        padding: 0 10px;
    }
    
    .news-article {
        padding: 12px;
    }
    
    .sidebar-title {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .sidebar-item {
        padding: 8px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .sidebar-item a {
        font-size: 12px;
        margin-right: 0;
        line-height: 1.3;
    }
    
    .sidebar-date {
        font-size: 10px;
        align-self: flex-end;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pagination .page-link,
    .pagination .page-current {
        padding: 6px 10px;
        margin: 0 2px;
        font-size: 13px;
    }

    /* 底部导航栏超小屏幕 */
    .bottom-navbar {
        bottom: 0;
        padding: 4px 0;
    }
    
    .bottom-nav-container {
        gap: 0;
        padding: 0;
    }
    
    .bottom-nav-item {
        padding: 10px 6px;
        gap: 5px;
    }
    
    .bottom-nav-item i {
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    
    .bottom-nav-item span {
        font-size: 0.75rem;
    }

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