/* 四川简洲科技有限公司 官网 - 样式（无外部依赖，纯静态） */
:root {
    --brand: #0b3b8c;
    --brand-dark: #082a63;
    --brand-light: #1a5fc4;
    --accent: #00a3a3;
    --accent-2: #ff7a1a;
    --ink: #16233a;
    --ink-2: #45536b;
    --line: #e2e8f2;
    --bg: #ffffff;
    --bg-soft: #f5f8fd;
    --radius: 14px;
    --shadow-s: 0 2px 10px rgba(16, 37, 74, .06);
    --shadow-m: 0 10px 30px rgba(16, 37, 74, .10);
    --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部导航 ---------- */
.topbar {
    background: var(--brand-dark);
    color: #c9d9f5;
    font-size: 13.5px;
    letter-spacing: .2px;
}

.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; height: 40px; align-items: center; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }

header.site {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}

header.site .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand svg { width: 44px; height: 44px; flex: 0 0 auto; }
.brand b { display: block; font-size: 18px; letter-spacing: .3px; line-height: 1.25; white-space: nowrap; }
.brand small { display: block; font-size: 11px; color: var(--ink-2); letter-spacing: 1.1px; text-transform: uppercase; white-space: nowrap; }

nav.main { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
nav.main a {
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 15px;
    white-space: nowrap;
    transition: background .18s, color .18s;
}
nav.main a:hover { background: var(--bg-soft); color: var(--brand); }
nav.main a.active { color: var(--brand); background: rgba(11, 59, 140, .08); font-weight: 600; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    white-space: nowrap;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff !important;
    font-size: 15px;
    box-shadow: var(--shadow-s);
}
.nav-cta:hover { filter: brightness(1.08); }

.menu-btn {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
}
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(1100px 460px at 78% -8%, rgba(0, 163, 163, .55), transparent 62%),
        linear-gradient(135deg, #06265c 0%, #0b3b8c 52%, #12509f 100%);
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 46px 46px, 46px 46px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 78%);
    pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; padding: 92px 22px 84px; }
