* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f7f4 100%);
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏样式 */
.site-header {
    background: white;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 顶部说明横幅样式 */
.banner-section {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f7f4 100%);
    padding: 40px 0px;
    text-align: center;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
}

.banner-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.banner-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.feature-item {
    font-size: 18px;
    color: #5a7a9a;
    font-weight: 500;
}

.feature-divider {
    color: #a0b8c8;
    font-size: 14px;
}

/* 生成综述步骤说明样式 */
.steps-section {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f7f4 100%);
    padding: 10px 0px;
    
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.step-card {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border: 2px solid #e8f0ff;
    border-radius: 16px;
    padding: 20px 0px;
    text-align: center;
    width: 250px;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}



.step-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 14px;
    color: #5a7a9a;
    line-height: 1.5;
}

.step-arrow {
    font-size: 20px;
    color: #193ee1;
    font-weight: 300;
    opacity: 0.6;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 36px;
    width: auto;
}

.site-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.header-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link.active {
    color: #667eea;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
    border-radius: 2px;
}



.nav-link.active {
    color: #667eea;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
    border-radius: 2px;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 390px 790px;
    gap: 20px;
    padding: 20px 0;
    flex: 1;
    width: 100%;
}

/* 左侧输入面板 */
.input-panel {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.panel-header {
    margin-bottom: 25px;
}

.panel-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.input-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 学科选择器样式 */
.subject-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.subject-selector .form-select {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.subject-selector .form-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.subject-selector .form-select:not(:disabled):hover {
    border-color: #667eea;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.required {
    color: #ff4d4f;
}

.label-tip {
    font-size: 16px;
    margin-left: auto;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

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

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

.paper-input-container {
    position: relative;
}

.paper-tip {
    font-size: 18px;
    color: #999;
    margin-top: 6px;
}
.paper-tip a {
    color: #667eea;
    text-decoration: none;
}

.paper-tip a:hover {
    text-decoration: underline;
}

/* 语言选择器 */
.language-selector {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 12px 20px;
    border: 2px solid #e8e8e8;
    background: white;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

/* 模式选择器 */
.mode-selector {
    display: flex;
    gap: 10px;
}

.mode-btn {
    flex: 1;
    padding: 12px 10px;
    border: 2px solid #e8e8e8;
    background: white;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.mode-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.mode-btn.disabled,
.mode-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 提示框 */
.tips-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #d6e4ff;
}

.tips-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.tips-list {
    margin-left: 20px;
    color: #666;
    font-size: 13px;
}

.tips-list li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.tips-list a {
    color: #667eea;
    text-decoration: none;
}

.tips-list a:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-submit.disabled,
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 20px;
}

/* 兑换码弹窗样式 */
.code-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.code-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.code-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

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

.code-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a3a5c;
    margin: 0;
}

.code-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.code-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.code-modal-body {
    padding: 24px;
}

.code-modal-desc {
    font-size: 14px;
    color: #5a7a9a;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.code-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s;
    text-align: center;
}

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

.code-error {
    color: #ff6b6b;
    font-size: 14px;
    margin-bottom: 20px;
    min-height: 20px;
}

.code-wechat {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border-radius: 12px;
    margin-top: 16px;
    border: 1px solid #d6e4ff;
}

.code-wechat-qrcode {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    padding: 4px;
}

.code-wechat-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.code-wechat-text {
    flex: 1;
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.code-wechat-price {
    display: inline-block;
    margin-top: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #ff0000;
}

.code-modal-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e8e8e8;
}

.code-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.code-btn-primary {
    background: #667eea;
    color: white;
}

.code-btn-primary:hover {
    background: #5a6fd6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.code-btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.code-btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* 右侧结果面板 */
.result-panel {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

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

.result-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-label {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.result-time {
    font-size: 13px;
    color: #999;
}

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

.btn-action {
    padding: 10px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-action:hover {
    background: #e8e8e8;
}

.btn-action.disabled,
.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 加载动画 */
.loading-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 14px;
    color: #999;
    margin-bottom: 40px;
}

.loading-steps {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    position: relative;
}

.loading-steps::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e8e8e8;
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e8e8e8;
    transition: all 0.3s;
}

.step-item.active .step-dot {
    background: #667eea;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.step-text {
    font-size: 12px;
    color: #999;
    text-align: center;
    max-width: 100px;
}

.step-item.active .step-text {
    color: #667eea;
    font-weight: 600;
}

/* 结果内容 */
.result-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
}

.result-section-content {
    margin-bottom: 30px;
}

.result-section-content:last-child {
    margin-bottom: 0;
}

.result-section-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.result-section-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px;
}

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

/* 参考文献列表 */
.reference-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reference-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.reference-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

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

/* 错误信息 */
.error-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-card {
    background: #fff1f0;
    border-left: 4px solid #ff4d4f;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    max-width: 600px;
}

.error-icon {
    font-size: 32px;
}

.error-content h3 {
    font-size: 18px;
    color: #ff4d4f;
    margin-bottom: 10px;
}

.error-content p {
    font-size: 14px;
    color: #ff4d4f;
    margin-bottom: 10px;
}

.error-details {
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #ff4d4f;
    max-height: 200px;
    overflow-y: auto;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    
    .input-panel {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .loading-steps {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .loading-steps::before {
        display: none;
    }
    
    .step-item {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
    }
}

/* 页脚样式 */
.site-footer {
    background: white;
    border-top: 1px solid #e8e8e8;
    margin-top: auto;
    padding: 24px 0;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #667eea;
}

/* 响应式设计 */@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .input-panel,
    .result-panel {
        padding: 20px;
    }
    
    .result-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .result-actions {
        flex-wrap: wrap;
    }
    
    .mode-selector {
        flex-direction: column;
    }
    
    .site-header {
        position: static;
    }
    
    .header-container {
        height: auto;
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .header-nav {
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-features {
        flex-direction: column;
        gap: 6px;
    }
    
    .feature-divider {
        display: none;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-card {
        width: 100%;
        max-width: 300px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        font-size: 24px;
    }
    
    .cards-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .card-item {
        width: 100%;
        max-width: 400px;
    }
    
    .app-container {
        grid-template-columns: 1fr;
    }
    
    .input-panel {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* 底部说明卡片样式 */
.bottom-cards-section {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f7f4 100%);
    padding: 20px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card-item {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border: 2px solid #e8f0ff;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    transition: all 0.3s ease;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.card-icon {
    font-size: 56px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 15px;
    color: #5a7a9a;
    line-height: 1.6;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 40px;
    height: 40px;
}

.logo-container a {
    color: white;
    text-decoration: none;
    font-size: 0px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    color: #666;
}

/* 通用区块样式 */
section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

/* 表单样式 */
.config-form,
.input-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #dc3545;
    margin-right: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-tip {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-icon {
    font-size: 18px;
}

/* 请求信息 */
.request-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.request-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.request-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-width: 100px;
}

.request-item code {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #333;
}

.method-badge {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* 加载动画 */
.loading-container {
    text-align: center;
    padding: 40px 20px;
}

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

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

.loading-container p {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.loading-tip {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* 结果展示 */
.result-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.result-header {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 15px;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.response-time {
    font-size: 14px;
    color: #666;
}

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

.result-body {
    background: #282c34;
    padding: 20px;
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.result-body pre {
    margin: 0;
}

.result-body code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #abb2bf;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 结果内容样式 */
.result-section-content {
    margin-bottom: 25px;
}

.result-section-content:last-child {
    margin-bottom: 0;
}

.result-section-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.content-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 参考文献列表 */
.reference-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reference-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.reference-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

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

/* 完整响应 */
.full-response {
    background: #282c34;
    color: #abb2bf;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 错误信息 */
.error-container {
    display: flex;
    justify-content: center;
}

.error-card {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    max-width: 600px;
}

.error-icon {
    font-size: 32px;
}

.error-content h3 {
    font-size: 18px;
    color: #721c24;
    margin-bottom: 10px;
}

.error-content p {
    font-size: 14px;
    color: #721c24;
    margin-bottom: 10px;
}

.error-details {
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #721c24;
}

/* API 文档 */
.docs-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.doc-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.doc-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.doc-card ul {
    margin-left: 20px;
    color: #666;
}

.doc-card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 表格样式 */
.params-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.params-table th,
.params-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.params-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.params-table td {
    color: #666;
}

.params-table code {
    background: #f0f4ff;
    color: #667eea;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-required {
    background: #f8d7da;
    color: #721c24;
}

/* 响应式设计 */

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.section-icon {
    font-size: 28px;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
}

/* 代码展示区 */
.code-container {
    position: relative;
    background: #282c34;
    border-radius: 8px;
    overflow: hidden;
}

.code-container pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-container code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #abb2bf;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copy-icon {
    font-size: 16px;
}

/* 信息卡片 */
.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.info-card p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.info-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.info-item-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.info-item h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.info-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 分析卡片 */
.analysis-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.analysis-card:last-child {
    margin-bottom: 0;
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.analysis-header h3 {
    font-size: 20px;
    color: #333;
}

.code-block {
    background: #282c34;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #abb2bf;
}

.analysis-content {
    color: #666;
    line-height: 1.8;
}

/* 参数列表 */
.param-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.param-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.param-item code {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    min-width: 120px;
}

.param-item span {
    color: #666;
    font-size: 14px;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    margin-bottom: 15px;
}

.config-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.config-table th,
.config-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.config-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.config-table td {
    color: #666;
}

.config-table code {
    background: #f0f4ff;
    color: #667eea;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
}

.config-table tr:hover {
    background: #f8f9fa;
}

/* 警告框 */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.alert strong {
    display: block;
    margin-bottom: 5px;
}

/* 问题卡片 */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.issue-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.issue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.issue-danger {
    border-color: #dc3545;
}

.issue-warning {
    border-color: #ffc107;
}

.issue-info {
    border-color: #17a2b8;
}

.issue-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.issue-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.issue-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.issue-solution {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
}

/* 响应结果 */
.response-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.response-status {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.status-code {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.response-body {
    background: #282c34;
    padding: 20px;
    overflow-x: auto;
}

.response-body pre {
    margin: 0;
}

.response-body code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #abb2bf;
}

.response-analysis {
    padding: 20px;
    background: #f8f9fa;
}

.response-analysis p {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
}

.response-analysis ul {
    margin-left: 20px;
    color: #666;
}

.response-analysis li {
    margin-bottom: 5px;
}

/* 改进建议 */
.improvement-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

/* 总结 */
.summary-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.summary-card > p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
}

.check-icon {
    font-size: 20px;
}

/* 返回链接 */
.back-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.back-link:hover {
    background: #5a6fd6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.back-arrow {
    font-size: 18px;
}

/* 页脚 */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}

.footer p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.footer p:first-child {
    font-weight: 600;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    section {
        padding: 20px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .issues-grid {
        grid-template-columns: 1fr;
    }

    .config-table {
        font-size: 13px;
    }

    .config-table th,
    .config-table td {
        padding: 8px;
    }

    .param-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .param-item code {
        width: 100%;
    }

    .back-links {
        flex-direction: column;
    }

    .back-link {
        width: 100%;
        justify-content: center;
    }
}
