/* 基础重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 设置根元素字体大小，作为rem基准 */
html {
    font-size: 16px;
}

/* 确保body占满屏幕 */
body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

/* 公告样式 */
.announcement-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    touch-action: manipulation;
}

.popup-content {
    background: white;
    padding: 1.25rem 1.875rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
    max-width: 25rem;
    width: 90%;
    position: relative;
    touch-action: pan-y;
    transform: translateY(-30px);
}

.popup-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.9375rem;
}

.popup-message {
    color: #34495e;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-size: 1rem;
}

.btn-confirm {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
    min-height: 2.5rem;
    width: 100%;
}

.btn-confirm:hover {
    background: #27ae60;
}

.announcement-popup.active {
    display: flex;
}