/* =============================================
   福建生态示范园区列表页 · 政务红色风格
   ============================================= */
:root {
    --eco-red: #c8102e;
    --eco-red-dark: #8a0f22;
    --eco-red-deep: #5f0a16;
    --eco-gold: #d4a84b;
    --eco-gold-light: #f0d48a;
    --eco-bg: #f6f1e7;
    --eco-text: #2b2b2b;
    --eco-text-soft: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", "Hiragino Sans GB", sans-serif;
    color: var(--eco-text);
    background: var(--eco-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.eco-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ 顶部导航 ============ */
.eco-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--eco-red-deep), var(--eco-red));
    box-shadow: 0 2px 12px rgba(95, 10, 22, .35);
}

.eco-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eco-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.eco-logo img {
    height: 34px;
    width: auto;
}

.eco-logo span {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #ffe9b0, var(--eco-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eco-nav {
    display: flex;
    gap: 34px;
}

.eco-nav a {
    position: relative;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    letter-spacing: 1px;
    padding: 6px 2px;
    transition: color .3s;
}

.eco-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--eco-gold);
    transition: width .3s;
}

.eco-nav a:hover,
.eco-nav a.active {
    color: var(--eco-gold-light);
}

.eco-nav a.active::after,
.eco-nav a:hover::after {
    width: 100%;
}

/* ============ 红丝带横幅 ============ */
.eco-banner {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(212, 168, 75, .25), transparent 32%),
        radial-gradient(circle at 88% 78%, rgba(212, 168, 75, .22), transparent 34%),
        linear-gradient(120deg, var(--eco-red-deep) 0%, var(--eco-red) 52%, var(--eco-red-deep) 100%);
    padding: 58px 0 66px;
    text-align: center;
}

/* 上下金色边线 */
.eco-banner::before,
.eco-banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--eco-gold) 20%, var(--eco-gold-light) 50%, var(--eco-gold) 80%, transparent);
}

.eco-banner::before { top: 0; }
.eco-banner::after { bottom: 0; }

/* 云纹背景 */
.eco-banner-clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, .35) 2.2px, transparent 2.5px),
        radial-gradient(circle, rgba(255, 255, 255, .22) 1.4px, transparent 1.7px);
    background-size: 62px 62px, 42px 42px;
    background-position: 0 0, 31px 31px;
}

/* 两侧垂带 */
.eco-banner-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.eco-banner-inner::before,
.eco-banner-inner::after {
    content: "";
    position: absolute;
    top: -58px;
    width: 52px;
    height: 210px;
    background: linear-gradient(135deg, #a30f26, var(--eco-red-dark));
    box-shadow: inset -6px 0 14px rgba(0, 0, 0, .28);
}

.eco-banner-inner::before {
    left: -8px;
    clip-path: polygon(0 0, 100% 0, 82% 22%, 100% 44%, 80% 66%, 100% 88%, 72% 100%, 0 100%);
}

.eco-banner-inner::after {
    right: -8px;
    transform: scaleX(-1);
    clip-path: polygon(0 0, 100% 0, 82% 22%, 100% 44%, 80% 66%, 100% 88%, 72% 100%, 0 100%);
}

.eco-ribbon h1 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--eco-gold-light);
    text-shadow: 0 2px 0 rgba(95, 10, 22, .6), 0 6px 18px rgba(0, 0, 0, .35);
}

.eco-ribbon h1 em {
    font-style: normal;
    display: block;
    margin-top: 4px;
    font-size: 24px;
    letter-spacing: 12px;
    color: #fff;
    text-shadow: 0 1px 0 rgba(95, 10, 22, .6);
}

.eco-ribbon p {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 26px;
    border: 1px solid rgba(240, 212, 138, .65);
    border-radius: 30px;
    color: #ffe9b0;
    font-size: 15px;
    letter-spacing: 6px;
    background: rgba(95, 10, 22, .35);
}

