/* ============================================================
   公告中心 · 前台
   液态玻璃 / 与 Cartoon 主题共用令牌，日夜自适应
   ============================================================ */

/* ---------- 顶部滚动条 ---------- */
.ann-bar {
    position: relative;
    z-index: 210;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    background:
        radial-gradient(120% 180% at 12% -20%, rgba(76, 150, 224, .38), transparent 45%),
        linear-gradient(92deg, #141a24 0%, #1d2735 46%, #131a24 100%);
    color: #f4f7fb;
    box-shadow: 0 8px 26px rgba(12, 18, 28, .16);
}
.ann-bar[hidden] { display: none; }

.ann-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .10), transparent);
    animation: ann-bar-sheen 7s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ann-bar-sheen { 0%, 55% { left: -35%; } 100% { left: 115%; } }

.ann-bar__inner {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 1180px;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    padding: 0 18px;
}

.ann-bar__tag {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #ffd9a0;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .10em;
}
.ann-bar__tag i { font-size: 13px; }

.ann-bar__viewport { position: relative; min-width: 0; flex: 1 1 auto; height: 22px; overflow: hidden; }
.ann-bar__track { display: flex; flex-direction: column; transition: transform .55s cubic-bezier(.22, .8, .24, 1); }
.ann-bar__item {
    display: flex;
    height: 22px;
    align-items: center;
    gap: 9px;
    overflow: hidden;
    color: rgba(244, 247, 251, .92);
    font-size: 12.5px;
    font-weight: 560;
    text-decoration: none;
    white-space: nowrap;
}
.ann-bar__item:hover { color: #fff; }
.ann-bar__item strong { overflow: hidden; font-weight: 720; text-overflow: ellipsis; }
.ann-bar__item time { flex: 0 0 auto; color: rgba(244, 247, 251, .48); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.ann-bar__item .ann-bar__dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: #ffb45c; box-shadow: 0 0 8px rgba(255, 180, 92, .8); }
.ann-bar__item .ann-bar__new { padding: 1px 5px; border-radius: 4px; background: rgba(255, 120, 120, .16); color: #ff9d9d; font-size: 8.5px; font-weight: 850; letter-spacing: .04em; }

.ann-bar__more {
    flex: 0 0 auto;
    color: rgba(244, 247, 251, .62);
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
}
.ann-bar__more:hover { color: #fff; }

.ann-bar__close {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, .06);
    color: rgba(244, 247, 251, .62);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.ann-bar__close:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- 首页公告卡 ---------- */
.ann-home__more {
    margin-left: auto;
    color: var(--uc-ink-dis);
    font-size: 11.5px;
    font-weight: 650;
    text-decoration: none;
    transition: color .15s ease;
}
.ann-home__more:hover { color: var(--uc-primary-deep); }

.ann-home { display: flex; flex-direction: column; gap: 9px; }

.ann-home-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    padding: 13px 15px 13px 17px;
    border: 1px solid var(--glass-border-soft);
    border-radius: 14px;
    background: var(--glass-bg-soft);
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.ann-home-item::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--ann-accent, #4c96e0);
    opacity: .85;
}
.ann-home-item:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--uc-focus-rgb), .30);
    background: var(--glass-bg);
    box-shadow: 0 10px 26px rgba(31, 45, 70, .10);
}
.ann-home-item[data-type="update"] { --ann-accent: #9a6cf0; }
.ann-home-item[data-type="activity"] { --ann-accent: #f0a03c; }
.ann-home-item[data-type="maintenance"] { --ann-accent: #e06a70; }

.ann-home-item__main { min-width: 0; }
.ann-home-item__top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ann-home-item__title {
    overflow: hidden;
    color: var(--uc-ink);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ann-home-item__summary {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    color: var(--uc-ink-med);
    font-size: 11.5px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.ann-home-item__side { flex: 0 0 auto; text-align: right; }
.ann-home-item__date { display: block; color: var(--uc-ink-dis); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.ann-home-item__views { display: block; margin-top: 4px; color: var(--uc-ink-dis); font-size: 9.5px; }

.ann-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 750;
    line-height: 1.5;
    white-space: nowrap;
}
.ann-badge--notice { background: rgba(76, 150, 224, .13); color: #2f79c0; }
.ann-badge--update { background: rgba(154, 108, 240, .14); color: #7d4bd6; }
.ann-badge--activity { background: rgba(240, 160, 60, .15); color: #b06d09; }
.ann-badge--maintenance { background: rgba(224, 106, 112, .14); color: #c2454c; }
.ann-badge--pinned { background: rgba(255, 186, 90, .16); color: #b9791a; }
.ann-badge--level-1 { background: rgba(240, 160, 60, .14); color: #b06d09; }
.ann-badge--level-2 { background: rgba(224, 106, 112, .16); color: #c2454c; }
.ann-badge--new { background: linear-gradient(135deg, #ff7a7a, #e5484d); color: #fff; box-shadow: 0 2px 6px rgba(229, 72, 77, .28); }

/* 深色适配 */
:root[data-theme="dark"] .ann-badge--notice { background: rgba(130, 183, 239, .16); color: #9ccbf5; }
:root[data-theme="dark"] .ann-badge--update { background: rgba(178, 145, 255, .16); color: #c4abff; }
:root[data-theme="dark"] .ann-badge--activity { background: rgba(255, 190, 110, .14); color: #ffce8a; }
:root[data-theme="dark"] .ann-badge--maintenance { background: rgba(255, 140, 145, .14); color: #ff9fa3; }
:root[data-theme="dark"] .ann-badge--pinned { background: rgba(255, 200, 120, .14); color: #ffd08a; }

.ann-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 26px 16px;
    color: var(--uc-ink-dis);
    text-align: center;
}
.ann-empty i { font-size: 26px; opacity: .55; }
.ann-empty strong { margin-top: 8px; color: var(--uc-ink-med); font-size: 12.5px; font-weight: 650; }
.ann-empty small { margin-top: 3px; font-size: 10.5px; }

.ann-skeleton { display: flex; flex-direction: column; gap: 9px; }
.ann-skeleton i {
    display: block;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(100deg, var(--glass-bg-soft) 30%, rgba(var(--uc-focus-rgb), .10) 45%, var(--glass-bg-soft) 60%);
    background-size: 220% 100%;
    animation: ann-shimmer 1.3s ease-in-out infinite;
}
.ann-skeleton i:nth-child(2) { animation-delay: .12s; }
.ann-skeleton i:nth-child(3) { animation-delay: .24s; }
@keyframes ann-shimmer { to { background-position-x: -220%; } }

/* ---------- 公告中心页 ---------- */
.ann-page { position: relative; }

.ann-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 30px 34px;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 86% 12%, rgba(var(--uc-focus-rgb), .18), transparent 32%),
        linear-gradient(125deg, rgba(var(--md-primary-rgb), .07), transparent 48%),
        var(--glass-bg-strong);
    -webkit-backdrop-filter: var(--glass-filter-strong);
    backdrop-filter: var(--glass-filter-strong);
    box-shadow: var(--glass-hi), var(--glass-shadow);
}
.ann-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -90px;
    width: 260px;
    height: 200px;
    border-radius: 50%;
    background: rgba(var(--uc-focus-rgb), .10);
    pointer-events: none;
}
.ann-hero__copy { position: relative; z-index: 1; min-width: 0; }
.ann-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--uc-primary-deep);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .12em;
}
.ann-hero__eyebrow i { font-size: 14px; }
.ann-hero h1 {
    margin: 8px 0 0;
    color: var(--uc-ink);
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, .5);
}
:root[data-theme="dark"] .ann-hero h1 { text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.ann-hero p { margin: 8px 0 0; color: var(--uc-ink-med); font-size: 12.5px; line-height: 1.6; }

.ann-hero__art {
    position: relative;
    z-index: 1;
    display: grid;
    width: 74px;
    height: 74px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(var(--md-primary-rgb), .18);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(var(--md-primary-rgb), .14), rgba(var(--uc-focus-rgb), .06));
    color: var(--uc-focus);
    box-shadow: 0 14px 32px rgba(var(--md-primary-rgb), .14);
    transform: rotate(5deg);
}
.ann-hero__art i { font-size: 34px; }
.ann-hero__art::before {
    content: "";
    position: absolute;
    inset: -14px;
    border: 1px solid rgba(var(--md-primary-rgb), .10);
    border-radius: 50%;
}

.ann-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0 2px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ann-filters::-webkit-scrollbar { display: none; }
.ann-filter {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--glass-border-soft);
    border-radius: 999px;
    background: var(--glass-bg-soft);
    color: var(--uc-ink-med);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.ann-filter:hover { color: var(--uc-primary-deep); border-color: rgba(var(--uc-focus-rgb), .32); transform: translateY(-1px); }
.ann-filter.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--md-primary), var(--uc-primary-deep));
    color: var(--md-on-primary);
    box-shadow: 0 6px 16px rgba(var(--md-primary-rgb), .22);
}
.ann-filter em { padding: 1px 6px; border-radius: 999px; background: rgba(127, 127, 127, .14); font-size: 9.5px; font-style: normal; font-variant-numeric: tabular-nums; }

.ann-list { display: flex; flex-direction: column; gap: 12px; }

.ann-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    overflow: hidden;
    padding: 20px 22px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
    box-shadow: var(--glass-hi), var(--glass-shadow);
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ann-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--uc-focus-rgb), .28);
    box-shadow: var(--glass-hi), var(--glass-shadow-lg);
}
.ann-card::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--ann-accent, #4c96e0);
}
.ann-card[data-type="update"] { --ann-accent: #9a6cf0; }
.ann-card[data-type="activity"] { --ann-accent: #f0a03c; }
.ann-card[data-type="maintenance"] { --ann-accent: #e06a70; }
.ann-card.is-pinned { border-color: rgba(255, 186, 90, .34); }

.ann-card__body { min-width: 0; }
.ann-card__top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ann-card__title {
    margin: 9px 0 0;
    color: var(--uc-ink);
    font-size: 16px;
    font-weight: 760;
    line-height: 1.45;
    letter-spacing: -.1px;
}
.ann-card__summary {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    color: var(--uc-ink-med);
    font-size: 12.5px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.ann-card__meta { display: flex; align-items: center; gap: 12px; margin-top: 11px; color: var(--uc-ink-dis); font-size: 10.5px; }
.ann-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.ann-card__meta i { font-size: 11px; }

.ann-card__side { flex: 0 0 auto; text-align: right; }
.ann-card__arrow {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--glass-border-soft);
    border-radius: 50%;
    background: var(--glass-bg-soft);
    color: var(--uc-ink-dis);
    font-size: 13px;
    transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.ann-card:hover .ann-card__arrow { color: var(--uc-focus); border-color: rgba(var(--uc-focus-rgb), .35); transform: translateX(3px); }

/* ---------- 公告详情 ---------- */
.ann-detail-head {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    padding: 28px 32px;
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 8%, rgba(var(--uc-focus-rgb), .14), transparent 30%),
        var(--glass-bg-strong);
    -webkit-backdrop-filter: var(--glass-filter-strong);
    backdrop-filter: var(--glass-filter-strong);
    box-shadow: var(--glass-hi), var(--glass-shadow);
}
.ann-detail-head__back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
    color: var(--uc-ink-med);
    font-size: 11.5px;
    font-weight: 650;
    text-decoration: none;
}
.ann-detail-head__back:hover { color: var(--uc-primary-deep); }
.ann-detail-head h1 {
    margin: 10px 0 0;
    color: var(--uc-ink);
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.5px;
}
.ann-detail-head__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; color: var(--uc-ink-dis); font-size: 11px; }
.ann-detail-head__meta span { display: inline-flex; align-items: center; gap: 5px; }

.ann-detail-body {
    padding: 30px 34px;
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
    box-shadow: var(--glass-hi), var(--glass-shadow);
    color: var(--uc-ink);
    font-size: 14px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.ann-detail-body > :first-child { margin-top: 0 !important; }
.ann-detail-body > :last-child { margin-bottom: 0 !important; }
.ann-detail-body :is(h1, h2, h3, h4, h5, h6) { margin: 1.5em 0 .6em; color: var(--uc-ink); font-weight: 760; line-height: 1.4; }
.ann-detail-body h1 { font-size: 1.45em; }
.ann-detail-body h2 { font-size: 1.28em; }
.ann-detail-body h3 { font-size: 1.14em; }
.ann-detail-body p { margin: 0 0 1em; }
.ann-detail-body a { color: var(--uc-focus); text-decoration: underline; text-underline-offset: 3px; }
.ann-detail-body img { max-width: 100%; height: auto; margin: 6px 0; border-radius: 14px; box-shadow: 0 6px 20px rgba(31, 45, 70, .10); }
.ann-detail-body blockquote {
    margin: 1.1em 0;
    padding: 12px 16px;
    border-left: 3px solid var(--uc-focus);
    border-radius: 0 12px 12px 0;
    background: rgba(var(--uc-focus-rgb), .06);
    color: var(--uc-ink-med);
}
.ann-detail-body ul, .ann-detail-body ol { margin: 0 0 1em; padding-left: 1.6em; }
.ann-detail-body li { margin: .3em 0; }
.ann-detail-body code { padding: .15em .45em; border-radius: 6px; background: rgba(127, 127, 127, .12); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
.ann-detail-body pre { padding: 14px 16px; overflow-x: auto; border-radius: 12px; background: rgba(20, 26, 36, .06); }
:root[data-theme="dark"] .ann-detail-body pre { background: rgba(255, 255, 255, .05); }
.ann-detail-body pre code { padding: 0; background: none; }
.ann-detail-body table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 13px; }
.ann-detail-body th, .ann-detail-body td { padding: 9px 12px; border: 1px solid rgba(127, 127, 127, .18); text-align: left; }
.ann-detail-body th { background: rgba(127, 127, 127, .06); font-weight: 700; }
.ann-detail-body hr { margin: 1.8em 0; border: 0; border-top: 1px solid rgba(127, 127, 127, .18); }
.ann-detail-body iframe { max-width: 100%; border: 0; border-radius: 12px; }

.ann-detail-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.ann-detail-foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass-bg-soft);
    color: var(--uc-ink-med);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    transition: color .16s ease, border-color .16s ease, transform .16s ease;
}
.ann-detail-foot a:hover { color: var(--uc-primary-deep); border-color: rgba(var(--uc-focus-rgb), .3); transform: translateY(-1px); }

/* ---------- 首访弹窗 ---------- */
.ann-modal {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    visibility: hidden;
    pointer-events: none;
}
.ann-modal.is-open { visibility: visible; pointer-events: auto; }
.ann-modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 24, .5);
    opacity: 0;
    transition: opacity .24s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.ann-modal.is-open .ann-modal__mask { opacity: 1; }

.ann-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(480px, 100%);
    max-height: min(78vh, 620px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 24px;
    background: linear-gradient(158deg, rgba(255, 255, 255, .97), rgba(243, 248, 253, .95));
    -webkit-backdrop-filter: var(--glass-filter-strong);
    backdrop-filter: var(--glass-filter-strong);
    box-shadow: 0 30px 80px rgba(10, 18, 30, .34), inset 0 1px 0 rgba(255, 255, 255, .6);
    opacity: 0;
    transform: translateY(16px) scale(.96);
    transition: opacity .26s ease, transform .3s cubic-bezier(.22, .8, .24, 1);
}
.ann-modal.is-open .ann-modal__panel { opacity: 1; transform: translateY(0) scale(1); }

.ann-modal__glow {
    position: absolute;
    top: -70px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--uc-focus-rgb), .26), transparent 66%);
    pointer-events: none;
}

.ann-modal__head { position: relative; padding: 24px 24px 12px; }
.ann-modal__eyebrow { display: inline-flex; align-items: center; gap: 6px; color: #b9791a; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.ann-modal__eyebrow i { font-size: 13px; }
.ann-modal__head h2 { margin: 8px 0 0; color: var(--uc-ink); font-size: 20px; font-weight: 800; line-height: 1.4; letter-spacing: -.3px; }

.ann-modal__body { flex: 1 1 auto; padding: 6px 24px 18px; overflow-y: auto; color: var(--uc-ink-med); font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.ann-modal__body img { max-width: 100%; border-radius: 12px; }
.ann-modal__body > :first-child { margin-top: 0; }
.ann-modal__body > :last-child { margin-bottom: 0; }
.ann-modal__body :is(h1, h2, h3, h4) { margin: .9em 0 .45em; color: var(--uc-ink); font-weight: 760; line-height: 1.4; }
.ann-modal__body h2 { font-size: 1.12em; }
.ann-modal__body h3 { font-size: 1.02em; }
.ann-modal__body p { margin: 0 0 .8em; }
.ann-modal__body ul, .ann-modal__body ol { margin: 0 0 .9em; padding-left: 1.4em; }
.ann-modal__body li { margin: .2em 0; }
.ann-modal__body a { color: var(--uc-focus); text-decoration: underline; text-underline-offset: 2px; }

:root[data-theme="dark"] .ann-modal__panel {
    border-color: rgba(255, 255, 255, .14);
    background: linear-gradient(158deg, rgba(32, 38, 49, .97), rgba(21, 26, 34, .96));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
}
:root[data-theme="dark"] .ann-modal__ghost { color: var(--uc-ink-med); }

.ann-modal__foot { display: flex; align-items: center; gap: 9px; padding: 14px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--glass-border-soft); }
.ann-modal__ghost {
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--glass-border);
    border-radius: 13px;
    background: transparent;
    color: var(--uc-ink-med);
    font-size: 12.5px;
    font-weight: 650;
    cursor: pointer;
}
.ann-modal__ghost:hover { color: var(--uc-ink); background: var(--glass-bg-soft); }
.ann-modal__cta {
    display: inline-flex;
    height: 42px;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--md-primary), var(--uc-primary-deep));
    color: var(--md-on-primary);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(var(--md-primary-rgb), .24);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}
