/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f9fafb;
    color: #333;
    line-height: 1.6;
}

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

/* 导航栏样式 */
.navbar {
    background-color: #f9fafb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 第一行导航 */
.navbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    border-bottom: 1px solid #e5e7eb;
}

/* Logo区域 */
.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 搜索框和用户操作区域 */
.navbar-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e1e5e9;
    transition: all 0.3s;
}

.search-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.search-input {
    border: none;
    padding: 8px 15px;
    width: 200px;
    outline: none;
    background: transparent;
}

.search-button {
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 8px 12px;
    cursor: pointer;
    transition: color 0.3s;
}

.search-button:hover {
    color: #3b82f6;
}

/* 用户操作区域 */
.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login {
    color: #333;
    border: 1px solid #333;
}

.btn-login:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-register {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    color: #fff;
}

.btn-register:hover {
    opacity: 0.9;
}

/* 第二行导航 - 桌面端单行显示 */
.navbar-bottom {
    padding: 10px 5%;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
}

.nav-item {
    position: relative;
    flex: 1;
    text-align: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 8px;
    display: block;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    border-right: 1px solid #e5e7eb;
}

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

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #3b82f6;
}

/* 二级菜单 */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-item {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    padding: 5px;
}

/* 移动端菜单 */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 1002;
    overflow-y: auto;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: none;
}

