/* ========================================
   在线密码生成器 - 002mima.css
   Apple风格 + 网站紫色主题融合版
   ======================================== */

/* 全局重置 */
body, html {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ========================================
   工具页面通用顶部底部样式
   所有工具页面共用
   ======================================== */

/* 顶部导航 */
.tool-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tool-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tool-logo {
    display: flex;
    align-items: center;
}

.tool-logo-img {
    height: 32px;
    width: auto;
}

.tool-page-title-link {
    flex: 1;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.tool-page-title-link:hover {
    opacity: 0.8;
}

.tool-page-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tool-page-title::before {
    content: '✦';
    font-size: 14px;
    color: #6d55fe;
    opacity: 0.6;
}

.tool-page-title::after {
    content: '✦';
    font-size: 14px;
    color: #6d55fe;
    opacity: 0.6;
}

.tool-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: rgba(109, 85, 254, 0.08);
    color: #6d55fe;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-back-btn:hover {
    background: rgba(109, 85, 254, 0.15);
    transform: scale(0.98);
}

/* 底部 */
.tool-footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    padding: 0;
    margin-top: auto;
}

.tool-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
    text-align: center;
}

.tool-copyright {
    font-size: 13px;
    color: #8E8E93;
    margin: 0;
}

.tool-copyright a {
    color: #6d55fe;
    text-decoration: none;
    margin: 0 8px;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-copyright a:hover {
    opacity: 0.7;
}

/* 响应式 - 顶部底部 */
@media (max-width: 768px) {
    .tool-header-inner {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .tool-logo-img {
        height: 28px;
    }
    
    .tool-page-title {
        font-size: 16px;
        gap: 6px;
    }
    
    .tool-page-title::before,
    .tool-page-title::after {
        font-size: 12px;
    }
    
    .tool-back-btn {
        padding: 6px 12px;
    }
    
    .tool-back-btn span {
        display: none;
    }
    
    .tool-footer-inner {
        padding: 20px 16px;
    }
}

/* ========================================
   密码生成器专用样式
   ======================================== */

:root {
    --brand-purple: #6d55fe;
    --brand-purple-light: #8572ff;
    --brand-purple-dark: #5a45d8;
    --apple-gray: #8E8E93;
    --apple-light-gray: #F2F2F7;
    --apple-border: rgba(0, 0, 0, 0.08);
    --apple-shadow: rgba(109, 85, 254, 0.08);
}

/* 主内容区 */
.mima-main {
    min-height: calc(100vh - 120px);
}

.mima-section {
    padding: 24px 0 40px;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f7 100%);
}

.mima-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 密码显示区 - 深色主题核心功能突出设计 */
.mima-result {
    background: linear-gradient(135deg, 
        #2a2440 0%, 
        #1f1a35 50%,
        #2a2440 100%);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    border: 2px solid rgba(109, 85, 254, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(109, 85, 254, 0.2) inset,
                0 4px 8px rgba(0, 0, 0, 0.2),
                0 0 60px rgba(109, 85, 254, 0.15);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.mima-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(109, 85, 254, 0.6) 50%, 
        transparent 100%);
}

.mima-result::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(109, 85, 254, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.mima-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.mima-result-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.022em;
    padding-left: 20px;
    position: relative;
    text-shadow: 0 2px 8px rgba(109, 85, 254, 0.5);
}

.mima-result-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    background: linear-gradient(180deg, var(--brand-purple-light) 0%, var(--brand-purple) 100%);
    border-radius: 3px;
    box-shadow: 0 0 16px rgba(109, 85, 254, 0.8), 
                0 0 32px rgba(109, 85, 254, 0.4),
                0 2px 8px rgba(109, 85, 254, 0.6);
}

.mima-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(109, 85, 254, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.strength-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.strength-bar {
    width: 100px;
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    box-shadow: 0 0 12px currentColor;
}

.strength-text {
    font-size: 13px;
    font-weight: 600;
    min-width: 36px;
    color: #fff;
}

.mima-result-box {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
}

.mima-output {
    flex: 1;
    padding: 16px 18px;
    font-size: 17px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    border: 2px solid rgba(109, 85, 254, 0.4);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(109, 85, 254, 0.2),
                0 0 0 1px rgba(109, 85, 254, 0.1);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mima-output:focus {
    outline: none;
    border-color: var(--brand-purple-light);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 5px rgba(109, 85, 254, 0.3), 
                0 6px 16px rgba(109, 85, 254, 0.3),
                inset 0 1px 0 rgba(109, 85, 254, 0.3),
                0 0 30px rgba(109, 85, 254, 0.2);
    transform: translateY(-2px) scale(1.01);
}

.mima-output::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

/* 操作按钮组 */
.mima-actions-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mima-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 110px;
    letter-spacing: -0.022em;
}

.mima-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(0.98);
}

