/* ==========================================================================
   news_ecoforest · 森林生态绿风格样式表
   class 前缀：efp-  (EcoForest Portal)
   ========================================================================== */

:root {
    --efp-green-deep: #2d5a3d;
    --efp-green: #3f7a52;
    --efp-green-soft: #6fa084;
    --efp-bg: #f2f7f0;
    --efp-bg-alt: #eaf3e6;
    --efp-wood: #8b6f4e;
    --efp-text: #243a2c;
    --efp-text-soft: #5a6d5f;
    --efp-white: #ffffff;
    --efp-border: #d7e6d1;
    --efp-radius-lg: 22px;
    --efp-radius-md: 16px;
    --efp-radius-sm: 14px;
    --efp-shadow: 0 6px 18px rgba(45, 90, 61, 0.08);
    --efp-shadow-hover: 0 10px 26px rgba(45, 90, 61, 0.14);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

.efp-body {
    font-family: "Nunito", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--efp-bg);
    color: var(--efp-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--efp-green-deep); opacity: 0.85; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

.efp-visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Header ---------- */
.efp-header {
    background: linear-gradient(120deg, var(--efp-green-deep), var(--efp-green));
    position: relative;
}

.efp-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.efp-logo-link { flex-shrink: 0; }
.efp-logo-link img { border-radius: 10px; }

.efp-nav { flex: 1; min-width: 0; overflow-x: auto; }
.efp-nav-list { display: flex; gap: 6px; white-space: nowrap; }
.efp-nav-item a {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 14px;
}
.efp-nav-item a:hover,
.efp-nav-home a { background: rgba(255, 255, 255, 0.16); color: #fff; opacity: 1; }

.efp-header-tools {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
}
.efp-leaf-badge {
    width: 10px; height: 10px;
    border-radius: 50% 50% 50% 4px;
    background: #c9e6ad;
    display: inline-block;
}

.efp-header-vein {
    height: 10px;
    background: var(--efp-bg-alt);
    clip-path: polygon(0 100%, 0 30%, 6% 100%, 12% 30%, 18% 100%, 24% 30%, 30% 100%, 36% 30%, 42% 100%, 48% 30%, 54% 100%, 60% 30%, 66% 100%, 72% 30%, 78% 100%, 84% 30%, 90% 100%, 96% 30%, 100% 100%);
}

/* ---------- Main layout ---------- */
.efp-main { max-width: 1200px; margin: 0 auto; padding: 28px 24px 48px; }

.efp-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    color: var(--efp-green-deep);
    margin: 0 0 16px;
}
.efp-title-leaf {
    width: 14px; height: 14px;
    background: linear-gradient(135deg, var(--efp-green), var(--efp-green-soft));
    border-radius: 0 60% 0 60%;
    display: inline-block;
}

.efp-more-link { font-size: 13px; color: var(--efp-green); font-weight: 600; }

/* ---------- Hero ---------- */
.efp-hero-head { display: flex; align-items: center; justify-content: space-between; }
.efp-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}
.efp-hero-card {
    background: var(--efp-white);
    border-radius: var(--efp-radius-md);
    box-shadow: var(--efp-shadow);
    border: 1px solid var(--efp-border);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.efp-hero-card:hover { box-shadow: var(--efp-shadow-hover); transform: translateY(-3px); }
.efp-hero-card-link { display: block; padding: 18px; }
.efp-hero-card-title {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--efp-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.efp-hero-card-info {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--efp-text-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.efp-hero-card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--efp-wood); }

/* ---------- Category map ---------- */
.efp-catemap { margin-bottom: 36px; }
.efp-catemap-row { display: flex; flex-wrap: wrap; gap: 10px; }
.efp-catemap-chip {
    padding: 10px 20px;
    background: var(--efp-bg-alt);
    border: 1px solid var(--efp-border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--efp-green-deep);
}
.efp-catemap-chip:hover { background: var(--efp-green); color: #fff; opacity: 1; }

/* ---------- Columns / sidebar ---------- */
.efp-columns { display: flex; gap: 24px; align-items: flex-start; }
.efp-list-layout,
.efp-show-layout { display: flex; gap: 24px; align-items: flex-start; }

.efp-col { min-width: 0; }
.efp-col-main { flex: 1; min-width: 0; }
.efp-col-side { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; }
.efp-side-left { order: -1; }

.efp-side-block {
    background: var(--efp-white);
    border: 1px solid var(--efp-border);
    border-radius: var(--efp-radius-md);
    padding: 16px 18px;
    box-shadow: var(--efp-shadow);
}
.efp-side-title {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--efp-green-deep);
    border-left: 4px solid var(--efp-green);
    padding-left: 8px;
}
.efp-rank-list { counter-reset: efp-rank; }
.efp-rank-item {
    counter-increment: efp-rank;
    display: flex;
    gap: 8px;
    padding: 7px 0;
    font-size: 14px;
}
.efp-rank-item::before {
    content: counter(efp-rank);
    flex-shrink: 0;
    width: 20px; height: 20px;
    border-radius: 6px;
    background: var(--efp-bg-alt);
    color: var(--efp-wood);
    font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}
.efp-rank-item a {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.efp-mini-list li {
    padding: 7px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--efp-border);
}
.efp-mini-list li:last-child { border-bottom: none; }
.efp-mini-list a {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 叶脉锯齿分隔列表 ---------- */
.efp-vein-list { display: flex; flex-direction: column; }
.efp-vein-item { position: relative; padding-bottom: 14px; margin-bottom: 14px; }
.efp-vein-item::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 10px;
    background: var(--efp-bg-alt);
    clip-path: polygon(0 100%, 0 35%, 5% 100%, 10% 35%, 15% 100%, 20% 35%, 25% 100%, 30% 35%, 35% 100%, 40% 35%, 45% 100%, 50% 35%, 55% 100%, 60% 35%, 65% 100%, 70% 35%, 75% 100%, 80% 35%, 85% 100%, 90% 35%, 95% 100%, 100% 35%, 100% 100%);
}
.efp-vein-item:last-child { margin-bottom: 0; padding-bottom: 0; }
.efp-vein-item:last-child::after { display: none; }
.efp-vein-item-link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 4px 2px;
}
.efp-vein-item-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    color: var(--efp-text);
}
.efp-vein-item-date,
.efp-vein-item-hits { flex-shrink: 0; font-size: 12px; color: var(--efp-text-soft); }
.efp-vein-item-info {
    flex-shrink: 0;
    width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: var(--efp-text-soft);
}
.efp-vein-item-extra { flex-shrink: 0; display: flex; gap: 10px; }
.efp-vein-list-lg .efp-vein-item-link { align-items: center; }

