/* 现代化简约样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 2rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(71, 85, 105, 0.08);
    border: 1px solid #e2e8f0;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.subtitle {
    font-size: 1rem;
    color: #64748b;
    font-weight: 400;
}

/* 步骤容器 */
.step-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 单个步骤样式 */
.step {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(71, 85, 105, 0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(71, 85, 105, 0.12);
}

.step-number {
    background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

.step-content {
    flex: 1;
}

.step-content h2 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.step-description {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* 代码块样式 */
.code-block {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.8rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    position: relative;
    margin: 0.8rem 0;
    overflow-x: auto;
}

.code-block code {
    color: #334155;
    background: none;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: linear-gradient(120deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 注意事项样式 */
.note {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* 配置区域样式 */
.config-section {
    margin: 1rem 0;
}

.generate-btn {
    background: linear-gradient(120deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.generate-btn:hover {
    background: linear-gradient(120deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

/* 文件路径样式 */
.file-paths {
    margin-top: 1.2rem;
}

.file-paths h3 {
    color: #1e293b;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.path-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.path-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    backdrop-filter: blur(10px);
}

.path-item strong {
    color: #1e293b;
    margin-right: 0.5rem;
}

.path-item code {
    background: #e2e8f0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #334155;
}

/* 测试步骤样式 */
.test-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.test-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.test-step.important {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.test-number {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.test-step.important .test-number {
    background: #ffc107;
    color: #856404;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #1e293b;
}

#keyInput {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

#keyInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-buttons button:first-child {
    background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-buttons button:first-child:hover {
    background: linear-gradient(120deg, #5a67d8 0%, #6b46c1 100%);
}

.modal-buttons button:last-child {
    background: #e9ecef;
    color: #495057;
}

.modal-buttons button:last-child:hover {
    background: #dee2e6;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

/* macOS 指南样式 */
.mac-guide {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border-left: 3px solid #667eea;
    backdrop-filter: blur(5px);
}

.mac-guide p {
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-size: 0.9rem;
}

.mac-guide ol {
    margin: 0.6rem 0;
    padding-left: 1rem;
}

.mac-guide li {
    margin-bottom: 0.2rem;
    color: #475569;
    font-size: 0.85rem;
}

.mac-guide kbd {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    padding: 0.1rem 0.3rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    color: #334155;
}

.note-small {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* 提示样式 */
.tip {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #1e40af;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .path-list {
        gap: 0.5rem;
    }

    .path-item {
        padding: 0.8rem;
    }

    .test-step {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }

    .modal-buttons {
        flex-direction: column;
    }
}