.mima-btn:active {
    transform: scale(0.95);
}

.mima-btn.primary {
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(109, 85, 254, 0.4);
}

.mima-btn.primary:hover {
    background: linear-gradient(135deg, var(--brand-purple-light) 0%, #9d8dff 100%);
    box-shadow: 0 6px 16px rgba(109, 85, 254, 0.5);
}

/* 两列布局容器 */
.mima-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
    transition: none; /* 禁用过渡，避免布局闪烁 */
}

/* 密码设置区 */
.mima-settings {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 16px;
    padding: 20px;
    border: 0.5px solid var(--apple-border);
    box-shadow: 0 4px 16px var(--apple-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mima-settings.collapsed .mima-setting-item {
    display: none;
}

.mima-settings.collapsed {
    padding: 14px 20px;
}

.mima-settings-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px;
    letter-spacing: -0.022em;
    padding-left: 12px;
    position: relative;
}

.mima-settings-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    border-radius: 2px;
}

.mima-setting-item {
    margin-bottom: 16px;
}

.mima-setting-item:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 8px;
    letter-spacing: -0.022em;
}

.setting-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-purple);
}

.mima-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--apple-light-gray);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 6px;
}

.mima-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    cursor: pointer;
    border: 0.5px solid rgba(109, 85, 254, 0.2);
    box-shadow: 0 2px 8px rgba(109, 85, 254, 0.2);
}

.mima-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    cursor: pointer;
    border: 0.5px solid rgba(109, 85, 254, 0.2);
    box-shadow: 0 2px 8px rgba(109, 85, 254, 0.2);
}

.setting-hint {
    font-size: 12px;
    color: var(--apple-gray);
}

/* 复选框 */
.mima-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.mima-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mima-checkbox:hover {
    background: rgba(109, 85, 254, 0.05);
}

.mima-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--apple-border);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    background: #fff;
}

.mima-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    border-color: var(--brand-purple);
}

.mima-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.checkbox-label {
    font-size: 13px;
    color: #1d1d1f;
    letter-spacing: -0.022em;
}

.custom-hint {
    font-size: 11px;
    color: var(--apple-gray);
    font-weight: normal;
}

/* 自定义输入框 */
.custom-symbols, .custom-exclude, .custom-insert {
    margin-top: 8px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.custom-symbols {
    background: rgba(109, 85, 254, 0.05);
    border-color: rgba(109, 85, 254, 0.15);
}

.custom-exclude {
    background: rgba(255, 59, 48, 0.05);
    border-color: rgba(255, 59, 48, 0.15);
}

.custom-insert {
    background: rgba(52, 199, 89, 0.05);
    border-color: rgba(52, 199, 89, 0.15);
}

.custom-symbols-label, .custom-exclude-label, .custom-insert-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
}

.custom-symbols-label {
    color: var(--brand-purple);
}

.custom-exclude-label {
    color: #FF3B30;
}

.custom-insert-label {
    color: #34C759;
}

.custom-symbols-label svg, .custom-exclude-label svg, .custom-insert-label svg {
    flex-shrink: 0;
}

.custom-symbols-input, .custom-exclude-input, .custom-insert-input, .custom-insert-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    background: #fff;
    color: #1d1d1f;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-symbols-input:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 4px rgba(109, 85, 254, 0.1);
}

.custom-exclude-input:focus {
    outline: none;
    border-color: #FF3B30;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
}

.custom-insert-input:focus, .custom-insert-select:focus {
    outline: none;
    border-color: #34C759;
    box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.1);
}

.insert-controls {
    display: flex;
    gap: 8px;
}

.custom-insert-input {
    flex: 2;
    min-width: 0;
}

.custom-insert-select {
    flex: 0 0 auto;
    width: 90px;
    cursor: pointer;
}

/* 折叠按钮 */
.mima-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 8px;
    margin-top: 12px;
    background: rgba(109, 85, 254, 0.08);
    border: none;
    border-radius: 8px;
    color: var(--brand-purple);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mima-collapse-btn:hover {
    background: rgba(109, 85, 254, 0.15);
}

.mima-collapse-btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mima-settings.collapsed .mima-collapse-btn svg {
    transform: rotate(180deg);
}

/* 批量生成结果 */
.mima-batch {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 0.5px solid rgba(109, 85, 254, 0.2);
    box-shadow: 0 4px 20px rgba(109, 85, 254, 0.12);
}

/* 显示时的动画 */
.mima-batch.show {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 隐藏时的动画 */
.mima-batch.hide {
    animation: fadeOut 0.3s ease forwards;
}

/* 完全隐藏 - 最高优先级 */
.mima-batch.hidden,
.mima-history.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: none !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
}

.mima-batch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(109, 85, 254, 0.1);
}

.mima-batch-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.022em;
    padding-left: 12px;
    position: relative;
}

.mima-batch-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    border-radius: 2px;
}

