* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fb;
    color: #1f2d3d;
    line-height: 1.5;
    padding-bottom: 70px; /* 为底部固定栏留空间 */
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== 顶部导航 ========== */
.navbar {
    background: #1e2f4e;
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}
.logo p {
    font-size: 0.7rem;
    color: #ffc107;
}
.city-badge {
    background: #ff9f2e;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #1e2f4e;
}
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 30px;
    transition: 0.2s;
}
.nav-links a:hover {
    background: #ff9f2e;
    color: #1e2f4e;
}
@media (max-width: 640px) {
    .navbar .container {
flex-direction: column;
text-align: center;
    }
    .nav-links {
margin-top: 4px;
    }
}

/* ========== Banner 全宽静态图片（替代轮播） ========== */
.hero-banner {
    width: 100%;
    margin: 20px 0 24px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}
.banner-caption {
    background: #fff;
    padding: 16px 20px;
    text-align: center;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.banner-caption h3 {
    font-size: 1.2rem;
    color: #ff9f2e;
}
.banner-caption p {
    font-size: 0.85rem;
    color: #5a6e85;
}

/* ========== 城市导航区域（响应式） ========== */
.city-section {
    background: white;
    border-radius: 24px;
    padding: 16px 20px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    border-left: 5px solid #ff9f2e;
    padding-left: 14px;
    margin-bottom: 16px;
    color: #1e2f4e;
}
.city-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}
.city-links a {
    background: #f0f2f6;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.85rem;
    text-decoration: none;
    color: #2c3f5c;
    transition: 0.2s;
}
.city-links a:hover {
    background: #ff9f2e;
    color: white;
}

/* ========== 最新发布列表 ========== */
.news-list {
    background: white;
    border-radius: 24px;
    padding: 16px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
    flex-wrap: wrap;
    gap: 8px;
}
.news-item:last-child {
    border-bottom: none;
}
.news-date {
    font-size: 0.75rem;
    color: #8a9bb0;
    min-width: 80px;
}
.news-title {
    flex: 1;
    font-size: 0.9rem;
}
.news-title a {
    text-decoration: none;
    color: #2c3f5c;
    transition: 0.2s;
}
.news-title a:hover {
    color: #ff9f2e;
}
@media (max-width: 480px) {
    .news-item {
flex-direction: column;
align-items: flex-start;
    }
}

/* 友情链接 */
.friend-links {
    background: white;
    border-radius: 20px;
    padding: 16px 20px;
    margin: 20px 0;
}

/* 底部 */
.footer {
    text-align: center;
    padding: 24px 20px;
    background: #1e2f4e;
    color: #bfc9d9;
    font-size: 0.75rem;
    margin-top: 30px;
}
.footer a {
    color: #ffc107;
    text-decoration: none;
}

/* 底部联系栏（移动端固定） */
.contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    padding: 12px 20px;
    border-top: 1px solid #eef2f6;
    z-index: 200;
}
.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #1e2f4e;
    font-size: 0.7rem;
    transition: 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}
.contact-btn i {
    font-size: 1.4rem;
    color: #ff9f2e;
}
.contact-btn:active {
    transform: scale(0.96);
}
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    z-index: 300;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
}