* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #0D6165;
    padding: 25px 0 15px 0;
    margin-bottom: 20px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right, #0D6165, #0a8c91, #0D6165) 1;
    box-shadow: 0 4px 15px rgba(13, 97, 101, 0.08);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #0D6165, #0a8c91, #0D6165);
}

.header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 2.4rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: #0D6165;
    background: linear-gradient(135deg, #0D6165, #0a8c91);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(13, 97, 101, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.notice {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    padding: 12px 18px;
    margin-top: 12px;
    font-size: 0.95rem;
    color: #475569;
    border-left: 5px solid #0D6165;
    box-shadow: 0 3px 10px rgba(13, 97, 101, 0.05);
    position: relative;
    overflow: hidden;
}

.notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 97, 101, 0.03), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(13, 97, 101, 0.2), transparent);
    margin: 25px 0;
}

/* 国务院平台卡片美化 */
.state-council-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffef7 100%);
    border-radius: 14px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.1);
    border: 2px solid #f59e0b;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.state-council-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.state-council-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(13, 97, 101, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.state-council-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.state-council-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0D6165;
    display: flex;
    align-items: center;
    gap: 10px;
}

.state-council-title i {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 8px;
    border-radius: 50%;
    font-size: 1.2rem;
}

.state-council-badge {
    background: linear-gradient(135deg, #f59e0b, #e69100);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.2);
    letter-spacing: 0.5px;
}

.state-council-desc {
    color: #555;
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.state-council-list {
    margin: 10px 0 12px 18px;
    color: #555;
    position: relative;
    z-index: 1;
}

.state-council-list li {
    margin-bottom: 8px;
    line-height: 1.6;
    padding-left: 8px;
    position: relative;
}

.state-council-list li::before {
    content: '•';
    color: #f59e0b;
    font-weight: bold;
    font-size: 1.1rem;
    position: absolute;
    left: -12px;
    top: 0;
}

.state-council-url {
    color: #6b7280;
    font-size: 0.95rem;
    word-break: break-all;
    margin-bottom: 15px;
    background: rgba(245, 158, 11, 0.05);
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
    position: relative;
    z-index: 1;
}

.state-council-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b, #e69100);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.25);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.state-council-btn::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: 0.5s;
}

.state-council-btn:hover {
    background: linear-gradient(135deg, #e69100, #d97706);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.state-council-btn:hover::before {
    left: 100%;
}

.provincial-platform-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0D6165;
    margin: 25px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.provincial-platform-title i {
    background: linear-gradient(135deg, #0D6165, #0a8c91);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-box {
    width: 100%;
    max-width: 600px;
    position: relative;
    margin: 15px auto 20px auto;
}

.search-box input {
    width: 100%;
    padding: 12px 60px 12px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 3px 12px rgba(13, 97, 101, 0.05);
}

.search-box input:focus {
    outline: none;
    border-color: #0D6165;
    box-shadow: 0 5px 15px rgba(13, 97, 101, 0.1);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #0D6165;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-btn:hover {
    background: #0a8c91;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 10px rgba(13, 97, 101, 0.2);
}

/* 地区网格美化 - 修改为8列 */
.regions-grid-container {
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.8) 0%, rgba(224, 242, 254, 0.9) 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(13, 97, 101, 0.1);
    box-shadow: 0 8px 25px rgba(13, 97, 101, 0.08);
    position: relative;
    overflow: hidden;
}

.regions-grid-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(13, 97, 101, 0.05) 0%, transparent 70%);
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-bottom: 0;
}

.region-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 10px;
    padding: 12px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border: 1px solid rgba(13, 97, 101, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.region-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #0D6165, #0a8c91);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.region-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(13, 97, 101, 0.15);
    border-color: rgba(13, 97, 101, 0.3);
}

.region-item:hover::before {
    opacity: 1;
}

/* 区域名称样式 */
.region-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.region-item:hover .region-name {
    color: #0D6165;
}

/* 链接样式 */
.region-link {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #6b7280;
    font-weight: 400;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 0;
    background: none;
    border: none;
    width: 100%;
    position: relative;
    z-index: 1;
}

.region-link:hover {
    color: #0D6165;
    text-decoration: none;
    background: none;
}

