/* ============================================================
   四川景霖工程咨询有限公司 · 全站设计系统（中合银 · 经典企业门户风）
   主色：藏蓝 #0e334b（顶部导航 / 页头 / 页脚）
   点缀：红 #c7000a（按钮 / 标题强调 / CTA）
   背景：白 #fff + 浅灰 #fafafa 分区，正文 #333
   纯 HTML/CSS/JS 零依赖
   ============================================================ */
:root {
    /* 品牌色 */
    --navy: #0e334b;          /* 藏蓝（主） */
    --navy-2: #16466b;        /* 藏蓝亮阶（渐变 / hover） */
    --navy-3: #0a2840;        /* 藏蓝深阶（页脚 / 阴影） */
    --red: #c7000a;           /* 点缀红（主 CTA / 强调） */
    --red-2: #e21a25;         /* 红亮阶（hover） */
    --red-soft: rgba(199,0,10,.08);

    /* 功能页保留的原金融蓝（功能页按钮、输入框聚焦等维持原观感，仅顶栏/页脚换藏蓝） */
    --blue: #1668dc;
    --blue-2: #3b8bf5;
    --gold: #c9a45c;
    --gold-light: #d4b978;
    --gold-deep: #a8843f;

    /* 中性色 */
    --bg: #fafafa;            /* 页面浅底 */
    --bg-soft: #f4f6f8;
    --card: #ffffff;
    --text: #333333;          /* 主文字 */
    --text-2: #555e6b;        /* 次文字 */
    --muted: #8a939e;         /* 辅助文字 */
    --line: #e6e9ed;          /* 描边 */
    --line-soft: #eef1f4;

    /* 尺寸 */
    --radius: .625rem;
    --radius-lg: .9rem;
    --maxw: 42rem;
    --nav-h: 3.25rem;

    --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ============================================================
   顶部导航（全站共用 · 藏蓝）
   ============================================================ */
.site-nav {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 3px solid var(--red);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.nav-inner {
    max-width: var(--maxw); margin: 0 auto;
    height: var(--nav-h); padding: 0 .9rem;
    display: flex; align-items: center; gap: .75rem;
}
.brand { display: flex; align-items: center; gap: .45rem; }
.brand-mark {
    width: 1.7rem; height: 1.7rem; border-radius: .4rem;
    background: var(--red); color: #fff; font-weight: 800; font-size: .95rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(199,0,10,.3);
}
.brand-text {
    font-size: .82rem; font-weight: 700; color: var(--navy);
    letter-spacing: .01em; white-space: nowrap;
}
.nav-links {
    margin-left: auto; display: flex; align-items: center; gap: .15rem;
}
.nav-links > a {
    font-size: .78rem; color: var(--text); padding: .35rem .5rem;
    border-radius: .35rem; transition: color .15s, background .15s; white-space: nowrap;
}
.nav-links > a:hover, .nav-links > a.active { color: var(--red); background: var(--red-soft); }
.nav-links > a.active { color: var(--red); font-weight: 700; }


.nav-toggle {
    display: none; margin-left: auto; background: transparent; border: none;
    font-size: 1.2rem; color: var(--navy); cursor: pointer;
}

/* 功能入口下拉 */
.nav-func { position: relative; }
.func-trigger {
    font-size: .78rem; color: #fff; background: var(--red);
    border: none; padding: .35rem .7rem; border-radius: .35rem; cursor: pointer; white-space: nowrap;
}
.func-trigger:hover { background: var(--red-2); }
.func-menu {
    position: absolute; right: 0; top: calc(100% + .4rem);
    background: #fff; border: 1px solid var(--line); border-radius: .5rem;
    box-shadow: 0 8px 24px rgba(31,35,41,.12);
    padding: .35rem; min-width: 8.5rem; display: none; flex-direction: column; z-index: 200;
}
.func-menu.show { display: flex; animation: fadeIn .15s; }
.func-menu a {
    font-size: .78rem; color: var(--text-2); padding: .5rem .65rem; border-radius: .35rem;
    display: flex; align-items: center; gap: .4rem;
}
.func-menu a:hover { background: var(--bg-soft); color: var(--red); }

/* 登录触发器（login-modal.css 提供详细样式，这里保证布局与藏蓝导航协调） */
.login-trigger {
    margin-left: .25rem; background: transparent; border: 1px solid rgba(255,255,255,.5);
    color: #fff; border-radius: .35rem; padding: .35rem .7rem; font-size: .78rem; cursor: pointer; white-space: nowrap;
}
.login-trigger:hover { background: rgba(255,255,255,.12); }

@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; top: var(--nav-h); left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: .5rem .75rem; display: none; box-shadow: 0 8px 24px rgba(31,35,41,.1);
    }
    .nav-links.show { display: flex; }
    .nav-links > a { padding: .7rem .5rem; font-size: .9rem; color: var(--text-2); }
    .nav-links > a:hover, .nav-links > a.active { color: #fff; background: var(--red); }
    .nav-func { width: 100%; }
    .func-trigger { width: 100%; text-align: center; margin: .35rem 0; }
    .func-menu {
        position: static; box-shadow: none; border: none; background: var(--bg-soft);
        display: none; padding: .25rem;
    }
    .func-menu.show { display: flex; }
    .login-trigger { margin: .35rem 0; width: 100%; }
    .brand-text { font-size: .72rem; }
}

/* ============================================================
   容器 / 区块
   ============================================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 1rem .9rem 2.5rem; }
.section { padding: 1.6rem 0; }
.section-head { margin-bottom: 1.1rem; }
.section-title {
    font-size: 1.1rem; font-weight: 800; color: var(--navy);
    display: flex; align-items: center; gap: .45rem;
}
.section-title .bar { width: .22rem; height: 1.05rem; border-radius: .12rem; background: var(--red); }
.section-sub { font-size: .76rem; color: var(--muted); margin-top: .35rem; line-height: 1.7; }

/* 卡片 */
.card {
    background: var(--card); border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg); padding: 1.1rem;
    box-shadow: 0 2px 10px rgba(31,35,41,.05);
}