.mobile-nav-menu.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-item {
    border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.mobile-nav-link i {
    transition: transform 0.3s;
}

.mobile-nav-item.active .mobile-nav-link i {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    padding-left: 15px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 10px;
}

.mobile-nav-item.active .mobile-submenu {
    display: block;
}

.mobile-submenu-item {
    display: block;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
}

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

.mobile-submenu-item:hover {
    color: #3b82f6;
}

/* 主要内容区域 */
.main-content {
    margin-top: 100px;
    padding: 20px 0;
}

/* 广告区域 */
.ad-section {
    margin-top: 30px;
    /* 增加上边距，避免太靠近导航栏 */
    margin-bottom: 30px;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.ad-item {
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}

.ad-item:hover {
    transform: translateY(-5px);
}

.ad-item i {
    font-size: 24px;
    margin-bottom: 10px;
}

.ad-item .ad-text {
    font-size: 12px;
    font-weight: 500;
}

.ad-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
}

/* 广告颜色 */
.ad-red {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.ad-blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.ad-green {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.ad-purple {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.ad-yellow {
    background: linear-gradient(135deg, #eab308, #f59e0b);
}

.ad-indigo {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
}

.ad-pink {
    background: linear-gradient(135deg, #ec4899, #f97316);
}

.ad-cyan {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.banner-ad {
    margin-top: 20px;
    position: relative;
}

.banner-content {
    padding: 30px;
    color: #fff;
    position: relative;
    z-index: 2;
}

.banner-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.banner-content p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.banner-btn {
    background: #fff;
    color: #3b82f6;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    background: #f3f4f6;
}

/* 服务分类 */
.service-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
    margin-right: 10px;
}

.section-header i {
    color: #3b82f6;
    font-size: 20px;
}

.section-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.service-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #fff;
    font-size: 20px;
}

.service-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

/* 分类数据区域 */
.data-section {
    margin-bottom: 30px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 640px) {
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.data-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.card-header h3 {
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
}

.card-header h3 i {
    color: #3b82f6;
    margin-right: 8px;
}

.view-more {
    color: #3b82f6;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.view-more:hover {
    color: #2563eb;
}

.data-list {
    padding: 10px 0;
}

.data-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.3s;
}

.data-item:hover {
    background: #f9fafb;
}

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

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.item-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.item-time {
    font-size: 12px;
    color: #6b7280;
}

.item-desc {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.4;
}

.item-location {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}

.item-location i {
    margin-right: 5px;
    font-size: 10px;
}

/* 底部区域 */
.footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0 20px;
    margin-top: 40px;
}

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

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        /*margin-bottom: 40px;*/
        /*padding-bottom: 30px;*/
        /*border-bottom: 1px solid #e5e7eb;*/
    }
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    max-width: 250px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-3px);
}

.footer-column h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.footer-link {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-link:hover {
    color: #3b82f6;
}

.footer-link i {
    margin-right: 8px;
    font-size: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info p:first-child {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 5px;
}

.contact-info p:last-child {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .copyright {
        margin-bottom: 0;
    }
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
}

.footer-link-bottom {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link-bottom:hover {
    color: #3b82f6;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .nav-link {
        font-size: 13px;
        padding: 10px 6px;
    }
}

@media (max-width: 992px) {
    .nav-link {
        font-size: 12px;
        padding: 10px 4px;
    }
}

@media (max-width: 768px) {
    .navbar-top {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-top-right {
        width: 100%;
        justify-content: space-between;
    }

    .search-box {
        flex: 1;
        margin-right: 10px;
    }

    .search-box form {
        flex: 1;
    }

    .search-input {
        width: 100%;
        text-align: center;
        /* 移动端也居中 */
    }

    .search-button {
        width: 100%;
    }

    .navbar-bottom {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-nav-menu {
        display: block;
    }

    .main-content {
        margin-top: 130px;
    }
}

/* 最近更新模块样式*/
.recent-updates-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-updates-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.update-count {
    font-size: 13px;
    color: #7f8c8d;
    background: #e8f4fd;
    padding: 4px 10px;
    border-radius: 12px;
}

/* 响应式网格布局 */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
}

.update-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s;
    cursor: pointer;
}

.update-item:nth-child(odd) {
    border-right: 1px solid #f8f9fa;
}

.update-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.update-item:hover {
    background: #f8fafc;
}

.item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-icon i {
    color: white;
    font-size: 16px;
}

.item-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-category {
    font-size: 12px;
    color: #7f8c8d;
    background: #f1f3f4;
    padding: 3px 8px;
    border-radius: 10px;
}

.item-date {
    font-size: 12px;
    color: #7f8c8d;
    flex-shrink: 0;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .updates-grid {
        grid-template-columns: 1fr;
    }

    .update-item:nth-child(odd) {
        border-right: none;
    }

    .update-item:nth-last-child(2) {
        border-bottom: 1px solid #f8f9fa;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .card-header {
        padding: 14px 16px;
        align-items: flex-start;
        gap: 10px;
    }

    .header-left {
        gap: 8px;
    }

    .card-header h3 {
        font-size: 16px;
    }

    .update-item {
        padding: 14px 16px;
    }

    .item-icon {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }

    .item-icon i {
        font-size: 14px;
    }

    .item-title {
        font-size: 14px;
    }

    .item-category,
    .item-date {
        font-size: 11px;
    }
}

.update-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s;
}

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

.data-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 8px;
    margin-bottom: 12px;
}

.page-header {
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.page-description {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

.location-filter {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.filter-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.filter-title i {
    margin-right: 10px;
    color: #6366f1;
    background: #e0e7ff;
    padding: 8px;
    border-radius: 10px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* 美观的按钮式a标签 */
.btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: #475569;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
    color: #4f46e5;
    text-decoration: none;
}

.btn-filter:hover::before {
    opacity: 1;
}

.btn-filter.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-color: #6366f1;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.btn-filter.active:hover {
    background: linear-gradient(135deg, #5a5fef, #7c4df5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-filter.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    border-radius: 10px;
}

/* 添加图标 */
.btn-filter i {
    margin-right: 8px;
    font-size: 14px;
}

/* 内容网格布局*/
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        justify-content: center;
    }

    .btn-filter {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 内容卡片样式 */
.content-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
    border: 1px solid #f8fafc;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: white;
    font-size: 20px;
}

.card-category {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-date {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-location {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #64748b;
}

.card-location i {
    margin-right: 6px;
    color: #94a3b8;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.card-excerpt {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    flex-grow: 1;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    list-style: none;
    gap: 8px;
}

.pagination li {
    margin: 0;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #475569;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    padding: 0 12px;
}

.pagination a:hover {
    background: #f1f5f9;
    color: #4f46e5;
    text-decoration: none;
}

.pagination li.active a {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pagination li:first-child a {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    pointer-events: none;
}

.pagination li:first-child a:hover {
    background: #f8fafc;
    color: #64748b;
}

.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 2px dashed #e2e8f0;
}

.empty-icon {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-title {
    font-size: 24px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.empty-description {
    font-size: 16px;
    color: #94a3b8;
    max-width: 500px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 文章头部 */
.article-header {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    text-align: center;
    margin-top: 30px;
}

.article-category {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #64748b;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: #94a3b8;
}

/* 文章内容区域 */
.article-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

/* 评论区域 */
.comments-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.section-title {
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: #6366f1;
}

.comment-count {
    color: #64748b;
    font-size: 16px;
    font-weight: normal;
    margin-left: 8px;
}

/* 相关推荐和热门资讯 */
.recommendations {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .recommendations {
        grid-template-columns: 1fr;
    }
}

.related-articles,
.hot-articles {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-navigation {
        flex-direction: column;
        gap: 16px;
    }

    .nav-card {
        width: 100%;
    }
}

.related-card,
.hot-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
    border: 1px solid #e2e8f0;
}

.related-card:hover,
.hot-card:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.related-title,
.hot-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta,
.hot-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
}

.hot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-card {
    display: flex;
    align-items: center;
}

.hot-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

.hot-rank.top {
    background: #fef2f2;
    color: #ef4444;
}

/* 上一篇/下一篇导航 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.nav-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    width: 48%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f8fafc;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.nav-card.prev {
    text-align: left;
}

.nav-card.next {
    text-align: right;
    flex-direction: row-reverse;
}

.nav-icon {
    font-size: 24px;
    color: #6366f1;
    margin: 0 16px;
}

.nav-content {
    flex: 1;
}

.nav-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-navigation {
        flex-direction: column;
        gap: 16px;
    }

    .nav-card {
        width: 100%;
    }
}

/* 简洁方案登录状态样式 */
.user-logged-in {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
}

.user-logged-in:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.username {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.user-status {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 1px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 6px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e9ecef;
}

.user-logged-in:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.dropdown-item i {
    margin-right: 8px;
    width: 14px;
    text-align: center;
    font-size: 12px;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 4px 0;
}

.content-body h3 {
    font-family: "Microsoft Yahei", sans-serif;
    box-sizing: border-box;
    text-size-adjust: none;
    margin: 40px 0 20px;
    padding: 5px 0 15px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    overflow-wrap: break-word;
    word-break: normal;
    position: relative;
    color: rgb(66, 66, 66);
    font-size: 20px;
    display: inline-block;
    cursor: pointer;
    z-index: 16;
    line-height: 30px;
    text-wrap-mode: wrap;
    background-color: rgb(255, 255, 255);
    font-weight: 600;
    transition: all 0.3s ease;
}

/* 默认状态下显示一半线条 */
.content-body h3::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    /* 默认只显示一半 */
    height: 3px;
    background: linear-gradient(90deg, #2575fc, #6a11cb);
    transition: width 0.4s ease;
    border-radius: 2px;
}

/* 鼠标悬停时线条变长 */
.content-body h3:hover::before {
    width: 100%;
    /* 悬停时变为全长 */
}

.article-down {
    overflow: hidden;
    width: 100%;
}

.article-down h4 {
    font-size: 17px;
    margin: 10px 0 20px;
    border-top: 1px dashed #ececec;
    padding-top: 20px;
    font-weight: 700;
    background: url(../img/down.svg) left 23px no-repeat;
    background-size: 16px;
    padding-left: 20px;
}

.article-down a {
    background: #5298ff;
    color: #fff !important;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #5298ff;
    border-radius: 7px;
    text-align: center;
    display: block;
    text-decoration: none;
    margin: 5px 0;
    width: 100%;
    box-sizing: border-box;
}

/* 平板和桌面端 */
@media (min-width: 768px) {
    .article-down a {
        float: left;
        margin: 1%;
        width: 13%; /* 4个一排，每个23%宽度 + 2%边距 = 100% */
        min-width: 120px;
    }
}

/* 小屏平板 */
@media (max-width: 767px) and (min-width: 481px) {
    .article-down a {
        float: left;
        margin: 1%;
        width: 48%; /* 2个一排 */
    }
}

.content-body ul{
    margin: 18px 0;
    padding-left: 30px;
}
        
.content-body li {
    margin-bottom: 10px;
    position: relative;
}
        
.content-body li::before {
    content: "•";
    color: #2575fc;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}