@charset "utf-8";
/* ==========================================================================
   新闻快讯列表页 —— 样式表
   配色取自证券市场周刊官网（weeklyonstock.com）
     主色 #e3362a / 深红 #cb2318 / 浅红 #ee5a50
     正文 #333333 / #666666 / #999999
     底色 #ffffff / #f6f6f6 / #fafafa，描边 #e8e8e8 / #f2f2f2
   字体：Microsoft YaHei, Arial
   ========================================================================== */

:root {
    --red: #e3362a;
    --red-deep: #cb2318;
    --red-soft: #ee5a50;
    --red-tint: #fdeeec;
    --red-glow: rgba(227, 54, 42, .22);

    --ink: #333333;
    --ink-strong: #16110f;
    --text: #666666;
    --muted: #999999;

    --bg: #f6f6f6;
    --bg-soft: #fafafa;
    --card: #ffffff;
    --line: #e8e8e8;
    --line-soft: #f2f2f2;
    --line-hard: #dddddd;

    --shadow-sm: 0 1px 2px rgba(16, 12, 10, .04);
    --shadow-md: 0 6px 22px -10px rgba(16, 12, 10, .18);
    --shadow-lg: 0 18px 46px -20px rgba(203, 35, 24, .32);

    --radius: 10px;
    --radius-sm: 6px;
    --inner: 1200px;

    /* 正文折叠高度：改这里即可同时调整 CSS 与前端折叠判定 */
    --fold-h: 240px;

    --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;

    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------- */
/* 基础                                                                    */
/* --------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font: 14px/1.7 "Microsoft YaHei", Arial, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2 { font-weight: 700; color: var(--ink); }
code, kbd { font-family: var(--mono); }

.is-hidden { display: none !important; }
[hidden] { display: none !important; }

.kx-inner { width: 100%; max-width: var(--inner); margin: 0 auto; padding: 0; }

.kx-sep { color: var(--line-hard); margin: 0 6px; }

.kx-mark {
    background: transparent;
    color: var(--red);
    font-weight: 700;
    box-shadow: inset 0 -8px 0 var(--red-tint);
}

::selection { background: var(--red); color: #fff; }

/* --------------------------------------------------------------------- */
/* 滚动进度条                                                              */
/* --------------------------------------------------------------------- */

.kx-progress {
    position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 200;
    background: transparent; pointer-events: none;
}
.kx-progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--red-soft), var(--red), var(--red-deep));
    box-shadow: 0 0 10px var(--red-glow);
    transition: width .12s linear;
}

/* --------------------------------------------------------------------- */
/* 顶部白条（仿 weeklyonstock .shortcut）                                   */
/* --------------------------------------------------------------------- */

.kx-topbar {
    background: var(--card);
    border-bottom: 1px solid var(--line-soft);
}
.kx-topbar .kx-inner {
    height: 65px; display: flex; align-items: center; justify-content: space-between;
}
.kx-logo { display: flex; align-items: center; }
.kx-logo img { height: 42px; width: auto; display: block; }

.kx-topbar__right { display: flex; align-items: center; gap: 20px; }

.kx-clock { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .5px; }

/* 右侧按钮：仿参考站「订阅」按钮 */
.kx-switchbtn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 84px; height: 30px; border-radius: 3px;
    font-size: 12px; color: #fff; background: #ee5a50;
    transition: background .2s var(--ease);
}
.kx-switchbtn:hover { background: var(--red); }

/* --------------------------------------------------------------------- */
/* 红色导航条（仿 weeklyonstock .nav_container）                            */
/* --------------------------------------------------------------------- */