/* 栅格 */
.grid { display: grid; gap: .75rem; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Hero / Banner（藏蓝底 + 红点缀）
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--navy-3) 0%, var(--navy) 55%, var(--navy-2) 130%);
    color: #fff; padding: 2.6rem 1rem 2.4rem; position: relative; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; right: -3rem; bottom: -3rem;
    width: 10rem; height: 10rem; border-radius: 50%;
    background: radial-gradient(circle, rgba(199,0,10,.28), transparent 70%);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.hero-tag {
    display: inline-block; font-size: .68rem; letter-spacing: .08em;
    color: #fff; border: 1px solid rgba(255,255,255,.4);
    padding: .2rem .55rem; border-radius: 999px; margin-bottom: .9rem;
}
.hero h1 { font-size: 1.55rem; font-weight: 900; line-height: 1.4; }
.hero p { font-size: .82rem; color: rgba(255,255,255,.78); margin-top: .7rem; max-width: 26rem; line-height: 1.8; }
.hero-actions { margin-top: 1.5rem; display: flex; gap: .65rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 1.5rem; margin-top: 1.9rem; flex-wrap: wrap; }
.hero-stats .hs { text-align: left; }
.hero-stats .hs-v {
    font-size: 1.4rem; font-weight: 800;
    background: linear-gradient(135deg, #ff6b73, var(--red));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stats .hs-l { font-size: .62rem; color: rgba(255,255,255,.6); margin-top: .15rem; }

/* 按钮 */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    height: 2.6rem; padding: 0 1.5rem; border: none; border-radius: .5rem;
    background: linear-gradient(90deg, var(--red), var(--red-2)); color: #fff;
    font-size: .85rem; font-weight: 700; cursor: pointer; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(199,0,10,.3); transition: opacity .15s, transform .1s;
    text-decoration: none;
}
.btn-primary:active { opacity: .88; transform: scale(.985); }
.btn-gold {
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    height: 2.6rem; padding: 0 1.5rem; border: none; border-radius: .5rem;
    background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); color: #fff;
    font-size: .85rem; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn-ghost {
    display: inline-flex; align-items: center; gap: .25rem;
    height: 2.6rem; padding: 0 1.3rem; border: 1px solid rgba(255,255,255,.4);
    border-radius: .5rem; color: #fff; font-size: .85rem; font-weight: 600;
    background: transparent; cursor: pointer; text-decoration: none;
}
.btn-ghost:active { background: rgba(255,255,255,.1); }
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    height: 2.4rem; padding: 0 1.2rem; border: 1px solid var(--red); border-radius: .5rem;
    color: var(--red); font-size: .8rem; font-weight: 600; background: #fff; cursor: pointer;
    text-decoration: none; transition: background .15s;
}
.btn-outline:active { background: var(--red-soft); }

