/* 中国行政区域网 - 端庄大气设计 */
/* 主题：中国红+金色+深蓝，体现政府权威和中华文化底蕴 */

/* 基础重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'SimSun', serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 背景装饰 - 中国风元素 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(220, 38, 38, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 193, 7, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(25, 118, 210, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 主容器 - 面包屑导航 */
#mainbao {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 15px 20px;
    margin: 0 0 20px 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
}

#mainbao::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

#mainbao a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    padding: 3px 8px;
    border-radius: 4px;
}

#mainbao a:hover {
    color: #fef3c7;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* 页面标题 - 中国风设计 */
h1 {
    background: linear-gradient(135deg, #dc2626, #b91c1c, #1976d2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    margin: 30px 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    letter-spacing: 2px;
}

h1::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.4em;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-60%) rotate(5deg); }
}

/* 分类标题 - 轻淡设计 */
.ht {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    color: #1976d2 !important;
    padding: 15px 25px;
    margin: 20px 0 15px 0;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 2px solid #1976d2;
    border-left: 5px solid #ffd700;
    transition: all 0.3s ease;
}

.ht::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.ht:hover::before {
    left: 100%;
}

.ht:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.4);
}

.ht a {
    color: #1976d2 !important;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

/* 导航列表 - 网格布局 */
#list-nav {
    margin: 20px 0;
}

#list-nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 0 15px;
}

#list-nav li {
    margin: 0;
}

#list-nav a {
    display: block;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #1976d2 !important;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.95em;
    font-weight: 600;
    border: 2px solid rgba(25, 118, 210, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

#list-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 118, 210, 0.1), transparent);
    transition: left 0.5s ease;
}

#list-nav a:hover::before {
    left: 100%;
}

#list-nav a:hover {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    color: #1976d2 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.2);
    border-color: #1976d2;
}

/* 推荐列表 */
#listmore {
    list-style: none;
    margin: 20px 0;
    padding: 0 15px;
}

#listmore li {
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #1976d2;
}

#listmore li:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 25px rgba(25, 118, 210, 0.15);
    border-left-color: #dc2626;
}

#listmore a {
    display: block;
    padding: 15px 20px;
    color: #1976d2 !important;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
}

#listmore a::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

#listmore li:hover a::before {
    opacity: 1;
    left: 12px;
}

#listmore a:hover {
    color: #dc2626 !important;
    padding-left: 35px;
}

/* 表格样式 - 政府数据表格 */
table[width="91%"] {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(25, 118, 210, 0.2);
    margin: 20px auto;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

table[width="91%"] tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(25, 118, 210, 0.1);
}

table[width="91%"] tr:hover {
    background: rgba(25, 118, 210, 0.05);
    transform: scale(1.01);
}

table[width="91%"] td {
    padding: 12px 15px;
    text-align: left;
    border: none;
}

table[width="91%"] td[nowrap] {
    background: rgba(25, 118, 210, 0.05);
    border-right: 3px solid #1976d2;
    font-weight: 600;
    color: #1976d2;
    width: 30%;
}

table[width="91%"] td strong {
    color: #1976d2;
    font-weight: bold;
}

table[width="91%"] td a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

table[width="91%"] td a:hover {
    color: #dc2626;
    text-shadow: 0 0 5px rgba(220, 38, 38, 0.3);
}

table[width="91%"] tr:first-child td {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    color: #1976d2 !important;
    font-weight: bold;
    text-align: center;
    border: 2px solid #1976d2;
}

/* 链接样式 - 统一蓝色主题 */
a, .blue {
    color: #1976d2 !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

a:hover, .blue:hover {
    color: #dc2626 !important;
    text-shadow: 0 0 5px rgba(220, 38, 38, 0.3);
}

a::after, .blue::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1976d2, #dc2626);
    transition: width 0.3s ease;
}

a:hover::after, .blue:hover::after {
    width: 100%;
}

/* 图片样式 */
img, .hpic {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid rgba(25, 118, 210, 0.2);
}

img:hover, .hpic:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
    border-color: #1976d2;
}

/* 底部链接 - 方形圆角设计 */
div[align="center"] a {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #1976d2 !important;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #1976d2;
}

div[align="center"] a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 118, 210, 0.1), transparent);
    transition: left 0.5s ease;
}

div[align="center"] a:hover::before {
    left: 100%;
}

div[align="center"] a:hover {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    color: #1976d2 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
    border-color: #1976d2;
}

/* 文本样式 */
p {
    margin: 12px 0;
    line-height: 1.8;
    color: #2c3e50;
    text-align: justify;
}

strong, b {
    color: #1976d2;
    font-weight: bold;
}

/* 分隔线 */
hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent, #1976d2, #dc2626, transparent);
    margin: 25px 0;
    position: relative;
}

hr::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #f8f9fa;
    padding: 0 15px;
    font-size: 0.8em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2em;
        margin: 20px 0;
    }
    
    #list-nav ul {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
        padding: 0 10px;
    }
    
    #list-nav a {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    .ht {
        padding: 12px 20px;
        font-size: 1.1em;
    }
    
    #mainbao {
        padding: 12px 15px;
        margin: 0 0 15px 0;
    }
}

@media (max-width: 480px) {
    #list-nav ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    #list-nav a {
        padding: 8px 10px;
        font-size: 0.85em;
    }
    
    .ht {
        padding: 10px 15px;
        font-size: 1em;
    }
    
    h1 {
        font-size: 1.8em;
    }
}

/* 大屏幕优化 */
@media (min-width: 769px) {
    body {
        max-width: 1200px;
        margin: 0 auto;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    }
    
    #mainbao {
        max-width: 1200px;
        margin: 0 auto 20px auto;
    }
    
    .ht {
        max-width: 1200px;
        margin: 20px auto 15px auto;
    }
    
    #list-nav {
        max-width: 1200px;
        margin: 20px auto;
    }
    
    #listmore {
        max-width: 1200px;
        margin: 20px auto;
    }
    
    table[width="91%"] {
        max-width: 1000px;
        margin: 20px auto;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1976d2, #dc2626);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1565c0, #b91c1c);
}

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

#list-nav li, #listmore li, .ht {
    animation: fadeInUp 0.6s ease-out;
}

/* 特殊效果 */
#listmore li:nth-child(odd) {
    border-left-color: #1976d2;
}

#listmore li:nth-child(even) {
    border-left-color: #dc2626;
}

/* 政府风格装饰 */
.ht:nth-child(odd)::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
}

.ht:nth-child(even)::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
}
/* ── 搜索区 ── */
.search-area{max-width:680px;margin:0 auto 16px;padding:0 20px}
.search-box{display:flex;border:1px solid #dfe1e5;border-radius:24px;padding:10px 24px;background:#fff;box-shadow:0 1px 6px rgba(32,33,36,.18);transition:.3s}
.search-box:hover,.search-box:focus-within{box-shadow:0 1px 12px rgba(32,33,36,.28)}
.search-box input{flex:1;border:none;font-size:16px;padding:0 12px;outline:none;background:transparent}
.search-box button{background:#1a73e8;color:#fff;border:none;padding:10px 24px;border-radius:20px;cursor:pointer;font-size:14px;font-weight:500;transition:.3s}
.search-box button:hover{background:#1557b0;box-shadow:0 2px 6px rgba(26,115,232,.4)}
ul{list-style:none;padding-left:0;margin:0;}
ol{padding-left:20px;}