/* ============ 地图区 ============ */
.eco-map-section {
    padding: 46px 0 10px;
}

.eco-map-box {
    background: #fff;
    border: 1px solid #e8dcc2;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(138, 15, 34, .08);
    padding: 30px 30px 24px;
}

.eco-map-head {
    text-align: center;
    margin-bottom: 18px;
}

.eco-map-head h2 {
    position: relative;
    display: inline-block;
    font-size: 24px;
    color: var(--eco-red);
    letter-spacing: 3px;
    padding-bottom: 10px;
}

.eco-map-head h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--eco-red), var(--eco-gold));
}

.eco-map-head p {
    margin-top: 10px;
    color: var(--eco-text-soft);
    font-size: 13px;
    letter-spacing: 2px;
}

.eco-map-wrap {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.eco-map-svg {
    width: 100%;
    height: auto;
}

/* 标记点脉冲 */
.eco-dot-pulse {
    fill: rgba(200, 16, 46, .28);
    transform-origin: center;
    animation: ecoPulse 2.2s ease-out infinite;
}

.eco-dot-pulse:nth-child(odd) { animation-delay: .5s; }

@keyframes ecoPulse {
    0%   { transform: scale(.4); opacity: .9; }
    80%  { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}

.eco-dot-core {
    fill: var(--eco-red);
    stroke: #fff;
    stroke-width: 2;
}

.eco-dot-num {
    font-size: 10px;
    font-weight: 700;
    fill: #fff;
}

.eco-dot-label {
    font-size: 12.5px;
    font-weight: 700;
    fill: #7a1f12;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, .9);
    stroke-width: 3px;
    stroke-linejoin: round;
}

/* 图例 */
.eco-map-legend {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 8px;
}

.eco-map-legend li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #555;
}

.eco-map-legend .lg {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.lg-forest  { background: #4f7c38; }
.lg-wetland { background: #2f9bbf; }
.lg-geo     { background: #b97a2e; }

/* ============ 列表区 ============ */
.eco-list-section {
    padding: 40px 0 64px;
}

/* Tab */
.eco-tabs {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
}

.eco-tab {
    font-family: inherit;
    font-size: 16px;
    letter-spacing: 3px;
    padding: 10px 44px;
    border: 1px solid var(--eco-red);
    border-radius: 34px;
    background: #fff;
    color: var(--eco-red);
    cursor: pointer;
    transition: all .35s;
}

.eco-tab:hover {
    background: #fdeef0;
}

.eco-tab.active {
    background: linear-gradient(135deg, var(--eco-red), var(--eco-red-dark));
    color: #ffe9b0;
    box-shadow: 0 8px 20px rgba(200, 16, 46, .35);
}

/* 面板 */
.eco-panel {
    display: none;
    animation: ecoFadeUp .5s ease both;
}

.eco-panel.active {
    display: block;
}

@keyframes ecoFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.eco-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--eco-red);
}

.eco-panel-head h3 {
    font-size: 21px;
    color: var(--eco-red);
    letter-spacing: 2px;
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.eco-panel-head h3 small {
    font-size: 14px;
    font-weight: 400;
    color: var(--eco-text-soft);
    letter-spacing: 1px;
}

.eco-more {
    font-size: 14px;
    color: var(--eco-red);
    border: 1px solid var(--eco-red);
    padding: 5px 16px;
    border-radius: 20px;
    transition: all .3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eco-more:hover {
    background: var(--eco-red);
    color: #fff;
}

.eco-more .eco-arrow {
    transition: transform .3s;
    font-style: normal;
}

.eco-more:hover .eco-arrow {
    transform: translateX(4px);
}

/* 卡片网格 */
.eco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.eco-card {
    position: relative;
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eadfc7;
    box-shadow: 0 6px 18px rgba(138, 15, 34, .07);
    transition: transform .4s ease, box-shadow .4s ease;
}

.eco-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 38px rgba(138, 15, 34, .16);
}

.eco-card-img {
    position: relative;
    display: block;
    height: 210px;
    overflow: hidden;
}

.eco-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.eco-card:hover .eco-card-img img {
    transform: scale(1.09);
}

/* 图片上的分类标签 */
.eco-card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-style: normal;
    font-size: 12px;
    letter-spacing: 1px;
    color: #ffe9b0;
    background: linear-gradient(135deg, var(--eco-red), var(--eco-red-dark));
    padding: 4px 14px;
    border-radius: 18px;
    box-shadow: 0 4px 10px rgba(95, 10, 22, .4);
}

.eco-card-body {
    position: relative;
    display: block;
    padding: 22px 22px 24px;
}

.eco-card-no {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    font-family: inherit;
    color: rgba(212, 168, 75, .55);
    letter-spacing: 1px;
    transition: color .4s, transform .4s;
}

.eco-card:hover .eco-card-no {
    color: rgba(212, 168, 75, .95);
    transform: translateY(-2px);
}

.eco-card-body h4 {
    font-size: 18px;
    color: #333;
    letter-spacing: 1px;
    margin-bottom: 8px;
    transition: color .3s;
}

.eco-card:hover .eco-card-body h4 {
    color: var(--eco-red);
}

.eco-card-body p {
    font-size: 13.5px;
    color: var(--eco-text-soft);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eco-card-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--eco-red);
    font-weight: 700;
    letter-spacing: 1px;
}

.eco-card-more i {
    font-style: normal;
    transition: transform .3s;
}

.eco-card:hover .eco-card-more i {
    transform: translateX(4px);
}

/* ============ 页脚 ============ */
.eco-footer {
    background: linear-gradient(90deg, var(--eco-red-deep), var(--eco-red));
    padding: 26px 0;
    color: rgba(255, 255, 255, .85);
    text-align: center;
    font-size: 13.5px;
    letter-spacing: 1px;
}

.eco-footer-inner p + p {
    margin-top: 4px;
    color: rgba(255, 233, 176, .8);
}

/* ============ 详情页 ============ */
.eco-detail-main {
    padding: 50px 0 70px;
    background:
        radial-gradient(circle at 15% 10%, rgba(200, 16, 46, .04), transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(212, 168, 75, .06), transparent 40%);
}

.eco-article {
    position: relative;
    background: #fff;
    border: 1px solid #eadfc7;
    border-radius: 16px;
    padding: 50px 48px 36px;
    box-shadow: 0 8px 30px rgba(138, 15, 34, .08), 0 2px 8px rgba(0,0,0,.03);
    margin-bottom: 36px;
    overflow: hidden;
}

/* 文章顶部装饰条 */
.eco-article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--eco-red), var(--eco-gold), var(--eco-red));
}