/* ============================================================
   业务卡片（首页 / 业务页 四大类）
   ============================================================ */
.biz-card {
    background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
    padding: 1.1rem; box-shadow: 0 2px 10px rgba(31,35,41,.05);
    transition: transform .2s, box-shadow .2s, border-color .2s; cursor: pointer; text-decoration: none;
}
.biz-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(199,0,10,.10); border-color: rgba(199,0,10,.35); }
.biz-icon {
    width: 2.6rem; height: 2.6rem; border-radius: .6rem; font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center; margin-bottom: .7rem;
    background: linear-gradient(135deg, rgba(199,0,10,.12), rgba(14,51,75,.12));
}
.biz-name { font-size: .92rem; font-weight: 800; color: var(--navy); }
.biz-en { font-size: .66rem; color: var(--muted); letter-spacing: .04em; margin-top: .12rem; text-transform: uppercase; }
.biz-desc { font-size: .72rem; color: var(--text-2); margin-top: .4rem; line-height: 1.7; }
.biz-more { font-size: .7rem; color: var(--red); margin-top: .6rem; font-weight: 600; }

/* 合作机构条 */
.trust-bar {
    display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap;
    padding: 1rem .9rem; background: var(--bg-soft); border-bottom: 1px solid var(--line-soft);
}
.trust-bar .tb-label { font-size: .68rem; color: var(--muted); font-weight: 600; }
.trust-bar .tb-banks { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; }
.trust-bar .tb-banks span {
    font-size: .66rem; color: var(--text-2); border: 1px solid var(--line);
    border-radius: 999px; padding: .25rem .6rem; background: #fff;
}

/* 新闻列表 */
.news-list { display: flex; flex-direction: column; gap: .65rem; }
.news-item {
    display: flex; align-items: center; gap: .75rem; background: var(--card);
    border: 1px solid var(--line-soft); border-radius: var(--radius); padding: .85rem 1rem;
    cursor: pointer; transition: border-color .15s; text-decoration: none;
}
.news-item:hover { border-color: var(--red); }
.news-cat {
    font-size: .62rem; flex-shrink: 0; padding: .18rem .5rem; border-radius: 999px; font-weight: 600;
    background: var(--red-soft); color: var(--red);
}
.news-date { font-size: .7rem; color: var(--muted); flex-shrink: 0; width: 3.2rem; text-align: center; }
.news-title { font-size: .82rem; color: var(--text); font-weight: 600; flex: 1; }
.news-arrow { color: var(--red); font-size: .9rem; }
.empty-state {
    text-align: center; padding: 2.2rem 1rem; color: var(--muted); font-size: .8rem;
    background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
}

/* ============================================================
   表单（功能页共用 · 维持原金融蓝观感）
   ============================================================ */
