/* ========================================================================
   news_icyblue · 冰蓝极简清冷 主题样式
   前缀: ib-   缩进: 4空格   配色: 冰蓝背景 + 深蓝灰文字 + 天蓝强调
   ======================================================================== */

:root {
    --ib-bg: #eef6fb;
    --ib-bg-soft: #f5fafd;
    --ib-white: #ffffff;
    --ib-text: #1c3a4d;
    --ib-text-soft: #35586b;
    --ib-text-mute: #6b8ba0;
    --ib-accent: #3fa9dd;
    --ib-accent-deep: #2b86b8;
    --ib-line: #d7e9f3;
    --ib-shadow-sm: 0 2px 10px rgba(63, 169, 221, 0.10);
    --ib-shadow-md: 0 8px 28px rgba(63, 169, 221, 0.14);
    --ib-radius-s: 8px;
    --ib-radius-m: 11px;
    --ib-radius-l: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.ib-body {
    margin: 0;
    padding: 0;
    background: var(--ib-bg);
    color: var(--ib-text);
    font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei Light", "Segoe UI", Arial, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--ib-accent); }

ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

img { max-width: 100%; display: block; }

/* ---------------------------- 顶部浮层导航 ---------------------------- */

.ib-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(238, 246, 251, 0.86);
    border-bottom: 1px solid var(--ib-line);
}

.ib-topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.ib-brand img { height: 40px; width: auto; }

.ib-nav { flex: 1; min-width: 0; }

.ib-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ib-nav-item a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ib-text-soft);
    font-size: 14px;
    border: 1px solid transparent;
}

.ib-nav-item a:hover,
.ib-nav-home a:hover {
    background: var(--ib-white);
    border-color: var(--ib-line);
    color: var(--ib-accent-deep);
}

.ib-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: 1px solid var(--ib-line);
    border-radius: var(--ib-radius-s);
    padding: 9px 11px;
    cursor: pointer;
}

.ib-nav-toggle-bar {
    width: 18px;
    height: 2px;
    background: var(--ib-text-soft);
    display: block;
}

.ib-frost-line {
    height: 3px;
    background: linear-gradient(90deg, var(--ib-accent), rgba(63, 169, 221, 0));
    opacity: .55;
}

/* ------------------------------- 主容器 ------------------------------- */

.ib-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.ib-crumb {
    font-size: 13px;
    color: var(--ib-text-mute);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.ib-crumb-sep { color: var(--ib-line); }
.ib-crumb-cur { color: var(--ib-text-soft); }

/* -------------------------------- 首页 -------------------------------- */

.ib-hero {
    position: relative;
    background: var(--ib-white);
    border: 1px solid var(--ib-line);
    border-radius: var(--ib-radius-l);
    box-shadow: var(--ib-shadow-md);
    padding: 44px 40px;
    margin-bottom: 28px;
    overflow: hidden;
}

.ib-hero-inner { max-width: 640px; position: relative; z-index: 2; }

.ib-hero-eyebrow {
    color: var(--ib-accent-deep);
    font-size: 13px;
    letter-spacing: .12em;
    margin-bottom: 10px;
}

.ib-hero-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--ib-text);
    background: linear-gradient(120deg, var(--ib-text) 20%, var(--ib-accent-deep) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--ib-text); /* 兜底色, 不支持渐变裁剪时仍可读 */
    margin-bottom: 12px;
}

.ib-hero-sub { color: var(--ib-text-soft); font-size: 15px; max-width: 560px; }

.ib-hero-deco { position: absolute; right: 0; top: 0; bottom: 0; width: 45%; z-index: 1; }

.ib-crystal {
    position: absolute;
    border: 1px solid rgba(63, 169, 221, .35);
    transform: rotate(45deg);
}

.ib-crystal-a { width: 70px; height: 70px; right: 60px; top: 20px; }
.ib-crystal-b { width: 40px; height: 40px; right: 140px; top: 90px; border-color: rgba(63,169,221,.22); }
.ib-crystal-c { width: 22px; height: 22px; right: 30px; top: 120px; border-color: rgba(63,169,221,.5); }

.ib-pillnav { margin-bottom: 28px; }

.ib-pillnav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ib-pill {
    background: var(--ib-white);
    border: 1px solid var(--ib-line);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 13px;
    color: var(--ib-text-soft);
    box-shadow: var(--ib-shadow-sm);
}

.ib-pill:hover { color: var(--ib-white); background: var(--ib-accent); border-color: var(--ib-accent); }

/* 双列大卡片(核心差异化结构) */