.kx-nav { background: #e3362a; }
.kx-nav .kx-inner { height: 40px; display: flex; align-items: center; }

.kx-nav__list { display: flex; height: 40px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.kx-nav__list::-webkit-scrollbar { display: none; }
.kx-nav__list li { height: 100%; overflow: hidden; }
.kx-nav__list li a {
    display: flex; align-items: center; height: 100%; padding: 0 24px;
    font-size: 16px; color: #fff; white-space: nowrap;
    transition: background .2s var(--ease);
}
.kx-nav__list li a:hover { background: rgba(255, 255, 255, .12); }
.kx-nav__list li a.is-active { background: #cb2318; }

/* --------------------------------------------------------------------- */
/* 主体                                                                    */
/* --------------------------------------------------------------------- */

.kx-main { padding: 24px 5px 0; }

/* 实时更新徽标（banner 内有反色覆盖样式） */
.kx-live {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--red);
    padding: 4px 10px; border-radius: 20px;
    background: var(--red-tint);
}
.kx-live__dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--red);
    animation: kxPulse 1.6s infinite;
}

/* --------------------------------------------------------------------- */
/* Banner（白底卡片样式，文案与 kx-live 位置不变）                          */
/* --------------------------------------------------------------------- */

.kx-banner {
    position: relative; overflow: hidden;
    margin-top: 20px; height: 108px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center;
}
.kx-banner::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(110deg, transparent 34%, #000 100%);
    mask-image: linear-gradient(110deg, transparent 34%, #000 100%);
    opacity: .75; pointer-events: none;
}
.kx-banner::after {
    content: ""; position: absolute; right: -60px; top: -90px;
    width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, var(--red-glow), transparent 68%);
    pointer-events: none;
}
.kx-banner__inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; width: 100%; max-width: var(--inner); margin: 0 auto; padding: 0 20px;
}
.kx-banner__title {
    display: flex; align-items: center; gap: 14px;
    color: var(--ink); font-size: 28px; font-weight: 700; letter-spacing: 1.5px;
}
.kx-banner__title::before {
    content: ""; width: 5px; height: 26px; border-radius: 3px;
    background: linear-gradient(var(--red), var(--red-deep));
    box-shadow: 0 0 12px var(--red-glow);
}
.kx-banner__sub { margin-top: 6px; font-size: 13px; color: var(--muted); letter-spacing: .5px; }
.kx-banner__right { display: flex; align-items: center; gap: 14px; }

/* 筛选 */
.kx-filter {
    margin-top: 16px; background: var(--card);
    border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: 14px 18px; box-shadow: var(--shadow-sm);
}
.kx-filter__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 7px 0; }
.kx-filter__row + .kx-filter__row { border-top: 1px dashed var(--line-soft); }
.kx-filter__label {
    flex: 0 0 auto; font-size: 13px; color: var(--muted);
    padding-left: 10px; position: relative;
}
.kx-filter__label::before {
    content: ""; position: absolute; left: 0; top: 50%; margin-top: -6px;
    width: 3px; height: 12px; border-radius: 2px; background: var(--red);
}
.kx-filter__label--gap { margin-left: 14px; }

/* 筛选区搜索框：股票名称 / 代码 / 标题 / 关键词共用 */
.kx-fsearch {
    position: relative; display: flex; align-items: center;
    width: 380px; max-width: 100%; height: 36px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.kx-fsearch:focus-within { border-color: var(--red-soft); box-shadow: 0 0 0 3px var(--red-tint); }
.kx-fsearch__input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
    padding: 0 4px 0 12px; font-size: 13px; color: var(--ink);
}
.kx-fsearch__input::placeholder { color: var(--muted); }
.kx-fsearch__btn {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 4px;
    height: 26px; padding: 0 12px; margin-right: 4px;
    border: 0; border-radius: 6px; cursor: pointer;
    font-size: 13px; color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    transition: filter .2s var(--ease), transform .2s var(--ease);
}
.kx-fsearch__btn svg { width: 14px; height: 14px; }
.kx-fsearch__btn:hover { filter: brightness(1.08); }
.kx-fsearch__btn:active { transform: scale(.96); }
.kx-fsearch__kbd {
    font-size: 10px; color: var(--muted); border: 1px solid var(--line);
    border-radius: 4px; padding: 0 4px; margin-right: 8px; line-height: 15px;
    background: var(--card);
}

