/* 全局样式 */
* {
    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: #333;
    background-color: #f5f5f5;
}

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

/* 顶部导航区 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.help-btn {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.help-btn:hover {
    background-color: #2980b9;
}

/* 核心功能区 */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* 维度选择模块 */
.dimension-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.dimension-group {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dimension-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.option-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.option-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.option-item:hover {
    background-color: #f0f0f0;
}

.option-checkbox {
    margin-right: 8px;
    cursor: pointer;
}

.option-checkbox:checked + .option-text {
    color: #3498db;
    font-weight: 500;
}

/* 自定义输入框 */
.custom-input-group {
    margin-top: 15px;
}

.custom-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.custom-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.custom-input::placeholder {
    color: #999;
}

/* 提示词预览区 */
.preview-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.preview-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.reset-btn {
    padding: 6px 12px;
    background-color: #95a5a6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.reset-btn:hover {
    background-color: #7f8c8d;
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.preview-textarea {
    width: 100%;
    height: 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
    resize: none;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.preview-actions {
    display: flex;
    gap: 0;
    margin: 0;
}

.generate-btn, .copy-btn {
    flex: 1;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.generate-btn {
    border-radius: 0 0 0 4px;
}

.copy-btn {
    border-radius: 0 0 4px 0;
}

.generate-btn {
    background-color: #2ecc71;
    color: white;
}

.generate-btn:hover {
    background-color: #27ae60;
}

.copy-btn {
    background-color: #e74c3c;
    color: white;
}

.copy-btn:hover {
    background-color: #c0392b;
}

/* 示例展示区 */
.examples-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.example-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.example-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #3498db;
}

.example-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 快捷连接区 */
.quick-links-section {
    margin-bottom: 40px;
}

.quick-links-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 100px;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #3498db;
}

.quick-link-item i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #3498db;
}

.quick-link-item span {
    font-size: 14px;
    font-weight: 500;
}

/* 底部信息区 */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    color: #7f8c8d;
}

.copyright {
    font-size: 14px;
}

.feedback-btn {
    padding: 8px 16px;
    background-color: transparent;
    color: #3498db;
    border: 1px solid #3498db;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.feedback-btn:hover {
    background-color: #3498db;
    color: white;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
}

.modal-body {
    padding: 20px;
}

.help-steps {
    list-style-position: inside;
}

.help-steps li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 复制成功提示 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    display: none;
    z-index: 1001;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .dimension-section {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}