:root {
    --primary: #0066cc;
    --primary-dark: #004d99;
    --primary-darker: #003a75;
    --primary-light: #e6f2ff;
    --accent: #ff8c00;
    --selected-red: #b34444;
    --text: #333;
    --text-light: #666;
    --text-lighter: #999;
    --border: #e3edfa;
    --card-bg: #fff;
    --radius: 0.8em;
    --shadow: 0 0.1333em 0.8em rgba(0, 60, 120, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #f2f7fd url('../image/layer_bg.png') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text);
    font-size: 0.9375em;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
}

.container {
    max-width: 80em;
    margin: 0 auto;
    padding: 0 2.1333em;
}

/* ===== 顶部导航条 ===== */
.top-bar {
    background: #004d99;
    color: #fff;
    font-size: 0.9333em;
}

.top-bar-inner {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 0.5333em 4.2667em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.top-bar-left a,
.top-bar-right a {
    color: #fff;
    margin: 0 0.6667em;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.top-bar-left a:hover,
.top-bar-right a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===== 头部 Hero（与版本2一致） ===== */
.header {
    background: #0a2744;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 26, 50, 0.74) 0%, rgba(0, 32, 58, 0.38) 52%, rgba(0, 26, 50, 0.58) 100%),
    linear-gradient(180deg, rgba(0, 30, 60, 0.55) 0%, rgba(0, 40, 70, 0.22) 45%, rgba(0, 30, 60, 0.62) 100%),
    url('../image/index_bg.jpg') no-repeat center center;
    background-size: cover;
}

.header-inner {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 1em 4.2667em 2em;
    position: relative;
    z-index: 1;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.logo-area {
    display: flex;
    align-items: center;
}

.gov-logo-img {
    height: 3.6em;
    width: auto;
    max-width: 21.3333em;
    display: block;
    filter: drop-shadow(0 0.2667em 0.8em rgba(0, 0, 0, 0.35));
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6667em;
    font-size: 1em;
    margin-bottom: 0;
    opacity: 0.95;
    padding: 0.5333em 1.2em;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 1.3333em;
    border: 0.0667em solid rgba(255, 255, 255, 0.18);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 搜索区 */
.search-section {
    text-align: left;
    max-width: none;
}

.search-section h2 {
    font-size: 4em;
    font-weight: 800;
    margin-bottom: 0.1667em;
    text-shadow: 0 0.0667em 0.2667em rgba(0, 0, 0, 0.35);
    letter-spacing: 0.0333em;
}

.search-section .subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    margin-bottom: 0;
    letter-spacing: 0.25em;
    font-weight: 400;
    text-align: center;
}

.header-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 2em;
}

/* 品牌「e」艺术化：红色渐变 + 斜体 + 动感弧线 */
.brand-e {
    position: relative;
    display: inline-block;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-style: italic;
    font-weight: 900;
    font-size: 1.2em;
    line-height: 1;
    margin: 0 0.1em;
    padding: 0 0.05em;
    letter-spacing: 0;
    text-shadow: none;
    background: linear-gradient(145deg, #ff8a6b 0%, #e8382b 45%, #c8161d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 0.1333em rgba(255, 255, 255, 0.3)) drop-shadow(0 0.3333em 0.9333em rgba(200, 22, 29, 0.55));
    transform: rotate(-8deg);
    vertical-align: baseline;
}

.brand-e::after {
    content: '';
    position: absolute;
    left: -12%;
    right: -26%;
    bottom: -0.08em;
    height: 0.5em;
    border: 0.055em solid transparent;
    border-bottom-color: rgba(232, 56, 43, 0.9);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    transform: rotate(5deg);
    pointer-events: none;
}

/* Hero 搜索条 + 高级搜索 */
.hero-search {
    display: flex;
    align-items: center;
    margin-top: 1.7333em;
    margin-bottom: 1.0667em;
}

.search-bar {
    display: flex;
    max-width: 40em;
    width: 100%;
    height: 3.0667em;
    border-radius: 0.5333em;
    overflow: hidden;
    box-shadow: 0 0.4em 1.3333em rgba(0, 0, 0, 0.25);
}

.search-bar .search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 1.3333em;
    font-size: 1em;
    color: var(--text);
    background: #FFF;
}

.search-bar .search-btn {
    width: 6.4706em;
    height: 3.0667em !important;
    border-radius: unset !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 1.1333em;
    font-weight: 600;
    letter-spacing: 0.2353em;
    transition: filter 0.2s;
    line-height: 3.0667em;
}

.search-bar .search-btn:hover {
    filter: brightness(1.12);
}

.adv-search {
    display: inline-flex;
    align-items: center;
    gap: 0.4286em;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9333em;
    border: 0.0714em solid rgba(255, 255, 255, 0.45);
    border-radius: 1.1429em;
    padding: 0.4286em 1.2857em;
    margin-left: 1.1429em;
    transition: all 0.2s;
    white-space: nowrap;
}

.adv-search:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ===== Header 右侧日历 ===== */
.hero-calendar {
    width: 27em;
    flex-shrink: 0;
    font-size: 1.0667em;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0.8571em;
    padding: 0.8em;
    box-shadow: 0 0.8571em 2.2857em rgba(0, 0, 0, 0.3);
    color: var(--text);
}

.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.2em;
}

.cal-nav {
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    border: 0.0714em solid #dfe6ef;
    background: #f5f8fc;
    color: var(--primary);
    font-size: 1.1429em;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cal-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.cal-title {
    font-size: 1.2143em;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.0588em;
}

.cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-size: 0.9286em;
    color: #8a8f99;
    text-align: center;
    margin-bottom: 0.2em;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* gap: 0.2143em 0; */
}

.cal-cell {
    position: relative;
    height: 2.4em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1071em;
    border-radius: 0.3571em;
    font-size: 1em;
    color: var(--text);
    cursor: pointer;
    transition: background 0.18s;
}

.cal-cell .cal-solar {
    font-size: 1em;
    line-height: 1;
}

.cal-cell .cal-lunar {
    font-size: 0.6429em;
    line-height: 1;
    font-weight: 400;
    color: #9aa5b1;
    white-space: nowrap;
}

.cal-cell.muted {
    color: #c4cad3;
    cursor: default;
}

.cal-cell.muted .cal-lunar {
    color: #dde3ea;
}

.cal-cell:not(.muted):hover {
    background: var(--primary-light);
}

.cal-cell.today {
    color: #c8161d;
    font-weight: 700;
}

.cal-cell.today .cal-lunar {
    color: #c8161d;
    opacity: 0.72;
}

.cal-cell.has-event::after {
    content: '';
    position: absolute;
    bottom: 0.2857em;
    left: 50%;
    transform: translateX(-50%);
    width: 0.2857em;
    height: 0.2857em;
    border-radius: 50%;
    background: #c8161d;
}

.cal-cell.selected {
    background: linear-gradient(135deg, #c25454 0%, #b34444 60%, #9a3535 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0.2143em 0.5714em rgba(179, 68, 68, 0.35);
}

.cal-cell.selected .cal-lunar {
    color: #fff;
    opacity: 0.85;
}

.cal-cell.selected::after {
    background: #fff;
}

.cal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.8571em;
    padding-top: 0.7143em;
    border-top: 0.0714em dashed #e0e7f0;
    font-size: 0.9286em;
    color: #6b7684;
}

.cal-foot a {
    color: var(--primary);
    text-decoration: none;
}

.cal-foot a:hover {
    text-decoration: underline;
}

/* ===== 高级搜索面板 ===== */
.adv-panel {
    display: none;
    width: 100%;
    /* background: linear-gradient(135deg, #0a6ad1 0%, var(--primary-dark) 100%); */
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0.8em;
    padding: 1em 2em;
    margin-bottom: 0.4em;
    box-shadow: 0 0.9333em 2.6667em rgba(0, 40, 90, 0.35);
}

.adv-panel.open {
    display: block;
}

.adv-grid {
    display: grid;
    grid-template-columns: 1fr 0fr;
    gap: 0.6em 4.2667em;
}

.adv-field {
    display: flex;
    align-items: center;
    /* flex-direction: column; */
    gap: 0.6667em;
}

.adv-field > label {
    color: #fff;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.1765em;
    /* text-align: center; */
    min-width: 80px;
}

.adv-ctrl {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 0.5333em;
    height: 2.5em;
    padding: 0 1.0667em;
    gap: 0.6667em;
}

.adv-field:nth-child(1) .adv-ctrl,
.adv-field:nth-child(3) .adv-ctrl {
  width: 340px;
}
.adv-field:nth-child(2) .adv-ctrl,
.adv-field:nth-child(4) .adv-ctrl {
  width: 240px;
}

.adv-ctrl svg {
    width: 1.2em;
    height: 1.2em;
    fill: var(--primary);
    flex-shrink: 0;
}

.adv-ctrl input,
.adv-ctrl select {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 1em;
    color: var(--text);
    background: transparent;
    height: 100%;
}

.adv-ctrl input::placeholder {
    color: #9aa7b5;
}

.adv-ctrl .date-sep {
    color: var(--text);
    font-weight: 600;
    margin: 0 0.8em;
}

.adv-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.2em;
    margin-top: 1em;
}

.adv-btn {
    height: 1.8em;
    min-width: 10em;
    border: none;
    border-radius: 0.4706em;
    font-size: 1.1333em;
    font-weight: 700;
    letter-spacing: 0.3529em;
    cursor: pointer;
    transition: all 0.2s;
}

.adv-btn.search {
    background: linear-gradient(180deg, #ffcf7d 0%, #f7b84b 100%);
    color: #7a4a00;
}

.adv-btn.reset {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 0.0667em solid rgba(255, 255, 255, 0.5);
}

.adv-btn:hover {
    filter: brightness(1.07);
}

.adv-collapse {
    display: inline-flex;
    align-items: center;
    gap: 0.4615em;
    margin-left: 1.2308em;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8667em;
    cursor: pointer;
    border: 0.0769em solid rgba(255, 255, 255, 0.4);
    border-radius: 0.3077em;
    padding: 0.4615em 1.0769em;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.adv-collapse:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stat-line {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.0667em;
    letter-spacing: 0.0625em;
}

.stat-line b {
    font-size: 1.625em;
    color: #ffb347;
    margin: 0 0.1538em;
    font-weight: 800;
}

/* ===== 最新活动区 ===== */
.activity-section {
    padding: 1.2em 0 2em;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 2.2667em;
    margin-bottom: 0.9333em;
}

.section-head .sec-title {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 2em;
    font-weight: 800;
    color: #c8161d;
    letter-spacing: 0.0938em;
    padding-left: 0.2em;
    border-left: 0.1875em solid #c8161d;
    line-height: 1.15;
    text-shadow: 0 0.0625em 0.1875em rgba(200, 22, 29, 0.12);
}

.activity-total {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1.0667em;
    color: var(--text-light);
    padding: 0.625em 0 1em;
    letter-spacing: 0.0625em;
}

.activity-total b {
    font-size: 1.375em;
    font-weight: 800;
    color: #c8161d;
    margin: 0 0.0909em;
}

.cat-tabs {
    display: flex;
    gap: 0.1em;
    flex-wrap: wrap;
    align-items: center;
}

.cat-tab {
    position: relative;
    padding: 0.4444em 1.2em 0.4444em 1.2em;
    font-size: 1.2em;
    color: var(--primary-dark);
    background: linear-gradient(180deg, #f3f8fd 0%, #e6f0f9 100%);
    border: none;
    clip-path: polygon(0 0, 0.7222em 50%, 0 100%, calc(100% - 0.7222em) 100%, 100% 50%, calc(100% - 0.7222em) 0);
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.cat-tab:hover {
    background: linear-gradient(180deg, #e8f2fd 0%, #d5e7f8 100%);
    color: var(--primary);
}

.cat-tab.active {
    background: linear-gradient(135deg, #cf3a2f 0%, #b02418 100%);
    color: #fff;
}

.cat-tab.active::before {
    background: #fff;
}

.cat-tab.active::before {
    background: #fff;
}

/* 单列大卡片列表 */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.3333em;
}

.list-card {
    display: flex;
    gap: 1.7333em;
    background: #fff url('../image/card.png') no-repeat center;
    background-size: 100% 100%;
    border: none;
    border-radius: 0.2em;
    height: 23.3333em;
    box-sizing: border-box;
    padding: 2.6667em 2em;
    box-shadow: 0 0.1333em 0.6667em rgba(0, 60, 120, 0.06);
    position: relative;
    overflow: hidden;
}

.list-card .info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.list-card .cat-tag {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 0.8667em;
    font-weight: 600;
    padding: 0.3077em 1.0769em;
    border-radius: 0.3077em 1.0769em 1.0769em 1.0769em;
    margin-bottom: 0.9231em;
    letter-spacing: 0.0769em;
}

.list-card h3 {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 1.25em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card h3 a:hover {
    color: var(--primary);
}

.list-card .meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5714em 1.8571em;
    font-size: 0.9333em;
    color: var(--text-light);
    padding-bottom: 1em;
    margin-bottom: 1em;
    border-bottom: 0.0714em dashed var(--border);
}

.list-card .meta-line .mi {
    display: flex;
    align-items: center;
    gap: 0.4286em;
    color: #161616;
}

.list-card .meta-line .mi svg {
    width: 1.0714em;
    height: 1.0714em;
    fill: var(--primary);
    flex-shrink: 0;
}

.list-card .digest {
    line-height: 1.8;
    color:#161616;
    font-size:1em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1em;
}

.list-card .more-row {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.list-card .more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5714em;
    color: var(--primary);
    font-size: 0.9333em;
    font-weight: 500;
    transition: all 0.2s;
}

.list-card .more-btn .circle {
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9286em;
    transition: transform 0.25s;
    box-shadow: 0 0.2308em 0.6154em rgba(0, 102, 204, 0.3);
}

.list-card .more-btn:hover {
    color: var(--primary-dark);
}

.list-card.no-pic .info {
    padding-right: 0.8em;
}

.list-card.no-pic .digest {
    -webkit-line-clamp: 3;
}

.list-card .more-btn:hover .circle {
    transform: translateX(0.2857em);
}

.list-card .pic {
    width: 11em;
    height: 100%;
    border-radius: 0.6667em;
    overflow: hidden;
    flex-shrink: 0;
}

.list-card .pic img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 空状态 */
.empty-tip {
    text-align: center;
    color: var(--text-lighter);
    padding: 4em 0;
    font-size: 1em;
    display: none;
}

/* 更多活动按钮 */
.load-more {
    text-align: center;
    margin: 2.1333em 0 0.5333em;
}

.load-more button {
    display: inline-flex;
    align-items: center;
    gap: 0.625em;
    padding: 0.75em 2.875em;
    background: #fff;
    border: 0.0938em solid var(--primary);
    color: var(--primary);
    font-size: 1.0667em;
    font-weight: 600;
    border-radius: 1.625em;
    letter-spacing: 0.125em;
    transition: all 0.25s;
}

.load-more button:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 0.4em 1.2em rgba(0, 102, 204, 0.3);
}

/* ===== 便民查询服务（来自版本2） ===== */
.service-item-4 .icon {
    width: 100%;
    height: 12em;
    flex-shrink: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    background: #f6f9ff;
    border: none;
    overflow: hidden;
}

.service-item-4 .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    transition: transform 0.4s;
}

.service-item-4:hover .icon img {
    transform: scale(1.05);
}

/* 便民查询服务 - 版本1风格 */
.service-section {
    max-width: none;
    width: 100%;
    margin: 0 auto 2.6667em;
    padding: 0 4.2667em;
}

.service-section .section-title {
    font-size: 1.4667em;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.8182em;
    padding-left: 0.6364em;
    border-left: 0.1818em solid var(--primary);
    letter-spacing: 0.0455em;
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 1.4667em;
}

.service-tabs {
    display: flex;
    gap: 0.4em;
    margin-bottom: 1.4667em;
    border-bottom: 0.0667em solid var(--border);
}

.service-tab {
    padding: 0.6667em 1.4667em;
    cursor: pointer;
    font-size: 1em;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    transition: all 0.2s;
}

.service-tab:hover {
    color: var(--primary);
}

.service-tab.active {
    color: var(--primary);
    font-weight: 700;
}

.service-tab.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.0667em;
    transform: translateX(-50%);
    width: 60%;
    height: 0.2em;
    background: var(--primary);
    border-radius: 0.1333em;
}

.service-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.service-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(0.5333em);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 文化旅游 Slider */
/* 文化旅游 - 左右分栏：轮播 + 右侧卡片 */
.culture-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.6em;
    align-items: start;
}

.culture-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2em;
}

.culture-title {
    display: flex;
    align-items: center;
    gap: 0.3636em;
    font-size: 1.4667em;
    font-weight: 700;
    color: var(--primary);
}

.culture-title .title-icon {
    width: 1.7333em;
    height: 1.7333em;
    color: var(--primary);
}

.culture-title .highlight {
    color: #e60012;
}

.culture-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4286em;
    padding: 0.5714em 1.1429em;
    background: var(--primary);
    color: #fff;
    border-radius: 1.4286em;
    font-size: 0.9333em;
    text-decoration: none;
    transition: all 0.2s;
}