/* 日期范围：整格可点，弹出日历 */
.kx-fdate { display: flex; align-items: center; gap: 6px; }
.kx-fdate__input {
    width: 142px; height: 36px;
    border: 1px solid var(--line); border-radius: 8px;
    background: var(--bg-soft); padding: 0 10px;
    font-family: var(--mono); font-size: 13px; color: var(--ink);
    cursor: pointer;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.kx-fdate__input:hover { border-color: var(--red-soft); }
.kx-fdate__input:focus { outline: none; border-color: var(--red-soft); box-shadow: 0 0 0 3px var(--red-tint); }
.kx-fdate__sep { font-size: 13px; color: var(--muted); }

/* 筛选区重置按钮：靠第一行最右，与搜索框/日期格同高 */
.kx-btn.kx-filter__reset { margin-left: auto; height: 36px; padding: 0 16px; }

.kx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kx-chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 30px; padding: 0 13px; border-radius: 15px;
    font-size: 13px; color: var(--text);
    background: var(--bg-soft); border: 1px solid var(--line);
    transition: all .2s var(--ease);
}
.kx-chip:hover { color: var(--red); border-color: var(--red-soft); background: var(--red-tint); }
.kx-chip.is-active {
    color: #fff; border-color: transparent; font-weight: 700;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    box-shadow: 0 4px 12px -5px var(--red-glow);
}
.kx-chip.is-active .kx-chip__num { background: rgba(255, 255, 255, .24); color: #fff; }
.kx-chip__num {
    font-family: var(--mono); font-size: 11px; line-height: 16px;
    padding: 0 6px; border-radius: 8px;
    background: var(--line-soft); color: var(--muted);
}

/* 结果条 */
.kx-listbar {
    margin: 18px 10px 12px; display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}
.kx-listbar__left { font-size: 13px; color: var(--text); }
.kx-listbar__left b { font-family: var(--mono); color: var(--red); font-size: 15px; }
.kx-current-filter { color: var(--muted); font-size: 12px; margin-left: 4px; }
.kx-current-filter em { font-style: normal; color: var(--red); }

/* --------------------------------------------------------------------- */
/* 按钮                                                                    */
/* --------------------------------------------------------------------- */

.kx-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 12px; border-radius: var(--radius-sm);
    font-size: 12px; color: var(--text);
    border: 1px solid var(--line);
    flex: 0 0 auto; white-space: nowrap;
    transition: all .2s var(--ease);
}