.ann-modal__cta:hover { color: var(--md-on-primary); transform: translateY(-1px); box-shadow: 0 11px 26px rgba(var(--md-primary-rgb), .3); }
.ann-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: rgba(127, 127, 127, .08);
    color: var(--uc-ink-dis);
    font-size: 13px;
    cursor: pointer;
}
.ann-modal__close:hover { background: rgba(127, 127, 127, .16); color: var(--uc-ink); }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
    .ann-bar__inner { padding: 0 12px; gap: 8px; }
    .ann-bar__tag em { display: none; }
    .ann-bar__item { font-size: 11.5px; }
    .ann-bar__more { display: none; }
    .ann-hero { padding: 22px 20px; border-radius: 20px; }
    .ann-hero__art { width: 54px; height: 54px; border-radius: 17px; }
    .ann-hero__art i { font-size: 26px; }
    .ann-hero__art::before { display: none; }
    .ann-card { grid-template-columns: minmax(0, 1fr); padding: 17px 16px 17px 19px; border-radius: 17px; }
    .ann-card__side { display: none; }
    .ann-card__title { font-size: 14.5px; }
    .ann-detail-head { padding: 22px 20px; border-radius: 19px; }
    .ann-detail-body { padding: 22px 18px; border-radius: 19px; font-size: 13.5px; }
    .ann-home-item { padding: 12px 12px 12px 15px; }
    .ann-home-item__side { display: none; }
    .ann-modal__head { padding: 20px 18px 10px; }
    .ann-modal__body { padding: 4px 18px 14px; }
    .ann-modal__foot { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    .ann-bar::after, .ann-skeleton i { animation: none !important; }
    .ann-card, .ann-home-item, .ann-filter, .ann-modal__panel { transition: none !important; }
}