.culture-action:hover {
    background: var(--primary-dark);
}

.culture-slider {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
}

.culture-slides {
    position: relative;
    min-height: 24em;
}

.culture-slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    animation: fadeIn 0.4s ease;
}

.culture-slide.active {
    display: grid;
}

.culture-image {
    position: relative;
    overflow: hidden;
    height: 24em;
}

.culture-image img {
    width: 100%;
    height: 100%;
}

.culture-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    padding: 1.3333em 1em 0.8889em;
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 0 0.0556em 0.1667em rgba(0, 0, 0, 0.3);
}

.culture-links {
    background: #eef4fc;
    padding: 1.4667em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 24em;
    overflow-y: auto;
}

.culture-links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8em;
    list-style: none;
}

.culture-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8571em 1em;
    background: #fff;
    border: 0.0714em solid #c8dff5;
    border-radius: 0.5714em;
    font-size: 0.9333em;
    color: var(--primary);
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.culture-links li a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0.2667em 0.8em rgba(0, 102, 204, 0.15);
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1.8em;
    height: 2.2em;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.3333em;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slide-nav:hover {
    background: rgba(0, 0, 0, 0.65);
}

.slide-prev {
    left: 0;
    border-radius: 0 0.4em 0.4em 0;
}

.slide-next {
    right: 0;
    border-radius: 0.4em 0 0 0.4em;
}

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 0.5333em;
    padding: 0.9333em 0;
    background: #fff;
}

