/* ==========================================================================
   新芮表单 新闻资讯列表页样式 v1.0
   与首页 index.css、关于页 about.css 保持设计语言一致
   ========================================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --dark: #1e293b;
    --text: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 基础样式（与 index.css 一致，保证容器宽度统一） ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   资讯 Hero（padding 与首页/关于页统一，保证头部高度一致）
   ========================================================================== */
.news-hero {
    background: var(--gradient);
    padding: 72px 0 80px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

.news-hero-content {
    position: relative;
    z-index: 2;
}

.news-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.news-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.92);
    font-weight: 300;
    margin-bottom: 20px;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--white);
    text-decoration: underline;
}

.breadcrumb-sep {
    color: rgba(255,255,255,0.5);
}

.breadcrumb-current {
    color: var(--white);
    font-weight: 500;
}

/* ==========================================================================
   分类筛选
   ========================================================================== */
.cat-filter {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.cat-item {
    padding: 8px 22px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: var(--transition);
}

.cat-item:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.cat-item.active {
    color: var(--white);
    background: var(--gradient);
    border-color: transparent;
    box-shadow: var(--shadow);
}

/* ==========================================================================
   新闻列表
   ========================================================================== */
.news-list-section {
    background: var(--bg);
    padding: 48px 0 64px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    display: flex;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.news-thumb {
    flex: 0 0 260px;
    min-height: 170px;
    overflow: hidden;
    position: relative;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.06);
}

.news-body {
    flex: 1;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-badge {
    display: inline-block;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: 50px;
    transition: var(--transition);
}

.news-badge:hover {
    background: var(--primary);
    color: var(--white);
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: inherit;
    transition: var(--transition);
}

.news-title a:hover {
    color: var(--primary);
}

.news-summary {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed var(--border);
    padding-top: 14px;
}

.news-views {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.read-more {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* ==========================================================================
   分页
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    padding: 9px 16px;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
}

.page-link:hover:not(.disabled):not(.active) {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.page-link.active {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow);
}

.page-link.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    background: var(--bg);
    opacity: 0.6;
}

.page-ellipsis {
    padding: 9px 8px;
    color: var(--text-muted);
}

.page-info {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   空状态
   ========================================================================== */
.no-data {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-data-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.no-data p {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.no-data .btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--white);
    border: 2px solid var(--primary-100);
    border-radius: 10px;
    transition: var(--transition);
}

.no-data .btn-outline:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   响应式适配
   ========================================================================== */
@media (max-width: 768px) {
    .news-hero {
        padding: 44px 0 52px;
    }

    .news-hero h1 {
        font-size: 1.8rem;
    }

    .news-hero p {
        font-size: 1rem;
    }

    .cat-item {
        padding: 7px 16px;
        font-size: 0.85rem;
    }

    .news-card {
        flex-direction: column;
    }

    .news-thumb {
        flex: 0 0 auto;
        height: 200px;
    }

    .news-thumb img {
        height: 200px;
    }

    .news-body {
        padding: 18px 20px;
    }
}

@media (max-width: 576px) {
    .cat-nav {
        gap: 8px;
    }

    .cat-item {
        padding: 6px 14px;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .pagination {
        gap: 4px;
    }

    .page-link {
        padding: 8px 12px;
    }
}

/* ==========================================================================
   通用按钮 / CTA
   ========================================================================== */
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.05rem;
}

.cta-section {
    padding: 64px 0;
    background: var(--gradient);
    color: var(--white);
}

.cta-inner {
    text-align: center;
}

.cta-inner h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-inner p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    font-size: 0.92rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    transition: var(--transition);
}

.social-link img {
    width: 24px;
    height: 24px;
    border-radius: 5px;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-beian a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-beian a:hover {
    color: var(--primary-light);
}

/* ==========================================================================
   登录弹窗 / 加载弹窗
   ========================================================================== */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 440px;
    max-width: 92%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s ease;
}

.login-modal-overlay.active .login-modal {
    transform: translateY(0) scale(1);
}

.account-login-toggle-wrap {
    text-align: center;
    margin-bottom: 1rem;
}

.account-login-toggle {
    display: inline-block;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.account-login-toggle:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-size: 0.9rem;
}

#rhszzhmm {
    padding: 0.75rem;
    border-radius: 8px;
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    line-height: 25px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.login-modal-header {
    background: var(--gradient);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
}

.login-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.login-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.login-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

.login-modal-body {
    padding: 1.5rem;
}

.quick-login-section {
    text-align: center;
}

.quick-login-title {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.social-login-big {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.social-login-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    background: #fafafa;
}

.social-login-item img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.social-login-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

.social-login-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.social-login-item.wechat:hover {
    background: #e8f8ef;
    border-color: #07C160;
    color: #07C160;
}

.social-login-item.qq:hover {
    background: #e8f0fe;
    border-color: #1DA1F2;
    color: #1DA1F2;
}

.social-login-item.dingtalk:hover {
    background: #e8f4fd;
    border-color: #1E88E5;
    color: #1E88E5;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.login-divider span {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0 0.5rem;
}

.account-login-section .form-group {
    margin-bottom: 1rem;
}

.account-login-section label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.35rem;
    display: block;
}

.account-login-section .form-control {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
}

.account-login-section .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
    outline: none;
}

.account-login-section .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.account-login-section .form-check-input {
    margin-right: 0.5rem;
}

.account-login-section .btn-primary {
    padding: 0.75rem;
    font-size: 1rem;
    width: 100%;
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.account-login-section .btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.mb-3 {
    margin-bottom: 1rem;
}

.w-100 {
    width: 100%;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-modal {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.loading-spinner {
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: var(--dark);
    margin: 0;
}

/* 导航与页脚响应式 */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        margin: 0;
        padding: 16px 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: var(--transition);
        opacity: 0;
        z-index: 999;
        border-bottom: 1px solid var(--border);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border);
    }

    .nav-list a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .login-modal-overlay {
        padding-top: 0;
        align-items: center;
    }

    .login-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 576px) {
    .header-actions .btn-login {
        display: none;
    }

    .social-login-big {
        gap: 0.5rem;
    }

    .social-login-item img {
        width: 38px;
        height: 38px;
    }

    .social-login-item span {
        font-size: 0.8rem;
    }
}