.eco-article-title {
    text-align: center;
    font-size: 32px;
    color: var(--eco-red-dark);
    letter-spacing: 3px;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 800;
}

/* 标题下方装饰线 */
.eco-article-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--eco-red), var(--eco-gold));
}

.eco-article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 16px 0 20px;
    margin-top: 18px;
    border-top: 1px solid #eadfc7;
    border-bottom: 1px solid #eadfc7;
    font-size: 13px;
    color: var(--eco-text-soft);
    letter-spacing: 1px;
}

.eco-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eco-article-meta span::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--eco-gold);
    flex-shrink: 0;
}

.eco-article-body {
    padding: 28px 0 16px;
}

.eco-article-body p {
    font-size: 15px;
    line-height: 2;
    color: #3d3d3d;
    text-indent: 2em;
    margin-bottom: 16px;
    letter-spacing: .5px;
}

.eco-article-body p:first-child::first-letter {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--eco-red);
}

/* 信息卡片 */
.eco-article-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0 8px;
    padding: 24px;
    background: linear-gradient(135deg, #fdf8ef, #fef5e7);
    border-radius: 12px;
    border: 1px solid #eadfc7;
}

.eco-info-item {
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.7);
    transition: transform .3s, box-shadow .3s;
}

.eco-info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(138, 15, 34, .1);
}

