/**
 * 留白小说助手 - 样式文件
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

main {
    padding: 30px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.info-card h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

.info-card h3 {
    color: #495057;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.status-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.status-box.healthy {
    border-left-color: #28a745;
}

.status-box.error {
    border-left-color: #dc3545;
}

.status-box p {
    margin: 5px 0;
    line-height: 1.6;
}

.status-box strong {
    color: #667eea;
}

.api-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.api-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.api-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.method {
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85em;
    min-width: 60px;
    text-align: center;
    color: white;
}

.method.get {
    background: #28a745;
}

.method.post {
    background: #007bff;
}

.method.put {
    background: #ffc107;
    color: #333;
}

.method.delete {
    background: #dc3545;
}

.api-item code {
    flex: 1;
    background: #f1f3f5;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #495057;
}

.desc {
    color: #6c757d;
    font-size: 0.9em;
}

.quick-start pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 10px;
}

.quick-start code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.6;
}

.links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.link-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    .container {
        border-radius: 12px;
    }

    main {
        padding: 20px;
    }

    .info-card {
        padding: 20px;
    }

    .api-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .links {
        flex-direction: column;
    }

    .link-button {
        width: 100%;
        text-align: center;
    }
}
