/* ====== 喝水助手弹框样式 ====== */

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

body {
    background: transparent;
    overflow: hidden;
    user-select: none;
}

.wr-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: wr-scale-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: scale(0.85);
}

@keyframes wr-scale-in {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* -- 顶部渐变区域 -- */
.wr-header {
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
    padding: 28px 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    -webkit-app-region: drag;
}
.wr-header::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.wr-icon {
    font-size: 48px;
    margin-bottom: 8px;
    animation: wr-bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes wr-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.wr-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin: 0;
}

/* -- 内容区域 -- */
.wr-body {
    background: #ffffff;
    padding: 24px;
}

.wr-time-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f5e9 100%);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(67, 206, 162, 0.15);
}
.wr-time-icon {
    font-size: 22px;
}
.wr-time-label {
    font-size: 13px;
    color: #666;
}
.wr-time-value {
    font-size: 22px;
    font-weight: 700;
    color: #185a9d;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.wr-tips {
    list-style: none;
    padding: 0;
    margin: 0 0 4px 0;
}
.wr-tips li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    transition: background 0.2s ease;
}
.wr-tips li:hover {
    background: #f5f5f5;
}
.wr-tips li .wr-tip-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.wr-tips li:last-child {
    margin-bottom: 0;
}

/* -- 底部按钮 -- */
.wr-footer {
    background: #ffffff;
    padding: 0 24px 24px;
    text-align: center;
}
.wr-btn {
    -webkit-app-region: no-drag;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(67, 206, 162, 0.35);
    outline: none;
}
.wr-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(67, 206, 162, 0.5);
}
.wr-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(67, 206, 162, 0.3);
}
.wr-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* -- 倒计时区域 -- */
.wr-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%);
    border: 1px solid rgba(255, 152, 0, 0.15);
}
.wr-countdown-ring {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.wr-countdown-ring svg {
    transform: rotate(-90deg);
    width: 48px;
    height: 48px;
}
.wr-countdown-ring .wr-ring-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 4;
}
.wr-countdown-ring .wr-ring-progress {
    fill: none;
    stroke: #ff6b35;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 126;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}
.wr-countdown-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #ff6b35;
}
.wr-countdown-text {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}
.wr-countdown-text strong {
    color: #ff6b35;
    font-weight: 600;
}

/* ====== 关闭动画 ====== */
.wr-container.wr-closing {
    animation: wr-scale-out 0.25s ease forwards;
}
@keyframes wr-scale-out {
    to {
        opacity: 0;
        transform: scale(0.85);
    }
}