.region-link i {
    display: none;
}

footer {
    text-align: center;
    padding: 15px 0;
    color: #6b7280;
    font-size: 0.9rem;
    border-top: 1px solid rgba(13, 97, 101, 0.1);
    margin-top: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #0D6165;
    background: rgba(13, 97, 101, 0.05);
    transform: translateY(-2px);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 25px;
    color: #6b7280;
}

.no-results i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.no-results h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: #4b5563;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0 15px 0;
    flex-wrap: wrap;
}

.stat-item {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(13, 97, 101, 0.05);
    text-align: center;
    min-width: 90px;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0D6165;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.search-stats {
    text-align: center;
    margin: 5px 0 15px 0;
    color: #0D6165;
    font-weight: 500;
    font-size: 0.95rem;
}

.search-tips {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 10px;
    padding: 6px;
    background: rgba(13, 97, 101, 0.05);
    border-radius: 6px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1200px) {
    .regions-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 992px) {
    .regions-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    h1 {
        font-size: 2.1rem;
    }
    
    .state-council-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .regions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .state-council-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .state-council-badge {
        align-self: flex-start;
    }
    
    .region-name {
        font-size: 0.9rem;
    }
    
    .regions-grid-container {
        padding: 15px 12px;
    }
    
    .search-box input {
        padding: 10px 50px 10px 40px;
    }
    
    .search-btn {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .regions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .regions-grid-container {
        padding: 12px 8px;
    }
    
    .header-content {
        padding: 0 8px;
    }
    
    .state-council-card {
        padding: 15px 12px;
    }
    
    .region-name {
        font-size: 0.85rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-box input {
        padding: 10px 45px 10px 35px;
        font-size: 0.95rem;
    }
    
    .search-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

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

.state-council-card, .regions-grid-container, .search-box {
    animation: fadeInUp 0.6s ease-out forwards;
}

.region-item {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

/* 延迟每个地区项的动画 */
.region-item:nth-child(1) { animation-delay: 0.1s; }
.region-item:nth-child(2) { animation-delay: 0.12s; }
.region-item:nth-child(3) { animation-delay: 0.14s; }
.region-item:nth-child(4) { animation-delay: 0.16s; }
.region-item:nth-child(5) { animation-delay: 0.18s; }
.region-item:nth-child(6) { animation-delay: 0.2s; }
.region-item:nth-child(7) { animation-delay: 0.22s; }
.region-item:nth-child(8) { animation-delay: 0.24s; }
.region-item:nth-child(9) { animation-delay: 0.26s; }
.region-item:nth-child(10) { animation-delay: 0.28s; }
.region-item:nth-child(11) { animation-delay: 0.3s; }
.region-item:nth-child(12) { animation-delay: 0.32s; }
.region-item:nth-child(13) { animation-delay: 0.34s; }
.region-item:nth-child(14) { animation-delay: 0.36s; }
.region-item:nth-child(15) { animation-delay: 0.38s; }
.region-item:nth-child(16) { animation-delay: 0.4s; }
.region-item:nth-child(17) { animation-delay: 0.42s; }
.region-item:nth-child(18) { animation-delay: 0.44s; }
.region-item:nth-child(19) { animation-delay: 0.46s; }
.region-item:nth-child(20) { animation-delay: 0.48s; }
.region-item:nth-child(21) { animation-delay: 0.5s; }
.region-item:nth-child(22) { animation-delay: 0.52s; }
.region-item:nth-child(23) { animation-delay: 0.54s; }
.region-item:nth-child(24) { animation-delay: 0.56s; }
.region-item:nth-child(25) { animation-delay: 0.58s; }
.region-item:nth-child(26) { animation-delay: 0.6s; }
.region-item:nth-child(27) { animation-delay: 0.62s; }
.region-item:nth-child(28) { animation-delay: 0.64s; }
.region-item:nth-child(29) { animation-delay: 0.66s; }
.region-item:nth-child(30) { animation-delay: 0.68s; }
.region-item:nth-child(31) { animation-delay: 0.7s; }

/* 高亮匹配文本 */
.highlight {
    background-color: rgba(245, 158, 11, 0.2);
    padding: 1px 3px;
    border-radius: 3px;
    color: #0D6165;
    font-weight: 600;
}