/* 看了么 · 网站通知弹窗 · dd_notice.css
 * 视觉沿用站内黑金体系：深色卡片 #1C1C1E / 金色 #E8C37A。
 * 注入位置：template/duoduo/html/public/foot.html
 */

/* 遮罩 + 卡片容器（默认隐藏，由 JS 加 .ddn-on 才显示） */
.ddn-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, .66);
    display: none;
    -webkit-overflow-scrolling: touch;
}

.ddn-mask.ddn-on {
    display: block;
    animation: ddn-fade .18s ease-out;
}

@keyframes ddn-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* 居中卡片 */
.ddn-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 560px;
    max-width: calc(100% - 32px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    background: #1C1C1E;
    border: 1px solid rgba(232, 195, 122, .25);
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .6);
    padding: 22px 24px 18px;
    color: #dfe1e5;
    font-size: 14px;
    line-height: 1.7;
}

.ddn-mask.ddn-on .ddn-box {
    animation: ddn-pop .2s cubic-bezier(.2, .8, .3, 1);
}

@keyframes ddn-pop {
    from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 顶部类型色条：info 金 / warn 橙 / danger 红 */
.ddn-box::before {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    border-radius: 2px;
    background: #E8C37A;
    margin-bottom: 14px;
}

.ddn-box.ddn-warn::before   { background: #E8A33A; }
.ddn-box.ddn-danger::before { background: #E8544A; }

/* 标题 */
.ddn-title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.45;
    color: #E8C37A;
    word-break: break-word;
}

.ddn-box.ddn-warn .ddn-title   { color: #F0B45A; }
.ddn-box.ddn-danger .ddn-title { color: #F0706A; }

/* 正文 */
.ddn-body {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.75;
    color: #c3c6cc;
    white-space: pre-wrap;
    word-break: break-word;
}

.ddn-body:empty {
    display: none;
}

/* 按钮行 */
.ddn-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ddn-btn {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    padding: 0 26px;
    border-radius: 8px;
    border: 1px solid #E8C37A;
    background: #E8C37A;
    color: #1A1408;
    font-size: 14px;
    font-weight: 650;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: filter .15s;
}

.ddn-btn:hover {
    filter: brightness(1.08);
}

.ddn-btn.ddn-btn-ghost {
    background: transparent;
    color: #9b9ea5;
    border-color: #31353c;
}

.ddn-btn.ddn-btn-ghost:hover {
    color: #dfe1e5;
    border-color: #4a4f58;
}

/* 移动端 */
@media screen and (max-width: 768px) {
    .ddn-box {
        width: auto;
        left: 16px;
        right: 16px;
        top: auto;
        bottom: 16px;
        transform: none;
        max-width: none;
        max-height: calc(100vh - 32px);
        padding: 20px 18px 16px;
    }

    @keyframes ddn-pop {
        from { opacity: 0; transform: translateY(16px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .ddn-mask.ddn-on .ddn-box {
        animation: ddn-pop .2s cubic-bezier(.2, .8, .3, 1);
    }

    .ddn-title {
        font-size: 16px;
    }

    .ddn-body {
        font-size: 14px;
        line-height: 1.7;
    }

    .ddn-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ddn-btn {
        width: 100%;
        padding: 0 12px;
    }
}
