:root {
    --primary: #2563eb;
    --secondary: #f59e0b;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #6b7280;
    --light-gray: #e5e7eb;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
body {
    line-height: 1.6;
    color: var(--dark);
    background-color: #f9fafb;
    -webkit-font-smoothing: antialiased;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    text-decoration: none !important;
}

/* 头部 */
.header {
    background: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.logo {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.header-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.header-nav .nav-link {
    padding: 0.4rem 0.8rem;
    background: var(--light);
    border-radius: 4px;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
    white-space: nowrap;
}
.header-nav .nav-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 英雄区 */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2A6DFF 100%);
    color: white;
    padding: 0 1.5rem 3rem 1.5rem;
    text-align: center;
    position: relative;
    margin-top: 60px;
}
.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.hero p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.search-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}
#citySearch {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 40px;
    outline: none;
}
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}
.search-result-item {
    padding: 10px 16px;
    cursor: pointer;
    color: var(--dark);
    border-bottom: 1px solid var(--light-gray);
}
.search-result-item:hover {
    background: var(--light);
}
.province-tip {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 通用区块 */
.section {
    padding: 3rem 1.5rem;
}
.section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--dark);
}
.articles-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.article-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.article-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* 页脚 */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 1.5rem;
    margin-top: 3rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}
.footer-links h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}
.footer-links a {
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.7rem;
    transition: all 0.3s ease;
}
.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}
.footer-info {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    margin-top: 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.6;
}
.footer-contact div {
    margin-bottom: 0.5rem;
}
.search-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#citySearch {
  flex: 1;
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  outline: none;
}
.search-btn {
  background: var(--primary);
  border: none;
  padding: 0 20px;
  height: 48px;
  cursor: pointer;
  color: white;
  font-size: 1.2rem;
  transition: 0.2s;
}
.search-btn:hover {
  background: var(--primary-dark);
}
@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
/* 搜索按钮样式 */
.search-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#citySearch {
  flex: 1;
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  outline: none;
}
.search-btn {
  background: var(--primary);
  border: none;
  padding: 0 20px;
  height: 48px;
  cursor: pointer;
  color: white;
  font-size: 1.2rem;
  transition: 0.2s;
}
.search-btn:hover {
  background: #1e4bb6;
}