.slide-dots .dot {
    width: 0.5333em;
    height: 0.5333em;
    border-radius: 50%;
    background: #d0d8e0;
    cursor: pointer;
    transition: all 0.2s;
}

.slide-dots .dot:hover {
    background: #8aa9d6;
}

.slide-dots .dot.active {
    background: var(--primary);
    width: 1.4667em;
    border-radius: 0.2667em;
}

/* 右侧轮播卡片 */
.culture-side-cards {
    position: relative;
    min-height: 24em;
    overflow: hidden;
    border-radius: var(--radius);
}

.right-slider {
    position: relative;
    height: 24em;
}

.right-slides {
    position: relative;
    height: 100%;
}

.right-slide {
    position: absolute;
    inset: 0;
    opacity: 1;
    visibility: hidden;
}

/*transition: opacity 0.4s ease, visibility 0.4s;*/
.right-slide.active {
    opacity: 1;
    visibility: visible;
}

.side-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    cursor: pointer;
    box-shadow: 0 0.2667em 0.8em rgba(0, 0, 0, 0.08);
}

.side-card-bg {
    position: absolute;
    inset: 0;
}

.side-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.side-card:hover .side-card-bg img {
    transform: scale(1.05);
}

.side-card-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background 0.3s;
}

.side-card:hover .side-card-overlay {
    background: linear-gradient(135deg, rgba(0, 80, 160, 0.78), rgba(0, 50, 100, 0.65));
}

