* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; font-size: 14px; line-height: 1.6; color: #333; background: #f5f7fa; }
a { color: #c0392b; text-decoration: none; }
a:hover { color: #922b21; text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

.site-header { background: #fff; border-bottom: 2px solid #c0392b; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.logo { font-size: 20px; font-weight: bold; color: #c0392b; }
.logo:hover { text-decoration: none; }
.main-nav a { margin-left: 20px; color: #555; font-size: 14px; }
.main-nav a:hover { color: #c0392b; }

.hero-section { text-align: center; padding: 40px 0 30px; background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; border-radius: 0 0 12px 12px; margin-bottom: 25px; }
.hero-section h1 { font-size: 32px; margin-bottom: 10px; }
.hero-desc { font-size: 15px; opacity: 0.9; margin-bottom: 24px; }
.search-form { display: flex; max-width: 600px; margin: 0 auto 24px; }
.search-form input { flex: 1; padding: 14px 18px; border: none; border-radius: 6px 0 0 6px; font-size: 15px; outline: none; }
.search-form button { padding: 14px 28px; background: #f39c12; color: #fff; border: none; border-radius: 0 6px 6px 0; font-size: 15px; cursor: pointer; font-weight: bold; }
.search-form button:hover { background: #e67e22; }
.stats-bar { display: flex; justify-content: center; gap: 40px; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 24px; font-weight: bold; }
.stat-label { font-size: 13px; opacity: 0.85; }

.section { background: #fff; border-radius: 8px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.section-title { font-size: 18px; color: #c0392b; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid #fadbd8; }

.hot-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.hot-area-item { display: flex; flex-direction: column; padding: 12px; background: #fdf2f0; border-radius: 6px; border: 1px solid #fadbd8; text-align: center; }
.hot-area-item:hover { background: #fadbd8; border-color: #c0392b; text-decoration: none; }
.hot-code { font-size: 18px; font-weight: bold; color: #c0392b; }
.hot-name { font-size: 13px; color: #666; margin-top: 4px; }

.province-block { margin-bottom: 20px; }
.province-title { font-size: 16px; color: #333; margin-bottom: 10px; }
.area-count { font-size: 13px; color: #999; font-weight: normal; }
.area-list { display: flex; flex-wrap: wrap; gap: 8px; }
.area-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #f8f9fa; border-radius: 4px; border: 1px solid #e8eaed; font-size: 13px; }
.area-item:hover { background: #fdf2f0; border-color: #c0392b; text-decoration: none; }
.area-code { font-weight: bold; color: #c0392b; }
.area-city { color: #666; }

.detail-card { background: #f8f9fa; border-radius: 8px; padding: 20px; border: 1px solid #e8eaed; }
.detail-row { display: flex; padding: 10px 0; border-bottom: 1px solid #e8eaed; }
.detail-row:last-child { border-bottom: none; }
.detail-label { width: 120px; color: #888; flex-shrink: 0; }
.detail-value { flex: 1; color: #333; font-weight: 500; }
.code-big { font-size: 22px; font-weight: bold; color: #c0392b; letter-spacing: 1px; }
.detail-note { margin-top: 16px; padding: 14px; background: #fef9e7; border-radius: 6px; border-left: 4px solid #f1c40f; font-size: 13px; color: #666; }

.format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.format-item { padding: 10px 14px; background: #f8f9fa; border-radius: 4px; border: 1px solid #e8eaed; font-family: monospace; font-size: 14px; color: #333; text-align: center; }

.intro-text p { margin-bottom: 10px; color: #555; }

.segment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.segment-item { display: flex; flex-direction: column; padding: 12px; background: #f8f9fa; border-radius: 6px; border: 1px solid #e8eaed; }
.segment-item:hover { background: #fdf2f0; border-color: #c0392b; text-decoration: none; }
.seg-code { font-size: 14px; font-weight: bold; color: #c0392b; font-family: monospace; }
.seg-city { font-size: 12px; color: #888; margin-top: 4px; }

.pagination-wrap { margin-top: 20px; text-align: center; }
.pagination { display: inline-flex; gap: 6px; }
.pagination a, .pagination .current { padding: 8px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.pagination a:hover { background: #fdf2f0; border-color: #c0392b; text-decoration: none; }
.pagination .current { background: #c0392b; color: #fff; border-color: #c0392b; }

.faq-list .faq-item { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.faq-list .faq-item:last-child { border-bottom: none; }
.faq-list h4 { font-size: 15px; color: #333; margin-bottom: 8px; }
.faq-list p { color: #666; font-size: 14px; }

.no-result { text-align: center; padding: 40px 20px; color: #888; }
.no-result p { margin-bottom: 12px; }
.btn-link { color: #c0392b; }

.page-header { margin-bottom: 20px; }
.breadcrumb { font-size: 13px; color: #888; margin-bottom: 12px; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #c0392b; }
.page-header h1 { font-size: 24px; color: #333; margin-bottom: 8px; }
.page-desc { font-size: 14px; color: #666; }

.site-footer { background: #fff; border-top: 1px solid #e8eaed; padding: 24px 0; margin-top: 30px; text-align: center; }
.footer-links { margin-bottom: 12px; }
.footer-links a { margin: 0 10px; color: #666; font-size: 13px; }
.footer-links a:hover { color: #c0392b; }
.copyright { font-size: 12px; color: #999; }

/* 黄页样式 */
.province-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.province-card { display: flex; flex-direction: column; padding: 16px; background: #fdf2f0; border-radius: 8px; border: 1px solid #fadbd8; text-align: center; }
.province-card:hover { background: #fadbd8; border-color: #c0392b; text-decoration: none; }
.province-name { font-size: 15px; font-weight: bold; color: #c0392b; }
.province-count { font-size: 12px; color: #888; margin-top: 6px; }

.yellow-list { display: flex; flex-direction: column; gap: 0; }
.yellow-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; gap: 16px; }
.yellow-item:last-child { border-bottom: none; }
.yellow-name { flex: 1; font-size: 15px; font-weight: 500; color: #333; }
.yellow-name:hover { color: #c0392b; }
.yellow-phone { font-size: 15px; font-weight: bold; color: #c0392b; font-family: monospace; white-space: nowrap; }
.yellow-addr { font-size: 13px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }

.city-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.city-tag { padding: 8px 14px; background: #f8f9fa; border-radius: 4px; border: 1px solid #e8eaed; font-size: 13px; color: #555; }
.city-tag:hover { background: #fdf2f0; border-color: #c0392b; color: #c0392b; text-decoration: none; }

@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 10px; }
    .main-nav a { margin: 0 8px; }
    .hero-section h1 { font-size: 24px; }
    .search-form { flex-direction: column; }
    .search-form input { border-radius: 6px; }
    .search-form button { border-radius: 6px; margin-top: 8px; }
    .stats-bar { gap: 20px; }
    .hot-areas { grid-template-columns: repeat(3, 1fr); }
    .segment-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-label { width: 90px; }
}
