*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

.parent-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

section {
    width: 100%;
    max-width: 1920px;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Section 2 覆盖层（计数器 + 捐款额） ===== */
.counter-wrap {
    position: relative;
    container-type: inline-size;
}

/* 4 位翻牌数字：对齐 02.png 中的 4 个粉色面板
   （实测 1920×1432：面板 x397-1523 / y424-701，单格 265px，间距 22.3px）
   top 取 29.36%（而非面板上沿 29.609%）是数字的视觉居中补偿：
   flex 居中的行盒基线偏低，按 预览.png 逐像素比对后回补 3.5px */
.counter-digits {
    position: absolute;
    left: 20.677%;
    top: 29.36%;
    width: 58.698%;
    height: 19.413%;
    display: flex;
    gap: 1.163cqw;
    z-index: 2;
}

.counter-digit {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-family: 'Helvetica Neue', Arial, 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 12.35cqw;
    line-height: 1;
}

/* 捐款金额：位于 "ESTIMATED DONATION" 标签正下方并水平居中
   （实测 1920×1432：文字中心 x523，数字字身中心 y1018，字色 #e0437a） */
.donation-digit {
    position: absolute;
    left: 27.24%;
    top: 70.67%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #e0437a;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    font-variant-numeric: lining-nums;
    font-size: 6.47cqw;
    line-height: 1;
    white-space: nowrap;
}

/* ===== 返回主站按钮 ===== */
.back-to-main {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: #e0437a;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-main:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.back-to-main svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}
