body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, 'PingFang SC', "Microsoft YaHei", sans-serif;
    background-color: #f7fdf7;
    padding: 20px;
}
.container {
    max-width: 980px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(76, 175, 80, 0.13);
}
.header {
    padding: 20px 20px 12px 20px;
    border-bottom: 1px solid #c8e6c9;
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
}
.header-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.header h1 {
    font-size: 24px;
    margin-bottom: 2px;
    margin-top: 6px;
    color: white;
    letter-spacing: 1.5px;
}
.file-info {
    font-size: 14px;
    opacity: 0.9;
    color: #e8ffd9;
}
.back-btn {
    background: rgba(255,255,255,.16);
    border: none;
    color: #fff;
    padding: 6px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 6px;
    transition: background .19s;
}
.back-btn:hover {
    background: #43a047;
}
.content {
    padding: 40px;
}
#markdownContent {
    line-height: 1.6;
    color: #1f2937;
}
#markdownContent h1,
#markdownContent h2,
#markdownContent h3,
#markdownContent h4,
#markdownContent h5,
#markdownContent h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #2e7d32;
}
#markdownContent h1 {
    font-size: 2em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #c5e1a5;
}
#markdownContent h2 {
    font-size: 1.5em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #dcedc8;
}
#markdownContent h3 { font-size: 1.25em; }
#markdownContent h4 { font-size: 1em; }
#markdownContent h5 { font-size: 0.875em; }
#markdownContent h6 { font-size: 0.85em; color: #388e3c; }
#markdownContent p {
    margin-bottom: 16px;
}
#markdownContent code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(175, 184, 193, 0.2);
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}
#markdownContent pre {
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f6f8fa;
    border-radius: 6px;
    margin-bottom: 16px;
}
#markdownContent pre code {
    background-color: transparent;
    padding: 0;
}
#markdownContent blockquote {
    padding: 0 1em;
    color: #388e3c;
    border-left: 0.25em solid #66bb6a;
    margin-bottom: 16px;
    background-color: #f1f8e9;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
}
#markdownContent ul,
#markdownContent ol {
    padding-left: 2em;
    margin-bottom: 16px;
}
#markdownContent li {
    margin-bottom: 0.25em;
}
#markdownContent a {
    color: #43a047;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
#markdownContent a:hover {
    border-bottom: 1px solid #43a047;
}
#markdownContent img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
    border: 1px solid #dcedc8;
}
.table-wrapper {
    display: inline-block;
    width: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    border: 1px solid #c5e1a5;
    border-radius: 3px;
    position: relative;
}
.table-wrapper::after {
    content: '← 左右滑动查看更多 →';
    display: none;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
    text-align: center;
    padding: 6px;
    font-size: 12px;
    pointer-events: none;
    z-index: 5;
}
#markdownContent table {
    border-collapse: collapse;
    width: unset;
    margin-bottom: 0;
    display: table;
}
#markdownContent table th,
#markdownContent table td {
    padding: 8px 13px;
    border: 1px solid #c5e1a5;
    white-space: nowrap;
    vertical-align: top;
}
#markdownContent table th:last-child,
#markdownContent table td:last-child {
    white-space: normal;
    min-width: unset;
}
#markdownContent table th {
    font-weight: 600;
    background-color: #e8f5e9;
    color: #2e7d32;
    position: sticky;
    top: 0;
    z-index: 10;
}
#markdownContent table tr:nth-child(2n) {
    background-color: #f1f8e9;
}
#markdownContent table tr:hover {
    background-color: #dcedc8;
}
#markdownContent hr {
    height: 0.25em;
    padding: 0;
    margin: 24px 0;
    background-color: #c5e1a5;
    border: 0;
}
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #388e3c;
}
.spinner {
    border: 3px solid #dcedc8;
    border-top: 3px solid #66bb6a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.error {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 20px;
    margin: 20px;
    color: #dc2626;
}
.error h3 {
    margin-bottom: 10px;
    font-size: 18px;
}
.error p {
    margin-bottom: 10px;
}
.error pre {
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 12px;
    color: #1f2937;
}
.error ol {
    padding-left: 20px;
    margin-top: 10px;
}
.error li {
    margin-bottom: 8px;
}
.reload-btn {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-left: 14px;
    transition: all 0.15s;
}
.reload-btn:hover {
    background: #fff;
    color: #43a047;
}
.reload-btn:active {
    transform: scale(0.95);
}
/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .content {
        padding: 20px;
    }

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

    .header h1 {
        font-size: 20px;
    }

    .back-btn {
        font-size: 14px;
        padding: 5px 14px;
    }

    .table-wrapper {
        box-shadow: inset -15px 0 15px -15px rgba(102, 187, 106, 0.2);
    }
    .table-wrapper::after {
        display: block;
    }
    #markdownContent table th,
    #markdownContent table td {
        padding: 6px 10px;
        font-size: 13px;
    }
    #markdownContent table th:last-child,
    #markdownContent table td:last-child {
        min-width: 0px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .table-wrapper::after {
        display: block;
    }
}
@media print {
    .header {
        display: none;
    }

    .container {
        box-shadow: none;
    }

    body {
        background-color: white;
    }

    .table-wrapper::after {
        display: none;
    }

    #markdownContent table th,
    #markdownContent table td {
        white-space: normal;
    }
}