.eco-info-item strong {
    display: block;
    font-size: 13px;
    color: var(--eco-red);
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 700;
}

.eco-info-item span {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.eco-article-foot {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: 24px;
    padding: 24px 0 0;
    border-top: 1px solid #eadfc7;
}

.eco-foot-left { justify-self: start; }
.eco-foot-center { justify-self: center; }
.eco-foot-right { justify-self: end; }

.eco-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    border: 1px solid var(--eco-red);
    border-radius: 24px;
    font-size: 13px;
    color: var(--eco-red);
    transition: all .35s;
    background: transparent;
}

.eco-back:hover {
    background: linear-gradient(135deg, var(--eco-red), var(--eco-red-dark));
    color: #fff;
    box-shadow: 0 6px 18px rgba(200, 16, 46, .25);
    transform: translateY(-2px);
}

.eco-detail-gallery {
    margin-top: 36px;
}

.eco-detail-gallery h3 {
    position: relative;
    font-size: 20px;
    color: var(--eco-red-dark);
    letter-spacing: 3px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    font-weight: 700;
}

.eco-detail-gallery h3::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--eco-red), var(--eco-gold));
}

.eco-detail-gallery h3::after {
    content: "";
    position: absolute;
    left: 56px;
    bottom: 0;
    width: 80px;
    height: 1px;
    background: #eadfc7;
}

/* 轮播 */
.eco-carousel {
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eadfc7;
    padding: 16px;
    box-shadow: 0 6px 24px rgba(138, 15, 34, .07);
}

.eco-carousel-track {
    display: flex;
    gap: 14px;
    will-change: transform;
}

.eco-carousel-track img {
    flex: 0 0 calc((100% - 42px) / 4);
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform .4s ease, box-shadow .4s ease;
    cursor: pointer;
}

.eco-carousel-track img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* 上下篇导航 */
.eco-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 24px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    color: #666;
    transition: all .35s;
    background: transparent;
}

.eco-page-btn:hover {
    border-color: var(--eco-red);
    color: #fff;
    background: linear-gradient(135deg, var(--eco-red), var(--eco-red-dark));
    box-shadow: 0 4px 14px rgba(200, 16, 46, .2);
    transform: translateY(-2px);
}

/* ============ 响应式 ============ */
@media (max-width: 991px) {
    .eco-grid { grid-template-columns: repeat(2, 1fr); }
    .eco-nav { gap: 20px; }
    .eco-ribbon h1 { font-size: 34px; }
    .eco-ribbon h1 em { font-size: 19px; }
    .eco-carousel-track img { flex: 0 0 calc((100% - 14px) / 2); }
}

@media (max-width: 767px) {
    .eco-nav { display: none; }
}

@media (max-width: 575px) {
    .eco-grid { grid-template-columns: 1fr; }
    .eco-banner { padding: 40px 0 48px; }
    .eco-ribbon h1 { font-size: 27px; letter-spacing: 3px; }
    .eco-ribbon h1 em { font-size: 16px; letter-spacing: 6px; }
    .eco-tabs { flex-direction: column; align-items: center; }
    .eco-tab { width: 70%; text-align: center; }
    .eco-panel-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .eco-map-legend { flex-wrap: wrap; gap: 14px; }
    .eco-article { padding: 28px 18px 24px; }
    .eco-article-title { font-size: 22px; }
    .eco-article-meta { flex-direction: column; gap: 6px; }
    .eco-article-info { grid-template-columns: repeat(2, 1fr); padding: 16px; }
    .eco-article-foot { grid-template-columns: 1fr; gap: 12px; justify-items: start; }
    .eco-foot-left, .eco-foot-center, .eco-foot-right { justify-self: start; }
    .eco-carousel-track img { flex: 0 0 100%; height: 180px; }
}