.ib-bigcards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.ib-bigcard {
    background: var(--ib-bg-soft);
    border: 1px solid var(--ib-line);
    border-radius: var(--ib-radius-l);
    box-shadow: var(--ib-shadow-sm);
    padding: 26px;
    min-width: 0;
}

.ib-bigcard-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--ib-line);
}

.ib-bigcard-title { font-size: 19px; font-weight: 600; min-width: 0; }
.ib-bigcard-title a { color: var(--ib-text); }

.ib-bigcard-more { flex-shrink: 0; font-size: 12px; color: var(--ib-accent-deep); }

.ib-minilist-item + .ib-minilist-item { border-top: 1px solid var(--ib-line); }

.ib-minilist-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    min-width: 0;
}

.ib-minilist-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ib-accent);
}

.ib-minilist-text {
    flex: 1;
    min-width: 0;
    color: var(--ib-text-soft);
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ib-minilist-link:hover .ib-minilist-text { color: var(--ib-accent-deep); }

.ib-minilist-date { flex-shrink: 0; font-size: 12px; color: var(--ib-text-mute); }

.ib-flash { background: var(--ib-white); border: 1px solid var(--ib-line); border-radius: var(--ib-radius-l); padding: 26px; box-shadow: var(--ib-shadow-sm); }

.ib-flash-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ib-flash-title { font-size: 18px; font-weight: 600; flex-shrink: 0; }
.ib-flash-line { flex: 1; height: 1px; background: var(--ib-line); }

.ib-flashlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 28px; }

.ib-flashitem-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ib-line);
    min-width: 0;
}

.ib-flashitem-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--ib-text-soft);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ib-flashitem-meta { flex-shrink: 0; display: flex; gap: 8px; font-size: 11px; color: var(--ib-text-mute); }

/* -------------------------------- 列表页 -------------------------------- */

.ib-list-layout { display: grid; grid-template-columns: 2.3fr 1fr; gap: 28px; align-items: start; }

.ib-list-head { margin-bottom: 18px; }
.ib-list-title { font-size: 24px; font-weight: 600; }
.ib-list-underline { display: block; width: 46px; height: 3px; background: var(--ib-accent); border-radius: 3px; margin-top: 10px; }

.ib-artitem + .ib-artitem { border-top: 1px solid var(--ib-line); }

.ib-artitem-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 6px;
    min-width: 0;
    border-radius: var(--ib-radius-s);
}

.ib-artitem-link:hover { background: var(--ib-bg-soft); }

.ib-artitem-mark {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border: 2px solid var(--ib-accent);
    transform: rotate(45deg);
}

.ib-artitem-main { flex: 1; min-width: 0; }

.ib-artitem-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    color: var(--ib-text);
    margin-bottom: 4px;
}

.ib-artitem-info {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    color: var(--ib-text-mute);
}

.ib-artitem-side { flex-shrink: 0; text-align: right; font-size: 12px; color: var(--ib-text-mute); display: flex; flex-direction: column; gap: 4px; }

.ib-pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; justify-content: center; }

.ib-pager-link {
    padding: 8px 14px;
    border: 1px solid var(--ib-line);
    border-radius: var(--ib-radius-s);
    font-size: 13px;
    color: var(--ib-text-soft);
    background: var(--ib-white);
}

.ib-pager-link:hover { border-color: var(--ib-accent); color: var(--ib-accent-deep); }

.ib-list-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.ib-side-block { background: var(--ib-white); border: 1px solid var(--ib-line); border-radius: var(--ib-radius-m); padding: 18px 20px; box-shadow: var(--ib-shadow-sm); }

.ib-side-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ib-line); }

.ib-hotitem a { display: flex; align-items: center; gap: 10px; padding: 7px 0; min-width: 0; }
.ib-hotitem-rank { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--ib-text-mute); }
.ib-hotitem:nth-child(-n+3) .ib-hotitem-rank { background: var(--ib-accent); }
.ib-hotitem-text { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ib-text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ib-catelist li a { display: block; padding: 7px 0; font-size: 13.5px; color: var(--ib-text-soft); border-bottom: 1px dashed var(--ib-line); }
.ib-catelist li:last-child a { border-bottom: none; }

.ib-recitem a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; min-width: 0; }
.ib-recitem-title { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ib-text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-recitem-date { flex-shrink: 0; font-size: 11px; color: var(--ib-text-mute); }

/* -------------------------------- 详情页 -------------------------------- */

.ib-article { background: var(--ib-white); border: 1px solid var(--ib-line); border-radius: var(--ib-radius-l); box-shadow: var(--ib-shadow-md); padding: 36px 40px; }

.ib-article-title { font-size: 26px; font-weight: 600; margin-bottom: 14px; }

.ib-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ib-text-mute); margin-bottom: 18px; }
.ib-meta-dot { color: var(--ib-line); }

