/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

.navbar-container {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1200px;
    height: 60px;
    padding: 0 20px;    
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    padding: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    height: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 15px;
}

.nav-item a { 
    text-decoration: none;
    color: #ffffff;
    padding: 5px 2px;
    font-size: large;
    font-weight: 800;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

.nav-item a.active {
    color: white;
    border-bottom: 2px solid #ffffff;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    display: flex;
    flex: 1;
    margin: 0 auto;
    padding: 0;
}

/* 左侧目录样式 */
.sidebar {
    width: 300px;
    background-color: #ffffff;
    border-right: 1px solid #ddd;
    padding: 20px 0;
    overflow-y: auto;
    position: relative;
    box-sizing: border-box;             
}
.sidebar-header {
    padding: 15px 0;
    border-bottom: 1px solid #e1e4e8;
    margin-bottom: 0px;
}

.sidebar-header h2 {
    font-size: 1.5em;
    color: #0055D2;
    padding-left: 15px;
}

.details {
    margin: 0px;
    padding-left: 0px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}
.summary {
    display: block;
    margin: 0px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 30px;
    cursor: pointer;
    list-style: none;
    color: #333;
    text-decoration: none;            
    transition: all 0.2s;
    font-weight: 500;
    position: relative;        
}

.summary:hover {
    color: #0055D2;
    background-color: #f0f0f0;
}

.summary:only-child::before {
    display: none;
}

.summary-ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.summary-li {
    margin: 0px;
    padding: 10px 10px 10px 20px;
    text-decoration: none;
    color: #333;
    display: block;
    font-size: 0.9em;
    transition: all 0.2s;
}

.summary-li:hover {
    color: #0055D2;
    background-color: #f0f0f0;
}

.summary-li.active {
    background-color: #0054d2c7;
    color: white;
    font-weight: normal;
}

.summary::before {
    content: '⟩';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.details[open] .summary::before {
    transform: translateY(-50%) rotate(90deg);
}

/* 右侧内容区域样式 */
.main-content {
    width: 900px;
    padding: 30px;
    background-color: white;
    box-sizing: border-box; 
}

.content-section {
    margin: 0 auto;
}

.content-section h1 {
    color: #0055D2;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0055D2;
}

.content-section h2 {
    color: #0055D2;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section h3 {
    color: #0055D2;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section h4 {
    color: #0055D2;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section h5 {
    color: #0055D2;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.content-section p a {
    color: #0055D2; 
}


.content-section ul, 
.content-section ol {
    margin-left: 1em;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.content-section li a {
    color: #0055D2; 
}

.content-section code {
    background-color: #f0f0f0;
    border-radius: 3px;
    padding: 2px 4px;
    font-family: monospace;
}

.img-block {
    display: block;
    max-width: 100%;
    text-align: center;
    margin: 20px 0;
    padding-top: 5px;
    padding-bottom: 5px;
}

.img-block img {
    width: auto;
    height: auto;
    border: 1px solid #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0);
}

.code-block {
    background: #333;
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    font-family: monospace;
    overflow-x: auto;
    margin: 8px 0px;
    white-space: pre;
}

.summary { 
    padding-top: 10px;
    padding-bottom: 10px;
}

.proxy-summay {
    padding-top: 5px;
    padding-bottom: 5px;
}

.note {
    background-color: #0066e22b;
    border-left: 4px solid #0067E2;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.tip {
    background-color: #257a3529;
    border-left: 4px solid #257A35;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.caution {
    background-color: #d42f2f2b;
    border-left: 4px solid #D42F30;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.warning {
    background-color: #945e1825;
    border-left: 4px solid #945E18;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.message {
    background-color: #353c431c;
    border-left: 4px solid #353C43;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.important {
    background-color: #7a50dc21;
    border-left: 4px solid #7950DC;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.table-block {
    display: flex;
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #f5f5f5;
}

tr:hover {
    background-color: #f9f9f9;
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
    margin-top: auto;
}