/* compass-charts · 航海海图 —— 深蓝刻度顶栏、1+3 航海日志 + 双列右图宽海图卡、日期栏日志分类页、单行方位页脚 */
:root {
    --cc-chart: #eaf0f5;
    --cc-sheet: #ffffff;
    --cc-ink: #102336;
    --cc-navy: #123456;
    --cc-soft: #435c73;
    --cc-grid: #b8cadb;
    --cc-display: "Cinzel", Georgia, serif;
    --cc-body: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
    --pagination-accent: #123456;
}

.cc-k0 { --cc-k: #b5232b; }
.cc-k1 { --cc-k: #0d6b6e; }
.cc-k2 { --cc-k: #9e5c0a; }
.cc-k3 { --cc-k: #2e4096; }
.cc-k4 { --cc-k: #1d6945; }

body.theme-compass { margin: 0; color: var(--cc-ink); font-family: var(--cc-body); font-size: 16px; line-height: 1.55; background: var(--cc-chart); }
:where(.theme-compass) a { color: inherit; text-decoration: none; }
.theme-compass :focus-visible { outline: 3px solid #123456; outline-offset: 3px; }
.cc-skip { position: absolute; left: -9999px; }
.cc-skip:focus { left: 12px; top: 12px; z-index: 50; padding: 10px 14px; background: #fff; font-weight: 700; }
.cc-chart { display: block; min-height: 60vh; padding-bottom: 40px; }
.cc-chart:focus { outline: none; }

/* ---------- 母题：刻度尺、菱形信标、罗盘花 ---------- */
.cc-degree-scale { height: 7px; background: repeating-linear-gradient(90deg, #ffffff 0 18px, var(--cc-navy) 18px 36px); border-top: 1px solid #2b547e; }
.cc-diamond { flex: none; display: inline-block; width: 9px; height: 9px; background: var(--cc-k, var(--cc-navy)); transform: rotate(45deg); }
.cc-ticks { flex: 1; height: 6px; background: repeating-linear-gradient(90deg, var(--cc-grid) 0 1px, transparent 1px 8px); }
.cc-plate-no { flex: none; font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: var(--cc-soft); white-space: nowrap; }
.cc-coord-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cc-soft); white-space: nowrap; }
.cc-plate-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cc-plate-sector { min-width: 0; margin-right: auto; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cc-k); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-plate-foot { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--cc-soft); }
.cc-plate-foot time { white-space: nowrap; }

/* ---------- 深蓝刻度顶栏 ---------- */
.cc-header { background: var(--cc-navy); color: #fff; }
.cc-header-row { display: flex; align-items: center; gap: 20px; max-width: 1320px; min-height: 55px; margin: 0 auto; padding: 0 24px; }
.cc-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; }
.cc-rose { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #9cc2e6; }
.cc-rose i { display: block; width: 10px; height: 10px; background: #f2c14e; transform: rotate(45deg); }
.cc-rose-sm { width: 28px; height: 28px; }
.cc-brand-name { min-width: 0; font-family: var(--cc-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .05em; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-bearings { display: flex; gap: 6px; }
.cc-bearings a { padding: 6px 12px; font-weight: 500; color: #cfe0f0; border: 1px solid transparent; white-space: nowrap; }
.cc-bearings a:hover { color: #fff; }
.cc-bearings a.is-charted { color: #fff; border-color: #9cc2e6; background: rgba(156, 194, 230, .15); }
.cc-menu-toggle { display: none; }

/* ---------- 版心 ---------- */
.cc-wrap { max-width: 1320px; margin: 0 auto; padding: 24px 24px 0; }
.cc-wrap-cat { max-width: 1060px; }
.cc-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; font-size: .9rem; color: var(--cc-soft); }
.cc-crumb a { color: var(--cc-navy); font-weight: 700; }
.cc-page-title { margin: 4px 0 24px; font-family: var(--cc-display); font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 2.8rem); letter-spacing: .03em; line-height: 1.1; }
.cc-empty { margin: 32px 0; padding: 24px; background: #fff; border: 1px solid var(--cc-navy); text-align: center; list-style: none; }
.cc-pager { margin-top: 32px; }
.cc-compass-rule { display: flex; align-items: center; gap: 14px; margin: 36px 0 18px; }
.cc-compass-rule h2 { margin: 0; font-family: var(--cc-display); font-weight: 700; font-size: 1.55rem; letter-spacing: .04em; white-space: nowrap; }
.cc-rule-line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--cc-navy) 0 12px, transparent 12px 18px); opacity: .3; }

/* ---------- 首页前 4 条：左图版 + 右 3 条方位日志 ---------- */
.cc-bridge-top { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 20px; align-items: stretch; }
.cc-watch-lead { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.cc-watch-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; gap: 10px; padding: 14px 16px; background: var(--cc-sheet); border: 1px solid var(--cc-navy); border-top: 4px solid var(--cc-k); box-shadow: 0 2px 8px rgba(16, 35, 54, .06); }
.cc-watch-card img { display: block; width: 100%; height: 195px; object-fit: cover; background: var(--cc-grid); }
.cc-watch-title { margin: 0; font-family: var(--cc-display); font-weight: 700; font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1.22; }
.cc-watch-card:hover .cc-watch-title { color: var(--cc-k); text-decoration: underline; }
.cc-watch-excerpt { margin: 0; font-size: .92rem; color: var(--cc-soft); line-height: 1.5; }
.cc-bearing-stack { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.cc-bearing-item { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.cc-bearing-link { display: grid; grid-template-columns: minmax(0, 1fr) 126px; gap: 14px; align-items: stretch; padding: 10px 12px; background: var(--cc-sheet); border: 1px solid var(--cc-navy); border-left: 4px solid var(--cc-k); }
.cc-bearing-copy { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 5px; min-width: 0; }
.cc-bearing-title { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.cc-bearing-link:hover .cc-bearing-title { color: var(--cc-k); text-decoration: underline; }
.cc-bearing-date { font-size: .78rem; color: var(--cc-soft); white-space: nowrap; }
.cc-bearing-link img { display: block; width: 100%; height: 100%; min-height: 84px; max-height: 108px; object-fit: cover; background: var(--cc-grid); }

/* ---------- 首页后 12 条：2 列右图带摘要海图卡（6 行 × 2 列） ---------- */
.cc-atlas-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cc-dispatch { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.cc-dispatch-link { display: grid; grid-template-columns: minmax(0, 1fr) 185px; gap: 16px; align-items: stretch; padding: 14px; background: var(--cc-sheet); border: 1px solid var(--cc-navy); border-top: 3px solid var(--cc-k); box-shadow: 0 2px 6px rgba(16, 35, 54, .05); }
.cc-dispatch-copy { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; gap: 7px; min-width: 0; }
.cc-dispatch-title { font-family: var(--cc-display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.cc-dispatch-link:hover .cc-dispatch-title { color: var(--cc-k); text-decoration: underline; }
.cc-dispatch-excerpt { font-size: .88rem; color: var(--cc-soft); line-height: 1.48; }
.cc-dispatch-link img { display: block; width: 100%; height: 100%; min-height: 122px; max-height: 158px; object-fit: cover; background: var(--cc-grid); }

/* ---------- 通用小图版卡（用于详情页右侧相关阅读栏） ---------- */
.cc-plate { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.cc-plate-link { display: grid; background: var(--cc-sheet); border: 1px solid var(--cc-navy); padding: 5px; }
.cc-plate-frame { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 9px; border: 1px solid var(--cc-grid); border-top: 3px solid var(--cc-k); }
.cc-plate-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cc-grid); }
.cc-plate-title { font-weight: 700; font-size: .96rem; line-height: 1.32; }
.cc-plate-link:hover .cc-plate-title { color: var(--cc-k); text-decoration: underline; }

/* ---------- 分类页：单列日期栏 + 摘要 + 右图航海日志表 ---------- */
.cc-cat-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cc-log-row { min-width: 0; }
.cc-log-card { display: grid; grid-template-columns: 112px minmax(0, 1fr) 190px; align-items: stretch; background: var(--cc-sheet); border: 1px solid var(--cc-navy); }
.cc-log-col-date { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 12px 14px; background: #f3f7fb; border-right: 2px solid var(--cc-k); font-size: .78rem; color: var(--cc-soft); }
.cc-log-id { font-weight: 700; letter-spacing: .06em; color: var(--cc-navy); white-space: nowrap; }
.cc-log-col-date time { white-space: nowrap; }
.cc-log-copy { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 6px; padding: 14px 18px; min-width: 0; }
.cc-log-title { font-family: var(--cc-display); font-weight: 700; font-size: 1.18rem; line-height: 1.26; }
.cc-log-card:hover .cc-log-title { color: var(--cc-k); text-decoration: underline; }
.cc-log-excerpt { font-size: .92rem; color: var(--cc-soft); line-height: 1.48; }
.cc-log-card img { display: block; width: 100%; height: 100%; min-height: 118px; max-height: 146px; object-fit: cover; border-left: 1px solid var(--cc-grid); background: var(--cc-grid); }
.cc-cat-list > .cc-ad { list-style: none; }
.cc-cat-list > .cc-ad:not(:has(.ad)) { display: none; }

/* ---------- 分类索引：海区图册 ---------- */
.cc-atlas { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.cc-atlas-cell { min-width: 0; }
.cc-sector-plate { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 10px; height: 100%; padding: 16px; background: var(--cc-sheet); border: 1px solid var(--cc-navy); border-top: 5px solid var(--cc-k); }
.cc-sector-top { display: flex; align-items: center; gap: 10px; }
.cc-sector-name { font-family: var(--cc-display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.cc-sector-plate:hover .cc-sector-name { color: var(--cc-k); text-decoration: underline; }
.cc-sector-desc { font-size: .9rem; color: var(--cc-soft); line-height: 1.45; }

/* ---------- 广告壳 ---------- */
.cc-ad:has(.ad) { margin: 24px 0; }
.cc-ad:has(.ad) .ad { min-height: 250px; margin: 0 !important; }

/* ---------- 单行紧凑海图页脚 ---------- */
.cc-footer { margin-top: 56px; background: var(--cc-navy); color: #edf3f8; }
.cc-helm { max-width: 1320px; margin: 0 auto; padding: 24px 24px 96px; }
.cc-helm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(156, 194, 230, .25); }
.cc-helm-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.cc-helm-brand strong { font-family: var(--cc-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; overflow-wrap: anywhere; }
.cc-helm-inline { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.cc-helm-inline a { display: inline-flex; align-items: baseline; gap: 5px; font-weight: 500; font-size: .92rem; color: #edf3f8; white-space: nowrap; }
.cc-helm-inline em { font-style: normal; font-size: .74rem; font-weight: 700; color: #f2c14e; }
.cc-helm-inline a:hover { color: #f2c14e; text-decoration: underline; }
.cc-sounding { margin: 14px 0 0; font-size: .86rem; color: #b5cde3; overflow-wrap: anywhere; }

/* ---------- 共享页面 ---------- */
.theme-compass .site-menu, .theme-compass .site-search, .theme-compass .static-page, .theme-compass .theme-error { --menu-accent: #123456; background: #fff; }

/* ---------- 断点 ---------- */
@media (min-width: 1600px) {
    .cc-wrap, .cc-header-row, .cc-helm { max-width: 1540px; }
}

@media (max-width: 1023px) {
    .cc-bridge-top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .cc-watch-card img { height: auto; aspect-ratio: 21 / 9; }
    .cc-dispatch-link { grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; padding: 12px; }
    .cc-dispatch-excerpt { display: none; }
    .cc-log-card { grid-template-columns: 96px minmax(0, 1fr) 145px; }
}

@media (max-width: 767px) {
    .cc-header-row { min-height: 53px; padding: 0 12px; gap: 10px; }
    .cc-rose { width: 26px; height: 26px; }
    .cc-brand-name { font-size: 1.2rem; }
    .cc-menu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; color: #fff; border: 1px solid #48739c; border-radius: 4px; }
    .cc-wrap { padding: 12px 12px 0; }
    .cc-watch-card { padding: 10px 12px; gap: 8px; }
    .cc-watch-card img { aspect-ratio: 16 / 9; }
    .cc-watch-title { font-size: 1.28rem; }
    .cc-watch-excerpt { display: none; }
    .cc-bearing-link { grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; padding: 8px 10px; }
    .cc-bearing-link img { min-height: 76px; max-height: 96px; }
    .cc-bearing-title { font-size: .95rem; }
    .cc-atlas-2col { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .cc-dispatch-link { grid-template-columns: minmax(0, 1fr) 92px; padding: 10px; }
    .cc-dispatch-link img { min-height: 82px; max-height: 100px; }
    .cc-dispatch-title { font-family: var(--cc-body); font-size: .96rem; }
    .cc-log-card { grid-template-columns: minmax(0, 1fr) 92px; grid-template-rows: auto 1fr; }
    .cc-log-col-date { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; padding: 6px 10px; border-right: 0; border-bottom: 1px solid var(--cc-grid); }
    .cc-log-copy { padding: 8px 10px; }
    .cc-log-title { font-family: var(--cc-body); font-size: .96rem; }
    .cc-log-excerpt { display: none; }
    .cc-log-card img { min-height: 76px; max-height: 96px; }
    .cc-atlas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 767px) {
    .cc-bearings { display: none; }
}
