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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    color: #1f2a44;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.top-nav li {
    margin: 0;
}

.top-nav .nav-link {
    display: inline-block;
    padding: 8px 16px;
    color: #425071;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.top-nav .nav-link:hover {
    background: rgba(124, 156, 255, 0.15);
}

.top-nav .nav-link.active {
    background: linear-gradient(135deg, #7c9cff, #5a7dff);
    color: #fff;
}

.page-content {
    padding-top: 70px;
    padding-bottom: 30px;
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 70px);
}

.time-picker-card {
    width: 100%;
    max-width: 900px;
    padding: 24px 16px 20px;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #f4f7ff);
    box-shadow: 0 8px 32px rgba(26, 39, 68, 0.08);
    text-align: center;
    transition: transform 0.18s ease;
}

.time-header {
    margin-bottom: 16px;
}

.time-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2a44;
    letter-spacing: 0.5px;
}

.time-tip {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #66738f;
    background: #eef3ff;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d8e2ff;
    max-width: 100%;
}

.pull-status {
    margin: 0 auto 18px;
    min-height: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #5c6e91;
    transition: color 0.18s ease;
}

.pull-status.light {
    color: #8ea0c6;
}

.pull-status.ready {
    color: #2f4ea8;
}

.pull-status.warning {
    color: #d08a2f;
}

.pull-status.returning {
    color: #b54747;
}

.pull-status.confirmed {
    color: #2f7a3e;
}

.wheel-picker {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.wheel-group {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-label {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #425071;
    letter-spacing: 1px;
}

.wheel-shell {
    position: relative;
    width: 100%;
    max-width: 120px;
    height: 180px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dbe4f3;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.wheel-highlight {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    height: 52px;
    transform: translateY(-50%);
    border-radius: 12px;
    background: rgba(124, 156, 255, 0.12);
    border: 2px solid rgba(124, 156, 255, 0.25);
    pointer-events: none;
    z-index: 2;
}

.wheel-shell::before,
.wheel-shell::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 45px;
    z-index: 1;
    pointer-events: none;
}

.wheel-shell::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
}

.wheel-shell::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
}

.wheel-column {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 64px 0;
    box-sizing: border-box;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.wheel-column::-webkit-scrollbar {
    display: none;
}

.wheel-column.dragging {
    cursor: grabbing;
}

.wheel-item {
    height: 52px;
    line-height: 52px;
    font-size: 22px;
    font-weight: 600;
    color: #8a93a8;
    text-align: center;
    scroll-snap-align: center;
    transition: all 0.15s ease;
}

.wheel-item.active {
    color: #1d2f5f;
    transform: scale(1.08);
}

.time-result {
    margin: 20px auto 0;
    font-size: 18px;
    font-weight: 600;
    color: #233252;
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, #edf3ff, #f8fbff);
    width: 100%;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(124, 156, 255, 0.12);
}

body.page-pulling .time-picker-card {
    transform: translateY(6px);
}

@media screen and (min-width: 600px) {
    .page-content {
        padding-top: 80px;
        padding-left: 20px;
        padding-right: 20px;
        min-height: calc(100vh - 80px);
    }

    .time-picker-card {
        padding: 36px 28px 30px;
        border-radius: 24px;
    }

    .time-title {
        font-size: 30px;
    }

    .time-tip {
        font-size: 14px;
        padding: 10px 16px;
    }

    .pull-status {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .wheel-picker {
        gap: 16px;
    }

    .wheel-label {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .wheel-shell {
        max-width: 140px;
        height: 200px;
        border-radius: 20px;
    }

    .wheel-highlight {
        height: 58px;
        border-radius: 14px;
    }

    .wheel-column {
        padding: 71px 0;
    }

    .wheel-item {
        height: 58px;
        line-height: 58px;
        font-size: 26px;
    }

    .time-result {
        margin-top: 26px;
        font-size: 22px;
        padding: 16px 22px;
        border-radius: 16px;
    }
}

@media screen and (min-width: 900px) {
    .time-picker-card {
        padding: 42px 36px 36px;
        border-radius: 28px;
    }

    .time-title {
        font-size: 34px;
    }

    .time-tip {
        font-size: 16px;
        padding: 10px 18px;
    }

    .wheel-picker {
        gap: 28px;
    }

    .wheel-label {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .wheel-shell {
        max-width: 150px;
        height: 220px;
        border-radius: 24px;
    }

    .wheel-highlight {
        height: 64px;
        border-radius: 18px;
    }

    .wheel-column {
        padding: 78px 0;
    }

    .wheel-item {
        height: 64px;
        line-height: 64px;
        font-size: 30px;
    }

    .time-result {
        margin-top: 30px;
        font-size: 24px;
        padding: 18px 24px;
        border-radius: 18px;
        min-width: 340px;
    }
}