.side-card-content {
    position: relative;
    z-index: 2;
    padding: 1.3333em 1.4667em;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.side-card-title {
    font-size: 1.4667em;
    font-weight: 700;
    margin-bottom: 0.5455em;
    display: flex;
    align-items: center;
    gap: 0.3636em;
    text-shadow: 0 0.0909em 0.2727em rgba(0, 0, 0, 0.5), 0 0.0455em 0.0909em rgba(0, 0, 0, 0.3);
}

.side-card-title::before {
    content: '';
    width: 0.4em;
    height: 0;
    background: #fff;
    border-radius: 50%;
}

.side-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.5714em;
    font-size: 0.9333em;
    opacity: 0;
    transform: translateY(0.8571em);
    transition: all 0.35s ease;
    overflow: hidden;
}

.side-card:hover .side-card-list {
    opacity: 1;
    transform: translateY(0);
}

.side-card-list li {
    display: flex;
    align-items: center;
    gap: 0.5333em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-card-list li::before {
    content: '';
    width: 0.2667em;
    height: 0.2667em;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    flex-shrink: 0;
}

.right-slide-nav {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    width: 1.7778em;
    height: 2.4444em;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-slide-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.right-slide-prev {
    left: 0;
    border-radius: 0 0.4em 0.4em 0;
}

.right-slide-next {
    right: 0;
    border-radius: 0.4em 0 0 0.4em;
}

.right-slide-dots {
    position: absolute;
    bottom: 0.8em;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5333em;
    z-index: 10;
}

.right-slide-dots .dot {
    width: 0.5333em;
    height: 0.5333em;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.right-slide-dots .dot.active {
    background: #fff;
    width: 1.3333em;
    border-radius: 0.2667em;
}

/* 交通服务 */
.traffic-grid {
    display: grid;
    grid-template-columns: 14.6667em 1fr 21.3333em;
    gap: 1.6em;
}

.traffic-types {
    display: flex;
    flex-direction: column;
    gap: 0.6667em;
}

.traffic-type {
    display: flex;
    align-items: center;
    gap: 0.6667em;
    padding: 0.9333em 1.0667em;
    border-radius: 0.6667em;
    cursor: pointer;
    border: 0.0667em solid var(--border);
    transition: all 0.2s;
}

.traffic-type:hover,
.traffic-type.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.traffic-type .icon {
    width: 2em;
    height: 2em;
    background: var(--primary-light);
    border-radius: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0667em;
    color: var(--primary);
}

.traffic-type.active .icon {
    background: var(--primary);
    color: #fff;
}

.traffic-type span {
    font-size: 0.9333em;
    font-weight: 500;
}

.traffic-links {
    background: #f8fbff;
    border-radius: 0.6667em;
    padding: 1.3333em;
}

.traffic-links h5 {
    font-size: 1.0667em;
    color: var(--primary-dark);
    margin-bottom: 1em;
    padding-bottom: 0.625em;
    border-bottom: 0.0625em dashed var(--border);
}

.traffic-links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8em;
    list-style: none;
}

.traffic-links li a {
    display: block;
    padding: 0.7143em 1em;
    background: #fff;
    border-radius: 0.5714em;
    font-size: 0.9333em;
    color: var(--text);
    border: 0.0714em solid var(--border);
    transition: all 0.2s;
}

.traffic-links li a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.traffic-map {
    background: #f8fbff;
    border-radius: 0.6667em;
    padding: 1.0667em;
    text-align: center;
}

.traffic-map img {
    width: 100%;
    border-radius: 0.5333em;
    margin-bottom: 0.6667em;
}

.traffic-map p {
    font-size: 0.9333em;
    color: var(--text-light);
}

/* 便民服务 */
.convenience-layout {
    display: grid;
    grid-template-columns: 14.6667em 1fr;
    gap: 1.6em;
}

.convenience-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5333em;
    max-height: 30.6667em;
    overflow-y: auto;
}

.convenience-nav-item {
    display: flex;
    align-items: center;
    gap: 0.6667em;
    padding: 0.8em 0.9333em;
    border-radius: 0.6667em;
    cursor: pointer;
    border: 0.0667em solid var(--border);
    transition: all 0.2s;
}

.convenience-nav-item:hover,
.convenience-nav-item.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.convenience-nav-item .icon {
    width: 2em;
    height: 2em;
    background: var(--primary-light);
    border-radius: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0667em;
    color: var(--primary);
    transition: all 0.2s;
}

.convenience-nav-item.active .icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.convenience-nav-item span {
    font-size: 0.9333em;
    font-weight: 500;
}

.convenience-content {
    background: #f8fbff;
    border-radius: 0.6667em;
    padding: 1.4667em;
}

.convenience-content h5 {
    font-size: 1.0667em;
    color: var(--primary-dark);
    margin-bottom: 1.125em;
}

.convenience-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8em;
}

