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

/* 顶部标题区域 */
.header-section {
    text-align: center;
    margin-bottom: 40px;
}

.header-section .header-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.header-section .header-stats .stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-section .header-stats .stat-icon {
    font-size: 16px;
}

.main-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.main-title .highlight {
    color: #1976d2;
}

.description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* 主内容区域 */
.main-content {
	max-width: 1280px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 30px;
}

/* 左侧面板 */
.left-panel {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.config-section {
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

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

.form-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s;
}

.form-select:focus {
    outline: none;
    border-color: #1976d2;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-label:hover {
    border-color: #1976d2;
    background: #f5f9ff;
}

.radio-label input[type="radio"] {
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + .radio-text {
    color: #1976d2;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #1976d2;
    background: #f5f9ff;
}

.radio-text {
    flex: 1;
}

.radio-text strong {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.radio-text small {
    display: block;
    font-size: 13px;
    color: #666;
}

/* 输入区域 */
.input-section {
    margin-top: 30px;
}

.text-input {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s;
}

.text-input:focus {
    outline: none;
    border-color: #1976d2;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.upload-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #1976d2;
    cursor: pointer;
    text-decoration: none;
}

.upload-link:hover {
    text-decoration: underline;
}

.file-hint {
    color: #999;
}

.char-count {
    color: #666;
    font-weight: 500;
}

.polish-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.polish-actions .polish-btn {
    width: 100%;
}

.privacy-notice {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

/* 右侧面板 */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
}

.stats-card .stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.features-card,
.scenarios-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.features-list,
.scenarios-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li,
.scenarios-list li {
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    color: #4caf50;
    font-size: 14px;
}

.scenarios-list li i {
    color: #1976d2;
    font-size: 10px;
}

.polish-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 18px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.polish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.polish-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

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

.result-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.action-btn:hover {
    border-color: #1976d2;
    color: #1976d2;
    background: #f5f9ff;
}

.result-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 加载指示器 */
.loading-indicator {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-indicator p {
    color: #666;
    font-size: 14px;
}

/* 错误提示 */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #c62828;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .stats-card {
        grid-template-columns: repeat(3, 1fr);
    }

    .right-panel {
        order: 2;
        margin-top: 20px;
    }

    .left-panel {
        order: 1;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .header-section .header-stats {
        /*flex-direction: column;*/
        gap: 10px;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .result-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