.form-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 1.1rem; box-shadow: 0 2px 10px rgba(31,35,41,.05); }
.form-title { font-size: 1rem; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem; }
.form-title .bar { width: .22rem; height: .95rem; border-radius: .12rem; background: var(--blue); }
.form-sub { font-size: .72rem; color: var(--muted); margin-bottom: 1rem; }
.field { margin-bottom: .85rem; }
.field label { display: block; font-size: .78rem; color: var(--text-2); margin-bottom: .35rem; font-weight: 600; }
.field label .req { color: #f53f3f; }
.field input, .field select, .field textarea {
    width: 100%; border: 1px solid var(--line); border-radius: .5rem;
    padding: .6rem .8rem; font-size: .86rem; background: #fafbfc; color: var(--text);
    font-family: inherit; transition: border-color .15s, background .15s; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(22,104,220,.1);
}
.field-row { display: flex; gap: .5rem; }
.field-row > * { flex: 1; }
.btn-block { width: 100%; height: 2.8rem; border: none; border-radius: .55rem; margin-top: .3rem;
    background: linear-gradient(90deg, var(--blue), var(--blue-2)); color: #fff; font-size: .92rem; font-weight: 700;
    cursor: pointer; box-shadow: 0 4px 12px rgba(22,104,220,.25); }
.btn-block:active { opacity: .88; }
.btn-block:disabled { opacity: .6; }

/* 状态徽标 */
.st { font-size: .66rem; padding: .18rem .6rem; border-radius: 999px; font-weight: 600; }
.st-todo { background: #f2f3f5; color: var(--text-2); }
.st-review { background: #e8f0fe; color: var(--blue); }
.st-done { background: #e6f7ec; color: #00b42a; }
.st-other { background: #fdf0e3; color: var(--gold-deep); }

/* 通用结果卡片 */
.result-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1rem; margin-bottom: .6rem; box-shadow: 0 2px 10px rgba(31,35,41,.05); }
.result-top { display: flex; justify-content: space-between; align-items: center; }
.result-no { font-weight: 700; font-size: .84rem; color: var(--navy); }
.result-meta { color: var(--text-2); font-size: .76rem; margin-top: .35rem; }
.result-time { color: var(--muted); font-size: .66rem; margin-top: .2rem; }

/* 内文段落 */
.prose p { font-size: .82rem; color: var(--text-2); line-height: 1.85; margin-bottom: .8rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { font-size: .9rem; color: var(--navy); margin: .4rem 0 .5rem; font-weight: 700; }
.tag-list { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .7rem; }
.tag {
    font-size: .64rem; background: var(--red-soft); color: var(--red);
    padding: .25rem .6rem; border-radius: 999px;
}
.timeline { margin-top: 1rem; border-top: 1px solid var(--line-soft); padding-top: .8rem; }
.tl-item { display: flex; gap: .7rem; position: relative; padding-bottom: 1rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: .7rem; height: .7rem; border-radius: 50%; flex: 0 0 .7rem; margin-top: .2rem; background: #fff; border: 2px solid #c9cdd4; }
.tl-item.done .tl-dot { border-color: #00b42a; background: #00b42a; }
.tl-item.doing .tl-dot { border-color: var(--blue); background: var(--blue); }
.tl-name { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.tl-item.doing .tl-name, .tl-item.done .tl-name { color: var(--navy); }
.tl-time { font-size: .66rem; color: var(--muted); margin-top: .2rem; }

/* 信息行（联系页） */
.info-row { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .8rem; }
.info-icon { width: 2rem; height: 2rem; border-radius: .4rem; background: rgba(14,51,75,.10); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.info-label { font-size: .64rem; color: var(--muted); }
.info-val { font-size: .82rem; color: var(--text); font-weight: 500; }

/* ============================================================
   底部（全站共用 · 藏蓝）
   ============================================================ */
.site-footer { border-top: 1px solid var(--navy-3); background: var(--navy); color: rgba(255,255,255,.75); padding: 2rem .9rem 1.5rem; margin-top: 1rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.site-footer .f-banks { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.site-footer .f-banks .fb-label { font-size: .68rem; color: rgba(255,255,255,.5); margin-right: .25rem; }
.site-footer .f-banks span {
    font-size: .66rem; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px; padding: .22rem .6rem; background: rgba(255,255,255,.04);
}
.site-footer .f-nav { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.site-footer .f-nav a { color: rgba(255,255,255,.85); font-size: .76rem; transition: color .2s; }
.site-footer .f-nav a:active { color: var(--red-2); }
.site-footer .f-trust { text-align: center; font-size: .68rem; color: rgba(255,255,255,.5); line-height: 1.9; }
.site-footer .f-trust .sep { margin: 0 .4rem; opacity: .4; }
.site-footer .f-copy { text-align: center; font-size: .68rem; color: rgba(255,255,255,.4); margin-top: .9rem; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Toast */
.toast {
    position: fixed; left: 50%; bottom: 3.2rem; transform: translateX(-50%) translateY(20px);
    background: rgba(0,0,0,.8); color: #fff; font-size: .8rem; padding: .6rem 1.1rem;
    border-radius: 2rem; z-index: 999; opacity: 0; pointer-events: none;
    transition: all .25s; white-space: nowrap; max-width: 85%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
