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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
     background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #333;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    margin: 0px;
    box-sizing: border-box;
}

.border {
    border-radius: 10px;
    margin-bottom: 15px;
}

.container {
    width: 100%;
    padding: 20px;
    background-color: #fff;
    /* min-height: 100vh; */
}

.title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.date-section {
    margin-bottom: 20px;
}

.date-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-input-wrapper {
    flex: 1;
}

.date-input {
    width: 100%;
    height: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 16px;
    text-align: center;
    color: #333;
    background-color: #ffff;
    cursor: pointer;
}

.date-input:focus {
    outline: none;
    border-color: #00d4aa;
}

.date-separator {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.search-section {
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    height: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
}

.search-input:focus {
    outline: none;
    border-color: #00d4aa;
}

.button-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.reset-btn, .search-btn {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn {
    background-color: #fff;
    color: #666;
    border: 1px solid #e0e0e0;
}

.reset-btn:active {
    background-color: #f4f4f4;
}

.search-btn {
    background-color: #2575fc;
    color: #fff;
}

.search-btn:active {
    background-color: #00c299;
}

.result-section {
    display: flex;
    justify-content: space-around;
}

.result-item {
    text-align: center;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.result-label {
    font-size: 14px;
    color: #666;
}

/* 日期选择器弹窗样式 */
.date-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.date-picker-overlay.show {
    display: flex;
    align-items: flex-end;
}

.date-picker-modal {
    width: 100%;
    background-color: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.date-picker-overlay.show .date-picker-modal {
    transform: translateY(0);
}

.date-picker-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.date-picker-title {
    font-size: 16px;
    color: #666;
}

.header-separator {
    margin: 0 10px;
}

.date-picker-content {
    display: flex;
    height: 200px;
    margin-bottom: 20px;
}

.picker-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.picker-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.picker-wrapper {
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0) 20%,
            rgba(255, 255, 255, 0) 80%,
            rgba(255, 255, 255, 0.9) 100%);
}

.picker-wrapper::before,
.picker-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
    z-index: 2;
}

.picker-wrapper::before {
    top: 50%;
    transform: translateY(-20px);
}

.picker-wrapper::after {
    top: 50%;
    transform: translateY(20px);
}

.picker-list {
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 80px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.picker-list::-webkit-scrollbar {
    display: none;
}

.picker-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ccc;
    scroll-snap-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.picker-item:hover {
    color: #666;
}

.picker-item.selected {
    color: #333;
    font-weight: 600;
    font-size: 18px;
    transform: scale(1.1);
}

.picker-item.near-selected {
    color: #666;
    font-size: 17px;
}

.date-picker-footer {
    display: flex;
    gap: 15px;
}

.cancel-btn, .confirm-btn {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.cancel-btn {
    background-color: #f0f0f0;
    color: #666;
}

.confirm-btn {
    background-color: #00d4aa;
    color: white;
}

/* 移动端优化 */
@media (max-width: 375px) {
    .container {
        padding: 15px;
    }

    .title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .date-input, .search-input {
        height: 45px;
        font-size: 15px;
    }

    .reset-btn, .search-btn {
        height: 45px;
        font-size: 15px;
    }
}