/* 全局样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

header h1 {
    color: #155724;
    font-size: 2.5rem;
    font-weight: bold;
}

/* 标签页容器 */
.tab-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

/* 标签按钮 */
.tabs {
    display: flex;
    background-color: #e9ecef;
    padding: 10px 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.tab-btn {
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #e2e6ea;
}

.tab-btn.active {
    background-color: #fff;
    color: #155724;
    border-top: 3px solid #155724;
}

/* 标签内容 */
.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 描述文本 */
.description {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* 输入组 */
.input-group {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 按钮样式 */
.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.primary-btn {
    background-color: #155724;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.primary-btn:hover {
    background-color: #0f4019;
}

.clear-btn {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #ced4da;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.clear-btn:hover {
    background-color: #e2e6ea;
    color: #495057;
}

/* 结果容器 */
.result-container {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.result-container h3 {
    margin-bottom: 15px;
    color: #155724;
    font-size: 1.25rem;
}

.result-content {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    min-height: 150px;
    margin-bottom: 15px;
    white-space: pre-wrap;
    font-size: 1rem;
    line-height: 1.5;
}

.copy-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #5a6268;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #155724;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 1.2rem;
}

/* 页脚 */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .tabs {
        flex-direction: column;
        padding: 0;
    }
    
    .tab-btn {
        border-radius: 0;
        margin-right: 0;
        margin-bottom: 2px;
        text-align: center;
    }
    
    .tab-content {
        padding: 20px 15px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .primary-btn, .clear-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .tab-content {
        padding: 15px 10px;
    }
    
    textarea {
        min-height: 150px;
        padding: 10px;
    }
} 