/**
 * 运动步数修改工具 - 高清字体+精美样式优化版
 * 核心：字体抗锯齿+统一字体系列+优化字重行高+细节美化
 */
/* 全局字体高清化 - 解决模糊核心 */
* {
    -webkit-font-smoothing: antialiased; /* webkit内核抗锯齿 */
    -moz-osx-font-smoothing: grayscale; /* 火狐osx抗锯齿 */
    font-smoothing: antialiased;
    text-rendering: optimizeLegibility; /* 优化字体可读性 */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* 清除外部容器的装饰 */
.steps-modifier-widget::before,
.steps-modifier-widget::after,
.widget::before,
.widget::after,
.sidebar::before,
.sidebar::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}
/* 清除文章内容区的装饰 */
.entry-content::before,
.entry-content::after,
.post-content::before,
.post-content::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}
/* 外层包装器 - 隔离主题干扰 */
.steps-modifier-wrapper {
    position: relative;
    isolation: isolate;
    z-index: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif; /* 通用高清字体家族 */
}
.steps-modifier-wrapper::before,
.steps-modifier-wrapper::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
/* 清除Zibll主题特殊装饰 */
.zib-widget::before,
.zib-widget::after,
.widget-box::before,
.widget-box::after,
.card-body::before,
.card-body::after {
    display: none !important;
    content: none !important;
}
/* 主容器 - 暖色调卡片设计+高清字体 */
.steps-widget {
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
    border-radius: 16px;
    padding: 0;
    margin: 0 auto 15px;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.15);
    border: 2px solid #FFE5E5;
    width: 280px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