/* ---------- Breadcrumb ---------- */
.efp-breadcrumb {
    font-size: 13px;
    color: var(--efp-text-soft);
    margin-bottom: 18px;
}
.efp-crumb-sep { margin: 0 6px; color: var(--efp-green-soft); }
.efp-crumb-current { color: var(--efp-green-deep); font-weight: 600; }

.efp-list-h1 {
    font-size: 22px;
    color: var(--efp-green-deep);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--efp-bg-alt);
}

/* ---------- Pagination ---------- */
.efp-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.efp-page-link {
    padding: 8px 14px;
    border-radius: var(--efp-radius-sm);
    background: var(--efp-white);
    border: 1px solid var(--efp-border);
    font-size: 13px;
    color: var(--efp-green-deep);
}
.efp-page-link:hover { background: var(--efp-green); color: #fff; opacity: 1; }

/* ---------- Article ---------- */
.efp-article {
    background: var(--efp-white);
    border-radius: var(--efp-radius-lg);
    padding: 28px 32px;
    box-shadow: var(--efp-shadow);
    border: 1px solid var(--efp-border);
}
.efp-article-title { font-size: 26px; color: var(--efp-text); margin: 0 0 14px; }
.efp-article-meta {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: var(--efp-text-soft);
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--efp-border);
    margin-bottom: 16px;
}
.efp-article-summary {
    background: var(--efp-bg-alt);
    border-radius: var(--efp-radius-sm);
    padding: 14px 18px;
    font-size: 14px;
    color: var(--efp-text-soft);
    margin-bottom: 20px;
}
.efp-article-share { margin-bottom: 16px; }
.efp-article-body { font-size: 16px; color: var(--efp-text); }
.efp-article-body img { border-radius: var(--efp-radius-sm); margin: 12px 0; }
.efp-article-nav {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--efp-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--efp-text-soft);
}
.efp-article-nav a { color: var(--efp-green-deep); font-weight: 600; }

/* ---------- Footer ---------- */
.efp-footer {
    background: var(--efp-green-deep);
    color: rgba(255, 255, 255, 0.85);
    padding: 28px 24px 20px;
    margin-top: 40px;
}
.efp-footer-links {
    max-width: 1200px;
    margin: 0 auto 14px;
}
.efp-footer-links-title { font-size: 13px; color: #c9e6ad; margin-bottom: 8px; font-weight: 600; }
.efp-flink-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
}
.efp-flink-scroll::-webkit-scrollbar { height: 5px; }
.efp-flink-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 4px; }
.efp-flink-pill {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    white-space: nowrap;
    color: #fff;
}
.efp-flink-pill:hover { background: var(--efp-green-soft); opacity: 1; }
.efp-flink-pill--alt { background: rgba(139, 111, 78, 0.35); }
.efp-flink-pill--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); }

.efp-footer-bottom {
    max-width: 1200px;
    margin: 18px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
}
.efp-footer-bottom p { margin: 4px 0; }
.efp-host-tag { opacity: 0.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .efp-hero-grid { grid-template-columns: repeat(2, 1fr); }
    .efp-col-side { width: 240px; }
    .efp-vein-item-info { width: 160px; }
}

@media (max-width: 768px) {
    .efp-columns,
    .efp-list-layout,
    .efp-show-layout { flex-direction: column; }
    .efp-col-side { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .efp-side-block { flex: 1; min-width: 220px; }
    .efp-side-left { order: 0; }
    .efp-hero-grid { grid-template-columns: repeat(2, 1fr); }
    .efp-vein-item-info { display: none; }
    .efp-header-inner { flex-wrap: wrap; }
    .efp-header-tools { display: none; }
}

@media (max-width: 480px) {
    .efp-main { padding: 18px 14px 32px; }
    .efp-hero-grid { grid-template-columns: 1fr; }
    .efp-nav-item a { padding: 8px 12px; font-size: 13px; }
    .efp-article { padding: 20px 18px; }
    .efp-article-title { font-size: 21px; }
    .efp-vein-item-date { display: none; }
    .efp-side-block { min-width: 100%; }
}
