/* ==========================================================
   京曦导光管 · 健康的家 —— 阳光青草绿主题
   主色：青草绿 + 嫩草 + 阳光暖黄，奶油白底，柔和圆角
   氛围：午后阳光洒进草地的家
   ========================================================== */
:root {
    /* 青草绿阶（比森林绿更亮、带黄调） */
    --grass-900: #2c5a37;
    --grass-800: #376d43;
    --grass-700: #468752;
    --grass-600: #57a05f;
    --grass-500: #6fb96c;
    --grass-400: #93d089;
    --grass-300: #bce0ac;
    --grass-100: #e4f2d8;
    --grass-50:  #f3f9ee;

    /* 阳光暖色 */
    --sun:       #ffd98a;
    --sun-soft:  #ffedc4;
    --sun-wash:  #fff7e6;

    /* 奶油白 */
    --cream:     #fffdf8;
    --cream-2:   #fbf8ef;

    --line:      #e3eed7;
    --ink:       #26362b;
    --ink-soft:  #5f7868;

    --shadow-sm: 0 4px 14px rgba(44, 90, 55, .06);
    --shadow-md: 0 10px 26px rgba(44, 90, 55, .09);
    --shadow-lg: 0 18px 42px rgba(44, 90, 55, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--cream-2);
    background-image:
        radial-gradient(1000px 520px at 92% -12%, rgba(255, 217, 138, .28), transparent 68%),
        radial-gradient(820px 420px at 2% 2%, rgba(147, 208, 137, .26), transparent 70%),
        radial-gradient(700px 500px at 50% 108%, rgba(188, 224, 172, .22), transparent 72%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    line-height: 1.78;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--grass-700); text-decoration: none; }
a:hover { text-decoration: none; color: var(--grass-800); }
h1, h2, h3 { line-height: 1.4; color: var(--grass-900); }