.ib-article-summary {
    background: var(--ib-bg-soft);
    border-left: 3px solid var(--ib-accent);
    border-radius: 0 var(--ib-radius-s) var(--ib-radius-s) 0;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--ib-text-soft);
    margin-bottom: 26px;
}

.ib-related { margin-bottom: 30px; }
.ib-related-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }

.ib-related-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }

.ib-related-card {
    flex: 1 1 0;
    min-width: 150px;
    background: var(--ib-bg-soft);
    border: 1px solid var(--ib-line);
    border-radius: var(--ib-radius-m);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ib-related-card:hover { border-color: var(--ib-accent); box-shadow: var(--ib-shadow-sm); }

.ib-related-tag { width: 12px; height: 12px; border: 2px solid var(--ib-accent); transform: rotate(45deg); }

.ib-related-name {
    font-size: 13.5px;
    color: var(--ib-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ib-related-date { font-size: 11px; color: var(--ib-text-mute); }

.ib-article-body { font-size: 16px; color: var(--ib-text); line-height: 1.9; }
.ib-article-body img { border-radius: var(--ib-radius-s); margin: 10px 0; }
.ib-article-body p { margin-bottom: 16px; }

.ib-turnpage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--ib-line); }

.ib-turn-link { background: var(--ib-bg-soft); border: 1px solid var(--ib-line); border-radius: var(--ib-radius-s); padding: 12px 16px; min-width: 0; display: block; }
.ib-turn-link:hover { border-color: var(--ib-accent); }
.ib-turn-next { text-align: right; }
.ib-turn-label { display: block; font-size: 11px; color: var(--ib-text-mute); margin-bottom: 4px; }
.ib-turn-title { display: block; font-size: 13.5px; color: var(--ib-text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

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

.ib-footer { position: relative; margin-top: 40px; background: var(--ib-text); color: rgba(255,255,255,.75); }
.ib-footer-frost { height: 3px; background: linear-gradient(90deg, var(--ib-accent), rgba(63,169,221,0)); }

.ib-footer-inner { max-width: 1180px; margin: 0 auto; padding: 40px 24px 24px; }

.ib-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }

.ib-footer-brand img { height: 34px; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: .9; }
.ib-footer-desc { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.6); }

.ib-footer-title { font-size: 14px; color: #fff; margin-bottom: 14px; font-weight: 500; }

.ib-linklist li a { display: block; padding: 5px 0; font-size: 13px; color: rgba(255,255,255,.6); }
.ib-linklist li a:hover { color: var(--ib-accent); }

.ib-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: 12px; color: rgba(255,255,255,.5); display: flex; flex-wrap: wrap; gap: 10px 20px; }

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

@media (max-width: 1024px) {
    .ib-topbar-inner { padding: 12px 20px; }
    .ib-main { padding: 26px 20px 50px; }
    .ib-list-layout { grid-template-columns: 1fr; }
    .ib-footer-grid { grid-template-columns: 1fr 1fr; }
    .ib-hero-deco { display: none; }
}

@media (max-width: 768px) {
    .ib-nav { position: absolute; top: 100%; left: 0; right: 0; background: rgba(238,246,251,.96); border-bottom: 1px solid var(--ib-line); max-height: 0; overflow: hidden; transition: max-height .25s ease; }
    .ib-nav.ib-nav-open { max-height: 420px; }
    .ib-nav-list { flex-direction: column; padding: 10px 20px 16px; }
    .ib-nav-toggle { display: inline-flex; }
    .ib-bigcards { grid-template-columns: 1fr; }
    .ib-flashlist { grid-template-columns: 1fr; }
    .ib-related-row { flex-wrap: wrap; }
    .ib-related-card { min-width: 44%; }
    .ib-turnpage { grid-template-columns: 1fr; }
    .ib-turn-next { text-align: left; }
    .ib-article { padding: 26px 22px; }
}

@media (max-width: 480px) {
    .ib-hero { padding: 28px 22px; }
    .ib-hero-title { font-size: 24px; }
    .ib-bigcard { padding: 18px; }
    .ib-footer-grid { grid-template-columns: 1fr; }
    .ib-article-title { font-size: 21px; }
    .ib-related-card { min-width: 100%; }
    .ib-artitem-side { display: none; }
}
