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

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #eee;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.backLink {
    margin-bottom: 20px;
}

.backLink a {
    color: #64b5f6;
    text-decoration: none;
    font-size: 0.95em;
}

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

.backLink .separator {
    margin: 0 10px;
    color: #666;
}

.mainTitle {
    font-size: 2em;
    color: #fff;
    margin-bottom: 10px;
}

.subtitle {
    color: #aaa;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.section {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.section h2 {
    color: #64b5f6;
    font-size: 1.4em;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(100, 181, 246, 0.3);
    padding-bottom: 10px;
}

.section p {
    color: #ccc;
    margin-bottom: 15px;
}

.featureBox {
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4caf50;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.featureBox h4 {
    color: #81c784;
    margin-bottom: 10px;
}

.featureBox ul {
    list-style: none;
    padding: 0;
}

.featureBox li {
    color: #bbb;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.featureBox li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
}

.infoBox {
    background: rgba(33, 150, 243, 0.1);
    border-left: 3px solid #2196f3;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.infoBox h4 {
    color: #64b5f6;
    margin-bottom: 10px;
}

.infoBox ul {
    list-style: none;
    padding: 0;
}

.infoBox li {
    color: #bbb;
    padding: 5px 0;
}

.infoBox strong {
    color: #fff;
}

.codeBlock {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 0;
    overflow-x: auto;
    margin: 15px 0;
    border: 1px solid #333;
}

.codeBlock pre {
    margin: 0;
    padding: 15px !important;
    font-family: 'Consolas', 'Monaco', 'Fira Code', monospace;
    font-size: 0.9em;
    color: #c9d1d9;
    line-height: 1.5;
    background: transparent !important;
}

.codeBlock code {
    background: transparent !important;
    padding: 0 !important;
    font-size: inherit;
    color: inherit;
}

/* Prism.js 覆盖样式 */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #6a737d !important; }
.token.punctuation { color: #c9d1d9 !important; }
.token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted { color: #f97583 !important; }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #9ecbff !important; }
.token.operator, .token.entity, .token.url { color: #79b8ff !important; }
.token.atrule, .token.attr-value, .token.keyword { color: #f9826c !important; }
.token.function, .token.class-name { color: #b392f0 !important; }
.token.regex, .token.important, .token.variable { color: #ffab70 !important; }

.funcGroup {
    margin-bottom: 30px;
}

.funcGroup h3 {
    color: #90caf9;
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #ff9800;
}

.funcItem {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid #ff9800;
}

.funcSignature {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95em;
    color: #4fc3f7;
    background: rgba(79, 195, 247, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    word-break: break-all;
}

.funcDesc {
    color: #bbb;
    margin: 10px 0;
}

.params {
    margin: 10px 0;
}

.params strong {
    color: #fff;
}

.params ul {
    margin: 5px 0 5px 20px;
    list-style: none;
}

.params li {
    color: #aaa;
    margin: 5px 0;
}

.params li code {
    color: #ce93d8;
    background: rgba(206, 147, 216, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.note, .warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    padding: 10px;
    margin-top: 10px;
    border-radius: 0 4px 4px 0;
    color: #ffc107;
}

.warning {
    background: rgba(244, 67, 54, 0.1);
    border-left-color: #f44336;
    color: #ef5350;
}

.warningList {
    list-style: none;
    padding: 0;
}

.warningList li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #ccc;
}

.warningList li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
}