/* 行内 SVG 图标：必须给定显式尺寸，否则默认 300×150 会挤占文字空间 */
.kx-ico { width: 15px; height: 15px; flex: 0 0 auto; }
.kx-btn:hover { color: var(--red); border-color: var(--red); background: var(--red-tint); }
.kx-btn--primary {
    height: 34px; padding: 0 20px; font-size: 13px; font-weight: 700;
    color: #fff; border-color: transparent;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
}
.kx-btn--primary:hover { color: #fff; background: linear-gradient(135deg, var(--red-soft), var(--red)); }
.kx-btn--ghost { background: var(--card); }

/* --------------------------------------------------------------------- */
/* 快讯卡片                                                                */
/* --------------------------------------------------------------------- */

.kx-list { display: flex; flex-direction: column; gap: 18px; }

.kx-card {
    position: relative; overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 24px 26px 22px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.kx-card:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: var(--shadow-md); }
.kx-card.is-new { border-color: var(--red-soft); }

/* 左侧色条 */
.kx-card__rail {
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(var(--red), var(--red-deep));
    transform: scaleY(.34); transform-origin: top;
    transition: transform .35s var(--ease), width .35s var(--ease);
}
.kx-card:hover .kx-card__rail { transform: scaleY(1); width: 4px; }
.kx-card.is-type-0 .kx-card__rail { background: linear-gradient(var(--line-hard), var(--line)); }

/* 头部：标题（左） + NEW/分类/时间（右） */
.kx-card__head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.kx-card__head .kx-card__title { flex: 1 1 auto; min-width: 0; }
.kx-card__meta { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.kx-badge-new {
    font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .6px;
    color: #fff; background: var(--red); border-radius: 3px; padding: 1px 5px;
    animation: kxGlow 2s ease-in-out infinite;
}

.kx-tag {
    font-size: 12px; padding: 2px 9px; border-radius: 4px;
    color: var(--red); background: var(--red-tint);
    border: 1px solid transparent; white-space: nowrap;
}
.kx-tag--t0 { color: var(--muted); background: var(--line-soft); }
/* 分类色阶：在官网红的基础上做深浅区分，整体仍是红色系 */
.kx-tag--t1 { color: #b3762a; background: #fdf3e4; }
.kx-tag--t2 { color: var(--red); background: var(--red-tint); }
.kx-tag--t3 { color: #a34a6d; background: #fbebf1; }
.kx-tag--t4 { color: #1f6f9c; background: #e9f4fa; }
.kx-tag--t5 { color: #2a7d5c; background: #e8f6f0; }
.kx-tag--t6 { color: #6d4aa3; background: #f1ebfa; }
.kx-tag--t7 { color: #b3541e; background: #fdeee2; }
.kx-tag--t8, .kx-tag--t9, .kx-tag--t10 { color: var(--text); background: var(--bg-soft); }

.kx-time {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.kx-dot {
    width: 5px; height: 5px; border-radius: 50%; background: var(--line-hard);
    display: inline-block;
}
.kx-card.is-new .kx-dot { background: var(--red); }

/* 标题（位于卡片头部左侧） */
.kx-card__title {
    font-size: 17px; line-height: 1.6; color: var(--ink);
    margin-bottom: 0; transition: color .2s var(--ease);
}
.kx-card:hover .kx-card__title { color: var(--red); }

/* 正文折叠 */
.kx-body { position: relative; }
.kx-content { font-size: 14.5px; line-height: 2.05; color: var(--text); overflow: hidden; }
.kx-content p + p { margin-top: 10px; }
.kx-body .kx-content { transition: max-height .4s var(--ease); }
.kx-body.is-collapsed .kx-content { max-height: var(--fold-h); overflow: hidden; }
.kx-body__fade {
    display: none;
    position: absolute; left: 0; right: 0; bottom: 0; height: 88px;
    background: linear-gradient(to bottom, transparent, var(--card) 82%);
    pointer-events: none;
}
.kx-body.is-collapsed .kx-body__fade { display: block; }

/* 展开 / 收起 按钮 */
.kx-toggle {
    flex: 0 0 auto; height: 32px; padding: 0 16px; font-size: 13px;
    color: var(--red); border-color: var(--red-tint); background: var(--red-tint);
}
.kx-toggle:hover { background: var(--red); color: #fff; border-color: var(--red); }
.kx-toggle .kx-ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.kx-toggle.is-open .kx-ico { transform: rotate(180deg); }

/* 底部：关键词（全部展示，紧贴正文） */
.kx-card__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-soft);
}
.kx-keywords { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.kx-kw {
    font-size: 12px; line-height: 20px; padding: 0 9px; border-radius: 4px;
    color: var(--text); background: var(--bg-soft); border: 1px solid var(--line-soft);
    transition: all .2s var(--ease);
}
.kx-kw:hover { color: var(--red); border-color: var(--red-soft); }
.kx-keywords:empty { display: none; }

.kx-card__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }

/* --------------------------------------------------------------------- */
/* 加载更多 / 空状态 / 骨架屏                                              */
/* --------------------------------------------------------------------- */

.kx-more { display: flex; justify-content: center; padding: 28px 0 8px; }
.kx-loadmore {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 30px; border-radius: 20px;
    font-size: 14px; font-weight: 700; color: var(--red);
    background: var(--card); border: 1px solid var(--red);
    transition: all .25s var(--ease);
}
.kx-loadmore:hover { color: #fff; background: linear-gradient(135deg, var(--red), var(--red-deep)); box-shadow: var(--shadow-lg); }
.kx-loadmore .kx-ico { width: 15px; height: 15px; }
.kx-loadmore.is-loading { color: var(--muted); border-color: var(--line); pointer-events: none; }
.kx-loadmore.is-loading .kx-ico { animation: kxSpin .8s linear infinite; }
.kx-loadmore__end { font-size: 13px; color: var(--muted); }
.kx-loadmore__end::before,
.kx-loadmore__end::after {
    content: ""; display: inline-block; width: 40px; height: 1px;
    background: var(--line); vertical-align: middle; margin: 0 12px;
}

.kx-empty {
    background: var(--card); border: 1px dashed var(--line-hard);
    border-radius: var(--radius); padding: 56px 20px; text-align: center;
}
.kx-empty__icon { color: var(--line-hard); }
.kx-empty__icon svg { width: 54px; height: 54px; }
.kx-empty__title { margin-top: 14px; font-size: 16px; font-weight: 700; color: var(--ink); }
.kx-empty__desc { margin: 6px 0 18px; font-size: 13px; color: var(--muted); }

.kx-skeleton {
    background: var(--card); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 18px 22px;
}
.kx-sk-line {
    height: 12px; border-radius: 6px; margin-bottom: 12px;
    background: linear-gradient(90deg, var(--line-soft) 25%, var(--line) 37%, var(--line-soft) 63%);
    background-size: 400% 100%;
    animation: kxShimmer 1.4s ease-in-out infinite;
}
.kx-sk-line.w30 { width: 30%; }
.kx-sk-line.w55 { width: 55%; }
.kx-sk-line.w90 { width: 90%; }
.kx-sk-line.w80 { width: 80%; }
.kx-sk-line.w65 { width: 65%; }

/* --------------------------------------------------------------------- */
/* 版本切换链接（index.php 完整版 / list.php 简版）                        */
/* --------------------------------------------------------------------- */
/* 已废弃：版本切换改由顶部白条右侧按钮 kx-switchbtn 承担 */

/* --------------------------------------------------------------------- */
/* 简版卡片（list.php）：标题 + 分类标签 + 时间，整卡为链接                 */
/* --------------------------------------------------------------------- */

.kx-card--simple {
    display: flex; align-items: center; gap: 16px;
    padding: 15px 22px;
    cursor: pointer;
}
.kx-card--simple .kx-card__title {
    flex: 1 1 auto; min-width: 0;
    font-size: 16px; line-height: 1.6; margin-bottom: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kx-card--simple .kx-card__meta {
    flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
}

/* --------------------------------------------------------------------- */
/* 文章详情页（article.php）                                               */
/* --------------------------------------------------------------------- */

.kx-article {
    max-width: 920px; margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: 36px 44px 40px;
    box-shadow: var(--shadow-sm);
}
.kx-article__title { font-size: 26px; line-height: 1.5; }
.kx-article__meta {
    margin-top: 14px; padding-bottom: 18px;
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
    border-bottom: 1px solid var(--line-soft);
}
.kx-article__meta .kx-time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.kx-stock { font-size: 14px; font-weight: 700; color: var(--ink); }
.kx-stock i {
    font-style: normal; font-family: var(--mono); font-weight: 400;
    font-size: 12px; color: var(--text); margin-left: 8px;
    background: var(--bg-soft); border: 1px solid var(--line-soft);
    border-radius: 4px; padding: 1px 7px;
}
.kx-article__body {
    padding-top: 22px;
    font-size: 15px; line-height: 2.1; color: var(--text);
}
.kx-article__body p + p { margin-top: 14px; }
.kx-article__foot {
    margin-top: 34px; padding-top: 20px;
    border-top: 1px dashed var(--line-soft);
}

/* --------------------------------------------------------------------- */
/* 回到顶部 / Toast                                                        */
/* --------------------------------------------------------------------- */

.kx-fab {
    position: fixed; right: 28px; bottom: 32px; z-index: 90;
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    color: #fff; background: linear-gradient(135deg, var(--red), var(--red-deep));
    box-shadow: 0 10px 26px -10px var(--red-glow);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: all .3s var(--ease);
}
.kx-fab svg { width: 18px; height: 18px; }
.kx-fab.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.kx-fab:hover { box-shadow: 0 14px 32px -10px var(--red-glow); transform: translateY(-3px); }

.kx-toast {
    position: fixed; left: 50%; bottom: 46px; z-index: 300;
    transform: translate(-50%, 16px);
    padding: 10px 20px; border-radius: 8px;
    font-size: 13px; color: #fff;
    background: rgba(22, 17, 15, .9);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: all .28s var(--ease);
}
.kx-toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------- */
/* 页脚                                                                    */
/* --------------------------------------------------------------------- */

.kx-footer {
    border-top: 1px solid var(--line);
    background: var(--card); padding: 22px 0;
}
.kx-footer .kx-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text);
}

/* --------------------------------------------------------------------- */
/* 入场动画（默认可见，仅在 JS 就绪时由 html.kx-anim 接管，避免无脚本时空白） */
/* --------------------------------------------------------------------- */

.kx-card {
    transition: transform .28s var(--ease), box-shadow .28s var(--ease),
                border-color .28s var(--ease), opacity .45s var(--ease);
}

html.kx-anim .kx-card:not(.is-in) { opacity: 0; transform: translateY(14px); }
.kx-card.is-in { opacity: 1; }

@keyframes kxShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes kxPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes kxGlow { 0%, 100% { box-shadow: 0 0 0 0 var(--red-glow); } 50% { box-shadow: 0 0 0 4px transparent; } }
@keyframes kxSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html.kx-anim .kx-card:not(.is-in) { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------- */
/* 响应式                                                                  */
/* --------------------------------------------------------------------- */

@media (max-width: 860px) {
    .kx-nav .kx-inner { height: auto; flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 10px; }
    .kx-nav__list { height: 40px; }
    .kx-nav__list li a { padding: 0 14px; font-size: 14px; }
    .kx-fsearch { width: 100%; }
    .kx-fsearch__kbd { display: none; }
    .kx-fdate { flex: 1 1 100%; }
    .kx-fdate__input { flex: 1; min-width: 0; }
    .kx-fdate__sep { flex: 0 0 auto; }
    .kx-topbar .kx-inner { height: 58px; }
    .kx-logo img { height: 34px; }
    .kx-banner { margin-top: 14px; height: 92px; }
    .kx-banner__title { font-size: 22px; }
    .kx-card { padding: 20px 18px 18px 20px; }
    .kx-card__title { font-size: 17px; }
    .kx-card--simple { flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
    .kx-card--simple .kx-card__title { flex: 1 1 100%; white-space: normal; }
    .kx-card__meta { margin-left: 0; }
    .kx-card--simple .kx-card__meta { margin-left: 0; }
    .kx-article { padding: 24px 20px 28px; }
    .kx-article__title { font-size: 21px; }
}

@media (max-width: 560px) {
    .kx-inner { padding: 0; }
    .kx-topbar .kx-inner { height: 54px; }
    .kx-clock { display: none; }
    .kx-card { padding: 18px 16px 16px 18px; }
    .kx-card__foot { flex-direction: column; align-items: stretch; }
    .kx-card__right { margin-left: 0; justify-content: space-between; }
    .kx-fab { right: 14px; bottom: 18px; }
}

/* 页尾红色分隔线（原依赖 company.css，已内联至此） */
.bottom_border { padding: 30px 0; }
.bottom_border .inner {
    /* 不依赖 base_2026.css 的固定 1200px，避免手机端横向溢出 */
    width: auto; max-width: var(--inner); margin: 0 auto;
    border-bottom: 2px solid #e7141a;
}

/* 手机端禁止整页横向滑动（头底/红线容器已自适应，兜底防护） */
@media (max-width: 860px) {
    html, body { overflow-x: hidden; }
}

/* 免责声明 */
.kx-disclaimer { width: 100%; max-width: var(--inner); margin: 0 auto; padding: 0 20px 26px; box-sizing: border-box; }
.kx-disclaimer p { font-size: 12px; line-height: 20px; color: #999; text-align: justify; }
.kx-disclaimer p + p { margin-top: 6px; }