/* 彻底移除所有装饰符号 */
.steps-widget::before,
.steps-widget::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
.steps-widget *::before,
.steps-widget *::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
/* 清除可能的背景图标 */
.steps-widget,
.steps-widget * {
    background-image: none !important;
}
/* 只允许特定元素显示伪元素 */
.steps-header::before,
.result-header::before {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* 卡片悬浮效果优化 */
.steps-widget:hover {
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.25);
    transform: translateY(-4px);
    border-color: #FFCACA;
}
/* 顶部横幅 - 暖色渐变+高清文字 */
.steps-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: white;
    padding: 18px 20px;
    text-align: center;
    font-size: 17px;
    font-weight: 600; /* 字重优化，避免过粗模糊 */
    letter-spacing: 0.8px; /* 字间距微调，提升可读性 */
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* 轻阴影，避免文字发虚 */
    line-height: 1.3; /* 行高优化 */
}
/* 内容区 - 暖色背景 */
.steps-content {
    padding: 24px;
    background: linear-gradient(180deg, #FFFAFA 0%, #FFF 100%);
    line-height: 1.5; /* 全局行高统一 */
}
/* 表单组 - 优雅布局 */
.form-group {
    margin-bottom: 20px; /* 间距加大，更透气 */
}
.form-group:last-of-type {
    margin-bottom: 0;
}
/* 表单标签 - 高清文字优化 */
.form-group label {
    display: block;
    font-size: 14px;
    color: #FF5252; /* 颜色加深，提升对比度 */
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    line-height: 1.2;
}
/* 输入框 - 暖色边框+高清文字+焦点优化 */
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #FFD4D4;
    border-radius: 10px;
    background: #FFFAFA;
    font-size: 15px;
    color: #1D1D1D; /* 文字颜色加深，提升对比度 */
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit; /* 继承高清字体系列 */
    line-height: 1.4;
}
.form-group input:focus {
    border-color: #FF6B6B;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
    transform: translateY(-2px);
}
.form-group input::placeholder {
    color: #FFA8A8; /* 占位符颜色加深，避免过淡看不清 */
    font-weight: 400;
    letter-spacing: 0.2px;
}
/* 预设按钮 - 暖色胶囊设计+高清文字 */
.steps-presets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px; /* 间距微调 */
    margin: 20px 0;
}
.preset-btn {
    padding: 10px 8px;
    font-size: 13px;
    border: 2px solid #FF6B6B;
    background: linear-gradient(135deg, #FFF 0%, #FFF5F5 100%);
    color: #FF5252;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600; /* 字重优化 */
    box-shadow: 0 3px 8px rgba(255, 107, 107, 0.15);
    font-family: inherit;
    line-height: 1.2;
    border-radius: 20px; /* 胶囊圆角微调，更精致 */
}
.preset-btn:hover {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.35);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.preset-btn:active {
    transform: translateY(-1px);
}
/* 提交按钮 - 暖色醒目设计+高清文字 */
.steps-submit {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600; /* 字重优化，避免过粗 */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    letter-spacing: 1px;
    margin-top: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* 轻阴影，提升文字清晰度 */
    font-family: inherit;
    line-height: 1.3;
}
.steps-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
    background: linear-gradient(135deg, #FF5252 0%, #FF7676 100%);
}
.steps-submit:active {
    transform: translateY(-2px);
}
/* 结果显示 - 暖色成功卡片+高清文字 */
.steps-result {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE8E0 100%);
    border: 2px solid #FFB8A0; /* 边框变细，更精致 */
    border-radius: 14px;
    animation: slideInUp 0.5s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
}
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 结果标题 - 高清优化 */
.result-header {
    font-size: 16px;
    font-weight: 600;
    color: #FF5252;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
}
/* 结果信息 - 排版优化+高清文字 */
.result-info p {
    font-size: 14px;
    margin: 12px 0;
    color: #1D1D1D; /* 文字加深 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    letter-spacing: 0.2px;
}
.result-info strong {
    color: #FF5252;
    font-weight: 600;
}
.result-info span {
    font-weight: 600;
    color: #FF4747; /* 颜色加深，提升对比度 */
}
/* 加载动画 - 暖色旋转+高清文字 */
.steps-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 250, 250, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(8px);
}
.loading-spinner {
    width: 56px;
    height: 56px;
    border: 5px solid #FFE5E5;
    border-top: 5px solid #FF6B6B;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.steps-loading p {
    margin-top: 18px;
    color: #FF5252; /* 颜色加深 */
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: inherit;
}
/* 提示消息 - 暖色浮动通知+高清文字 */
.steps-notice {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500; /* 字重优化 */
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.25);
    backdrop-filter: blur(12px);
    letter-spacing: 0.3px;
    font-family: inherit;
    line-height: 1.4;
    min-width: 280px;
    text-align: center; /* 文字居中，提升可读性 */
}
.steps-notice.show {
    opacity: 1;
}
.steps-notice.success {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.steps-notice.error {
    background: linear-gradient(135deg, #DC3545 0%, #E74C3C 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.steps-notice.info {
    background: linear-gradient(135deg, #FF9B9B 0%, #FFB3B3 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
/* 暗黑模式适配 - 同步高清字体优化 */
body.dark-mode .steps-widget {
    background: #1f2937;
    border-color: #374151;
}
body.dark-mode .steps-content {
    background: transparent;
}
body.dark-mode .form-group input {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
    caret-color: #FF6B6B;
}
body.dark-mode .form-group input::placeholder {
    color: #9ca3af;
}
body.dark-mode .form-group label {
    color: #f3f4f6;
}
body.dark-mode .steps-result {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-color: #10b981;
}
body.dark-mode .result-info p,
body.dark-mode .result-header {
    color: #d1fae5;
}
body.dark-mode .result-info strong,
body.dark-mode .result-info span {
    color: #10b981;
}
body.dark-mode .preset-btn {
    color: #f3f4f6;
    border-color: #4b5563;
    background: #374151;
}
body.dark-mode .preset-btn:hover {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-color: #10b981;
}
/* 响应式设计 - 移动端适配高清 */
@media (max-width: 768px) {
    .steps-widget {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
        margin: 0 auto 10px;
    }
    .steps-presets {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .steps-content {
        padding: 20px 16px;
    }
    .steps-header {
        font-size: 16px;
        padding: 16px 15px;
    }
    .form-group {
        margin-bottom: 18px;
    }
    .form-group input {
        padding: 13px 15px;
        font-size: 14px;
    }
    .preset-btn {
        padding: 9px 6px;
        font-size: 12px;
    }
    .steps-submit {
        padding: 15px 18px;
        font-size: 15px;
    }
    .steps-result {
        padding: 18px 15px;
    }
    .steps-notice {
        min-width: 260px;
        padding: 12px 20px;
        font-size: 14px;
    }
}
/* 微动画效果 - 保留且优化 */
.form-group {
    animation: fadeInUp 0.3s ease;
    animation-fill-mode: backwards;
}
.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}