/* ============ Header ============ */
.site-header {
    background: linear-gradient(90deg, #3d6a27 0%, #35621f 55%, #2d5a19 100%);
    color: #fff;
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid #255012;
    box-shadow: 0 2px 16px rgba(28, 58, 33, .28);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: 2px; color: #fff !important; }
.brand::before {
    content: '';
    display: inline-block;
    width: 11px; height: 11px;
    margin-right: 10px;
    border-radius: 11px 2px 11px 2px;
    background: linear-gradient(135deg, var(--sun), var(--grass-500));
    box-shadow: 0 0 0 3px rgba(255, 217, 138, .38);
    vertical-align: middle;
}
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: rgba(255, 255, 255, .95); font-size: 15px; transition: color .18s; }
.main-nav a:hover { color: #fff; text-decoration: none; }
.main-nav a.active {
    color: #fff; font-weight: 600;
    border-bottom: 2px solid var(--sun);
    padding-bottom: 5px;
}

.page-body { min-height: 60vh; padding-top: 36px; padding-bottom: 60px; }

/* ============ Hero（浅色阳光房） ============ */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--grass-900);
    border-radius: 26px;
    padding: 62px 50px 58px;
    margin-bottom: 46px;
    background:
        radial-gradient(620px 300px at 88% 4%, rgba(255, 217, 138, .62), transparent 70%),
        radial-gradient(480px 300px at 100% 96%, rgba(147, 208, 137, .40), transparent 72%),
        linear-gradient(135deg, #f7fbe9 0%, #ecf6e3 52%, #e2f1d8 100%);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .8);
    border: 1px solid rgba(188, 224, 172, .55);
}
/* 右上角的暖阳光束 */
.hero::before {
    content: '';
    position: absolute; right: -60px; top: -90px;
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 236, 190, .85), rgba(255, 236, 190, 0) 68%);
}
/* 底部草地弧度 */
.hero::after {
    content: '';
    position: absolute; left: -5%; right: -5%; bottom: -46px;
    height: 96px; border-radius: 50% 50% 0 0;
    background: linear-gradient(180deg, rgba(147, 208, 137, .32), rgba(147, 208, 137, 0));
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow {
    display: inline-block;
    background: rgba(70, 135, 82, .10);
    border: 1px solid rgba(70, 135, 82, .22);
    color: var(--grass-800);
    padding: 5px 16px; border-radius: 999px;
    font-size: 13px; letter-spacing: 1px; margin-bottom: 18px;
}
.hero h1 { font-size: 40px; margin-bottom: 14px; color: var(--grass-900); letter-spacing: 1px; }
.hero p { color: #4d6656; font-size: 17px; max-width: 640px; margin-bottom: 28px; }

.btn {
    display: inline-block;
    background: linear-gradient(180deg, var(--grass-600), var(--grass-700));
    color: #fff !important;
    font-weight: 600; padding: 12px 30px; border-radius: 12px;
    box-shadow: 0 6px 16px rgba(70, 135, 82, .26);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(70, 135, 82, .3); }
.btn-primary { background: linear-gradient(180deg, var(--grass-600), var(--grass-700)); color: #fff; border: none; cursor: pointer; font-size: 15px; }
.btn-primary:hover { background: linear-gradient(180deg, var(--grass-500), var(--grass-600)); }
.btn-outline { background: transparent; border: 1px solid var(--line); color: #47604f; box-shadow: none; }
.btn-outline:hover { background: var(--grass-50); border-color: var(--grass-300); }
.btn-danger { background: #d9534f; color: #fff; }
.btn-sm { padding: 5px 14px; font-size: 13px; border-radius: 8px; }

/* ============ 区块 ============ */
.section { margin-bottom: 46px; }
.section-title { font-size: 24px; margin-bottom: 22px; position: relative; padding-left: 16px; }
.section-title::before {
    content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 5px;
    background: linear-gradient(180deg, var(--grass-400), var(--grass-700));
    border-radius: 4px;
}
.page-title { font-size: 28px; margin-bottom: 22px; position: relative; padding-left: 16px; }
.page-title::before {
    content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px;
    background: linear-gradient(180deg, var(--grass-400), var(--grass-700));
    border-radius: 4px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px 24px 24px;
    background: var(--cream);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .22s, transform .22s, border-color .22s;
}
.card::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, var(--sun), var(--grass-400), var(--grass-600));
    opacity: .85;
}
.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--grass-300);
    transform: translateY(-3px);
}
.card h3 { font-size: 17px; margin-bottom: 8px; color: var(--grass-800); }
.card p { color: var(--ink-soft); font-size: 14px; }

/* ============ 内容列表 ============ */
.content-item {
    border: 1px solid var(--line);
    border-radius: 18px; padding: 22px 26px; margin-bottom: 18px;
    display: block; color: inherit; background: var(--cream);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .22s, transform .22s, border-color .22s;
}
.content-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--grass-300);
    transform: translateY(-3px);
    text-decoration: none;
}
.content-item .meta { font-size: 13px; color: #8ba58f; margin-bottom: 6px; }
.content-item h3 { font-size: 19px; margin-bottom: 6px; color: var(--grass-900); }
.content-item:hover h3 { color: var(--grass-700); }
.content-item .summary { color: var(--ink-soft); font-size: 14px; }

.badge {
    display: inline-block; font-size: 12px; padding: 3px 11px; border-radius: 999px;
    background: var(--grass-100); color: var(--grass-800); margin-right: 8px;
}
.badge.published { background: var(--grass-100); color: var(--grass-800); }
.badge.draft { background: var(--sun-wash); color: #96651b; }
.badge.featured { background: linear-gradient(90deg, #e4f2d8, #ffedc4); color: #376d43; }

/* ============ 筛选栏 ============ */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 24px; padding: 14px 16px;
    background: var(--cream); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-sm);
}
.filter-bar a {
    font-size: 14px; padding: 6px 16px; border-radius: 999px;
    background: var(--grass-50); color: #47604f; border: 1px solid var(--line);
    transition: background .18s, color .18s;
}
.filter-bar a:hover { background: var(--grass-100); color: var(--grass-800); }
.filter-bar a.active {
    background: linear-gradient(180deg, var(--grass-600), var(--grass-700));
    color: #fff; border-color: var(--grass-700);
}

/* ============ 详情 ============ */
.article {
    max-width: 780px; background: var(--cream);
    border: 1px solid var(--line); border-radius: 20px;
    padding: 38px 42px;
    box-shadow: var(--shadow-sm);
}
.article h1 { font-size: 30px; margin: 14px 0 10px; color: var(--grass-900); }
.article .meta { color: #8ba58f; font-size: 14px; margin-bottom: 26px; }
/* ===== 正文富文本排版 ===== */
.article .body { font-size: 16.5px; color: #3a4a3e; line-height: 1.95; }
.article .body > p:first-child { font-size: 17.5px; color: #2f4034; }

.article .body p { margin-bottom: 18px; }

/* 标题 */
.article .body h2,
.article .body h3,
.article .body h4 {
    color: var(--grass-800);
    margin: 36px 0 16px;
    position: relative;
    padding-left: 16px;
    line-height: 1.5;
}
.article .body h2 { font-size: 22px; }
.article .body h3 { font-size: 18.5px; }
.article .body h4 { font-size: 16.5px; }
.article .body h2::before,
.article .body h3::before,
.article .body h4::before {
    content: '';
    position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--grass-400), var(--grass-700));
}
.article .body h3::before, .article .body h4::before {
    top: 8px; bottom: 8px; width: 3px;
    background: linear-gradient(180deg, var(--sun), var(--grass-400));
}

/* 列表 */
.article .body ul,
.article .body ol { margin: 16px 0 20px; padding-left: 4px; }
.article .body li { margin-bottom: 10px; padding-left: 26px; position: relative; }
.article .body ul { list-style: none; }
.article .body ul > li::before {
    content: '';
    position: absolute; left: 6px; top: 13px;
    width: 8px; height: 8px; border-radius: 3px 8px 3px 8px;
    background: linear-gradient(135deg, var(--grass-400), var(--grass-600));
}
.article .body ol { counter-reset: artol; list-style: none; }
.article .body ol > li { counter-increment: artol; }
.article .body ol > li::before {
    content: counter(artol);
    position: absolute; left: 0; top: 3px;
    width: 20px; height: 20px; line-height: 20px;
    text-align: center; border-radius: 50%;
    background: var(--grass-100); color: var(--grass-800);
    font-size: 12px; font-weight: 700;
}
.article .body li > ul, .article .body li > ol { margin: 8px 0 4px; }

/* 引用 */
.article .body blockquote {
    position: relative;
    border-left: 4px solid var(--grass-300);
    background: linear-gradient(90deg, var(--grass-50), rgba(243, 249, 238, 0));
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
    color: #4a5f51;
}
.article .body blockquote::before {
    content: '"';
    position: absolute; right: 14px; top: -2px;
    font-size: 44px; line-height: 1;
    color: rgba(87, 160, 95, .18);
    font-family: Georgia, serif;
}
.article .body blockquote p:last-child { margin-bottom: 0; }

/* 分割线 */
.article .body hr {
    border: none; height: 1px; margin: 34px 0;
    background: linear-gradient(90deg, transparent, var(--grass-300), transparent);
}

/* 表格 */
.article .body .table-wrap { overflow-x: auto; margin: 24px 0; }
.article .body table {
    width: 100%; border-collapse: collapse; font-size: 15px;
    border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.article .body th {
    background: linear-gradient(180deg, var(--grass-600), var(--grass-800));
    color: #fff; font-weight: 600; text-align: left;
    padding: 11px 14px; white-space: nowrap;
}
.article .body td { padding: 11px 14px; border-top: 1px solid var(--line); }
.article .body tbody tr:nth-child(even) { background: var(--grass-50); }
.article .body tbody tr:hover { background: var(--grass-100); }

/* 代码 */
.article .body code {
    background: var(--grass-50); color: var(--grass-800);
    padding: 2px 7px; border-radius: 6px; font-size: 14.5px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.article .body pre {
    background: #23372a; color: #dcf0dd;
    padding: 18px 20px; border-radius: 14px;
    overflow-x: auto; margin: 22px 0; line-height: 1.7;
}
.article .body pre code {
    background: transparent; color: inherit; padding: 0;
    font-size: 14px; white-space: pre;
}

/* 图片 / 图文 */
.article .body img {
    max-width: 100%; height: auto;
    border-radius: 14px; margin: 22px 0;
    box-shadow: 0 10px 26px rgba(44, 90, 55, .12);
    display: block;
}
.article .body figure { margin: 26px 0; text-align: center; }
.article .body figcaption {
    font-size: 13px; color: #8ba58f; margin-top: 8px;
}

/* 行内强调 */
.article .body strong { color: var(--grass-800); font-weight: 700; }
.article .body em { color: #566b5c; }
.article .body del { color: #9db0a2; }
.article .body mark {
    background: linear-gradient(180deg, transparent 55%, #d9f2b8 55%);
    color: inherit; padding: 0 2px;
}
.article .body a { color: var(--grass-700); text-decoration: underline; text-underline-offset: 3px; }
.article .body a:hover { color: var(--grass-800); }
.article .body > *:last-child { margin-bottom: 0; }

/* 移动端 */
@media (max-width: 768px) {
    .article .body { font-size: 16px; }
    .article .body h2 { font-size: 20px; margin: 28px 0 12px; }
    .article .body h3 { font-size: 17.5px; }
}
.article .tags { margin-top: 30px; }
.pagination { display: flex; gap: 8px; margin-top: 28px; }
.pagination a, .pagination span { padding: 7px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: var(--cream); }
.pagination a:hover { border-color: var(--grass-300); color: var(--grass-800); }
.pagination .current {
    background: linear-gradient(180deg, var(--grass-600), var(--grass-700));
    color: #fff; border-color: var(--grass-700);
}

/* ============ 关于 / 联系 ============ */
.about-box, .contact-box {
    border: 1px solid var(--line); border-radius: 20px; padding: 32px;
    background: var(--cream); box-shadow: var(--shadow-sm);
}
.about-box h2, .about-box h3, .contact-box h3 { color: var(--grass-800); }
.contact-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 20px; }
.contact-item {
    background: linear-gradient(135deg, var(--grass-50), var(--sun-wash));
    border: 1px solid var(--line);
    border-radius: 14px; padding: 18px 20px;
}
.contact-item .k { font-size: 13px; color: #6f8a76; }
.contact-item .v { font-size: 16px; font-weight: 600; margin-top: 4px; color: var(--grass-900); }

/* ============ Footer ============ */
.site-footer {
    background: linear-gradient(90deg, #356021 0%, #2d5819 58%, #255012 100%);
    color: rgba(255, 255, 255, .94); padding: 32px 0; margin-top: 20px;
    border-top: 1px solid #255012;
    box-shadow: inset 0 3px 0 rgba(255, 217, 138, .9);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner p { font-size: 13px; }
.footer-nav a { color: rgba(255, 255, 255, .95); margin-left: 18px; font-size: 13px; }
.footer-nav a:hover { color: var(--sun); }

.empty-tip { text-align: center; color: #8ba58f; padding: 40px 0; font-size: 15px; }

/* ============ 面包屑 ============ */
.crumb { font-size: 13px; color: #7f9a86; margin-bottom: 16px; }
.crumb a { color: var(--grass-700); }
.crumb a:hover { color: var(--grass-900); }
.crumb span { color: #9ab3a0; }

/* ============ 产品中心 ============ */
.product-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.product-card {
    display: flex; flex-direction: column;
    background: var(--cream); border: 1px solid var(--line);
    border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card::before {
    content: ''; display: block; height: 3px;
    background: linear-gradient(90deg, var(--sun), var(--grass-300), var(--grass-600));
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--grass-300); text-decoration: none;
}
.product-card.is-featured { border-color: var(--grass-300); }
.product-thumb {
    position: relative; height: 168px; overflow: hidden;
    background: linear-gradient(160deg, var(--grass-50), #eaf6de);
    display: flex; align-items: center; justify-content: center;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb-ph { font-size: 44px; opacity: .55; }
.product-flag {
    position: absolute; top: 10px; right: 10px;
    background: linear-gradient(135deg, var(--sun), #ffc95e);
    color: #5a4321; font-size: 12px; font-weight: 700;
    padding: 3px 10px; border-radius: 999px;
    box-shadow: 0 2px 8px rgba(120, 90, 30, .22);
}
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body .badge { align-self: flex-start; }
.product-body h3 { font-size: 17px; color: var(--grass-900); margin: 2px 0 0; }
.product-body .summary { font-size: 14px; color: #6b8070; line-height: 1.7; margin: 0; flex: 1; }
.product-more { font-size: 13px; color: var(--grass-700); font-weight: 600; margin-top: 6px; }
.product-card:hover .product-more { color: var(--grass-900); }

/* ============ 产品详情 ============ */
.product-detail { padding: 26px 28px; border-radius: 20px; }
.product-head { display: flex; gap: 26px; align-items: center; margin-bottom: 6px; }
.product-head-text { flex: 1; }
.product-head-text h1 { font-size: 27px; margin: 8px 0 10px; color: var(--grass-900); }
.product-lead { font-size: 15px; color: #5f7a67; line-height: 1.9; margin-bottom: 16px; }
.product-head-img {
    width: 260px; flex: none; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--line); background: var(--grass-50);
}
.product-head-img img { width: 100%; display: block; object-fit: cover; }
.btn-primary {
    display: inline-block; padding: 10px 22px; border-radius: 999px;
    background: linear-gradient(135deg, var(--grass-600), var(--grass-800));
    color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
    box-shadow: 0 4px 14px rgba(46, 92, 55, .22);
    transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(46, 92, 55, .28); color: #fff; text-decoration: none; }

.spec-box { margin: 22px 0 6px; }
.spec-box h2 { font-size: 18px; color: var(--grass-800); margin-bottom: 12px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.spec-cell {
    display: flex; justify-content: space-between; gap: 12px;
    background: var(--grass-50); border: 1px solid var(--line);
    border-radius: 12px; padding: 9px 14px;
}
.spec-k { font-size: 13px; color: #6f8a76; }
.spec-v { font-size: 14px; font-weight: 600; color: var(--grass-900); text-align: right; }

.related { margin-top: 10px; }

/* ============ 技术优势 ============ */
.advantage-list { display: flex; flex-direction: column; gap: 16px; }
.advantage-item {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--cream); border: 1px solid var(--line);
    border-radius: 18px; padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.advantage-item:hover { border-color: var(--grass-300); box-shadow: var(--shadow-md); }
.advantage-icon {
    flex: none; width: 54px; height: 54px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    background: linear-gradient(140deg, var(--sun-soft), var(--grass-100));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.advantage-text { flex: 1; min-width: 0; }
.advantage-text h2 {
    font-size: 18px; color: var(--grass-900); margin: 0 0 8px;
    display: flex; align-items: baseline; gap: 10px;
}
.advantage-no {
    font-size: 13px; font-weight: 800; color: var(--grass-500);
    letter-spacing: 1px;
}
.advantage-summary { font-size: 15px; color: #5f7a67; line-height: 1.9; margin: 0; }
.advantage-text .body { margin-top: 4px; }
.advantage-cta {
    margin-top: 28px; text-align: center; padding: 26px 20px;
    background: linear-gradient(150deg, var(--grass-50), var(--sun-wash));
    border: 1px solid var(--line); border-radius: 18px;
}
.advantage-cta p { font-size: 16px; color: var(--grass-800); margin-bottom: 14px; }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .contact-row { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .product-head { flex-direction: column; align-items: stretch; }
    .product-head-img { width: 100%; }
    .spec-grid { grid-template-columns: 1fr; }
    .advantage-item { flex-direction: column; gap: 12px; }
    .main-nav { gap: 14px; flex-wrap: wrap; }
    .hero { padding: 38px 24px 34px; border-radius: 20px; }
    .hero h1 { font-size: 30px; }
    .article { padding: 24px 20px; border-radius: 16px; }
    .header-inner { flex-direction: column; height: auto; padding: 14px 0; gap: 10px; }
}
