/* ActionSheet 时间选择器样式 */
.action-sheet-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    transition: opacity 0.3s;
}

.action-sheet-mask.show {
    display: block;
    animation: maskFadeIn 0.3s;
}

@keyframes maskFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ActionSheet 容器 */
.action-sheet-container {
    position: fixed;
    font-family: 'MiSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.action-sheet-mask.show .action-sheet-container {
    transform: translateY(0);
}

/* 工具栏 */
.action-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 56px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
    background: #ffffff;
}

.action-sheet-btn {
    background: none;
    border: none;
    font-size: 16px;
    padding: 8px 12px;
    cursor: pointer;
    transition: opacity 0.2s;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    touch-action: manipulation;
    position: relative;
    z-index: 10;
}

.action-sheet-btn:active {
    opacity: 0.6;
}

.cancel-btn {
    color: #666;
    flex-shrink: 0;
}

.confirm-btn {
    color: #007AFF !important;  /* 使用iOS风格的蓝色 */
    font-weight: 600;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 日历类型切换 - 滑动开关样式 */
.switch-tabs {
    position: relative;
    display: flex;
    width: 120px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 20px;
    padding: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

/* 滑动背景块 */
.switch-tabs::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 58px;
    height: 36px;
    background: #2D272A;
    border-radius: 18px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* 农历选中时，滑块向右移动 */
.switch-tabs.lunar::before {
    transform: translateX(58px);
}

.switch-tab {
    flex: 1;
    height: 36px;
    line-height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 18px;
    transition: color 0.3s;
    text-align: center;
    user-select: none;
    position: relative;
    z-index: 2;
}

.switch-tab.active {
    color: #F2D89B;
}

/* Picker容器 */
.picker-container {
    flex: 1;
    position: relative;
    background: #ffffff;
    overflow: hidden;
    padding: 20px 0;
}

/* 选中指示器 */
.picker-selection-indicator {
    position: absolute;
    top: 50%;
    left: 16px;
    right: 16px;
    height: 44px;
    transform: translateY(-50%);
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    pointer-events: none;
    z-index: 10;
}

/* 滚轮容器 */
.picker-wheels {
    display: flex;
    height: 220px;
    padding: 0 16px;
    gap: 10px;
    position: relative;
}

/* 单个滚轮 */
.picker-wheel {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* 年份滚轮更宽 */
.picker-wheel[data-type="year"] {
    flex: 1.5;
}

/* 滚轮滚动区域 */
.picker-wheel-scroll {
    height: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
}

.picker-wheel-scroll:active {
    cursor: grabbing;
}

/* 内容容器 */
.picker-wheel-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 88px 0;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

/* 选项样式 */
.picker-item {
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 18px;
    color: #999999;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    overflow: hidden;
}

/* 占位项 */
.picker-item-empty {
    height: 44px;
}

/* 选中的项 */
.picker-item.selected {
    font-weight: 500;
    color: #666;
    transform: scale(1.1);
}

/* 接近选中的项 */
.picker-item.near {
    opacity: 0.6;
    transform: scale(1.05);
}

/* 渐变遮罩 */
.picker-fade-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0) 35%,
        rgba(255, 255, 255, 0) 65%,
        rgba(255, 255, 255, 0.95) 100%
    );
}

/* 农历显示 */
.lunar-info {
    text-align: center;
    padding: 10px 20px;
    background: #fffbf0;
    font-size: 14px;
    color: #8b6914;
    display: none;
}

.lunar-info.show {
    display: block;
}