.mima-batch-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(109, 85, 254, 0.08);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: var(--brand-purple);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mima-batch-close:hover {
    background: #ff4757;
    color: #fff;
    transform: rotate(90deg);
}

.mima-batch-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
}

.mima-batch-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid rgba(109, 85, 254, 0.15);
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.3s ease;
}

.mima-batch-item:hover {
    border-color: var(--brand-purple);
    box-shadow: 0 2px 8px rgba(109, 85, 254, 0.15);
    transform: translateY(-1px);
}

.mima-batch-password {
    flex: 1;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #1d1d1f;
    word-break: break-all;
    user-select: all;
    line-height: 1.4;
}

.mima-batch-copy {
    padding: 6px 12px;
    background: rgba(109, 85, 254, 0.08);
    border: 1px solid rgba(109, 85, 254, 0.2);
    border-radius: 8px;
    color: var(--brand-purple);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.mima-batch-copy:hover {
    background: var(--brand-purple);
    color: #fff;
    border-color: var(--brand-purple);
}

/* 近期生成记录 */
.mima-history {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 16px;
    padding: 20px;
    border: 0.5px solid var(--apple-border);
    box-shadow: 0 4px 16px var(--apple-shadow);
}

/* 显示时的动画 */
.mima-history.show {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 隐藏时的动画 */
.mima-history.hide {
    animation: fadeOut 0.3s ease forwards;
}

.mima-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(109, 85, 254, 0.1);
}

.mima-history-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.022em;
    padding-left: 12px;
    position: relative;
}

.mima-history-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    border-radius: 2px;
}

.mima-history-clear {
    padding: 6px 12px;
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 8px;
    color: #FF3B30;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mima-history-clear:hover {
    background: #FF3B30;
    color: #fff;
    border-color: #FF3B30;
}

.mima-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mima-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(109, 85, 254, 0.03);
    border: 1px solid rgba(109, 85, 254, 0.1);
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.3s ease;
}

.mima-history-item:hover {
    background: rgba(109, 85, 254, 0.08);
    border-color: rgba(109, 85, 254, 0.2);
}

.mima-history-time {
    font-size: 12px;
    color: var(--apple-gray);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 50px;
}

.mima-history-password {
    flex: 1;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #1d1d1f;
    word-break: break-all;
    user-select: all;
}

.mima-history-copy {
    padding: 5px 10px;
    background: rgba(109, 85, 254, 0.08);
    border: 1px solid rgba(109, 85, 254, 0.15);
    border-radius: 6px;
    color: var(--brand-purple);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.mima-history-copy:hover {
    background: var(--brand-purple);
    color: #fff;
    border-color: var(--brand-purple);
}

/* 功能说明 */
.mima-tips {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 16px;
    padding: 20px;
    border: 0.5px solid var(--apple-border);
    box-shadow: 0 4px 16px var(--apple-shadow);
}

.tips-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
    letter-spacing: -0.022em;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    position: relative;
}

.tips-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    border-radius: 2px;
}

.tips-title::after {
    content: '🔐';
    font-size: 18px;
    margin-left: auto;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.tips-list li {
    position: relative;
    padding: 12px 12px 12px 38px;
    font-size: 13px;
    line-height: 1.5;
    color: #1d1d1f;
    background: rgba(109, 85, 254, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(109, 85, 254, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tips-list li:hover {
    background: rgba(109, 85, 254, 0.05);
    border-color: rgba(109, 85, 254, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(109, 85, 254, 0.08);
}

.tips-list li::before {
    content: '✓';
    position: absolute;
    left: 10px;
    top: 12px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(109, 85, 254, 0.3);
}

.tips-list li strong {
    color: var(--brand-purple);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes buttonPress {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.mima-btn:active {
    animation: buttonPress 0.2s ease;
}

.mima-btn.copied {
    animation: successPulse 0.4s ease;
}

.mima-btn.generating svg {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .mima-section {
        padding: 16px 0 32px;
    }
    
    .mima-container {
        padding: 0 16px;
    }
    
    /* 小屏幕下两列变单列 */
    .mima-two-columns {
        grid-template-columns: 1fr;
    }
    
    .mima-result, .mima-settings, .mima-batch, .mima-history, .mima-tips {
        padding: 16px;
        border-radius: 14px;
    }
    
    .mima-result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mima-actions-group {
        flex-direction: column;
    }
    
    .mima-btn {
        min-width: auto;
    }
    
    .mima-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .mima-batch-list {
        grid-template-columns: 1fr;
    }
    
    .mima-batch-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mima-batch-copy {
        width: 100%;
        text-align: center;
    }
    
    .mima-history-item {
        flex-wrap: wrap;
    }
    
    .mima-history-time {
        width: 100%;
        margin-bottom: 4px;
    }
    
    .tips-list {
        grid-template-columns: 1fr;
    }
}
