/* 全局重置与Apple风格基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* 消除点击高亮 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; /* Apple默认字体 */
    max-width: 880px; /* 比原800px更接近Apple设备的内容宽度 */
    margin: 40px auto;
    padding: 0 20px;
    background: #f8f9fa; /* Apple Light模式背景色 */
    color: #1d1d1f; /* Apple主文字色 */
}

.container {
    background: #ffffff; /* 卡片背景 */
    padding: 32px;
    border-radius: 16px; /* Apple常用圆角 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 柔和阴影 */
}

/* 文件上传输入 */
.file-input {
    margin: 20px 0;
    padding: 12px 16px;
    border: 1px solid #e5e7eb; /* 浅灰边框 */
    border-radius: 12px; /* 与整体圆角一致 */
    width: 100%;
    font-size: 14px;
    background: #fafafa; /* 输入框背景 */
}

/* 滑块组件（自定义样式） */
.slider-section {
    margin: 24px 0;
}

.slider-section p {
    font-size: 16px;
    color: #6e6e73; /* 次级文字色 */
    margin-bottom: 8px;
}

.slider-section input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none; /* 补充标准属性 */
    height: 4px;
    background: #e5e7eb; /* 滑块轨道背景 */
    border-radius: 2px;
}

.slider-section input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #007aff; /* Apple系统蓝 */
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* 通用按钮样式（Apple系统按钮） */
.btn {
    background: #007aff; /* 主色 */
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px; /* 与整体圆角一致 */
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    background: #0064d2; /* 悬停加深 */
}

.btn:disabled {
    background: #e5e7eb; /* 禁用状态 */
    color: #9ca3af;
    cursor: not-allowed;
}

/* 按钮组水平排列 */
.button-group {
    display: flex;
    gap: 16px; /* 比原15px更符合Apple间距 */
    margin: 24px 0;
}

/* 单独下载按钮（次级按钮） */
.single-download {
    background: #007aff; /* 与主按钮同色 */
    color: white; /* 文字改为白色 */
    padding: 8px 16px;
    font-size: 14px;
}

.single-download:hover {
    background: #0064d2; /* 悬停加深与主按钮一致 */
}

/* 信息展示区域（原始/修改后） */
.info-section {
    margin: 24px 0;
    padding: 24px;
    background: #fafafa; /* 浅灰背景区分内容块 */
    border-radius: 12px;
}

.info-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #1d1d1f;
}

/* 修改后信息卡（更卡片化） */
.modified-card {
    margin: 12px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03); /* 更浅的阴影 */
}

.modified-card h4 {
    margin: 0 0 12px 0;
    color: #1d1d1f;
    font-size: 16px;
}

.modified-card p {
    color: #6e6e73; /* 次级文字色 */
    margin: 6px 0;
    font-size: 14px;
}

.button-group {
    display: flex;
    gap: 15px; /* 按钮间距 */
    margin: 20px 0;
}

/* 下载按钮初始禁用样式 */
.btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.single-download {
    margin-top: 10px;
    background: #3498db;
}

.single-download:hover {
    background: #2980b9;
}