.convenience-links a {
    display: block;
    padding: 0.8571em 1.1429em;
    background: #fff;
    border-radius: 0.5714em;
    font-size: 0.9333em;
    color: var(--text);
    border: 0.0714em solid var(--border);
    transition: all 0.2s;
}

.convenience-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0.1333em 0.5333em rgba(0, 102, 204, 0.08);
}

@media (max-width: 48em) {
    .service-section {
        padding: 0 1.2em;
    }

    .traffic-grid, .convenience-layout, .culture-slide {
        grid-template-columns: 1fr;
    }

    .culture-layout {
        grid-template-columns: 1fr;
    }

    .culture-image {
        height: 17.3333em;
    }

    .culture-links {
        height: auto;
        padding: 1.2em;
    }
}

@media (max-width: 30em) {
    .culture-list ul,
    .traffic-links ul,
    .convenience-links {
        grid-template-columns: 1fr;
        list-style: none;
    }

    .culture-links ul {
        grid-template-columns: 1fr;
        list-style: none;
    }

    .side-card {
        height: 8.6667em;
    }
}

/* 便民查询服务：与页面主内容区同宽 */
.service-section.container {
    max-width: 85em;
    margin: 0 auto 2.6667em;
    padding: 0 2.1333em;
}

/* ===== 页脚 ===== */
.footer {
    clear: both;
    background: #2d548f;
    color: #fff;
    font-size: 14px;
}

