
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    padding-bottom: 60px;
    line-height: 1.6;
}

/* 顶部导航 */
.header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #1a6dcc, #0d4a9e);
    color: white;
    padding: 12px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 8px;
    font-size: 24px;
}

.search-bar {
    flex: 1;
    max-width: 65%;
    margin: 0 15px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 8px 15px 8px 35px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
    background: rgba(255,255,255,0.9);
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.user-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Banner区域 */
.banner {
    height: 160px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://jq.gdrc.com/onjinque/images/yc_banner.png?v=1') center/cover;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    position: relative;
}

.banner h1 {
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.banner p {
    font-size: 14px;
    opacity: 0.9;
    max-width: 80%;
}

/* 内容区域 */
.container {
    padding: 15px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a6dcc;
}

.section-title h2 {
    font-size: 18px;
    color: #1a6dcc;
    font-weight: bold;
}

.section-title a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

/* 筛选功能区 */
.filter-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: #1a6dcc;
    color: white;
    border-color: #1a6dcc;
}

/* 卡片通用样式 */
.policy-card, .event-card, .news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.policy-card:hover, .event-card:hover, .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.policy-card:hover .card-image img,
.event-card:hover .card-image img,
.news-card:hover .card-image img {
    transform: scale(1.05);
}

.issuing-unit, .event-theme, .news-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(26, 109, 204, 0.85);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #222;
}

.card-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.category-tag {
    background: #e6f2ff;
    color: #1a6dcc;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    min-width:60px;
    max-height: 22px;
}

.event-location, .news-date {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.event-location i, .news-date i {
    margin-right: 5px;
    color: #1a6dcc;
}

/* 底部菜单 */
.footer-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: white;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.menu-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
}

.menu-item.active {
    color: #1a6dcc;
}

.menu-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.menu-item:hover, .menu-item.active {
    background: #f0f7ff;
}

/* 响应式调整 */
@media (min-width: 768px) {
    .policies-container, .events-container, .news-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .banner {
        height: 200px;
    }
}

/* 加载动画 */
.loader {
    display: flex;
    justify-content: center;
    padding: 30px;
}

.loader .dot {
    width: 10px;
    height: 10px;
    background: #1a6dcc;
    border-radius: 50%;
    margin: 0 5px;
    animation: bounce 1.5s infinite ease-in-out;
}

.loader .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

/* 内容切换动画 */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 活动时间筛选 */
.year-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.year-btn {
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background: white;
    font-size: 13px;
    cursor: pointer;
}

.year-btn.active {
    background: #1a6dcc;
    color: white;
    border-color: #1a6dcc;
}

/* 资讯分类 */
.news-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.news-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

.news-btn.active, .news-btn:hover {
    background: #1a6dcc;
    color: white;
    border-color: #1a6dcc;
}