/* 屏幕尺寸选择页面样式 - iOS 原生风格 */

/* 页面背景 */
#app-screen-size .settings-scroll {
    background: #f2f2f7;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 快速操作按钮容器 */
.screen-size-quick-actions {
    display: flex;
    gap: 10px;
    margin: 16px 16px 12px;
    padding: 0;
}

/* 快速操作按钮样式 - 轻量化设计 */
.settings-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    color: #007aff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
    font-weight: 500;
}

.settings-action-btn:active {
    transform: scale(0.97);
    background: #f8f8f8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.settings-action-btn-secondary {
    background: #ffffff;
    color: #007aff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.settings-action-btn-secondary:active {
    background: #f8f8f8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.settings-action-btn-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.settings-action-btn-icon svg {
    width: 100%;
    height: 100%;
}

.settings-action-btn-icon .icon-stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.screen-size-list {
    padding: 0;
    margin: 16px 16px 32px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.status-bar-visibility-list {
    margin-bottom: 12px;
}

.status-bar-toggle-detail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 0;
}

.status-bar-state {
    min-width: 32px;
    text-align: right;
    color: var(--ui-text-muted, #8e8e93);
    font-size: 13px;
    font-weight: 500;
}

.status-bar-hide-toggle {
    background: #34c759;
}

.status-bar-hide-toggle.inactive {
    background: #ccc;
}

.screen-size-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.12);
}

.screen-size-option:last-child {
    border-bottom: none;
}

.screen-size-option:active {
    background: rgba(0, 0, 0, 0.04);
}

.screen-size-option.selected {
    background: #ffffff;
}

.screen-size-option.custom {
    background: #ffffff;
}

.screen-size-info {
    flex: 1;
}

.screen-size-name {
    font-size: 17px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 2px;
    letter-spacing: -0.2px;
}

.screen-size-detail {
    font-size: 13px;
    color: #8e8e93;
    letter-spacing: -0.1px;
}

.screen-size-phone-preview {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.phone-preview-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-preview-icon svg {
    width: 18px;
    height: 18px;
    stroke: #3c3c43;
    stroke-opacity: 0.3;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 选中状态的勾选标记 */
.screen-size-option.selected .screen-size-phone-preview {
    display: flex;
}

.screen-size-option.selected .phone-preview-icon svg {
    display: none;
}

.screen-size-option.selected .phone-preview-icon::after {
    content: '✓';
    font-size: 18px;
    font-weight: 600;
    color: #007aff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 自定义尺寸弹窗样式增强 */
#customSizeModal .input-group input[type="number"] {
    font-size: 16px;
    padding: 12px 14px;
}

#customSizeModal .input-group input[type="number"]:focus {
    border-color: #007aff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* 自定义尺寸的右箭头 */
.screen-size-option.custom .cell-arrow {
    font-size: 20px;
    color: #c7c7cc;
    font-weight: 400;
    margin-left: 8px;
}

/* 响应式调整 */
@media (max-width: 400px) {
    .screen-size-option {
        padding: 12px 14px;
    }

    .screen-size-name {
        font-size: 16px;
    }

    .screen-size-detail {
        font-size: 12px;
    }

    .settings-action-btn {
        font-size: 14px;
        gap: 5px;
    }

    .settings-action-btn-icon {
        width: 14px;
        height: 14px;
    }
}

/* Global native style alignment */
#app-screen-size .settings-scroll {
    background: var(--ui-bg, #f5f5f7) !important;
}

.screen-size-list {
    background: var(--ui-surface, #ffffff) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.screen-size-option {
    background: var(--ui-surface, #ffffff) !important;
    border-bottom-color: var(--ui-separator, rgba(60, 60, 67, 0.12)) !important;
}

.settings-action-btn,
.settings-action-btn-secondary {
    color: var(--ui-blue, #2f7dd1) !important;
    background: var(--ui-surface, #ffffff) !important;
    border-color: var(--ui-separator, rgba(60, 60, 67, 0.12)) !important;
    border-radius: var(--ui-radius-sm, 8px) !important;
    box-shadow: none !important;
}
