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

body {
    background-color: #fcece7;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.hidden {
    display: none !important;
}

.handdrawn-note {
    background: #fdfaf4;
    border-radius: 6px;
    padding: 45px 35px 40px 65px;
    position: relative;
    width: 100%;
    box-shadow: 0 10px 30px rgba(226, 203, 194, 0.45);
}

.washi-tape {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    width: 110px;
    height: 30px;
    background: rgba(255, 143, 158, 0.85);
    clip-path: polygon(0% 10%, 5% 0%, 95% 0%, 100% 12%, 98% 85%, 92% 100%, 7% 95%, 0% 85%);
    z-index: 5;
}

.ring-holes {
    position: absolute;
    left: 22px;
    top: 0;
    width: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 35px 0;
    pointer-events: none; 
    z-index: 2;
}

.ring-holes span {
    width: 15px;
    height: 15px;
    background-color: #fcece7;
    border-radius: 50%;
    box-shadow: inset 1px 1.5px 3px rgba(0,0,0,0.08);
}

.canvas {
    position: relative;
    z-index: 10;
}

.text-line {
    font-size: 32px;
    color: #2b2b2b;
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.highlight-line {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}

.highlight-line::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 4px;
    background: #ff9fb0;
    border-radius: 4px;
    opacity: 0.6;
}

.handdrawn-heart {
    position: absolute;
    right: -55px;
    top: -5px;
    width: 36px;
    height: 36px;
    transform: rotate(5deg);
}

.handdrawn-heart svg {
    fill: #ffb1be;
    stroke: #ff758c;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(1px 1px 0px rgba(255,177,190,0.4));
}

.peek-cat {
    position: absolute;
    right: 5px;
    bottom: 75px;
    width: 65px;
    height: 35px;
    z-index: 1;
}

.cat-head {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 24px;
    background: #fff;
    border: 1.8px solid #2c2c2c;
    border-radius: 25px 25px 0 0;
}

.ear {
    position: absolute;
    top: -7px;
    width: 0;
    height: 0;
    border-style: solid;
}
.ear.left {
    left: 4px;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent #2c2c2c transparent;
    transform: rotate(-15deg);
}
.ear.left::after {
    content: ""; position: absolute; top: 2px; left: -6px; width: 0; height: 0;
    border-style: solid; border-width: 0 0 6px 6px; border-color: transparent transparent #fff transparent;
}
.ear.right {
    right: 4px;
    border-width: 0 8px 8px 0;
    border-color: transparent #2c2c2c transparent transparent;
    transform: rotate(15deg);
}
.ear.right::after {
    content: ""; position: absolute; top: 2px; left: 0px; width: 0; height: 0;
    border-style: solid; border-width: 0 6px 6px 0; border-color: transparent #fff transparent transparent;
}

.cat-head .eye {
    position: absolute;
    top: 9px;
    width: 3.5px;
    height: 3.5px;
    background: #2c2c2c;
    border-radius: 50%;
}
.cat-head .eye.left { left: 14px; }
.cat-head .eye.right { right: 14px; }

.cat-head .nose {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 3px;
    background: #2c2c2c;
    border-radius: 50%;
}

.cat-head .blush {
    position: absolute;
    top: 12px;
    width: 5px;
    height: 3px;
    background: #ffb1be;
    border-radius: 50%;
}
.cat-head .blush.left { left: 7px; }
.cat-head .blush.right { right: 7px; }

.horizon-line {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1.8px;
    background: #2c2c2c;
}

/* ================= 第一页按钮排版 ================= */
.p1-buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 55px;
    position: relative;
    width: 100%;
    height: 48px;
}

.brush-pink-btn {
    width: 140px; 
    height: 48px; 
    background: #ffa1b0;
    color: #2b2b2b;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 25px 35px 20px 30px / 40px 20px 35px 25px;
    box-shadow: 1px 3px 8px rgba(255, 161, 176, 0.35);
    transition: transform 0.1s;
    flex-shrink: 0;
}

.capsule-outline-btn {
    width: 140px; 
    height: 48px; 
    background: transparent;
    color: #4a4a4a;
    border: 1.5px solid #6b6b6b;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    flex-shrink: 0;
}

.brush-pink-btn:active {
    transform: scale(0.95);
}

.capsule-outline-btn.evading {
    position: fixed !important;
    z-index: 9999;
    background: #ffffff;
    width: 140px !important; 
    height: 48px !important;
}

/* ================= 第二、三页底部正常布局大按钮 ================= */
.page-footer-btn {
    width: 100%; 
    height: 48px; 
    background: #ffa1b0;
    color: #2b2b2b;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    box-shadow: 1px 3px 8px rgba(255, 161, 176, 0.35);
    margin-top: 30px;
    transition: transform 0.1s;
}
.page-footer-btn:active {
    transform: scale(0.98);
}

/* ================= 输入项底层公用布局 ================= */
.input-field {
    text-align: left;
    margin-bottom: 20px;
}
.input-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ffa1b0;
    border-radius: 10px;
    font-size: 15px;
    background-color: #fff;
    outline: none;
    color: #2b2b2b;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    border-color: #ff6b81;
    box-shadow: 0 0 5px rgba(255, 107, 129, 0.15);
}

.time-options {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.time-chip {
    flex: 1;
    height: 44px;
    border: 1.5px solid #6b6b6b;
    border-radius: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: #4a4a4a;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s ease;
    user-select: none;
}

.time-chip.selected {
    background: #ffa1b0;
    color: #2b2b2b;
    border-color: transparent;
    font-weight: bold;
    box-shadow: 1px 3px 6px rgba(255, 161, 176, 0.25);
    border-radius: 18px 22px 16px 20px / 25px 15px 22px 18px; 
}

.summary-card {
    background: #fff4f5;
    border: 1.5px dashed #ffa1b0;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
}
.summary-card p {
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
}