/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f2f3f7;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== 顶部栏 ===== */
.topbar {
    width: 100%;
    background: linear-gradient(135deg, #3a7afe 0%, #2563eb 100%);
    padding: 56px 20px 32px;
    text-align: center;
    position: relative;
}

.topbar .topbar-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    vertical-align: middle;
}

.topbar .topbar-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.topbar .topbar-sub {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
}

/* ===== 卡片 ===== */
.card {
    background-color: #fff;
    background-image: url("../image/background-blue.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: calc(100% - 32px);
    max-width: 480px;
    margin: -24px auto 0;
    border-radius: 16px;
    padding: 28px 22px 24px;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
    flex: 1;
}

/* ===== 公告标签 ===== */
.notice-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #d93025;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

/* ===== 标题 ===== */
.title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.5;
    margin-bottom: 14px;
}

/* ===== 元信息 ===== */
.meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e5e7eb;
    margin-bottom: 20px;
    font-size: 13px;
    color: #9ca3af;
}

.meta .meta-publisher::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
    margin-right: 6px;
    vertical-align: middle;
}

/* ===== 正文 ===== */
.content {
    font-size: 16px;
    line-height: 1.9;
    color: #4b5563;
}

.greeting {
    margin-bottom: 8px;
}

.body-text {
    text-indent: 2em;
    margin-bottom: 8px;
}

.body-text-no-indent {
    margin-bottom: 8px;
}

.highlight {
    color: #2563eb;
    font-weight: 600;
}

.time-box {
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    margin: 12px 0 12px 2em;
    font-size: 15px;
    color: #1e40af;
    font-weight: 600;
}

.time {
    color: #d93025;
    font-weight: 600;
}

/* ===== 签名 ===== */
.signature {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f2;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.8;
    text-align: left;
}

.signature .company {
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
}

/* ===== 底部按钮 ===== */
.footer {
    width: 100%;
    max-width: 480px;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #eef0f4;
}

.btn-confirm {
    display: block;
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 23px;
    background: linear-gradient(135deg, #3a7afe 0%, #2563eb 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transition: opacity 0.2s, transform 0.1s;
}

.btn-confirm:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* ===== 小屏适配 ===== */
@media (max-width: 360px) {
    .topbar {
        padding: 48px 16px 28px;
    }

    .card {
        padding: 22px 16px 20px;
    }

    .title {
        font-size: 18px;
    }

    .content {
        font-size: 15px;
    }

    .time-box {
        margin-left: 1.5em;
    }
}