.footer-mode {
    padding: 0.5% 0;
    font-size: .9375em;
    line-height: 2.2em;
    padding-bottom: 28px;
}

.footer-mode .container {
    position: relative;
    min-height: 11em;
    width: 1565px;
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
}

.container:before,
.container:after {
    display: table;
    content: "";
    line-height: 0;
}

.footer-menu {
    position: absolute;
    top: auto;
    left: 0;
    width: 15.5%;
}

.footer-menu li {
    text-align: center;
    margin-top: 1.1em;
    line-height: 20px;
}

.footer-menu li a {
    font-size: 16px;
}

.footer a {
    color: #fff;
}

.clearfix:after {
    clear: both;
}

.footer-contact {
    padding-right: 360px;
    padding-left: 15.5%;
    line-height: 20px;
}

.module-main {
    margin-right: -15px;
    margin-left: -15px;
    overflow: hidden;
}

.module-span7 {
    float: left;
    width: 56%;
}

.module-box {
    margin-right: 15px;
    margin-left: 15px;
    display: block;
}

.footer-contact .iconfont {
    position: relative;
    padding-left: 25px;
}

.footer-contact dl dd {
    margin-left: 25px;
    margin-top: 1.1em;
}

.footer-contact .ico1:before {
    background-position: 0 -20px;
}

