/* aod.css — 熄屏显示（AOD / screen-saver）叠层样式
 * 参照 net.arsn.cn 的 screen-saver 视觉与交互：
 *   全屏纯黑、居中两栏（左：品牌/时间/日期/设备；右：数据指标）
 *   点击任意处或按 Esc 退出，0.2s 淡入淡出
 * 由 index.php 与 settings.php 共用，与 js/aod.js 配套。
 */

#npAod {
    position: fixed; inset: 0; z-index: 1000000;
    background: #000;
    color: #f5f5f5;
    display: none;
    overflow: hidden;
    -webkit-user-select: none; user-select: none;
    font-family: var(--np-font, system-ui, -apple-system, "Segoe UI", sans-serif);
    cursor: pointer;
}
#npAod.is-open { display: block; animation: npAodFade .2s ease forwards; }
@keyframes npAodFade { from { opacity: 0; } to { opacity: 1; } }

#npAod .aod-container {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(580px, calc(100vw - 48px));
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 200px;
    align-items: center;
    gap: clamp(28px, 4vw, 48px);
}
#npAod .aod-left { min-width: 0; }
#npAod .aod-brand {
    color: rgba(138, 152, 179, 0.96);
    letter-spacing: .5px;
    font-family: "Bahnschrift", "Arial Narrow", var(--np-font, sans-serif);
    font-size: 26px; font-weight: 400; line-height: 1;
    display: inline-flex; align-items: center; height: 30px;
}
#npAod .aod-time {
    margin-top: 22px;
    font-family: var(--np-font-mono, "Geist Mono", "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace);
    font-size: clamp(44px, 7vw, 80px); font-weight: 750; line-height: 1;
}
#npAod .aod-date { margin-top: 12px; color: rgba(255, 255, 255, 0.68); font-size: 15px; }
#npAod .aod-device {
    margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px;
    color: rgba(255, 255, 255, 0.54); font-size: 12px;
}
#npAod .aod-right { display: grid; gap: 24px; }
#npAod .aod-stat { display: grid; gap: 5px; }
#npAod .aod-stat span { color: rgba(255, 255, 255, 0.52); font-size: 16px; font-weight: 600; }
#npAod .aod-stat strong {
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--np-font-mono, "Geist Mono", "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace);
    font-size: 26px; font-weight: 750; line-height: 1.1; overflow-wrap: anywhere;
}
#npAod .aod-custom {
    position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%);
    text-align: center; font-size: 14px; color: #9fb3cf; max-width: 80vw; overflow-wrap: anywhere;
}
#npAod .aod-hint {
    position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
    font-size: 11px; color: #5d708c;
}

/* 窄屏：两栏堆叠居中 */
@media (max-width: 560px) {
    #npAod .aod-container { grid-template-columns: 1fr; gap: 26px; text-align: center; }
    #npAod .aod-left { text-align: center; }
    #npAod .aod-brand { display: flex; justify-content: center; }
    #npAod .aod-device { justify-content: center; }
    #npAod .aod-right { justify-items: center; gap: 16px; }
}
