* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gov-red: #C41E24;
    --gov-blue: #0052A5;
    --gov-blue-dark: #003D7A;
    --gov-blue-light: #E8F0FE;
    --gov-gold: #B8860B;
    --bg-white: #FFFFFF;
    --bg-gray: #F5F6F8;
    --bg-dark: #2C3E50;
    --text-dark: #333333;
    --text-body: #444444;
    --text-muted: #888888;
    --border: #DCDCDC;
    --border-light: #EEEEEE;
    --radius: 4px;
    --shadow: 0 1px 4px rgba(0,0,0,.06);
}

html { scroll-behavior: smooth; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.75;
    min-height: 100vh;
}

.gov-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gov-topbar {
    background: var(--gov-blue-dark);
    color: rgba(255,255,255,.85);
    font-size: 13px;
    height: 36px;
    line-height: 36px;
}

.gov-topbar .gov-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-right {
    color: rgba(255,255,255,.6);
    font-size: 12px;
}

.gov-header {
    background: var(--bg-white);
    border-bottom: 3px solid var(--gov-blue);
    padding: 20px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-emblem {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gov-blue), var(--gov-blue-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
    letter-spacing: 1px;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gov-blue);
    letter-spacing: 2px;
    line-height: 1.3;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
}

.header-search {
    display: flex;
    align-items: center;
}

.search-input {
    width: 260px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    color: var(--text-dark);
}

.search-input::placeholder { color: #bbb; }

.search-input:focus {
    border-color: var(--gov-blue);
    box-shadow: 0 0 0 2px rgba(0,82,165,.12);
}

.search-clear {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
    display: none;
    padding: 0 10px;
    height: 36px;
    align-items: center;
    border-radius: var(--radius);
    transition: all .2s;
}
.search-clear:hover { color: var(--text-dark); background: rgba(0,0,0,.05); }
.search-clear:active { transform: scale(0.95); }

.search-btn {
    height: 36px;
    padding: 0 22px;
    background: var(--gov-blue);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    margin-left: 8px;
}
.search-btn:hover { background: var(--gov-blue-dark); }
.search-btn:active { transform: translateY(1px); }

.nav-item:active { background: rgba(255,255,255,.2); }
.hot-card:active { transform: translateY(-1px); }
.svc-card:active { box-shadow: 0 2px 8px rgba(0,82,165,.15); }

.gov-nav {
    background: var(--gov-blue);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item a {
    display: block;
    padding: 14px 28px;
    color: rgba(255,255,255,.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: background .2s;
    position: relative;
}

.nav-item a:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.nav-item.active a {
    background: rgba(255,255,255,.15);
    color: #fff;
}

.nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.gov-main {
    padding: 28px 0 40px;
}

.notice-bar {
    display: flex;
    align-items: center;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: var(--radius);
    padding: 12px 18px;
    margin-bottom: 28px;
    gap: 14px;
}

.notice-label {
    background: var(--gov-red);
    color: #fff;
    padding: 3px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    letter-spacing: 1px;
}

.notice-content {
    font-size: 14px;
    color: #795548;
    line-height: 1.6;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-bar {
    width: 4px;
    height: 22px;
    background: var(--gov-blue);
    border-radius: 2px;
}

.section-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.section-count {
    font-size: 13px;
    color: var(--text-muted);
}

.hot-services {
    margin-bottom: 36px;
}

.hot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hot-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
    transition: all .2s;
    cursor: pointer;
}

.hot-card:hover {
    box-shadow: 0 4px 12px rgba(0,82,165,.1);
    border-color: var(--gov-blue);
    transform: translateY(-2px);
}

.hot-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hot-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.hot-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.hot-card p {
    font-size: 12px;
    color: var(--text-muted);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.svc-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: all .2s;
}

.svc-card:hover {
    box-shadow: 0 4px 12px rgba(0,82,165,.08);
    border-color: var(--gov-blue);
}

.svc-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 14px;
}

.svc-badge {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.svc-info { flex: 1; min-width: 0; }

.svc-info h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 6px;
}

.svc-info h3:hover { color: var(--gov-blue); }

.svc-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.svc-tag {
    font-size: 12px;
    color: var(--gov-blue);
    background: var(--gov-blue-light);
    padding: 2px 8px;
    border-radius: 2px;
}

.svc-domain {
    font-size: 12px;
    color: var(--text-muted);
}

.no-results {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

.gov-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,.7);
    padding: 48px 0 24px;
    margin-top: 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand {
    max-width: 420px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.footer-logo .logo-emblem {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.footer-logo .logo-title {
    font-size: 20px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,.5);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.footer-link-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-link-group h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--gov-blue);
    border-radius: 1px;
}

.footer-link-group ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.footer-link-group ul li {
    margin-bottom: 0;
}

.footer-link-group ul li a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: 13px;
    transition: all .2s;
    display: inline-block;
    white-space: nowrap;
}

.footer-link-group ul li a:hover {
    color: #fff;
}

.footer-middle {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-disclaimer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-disclaimer-content {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    padding: 8px 16px;
    border-radius: var(--radius);
    color: rgba(255,255,255,.7);
    font-size: 12px;
    line-height: 1.6;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disclaimer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #F5A623;
    color: var(--bg-dark);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 20px;
}

.footer-copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-copyright p {
    font-size: 12px;
    color: rgba(255,255,255,.3);
}

@media (max-width: 900px) {
    .header-inner { flex-direction: column; gap: 16px; }
    .header-search { width: 100%; }
    .search-input { flex: 1; width: auto; }
    .nav-list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .nav-item a { padding: 12px 18px; font-size: 14px; white-space: nowrap; }
    .hot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .hot-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .header-inner { flex-direction: column; gap: 16px; }
    .header-search { width: 100%; }
    .search-input { flex: 1; width: auto; }
    .nav-list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .nav-item a { padding: 12px 18px; font-size: 14px; white-space: nowrap; }
    .hot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-links {
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .gov-topbar .gov-container { flex-direction: column; gap: 2px; }
    .logo-title { font-size: 20px; }
    .logo-subtitle { display: none; }
    .hot-grid { grid-template-columns: 1fr 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .section-title h2 { font-size: 18px; }
    .header-search { position: sticky; top: 48px; z-index: 999; background: rgba(255,255,255,0.98); padding: 10px 20px; border-bottom: 1px solid var(--border); }
    .gov-main { padding-top: 12px; }
    
    .gov-footer {
        padding: 36px 0 20px;
    }
    
    .footer-top {
        padding-bottom: 28px;
    }
    
    .footer-logo {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-middle {
        padding: 12px 0;
    }
    
    .footer-disclaimer {
        padding: 0 20px;
    }
    
    .footer-disclaimer-content {
        padding: 6px 12px;
        font-size: 11px;
        gap: 6px;
    }
}