.footer-contact .iconfont:before {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    content: "";
    width: 20px;
    height: 20px;
    vertical-align: middle;
    background-image: url(https://www.nc.gov.cn/ncszf/xhtml/2021/images/footer_icons.png);
}

.footer-contact .iconfont font {
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
}

.footer-contact .ico3:before {
    background-position: 0 -60px;
}

.footer-contact .ico2:before {
    background-position: 0 -40px;
}

.module-span5 {
    float: left;
    width: 44%;
}

.footer-contact .module-span5 dd font {
    font-size: 16px;
}

.footer-wzbz {
    position: absolute;
    top: 50%;
    right: 0;
    width: 452px;
    text-align: center;
    margin-top: -40px;
}

img,
a img {
    border: 0;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

img,
table,
object,
embed,
video {
    max-width: 100%;
}

.footer-wzbz #jiucuo {
    margin-left: 12px;
}

@media (max-width: 1440px) {
    .footer {
        min-width: inherit;
    }
    .footer-mode .container {
        width: auto;
    }
    .footer-mode {
        padding-right: 20px;
        padding-left: 20px;
    }
    .footer-menu {
        position: static;
        margin-top: 0;
        width: auto;
        margin-bottom: 1em;
    }
    .footer-menu ul li {
        position: relative;
        display: inline-block;
        padding-right: 20px;
        line-height: 20px;
    }
    .footer-menu ul li a {
        display: inline-block;
    }
    .footer-menu ul li:after {
        position: absolute;
        top: 50%;
        right: 7px;
        content: "";
        width: 1px;
        height: 14px;
        margin-top: -7px;
        background-color: #fff;
    }
    .footer-menu ul li:last-child::after {
        display: none;
    }
    .footer-contact {
        padding-left: 0;
    }
    .module-main {
        margin-right: -10px;
        margin-left: -10px;
    }
    .footer-contact .module-span7 {
        float: left;
        width: 60%;
    }
    .module-box {
        margin-right: 10px;
        margin-left: 10px;
    }
    .footer-contact dl dd.iconfont {
        margin-left: 0;
    }
    .footer-contact .module-span5 {
        float: left;
        width: 40%;
    }
}
@media (max-width: 991px) {
    .footer-mode {
        padding: 15px;
    }
    .footer-contact {
        padding-right: 0;
    }
    .module-main {
        margin-right: -8px;
        margin-left: -7px;
    }
    .module-box {
        margin-right: 8px;
        margin-left: 7px;
    }
    .footer-wzbz {
        position: static;
        margin-top: 15px;
        width: auto;
        text-align: left;
    }
}


/* ===== 响应式 ===== */
@media (max-width: 68.75em) {
    .header-inner {
        padding: 1.2em 2.1333em 2.3333em;
    }

    .top-bar-inner {
        padding: 0.5333em 2.1333em;
    }

    .header-center {
        padding-left: 4em;
    }

    .search-section h2 {
        font-size: 2.8em;
    }

    .search-section .subtitle {
        font-size: 1.2em;
        letter-spacing: 0.2em;
    }

    .list-card .pic {
        width: 17.3333em;
        height: 12em;
    }
}

@media (max-width: 48em) {
    .container {
        padding: 0 1.2em;
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 0.4em;
    }

    .header-inner {
        padding: 1.6em 1.2em 2.6667em;
    }

    .header-center {
        padding-left: 0;
    }

    .header-top-row {
        flex-direction: column;
        gap: 1.0667em;
        margin-bottom: 2em;
    }

    .gov-logo-img {
        height: 3.2em;
    }

    .search-section {
        text-align: center;
    }

    .search-section h2 {
        font-size: 2.4em;
    }

    .search-section .subtitle {
        font-size: 1.0667em;
        letter-spacing: 0.1875em;
    }

    .hero-search {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8em;
    }

    .adv-search {
        margin-left: 0;
        align-self: center;
    }

    .search-bar {
        height: 3.0667em;
        max-width: none;
    }

    .list-card {
        flex-direction: column;
        padding: 1.3333em;
    }

    .list-card .pic {
        width: 100%;
        height: 12.6667em;
        order: -1;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6667em;
    }

}

html {
    font-size: 100%;
}

@media (max-width: 80em) {
    html {
        font-size: 95%;
    }
}

@media (max-width: 62em) {
    html {
        font-size: 90%;
    }
}

@media (max-width: 48em) {
    html {
        font-size: 85%;
    }
}

@media (max-width: 30em) {
    html {
        font-size: 80%;
    }

    .adv-grid {
        grid-template-columns: 1fr;
    }

    .list-card {
        height: auto;
        min-height: 18em;
        flex-direction: column;
    }

    .list-card .pic {
        width: 100%;
        height: 12em;
        order: -1;
    }

    .cat-tabs {
        gap: 0.5em;
    }
}
