body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 40px;
    margin-top: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.link-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.link-card h3 {
    margin-top: 0;
    color: #007bff;
}

.link-card p {
    color: #666;
    margin-bottom: 20px;
}

.link-card a {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.link-card a:hover {
    background-color: #0056b3;
}

.features {
    margin-top: 60px;
}

.features h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

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

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 15px;
}

.feature-item h3 {
    color: #333;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #666;
}

/* Dashboard 样式 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

.requests-container {
    margin-top: 30px;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
}

.requests-table th, .requests-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.requests-table th {
    background-color: #f8f9fa;
}

.status-success {
    color: #28a745;
}

.status-error {
    color: #dc3545;
}

.refresh-info {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
    font-size: 14px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination-container button {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.pagination-container button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.pagination-container button:hover:not(:disabled) {
    background-color: #0056b3;
}

.chart-container {
    margin-top: 30px;
    height: 300px;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 文档样式 */
.toc {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.toc ul {
    padding-left: 20px;
}

.toc li {
    margin: 5px 0;
}

.toc a {
    color: #007bff;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

.endpoint {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.method {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    margin-right: 10px;
    font-size: 14px;
}

.get { background-color: #28a745; }
.post { background-color: #007bff; }

.path {
    font-family: monospace;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 16px;
}

.description {
    margin: 15px 0;
}

.parameters {
    margin: 15px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.example {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-x: auto;
}

.note {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}

.response {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-x: auto;
}

.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    border-radius: 4px 4px 0 0;
}

.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 16px;
}

.tab button:hover {
    background-color: #ddd;
}

.tab button.active {
    background-color: #ccc;
}

.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
}