/* ===========================================================
   站点公告面板 - 液态拟物玻璃(源自 @/yetai/styles-yetai.css)
   设计语言取自 yetai 的 .box / .start-btn:
     · 半透明磨砂背景 + backdrop-filter 模糊/饱和
     · 1px 高光描边 + 内外多层白色高光阴影(拟物玻璃厚度)
     · 对角渐变光泽(yetai .box:after 的 45° 白光)→ 玻璃反射感
   作用域限定在 .yt- 前缀,仅用于站点公告面板,不影响其它样式。
   站点为深色"沥青"主题,故面板采用浅色磨砂玻璃 + 橙色高光呼应。
   =========================================================== */

/* ===== 公告面板(显眼位置:导航栏正下方,全站展示) ===== */
.yt-notice {
    position: relative;
    z-index: 60;
    margin: 18px auto 0;
    max-width: 1320px;            /* 与 .wrap 内容宽度对齐 */
    width: calc(100% - 32px);
    padding: 18px 22px;
    border-radius: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: #fff;
    box-sizing: border-box;

    /* 液态拟物玻璃核心 */
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.30);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.32),
        /* yetai 拟物:四角内高光 + 内描边 */
        inset 2px -2px 1px -1px rgba(255, 255, 255, 0.90),
        inset -2px 2px 1px -1px rgba(255, 255, 255, 0.65),
        inset 7px -7px 1px -7px rgba(255, 255, 255, 0.45),
        inset -7px 7px 1px -7px rgba(255, 255, 255, 0.45),
        inset 0 0 2px rgba(0, 0, 0, 0.5);

    overflow: hidden;
    transition: opacity 0.35s ease, max-height 0.35s ease,
                padding 0.35s ease, margin 0.35s ease;
}

/* 对角高光(玻璃反射,来自 yetai .box:after) */
.yt-notice::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.42) 0%,
        transparent 24%,
        transparent 76%,
        rgba(255, 255, 255, 0.30) 100%
    );
    filter: blur(2px);
    pointer-events: none;
}

/* ===== 公告图标(拟物圆底,呼应 yetai .box) ===== */
.yt-notice-icon {
    position: relative;
    z-index: 1;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.55), rgba(255, 107, 0, 0.28));
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        inset 2px -2px 1px -1px rgba(255, 255, 255, 0.85),
        inset -2px 2px 1px -1px rgba(255, 255, 255, 0.5),
        0 4px 12px rgba(255, 107, 0, 0.40);
}
.yt-notice-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.30));
}

/* ===== 公告正文 ===== */
.yt-notice-body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}
.yt-notice-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffd9b0;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.yt-notice-text {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    word-break: break-word;
}
.yt-notice-text p { margin: 0 0 8px; }
.yt-notice-text p:last-child { margin-bottom: 0; }
.yt-notice-text a { color: #7fdfff; text-decoration: underline; }
.yt-notice-text img { max-width: 100%; border-radius: 8px; }

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .yt-notice {
        padding: 14px 16px;
        gap: 12px;
        border-radius: 18px;
    }
    .yt-notice-icon { width: 38px; height: 38px; }
    .yt-notice-icon svg { width: 20px; height: 20px; }
    .yt-notice-title { font-size: 14px; }
    .yt-notice-text { font-size: 13px; }
}
