/* 地区爱好网 - 全局样式 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: bold;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 15px;
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 16px;
    position: relative;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* 面包屑导航 */
.breadcrumb {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #b2bec3;
}

/* 内容容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 地区卡片网格 */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* 地区卡片 */
.region-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.region-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.region-card-header {
    padding: 30px;
    color: white;
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.region-card-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
}

.region-card-header p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.region-card-body {
    padding: 20px 30px 30px;
}

.region-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
}

.region-provinces-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.province-tag {
    background: var(--bg-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    transition: var(--transition);
}

.region-card:hover .province-tag {
    background: #fff3f3;
    color: var(--primary-color);
}

/* 地区详情头部 */
.region-hero {
    border-radius: var(--radius);
    padding: 50px 40px;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.region-hero h1 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 700;
}

.region-hero p {
    font-size: 16px;
    opacity: 0.95;
    max-width: 700px;
    line-height: 1.7;
}

/* 省份卡片 */
.provinces-section {
    margin-top: 20px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-radius: 2px;
}

.provinces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.province-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border-left: 4px solid transparent;
}

.province-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--primary-color);
}

.province-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.province-card .city-count {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.province-card .cities-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.city-tag-small {
    background: #f0f2f5;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-light);
}

/* 省份详情页 */
.province-hero {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.province-hero h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.province-hero .region-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
}

.province-hero .region-link:hover {
    text-decoration: underline;
}

/* 城市列表 */
.cities-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.city-card {
    display: block;
    background: var(--bg-light);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition);
    border: 2px solid transparent;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.city-card:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 页脚 */
.footer {
    background: var(--bg-white);
    border-top: 1px solid #eee;
    margin-top: 60px;
    padding: 40px 20px 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
}

.footer-brand span {
    font-weight: 600;
    color: var(--text-dark);
}

.footer-info {
    color: var(--text-light);
    font-size: 14px;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* 页脚备案信息样式 */
.footer-beian {
    width: 100%;
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

.footer-beian a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    margin: 0 4px;
}

.footer-beian a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-beian img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

/* 搜索框 */
.search-box {
    max-width: 600px;
    margin: 30px auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 16px 24px;
    padding-left: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.search-box::before {
    content: '\1F50D';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 28px;
    }
    
    .regions-grid {
        grid-template-columns: 1fr;
    }
    
    .provinces-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .region-hero {
        padding: 30px 20px;
    }
    
    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* 快速导航 */
.quick-nav {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.quick-nav-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.quick-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-nav-links a {
    display: inline-block;
    padding: 8px 18px;
    background: var(--bg-light);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition);
}

.quick-nav-links a:hover {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
}
