:root {
    --primary-color: #1a365d;
    --secondary-color: #2b6cb0;
    --accent-color: #ed8936;
    --text-main: #2d3748;
    --text-muted: #718096;
    --light-bg: #f7fafc;
    --border-color: #aeb8c3;
    --table-header-bg: #1a365d;
    --table-stripe: #edf2f7;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: #fff;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 20px 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 8px;
}

h1 { font-size: 2em; color: var(--primary-color); border-bottom: 3px solid var(--accent-color); padding-bottom: 10px; }
h2 { font-size: 1.5em; color: var(--primary-color); border-left: 5px solid var(--accent-color); padding-left: 15px; margin-top: 1.5em; }
h3 { font-size: 1.2em; color: var(--secondary-color); }

/* ========== 表格样式 ========== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 1.2em 0;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.95em;
    border: 2px solid var(--primary-color) !important;
}

th, td {
    border: 1px solid var(--border-color) !important;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid var(--accent-color) !important;
}
/* ============================ */

/* ========== 图片样式 ========== */
.img-figure {
    margin: 1.5em 0;
    text-align: center;
}

.doc-img {
    display: block !important;
    margin: 0 auto !important;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--light-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 100% !important;
}

.img-landscape {
    width: auto !important;
    max-width: 500px !important;
    height: 260px !important;
    object-fit: contain !important;
}

.img-portrait {
    width: auto !important;
    max-width: 280px !important;
    height: 360px !important;
    object-fit: contain !important;
}

.img-figure figcaption {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-top: 0.6em;
    font-style: italic;
}
/* ============================ */

.meta-info { text-align: center; color: var(--text-muted); font-size: 0.95em; margin-bottom: 2em; }
.meta-info p { margin: 0.3em 0; }
.toc { background: var(--light-bg); padding: 20px 30px; border-radius: 8px; margin: 2em 0; border: 1px solid var(--border-color); }
.toc h3 { border: none; margin-top: 0; }
.toc ul { list-style: none; padding-left: 0; }
.toc li { padding: 4px 0; }
.toc a { color: var(--secondary-color); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.disclaimer { background-color: #fbe9e7; border-left: 5px solid #ff5722; padding: 1.2em; margin: 2em 0; font-size: 0.9em; border-radius: 4px; }
.revision-table th { background-color: #e8eaf6; }

@media screen and (max-width: 768px) {
    .container { padding: 15px; }
    h1 { font-size: 1.6em; }
    h2 { font-size: 1.35em; border-left-width: 4px; padding-left: 10px; }
    body { font-size: 15px; }
    th, td { padding: 8px 10px; font-size: 0.9em; }
    .toc { padding: 15px; }
    .img-landscape { height: 180px !important; }
    .img-portrait { height: 240px !important; }
}