.hero h1 { font-size: 44px; line-height: 1.28; margin: 0 0 18px; letter-spacing: .5px; }
.hero h1 em { font-style: normal; color: #7ff0e6; }
.hero p.lead { font-size: 17.5px; color: #d5e3fb; max-width: 720px; margin: 0 0 30px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 16px;
    border: 1px solid transparent;
    transition: transform .16s, box-shadow .16s, background .16s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: var(--brand); box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.btn-primary:hover { color: var(--brand-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 54px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero-stats b { display: block; font-size: 30px; letter-spacing: .5px; }
.hero-stats span { color: #c9d9f5; font-size: 14px; }

/* ---------- 通用区块 ---------- */
section { padding: 78px 0; }
section.soft { background: var(--bg-soft); }

.sec-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.sec-head span.kicker {
    display: inline-block;
    font-size: 13.5px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}
.sec-head h2 { font-size: 32px; margin: 12px 0 12px; letter-spacing: .4px; }
.sec-head p { color: var(--ink-2); margin: 0; }

.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow-s);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: #cddcf5; }
.card .ico {
    width: 50px; height: 50px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(11, 59, 140, .10), rgba(0, 163, 163, .12));
    margin-bottom: 16px;
}
.card .ico svg { width: 26px; height: 26px; stroke: var(--brand); fill: none; stroke-width: 1.7; }
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.card ul li { margin: 5px 0; }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .num {
    flex: 0 0 auto;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700;
}
.feature h3 { margin: 2px 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* 流程 */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { position: relative; padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute; top: -14px; left: 20px;
    background: var(--accent); color: #fff;
    font-size: 13px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px;
}
.step h3 { margin: 12px 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* 表格 */
table.tb { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.tb th, table.tb td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
table.tb th { background: var(--bg-soft); width: 190px; color: var(--ink); font-weight: 600; }
table.tb tr:last-child th, table.tb tr:last-child td { border-bottom: 0; }

/* 页面头 */
.page-head { background: linear-gradient(135deg, #06265c, #0b3b8c 60%, #12509f); color: #fff; padding: 62px 0 56px; }
.page-head h1 { margin: 0 0 10px; font-size: 34px; }
.page-head p { margin: 0; color: #cddcf5; }
.crumb { margin-top: 14px; font-size: 14px; color: #b9cdf0; }
.crumb a { color: #dbe7fb; }

/* 时间线 */
.timeline { border-left: 2px solid var(--line); margin: 0; padding: 0 0 0 26px; list-style: none; }
.timeline li { position: relative; padding: 0 0 26px; }
.timeline li::before {
    content: ""; position: absolute; left: -33px; top: 8px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #fff; border: 3px solid var(--accent);
}
.timeline b { display: block; font-size: 17px; }
.timeline span { color: var(--ink-2); font-size: 15px; }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .k { flex: 0 0 96px; color: var(--ink-2); }
.info-list .v { color: var(--ink); font-weight: 500; }

form.contact label { display: block; font-size: 14.5px; color: var(--ink-2); margin: 14px 0 6px; }
form.contact input, form.contact textarea, form.contact select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}
form.contact textarea { min-height: 128px; resize: vertical; }
form.contact input:focus, form.contact textarea:focus, form.contact select:focus {
    outline: none; border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(26, 95, 196, .12);
}
form.contact button {
    margin-top: 20px;
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    font-size: 16.5px;
    cursor: pointer;
}
form.contact button:hover { filter: brightness(1.07); }
.form-note { font-size: 13px; color: var(--ink-2); margin-top: 10px; }

/* CTA 条 */
.cta {
    background: linear-gradient(135deg, #0b3b8c, #12509f 55%, #0a8f8f);
    color: #fff;
    border-radius: var(--radius);
    padding: 40px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cta h2 { margin: 0 0 6px; font-size: 26px; }
.cta p { margin: 0; color: #d7e4fa; }

/* 页脚 */
footer.site { background: #0a1c38; color: #b9c8e2; padding: 58px 0 26px; font-size: 14.5px; }
footer.site a { color: #d6e2f7; }
footer.site a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; }
footer.site h4 { color: #fff; font-size: 16px; margin: 0 0 14px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 8px 0; }
.foot-bottom {
    margin-top: 38px; padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: 13.5px; color: #93a6c5;
}

/* 走马灯/合作占位 */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.logos div {
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 18px 10px;
    text-align: center;
    color: #8d9bb4;
    font-size: 14px;
    background: #fff;
}

/* 动效：默认可见（无 JS / JS 报错也能正常看内容），有 JS 时才做渐显 */
.reveal { opacity: 1; }
/* 用纯 CSS 动画做渐显：即使 JS 没执行/被打断，内容也一定会显示出来 */
.js .reveal { animation: jzFadeIn .55s ease both; }
.js .reveal.on { opacity: 1; transform: none; }
@keyframes jzFadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

/* 服务流程 */
.step h3 { margin: 12px 0 8px; font-size: 17px; }

/* 主页卡片里的图标（与首页一致） */
.card .ico svg { width: 26px; height: 26px; stroke: var(--brand); fill: none; stroke-width: 1.7; }
.card h3 a:hover { color: var(--brand) !important; }

@media (max-width: 1240px) {
    .nav-cta { display: none; }
    nav.main a { padding: 9px 9px; font-size: 14.5px; }
    .brand b { font-size: 16.5px; }
    .brand small { display: none; }
}

@media (max-width: 1040px) {
    .topbar .wrap { font-size: 13px; }
    nav.main a { font-size: 14px; padding: 8px 7px; }
}

/* FAQ 折叠 */
.faq-list { display: grid; gap: 12px; }
details.faq {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 18px;
    box-shadow: var(--shadow-s);
}
details.faq[open] { border-color: #cddcf5; }
details.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 0;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--ink);
    position: relative;
    padding-right: 28px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
    content: "+";
    position: absolute; right: 2px; top: 12px;
    color: var(--accent);
    font-weight: 700; font-size: 20px;
}
details.faq[open] summary::after { content: "−"; }
details.faq .faq-a { padding: 0 0 14px; color: var(--ink-2); font-size: 15.5px; }
details.faq .faq-a p { margin: 6px 0; }

/* 标签 */
.tagchip {
    display: inline-block;
    padding: 3px 12px;
    margin: 0 6px 6px 0;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 13.5px;
}
.tagchip:hover { border-color: var(--brand-light); color: var(--brand); }
.tagchip i { font-style: normal; color: #9aa9c1; margin-left: 6px; font-size: 12px; }
.tagchip.sm { padding: 2px 10px; font-size: 12.5px; }
.tagline { margin-bottom: 22px; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 34px; color: var(--ink-2); }
.pager a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.pager a:hover { border-color: var(--brand-light); color: var(--brand); }

/* 文章正文 */
.article-body { color: #33405a; font-size: 16.5px; line-height: 2.05; }
.article-body h2 { font-size: 22px; margin: 30px 0 12px; color: var(--ink); }
.article-body p { margin: 14px 0; }
.article-body ul { margin: 14px 0; padding-left: 22px; }
.article-body li { margin: 6px 0; }
.summary-box {
    background: var(--bg-soft);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 16px 18px;
    margin: 0 0 26px;
    color: var(--ink-2);
}
.summary-box b { color: var(--ink); display: block; margin-bottom: 6px; font-size: 14.5px; }
.summary-box p { margin: 0; }

/* 响应式 */
@media (max-width: 980px) {
    .grid.c4, .grid.c3, .steps, .hero-stats, .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-grid, .foot-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 34px; }
    section { padding: 58px 0; }
}

@media (max-width: 720px) {
    header.site .wrap { height: 66px; }
    .menu-btn { display: block; }
    nav.main {
        position: absolute; left: 0; right: 0; top: 66px;
        background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 14px 14px;
        display: none;
    }
    nav.main.open { display: flex; }
    nav.main a { padding: 12px 10px; border-radius: 8px; }
    .nav-cta { display: none; }
    .topbar .wrap { height: auto; padding: 8px 22px; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 12.5px; }
    .grid.c2, .grid.c3, .grid.c4, .steps, .hero-stats, .logos { grid-template-columns: 1fr; }
    .hero .wrap { padding: 62px 22px 56px; }
    .hero h1 { font-size: 27px; }
    .hero p.lead { font-size: 16px; }
    .sec-head h2 { font-size: 25px; }
    table.tb th { width: auto; }
    .cta { padding: 28px 22px; }
}

/* 富文本区块（服务详情 / 方案 / 案例 / 文章正文） */
.rich { color: #3d4c66; font-size: 16px; line-height: 1.95; }
.rich h2 { font-size: 22px; margin: 28px 0 10px; color: var(--ink); }
.rich h2:first-child { margin-top: 0; }
.rich h3 { font-size: 18px; margin: 24px 0 8px; color: var(--ink); }
.rich h3:first-child { margin-top: 0; }
.rich h4 { font-size: 16px; margin: 16px 0 6px; color: var(--ink); }
.rich p { margin: 10px 0; }
.rich ul, .rich ol { margin: 10px 0; padding-left: 22px; }
.rich li { margin: 6px 0; }
.rich-tight { font-size: 15px; line-height: 1.85; }
.rich-tight h4 { font-size: 15.5px; }
.rich-tight ul, .rich-tight ol { margin: 6px 0; }
.rich img, .rich-img img { max-width: 100%; border-radius: 10px; margin: 14px 0; display: block; }
.rich-img { margin: 16px 0; }
.rich a { text-decoration: underline; }

/* 正文代码块（交换机配置片段） */
.rich-code { background: #0f1c33; color: #d7e4fa; border-radius: 10px; padding: 14px 16px; overflow-x: auto;
  font-size: 13.5px; line-height: 1.7; margin: 14px 0; }
.rich-code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Cascadia Mono", monospace; white-space: pre; }
.rich p code, .rich li code { background: #eef3fb; border: 1px solid #dfe8f6; border-radius: 5px; padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; color: #0b3b8c; }
.rich table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.rich table th, .rich table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.rich table th { background: var(--bg-soft); }

/* 新闻列表：搜索框 + 热门标签限 3 行 */
.searchbar2 { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.searchbar2 input[type=text] {
    flex: 1 1 320px; min-width: 220px; padding: 11px 14px; border: 1px solid var(--line);
    border-radius: 10px; font: inherit; background: #fff;
}
.searchbar2 input[type=text]:focus { outline: none; border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(26,95,196,.12); }
.searchbar2 button {
    padding: 11px 22px; border: 0; border-radius: 999px; cursor: pointer;
    background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; font-size: 15px;
}
.searchmeta { color: var(--ink-2); font-size: 14.5px; margin: 0 0 14px; }
.tagline { max-height: calc(3 * 2.35em); overflow: hidden; }
.tagline .tagmore { display: inline-block; margin: 0 6px 6px 0; padding: 3px 12px; border-radius: 999px;
    border: 1px dashed var(--line); color: var(--brand); font-size: 13.5px; }
.tagline .tagmore:hover { border-style: solid; }

/* 文章上下篇导航 */
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 26px; }
.postnav-item { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; box-shadow: var(--shadow-s); }
.postnav-item span { display: block; font-size: 13px; color: #8d9bb4; margin-bottom: 6px; }
.postnav-item b { display: block; font-size: 15.5px; color: var(--ink); font-weight: 600; line-height: 1.5; }
.postnav-item:hover { border-color: #cddcf5; }
.postnav-item:hover b { color: var(--brand); }
.postnav-item.right { text-align: right; }
.postnav-item.disabled { color: #a9b6c9; background: var(--bg-soft); }
.postnav-item.disabled b { color: #a9b6c9; font-weight: 400; }
@media (max-width: 720px) { .postnav { grid-template-columns: 1fr; } .postnav-item.right { text-align: left; } }

/* 列表选页 */
.pager { flex-wrap: wrap; gap: 8px; }
.pager .pg { display: inline-block; min-width: 40px; padding: 8px 12px; text-align: center;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14.5px; color: var(--ink-2); }
.pager .pg:hover { border-color: var(--brand-light); color: var(--brand); }
.pager .pg.current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager .pg.disabled { color: #b7c2d4; background: var(--bg-soft); }
.pager .pg.dots { border: 0; background: transparent; min-width: 20px; color: #a9b6c9; }
.pgjump { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--ink-2); font-size: 14px; }
.pgjump input[type=number] { width: 78px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.pgjump button { padding: 8px 14px; border: 0; border-radius: 9px; background: var(--brand); color: #fff; cursor: pointer; font-size: 14px; }