/* 格式转换页面样式 */

.convert-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

/* 页面头部 */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-title i {
    color: #007bff;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* 转换工具列表 */
.convert-tools {
    margin-bottom: 60px;
}

.tool-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.category-title i {
    color: #007bff;
}

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

/* 工具卡片 */
.tool-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #007bff;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    background-color: #e3f2fd;
    transform: scale(1.1);
}

.tool-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.tool-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 工具操作区 */
.tool-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: #007bff;
    background-color: #fff;
}

.convert-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.convert-btn:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
}

.convert-btn:active {
    transform: translateY(0);
}

/* 转换结果区域 */
.result-section {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 60px;
}

.result-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.result-content {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    margin-bottom: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
}

.no-result {
    text-align: center;
    color: #666;
    padding: 40px 0;
}

.loading {
    text-align: center;
    color: #007bff;
    padding: 40px 0;
    font-size: 1.1rem;
}

.error {
    color: #dc3545;
    text-align: center;
    padding: 40px 0;
}

.result-text pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 结果操作区 */
.result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-btn,
.copy-btn,
.clear-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover:not(:disabled) {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

.copy-btn:hover:not(:disabled) {
    background-color: #ffc107;
    color: #333;
    border-color: #ffc107;
}

.clear-btn:hover:not(:disabled) {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.download-btn:disabled,
.copy-btn:disabled,
.clear-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 功能说明区 */
.feature-section {
    margin-bottom: 60px;
}

.feature-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    color: #28a745;
    font-size: 1.2rem;
}

.feature-item span {
    font-size: 1rem;
    color: #333;
}

/* 常见问题 */
.faq-section {
    margin-bottom: 60px;
}

.faq-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.faq-list {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-item {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: #007bff;
}

.faq-answer {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* 评价和反馈 */
.feedback-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.feedback-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* 星级评分 */
.rating-section {
    margin-bottom: 30px;
}

.rating-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.star-rating {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.star-rating i {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.star-rating i:hover,
.star-rating i.active {
    color: #ffc107;
}

.rating-text {
    font-size: 1rem;
    color: #666;
}

/* 评价表单 */
.review-section {
    margin-bottom: 30px;
}

.review-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0069d9;
}

/* 评价列表 */
.reviews-list {
    margin-bottom: 30px;
}

.reviews-list h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.review-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

.review-author {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 0.9rem;
    color: #666;
}

.review-rating {
    margin-bottom: 10px;
}

.review-content {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.no-reviews {
    text-align: center;
    color: #666;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .result-section {
        padding: 20px;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .feedback-section {
        padding: 20px;
    }
}

/* 提示框样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    font-size: 1rem;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}