	:root {
	    --bg-body: #f5f7fa;
	    --bg-card: #ffffff;
	    --bg-header: #ffffff;
	    --bg-sidebar: #ffffff;
	    --bg-footer: #eef2f6;
	    --text-primary: #232323;
	    --text-secondary: #2c3e50;
	    --text-muted: #6b7a8f;
	    --border-color: #e2e8f0;
	    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
	    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
	    --accent: #1e6df2;
	    --accent-hover: #1555c4;
	    --radius: 10px;
	    --transition: 0.25s ease;
	    --list-hover: #f1f4f9;
	    --input-bg: #f1f4f9;
	    --popup-bg: #ffffff;
	    --popup-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	}

	[data-theme="dark"] {
	    --bg-body: #232323;
	    --bg-card: #232323;
	    --bg-header: #232323;
	    --bg-sidebar: #232323;
	    --bg-footer: #0e1629;
	    --text-primary: #eef2f6;
	    --text-secondary: #c9d2e0;
	    --text-muted: #8a9bb5;
	    --border-color: #232323;
	    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
	    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
	    --accent: #4a8af4;
	    --accent-hover: #6ca0f7;
	    --list-hover: #343434;
	    --input-bg: #343434;
	    --popup-bg: #232323;
	    --popup-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
	}

	input:-webkit-autofill,
	input:-webkit-autofill:hover,
	input:-webkit-autofill:focus {
	    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
	    -webkit-text-fill-color: inherit !important;
	    transition: background-color 5000s ease-in-out 0s;
	}


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

	body {
	    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
	    background-color: var(--bg-body);
	    color: var(--text-primary);
	    transition: background-color var(--transition), color var(--transition);
	    line-height: 1.5;
	    min-height: 100vh;
	    padding: 1rem;
	}

	a {
	    text-decoration: none;
	    color: inherit;
	}

	ul {
	    list-style: none;
	}

	.container {
	    max-width: 1400px;
	    margin: 0 auto;
	    display: flex;
	    flex-direction: column;
	    gap: 1.5rem;
	}

	/* ===== 头部 ===== */
	.header {
	    background: var(--bg-header);
	    border-radius: var(--radius);
	    padding: 0.8rem 1.5rem;
	    border: 1px solid var(--border-color);
	    box-shadow: var(--shadow-sm);
	    display: flex;
	    flex-wrap: wrap;
	    align-items: center;
	    justify-content: space-between;
	    transition: background var(--transition), border var(--transition);
	    position: relative;
	}

	.logo-area {
	    display: flex;
	    align-items: center;
	    gap: 0.5rem;
	    font-weight: 600;
	    font-size: 1.2rem;
	}

	.logo-area img {
	    height: 48px;
	    width: auto;
	    display: block;
	}

	.header-right {
	    display: flex;
	    flex-wrap: wrap;
	    align-items: center;
	    gap: 0.8rem 1.2rem;
	}

	.lang-links {
	    display: flex;
	    gap: 0.3rem;
	    align-items: center;
	    background: var(--bg-body);
	    padding: 0.2rem 0.6rem;
	    border-radius: 40px;
	    border: 1px solid var(--border-color);
	}

	.lang-links a {
	    padding: 0.1rem 0.5rem;
	    border-radius: 20px;
	    font-size: 0.8rem;
	    font-weight: 500;
	    color: var(--text-secondary);
	    cursor: pointer;
	    transition: 0.2s;
	    text-decoration: none;
	}

	.lang-links a:hover {
	    background: var(--list-hover);
	}

	.lang-links a.active {
	    background: #009688;
	    color: #fff;
	}

	.lang-links .lang-divider {
	    color: var(--border-color);
	    font-weight: 300;
	}

	.lang-group .lang-divider {
	    color: var(--border-color);
	    font-weight: 300;
	}

	.theme-btn {
	    background: var(--bg-body);
	    border: 1px solid var(--border-color);
	    border-radius: 40px;
	    padding: 0.2rem 0.8rem;
	    font-size: 0.9rem;
	    color: var(--text-secondary);
	    cursor: pointer;
	    transition: 0.2s;
	    display: flex;
	    align-items: center;
	    gap: 4px;
	}

	.theme-btn:hover {
	    background: var(--border-color);
	}


	.mobile-settings-toggle {
	    display: none;
	    background: var(--bg-body);
	    border: 1px solid var(--border-color);
	    border-radius: 40px;
	    padding: 0.2rem 0.7rem;
	    font-size: 1rem;
	    color: var(--text-secondary);
	    cursor: pointer;
	    transition: 0.2s;
	    align-items: center;
	    gap: 4px;
	    flex-shrink: 0;
	}

	.mobile-settings-toggle:hover {
	    background: var(--border-color);
	}


	.mobile-settings-popup {
	    display: none;
	    position: absolute;
	    top: calc(100% + 8px);
	    right: 0;
	    background: var(--popup-bg);
	    border: 1px solid var(--border-color);
	    border-radius: var(--radius);
	    padding: 0.8rem 1rem;
	    box-shadow: var(--popup-shadow);
	    z-index: 100;
	    min-width: 160px;
	    flex-direction: column;
	    gap: 0.6rem;
	}

	.mobile-settings-popup.open {
	    display: flex;
	}

	.mobile-settings-popup .popup-item {
	    display: flex;
	    align-items: center;
	    gap: 0.6rem;
	    font-size: 0.9rem;
	    color: var(--text-secondary);
	    cursor: pointer;
	    padding: 0.2rem 0.4rem;
	    border-radius: 8px;
	    transition: 0.15s;
	}

	.mobile-settings-popup .popup-item:hover {
	    background: var(--list-hover);
	}

	.mobile-settings-popup .popup-item i {
	    width: 1.2rem;
	    color: var(--text-muted);
	}

	.mobile-settings-popup .lang-group {
	    display: flex;
	    gap: 7px;
	    background: var(--bg-body);
	    padding: 0.1rem 0.3rem;
	    border-radius: 10px;
	    border: 1px solid var(--border-color);
	}

	.mobile-settings-popup .lang-group button {
	    background: transparent;
	    border: none;
	    padding: 0.1rem 0.5rem;
	    border-radius: 20px;
	    font-size: 0.8rem;
	    font-weight: 500;
	    color: var(--text-secondary);
	    cursor: pointer;
	    transition: 0.2s;
	}

	.mobile-settings-popup .lang-group button.active {
	    background: var(--accent);
	    color: #fff;
	}


	.main-wrapper {
	    display: flex;
	    gap: 1.5rem;
	    align-items: flex-start;
	}


	.sidebar {
	    width: 100%;
	    flex: 0 0 240px;
	    background: var(--bg-sidebar);
	    border-radius: var(--radius);
	    border: 1px solid var(--border-color);
	    padding: 1.2rem 0.8rem;
	    box-shadow: var(--shadow-sm);
	    transition: background var(--transition), border var(--transition);
	    position: sticky;
	    top: 1rem;
	}

	.sidebar .nav-title {
	    font-weight: 600;
	    color: var(--text-muted);
	    font-size: 0.8rem;
	    letter-spacing: 0.5px;
	    padding: 0 0.8rem 0.6rem;
	    border-bottom: 1px solid var(--border-color);
	    margin-bottom: 0.6rem;
	}

	.sidebar ul li {
	    padding: 0.5rem 0.8rem;
	    border-radius: 10px;
	    cursor: pointer;
	    transition: 0.15s;
	    font-size: 0.95rem;
	    color: var(--text-secondary);
	    display: flex;
	    align-items: center;
	    gap: 8px;
	}

	.sidebar ul li i {
	    width: 1.2rem;
	    color: var(--text-muted);
	}

	.sidebar ul li:hover {
	    background: var(--list-hover);
	}

	.sidebar ul li.active {
	    background: #4CAF50;
	    color: #fff;
	}

	.sidebar ul li.active i {
	    color: #fff;
	}

	.main-content {
	    width: 100%;
	    flex: 1;
	    min-width: 0;
	}

	#search {
	    display: flex;
	    width: 100%;
	    align-items: center;
	    gap: 0.8rem;
	}

	.search-bar {
	    background: var(--bg-card);
	    border-radius: var(--radius);
	    border: 1px solid var(--border-color);
	    padding: 0.6rem 1.2rem;
	    display: flex;
	    align-items: center;
	    gap: 0.8rem;
	    margin-bottom: 1.5rem;
	    transition: background var(--transition), border var(--transition);
	    width: 100%;
	}

	.search-bar i {
	    color: var(--text-muted);
	}

	.search-bar input {
	    flex: 1;
	    border: none;
	    background: transparent;
	    outline: none;
	    font-size: 14px;
	    color: var(--text-primary);
	}

	.search-bar input::placeholder {
	    color: var(--text-muted);
	}

	.search-result-stats {
	    background: var(--bg-card);
	    border-radius: var(--radius);
	    border: 1px solid var(--border-color);
	    padding: 0.8rem 12.8px;
	    margin-bottom: 1.2rem;
	    font-size: 14px;
	    color: var(--text-secondary);
	    box-shadow: var(--shadow-sm);
	    transition: background var(--transition), border var(--transition);
	}

	.search-bar .search-btn {
	    background: #009688;
	    color: #fff;
	    border: none;
	    padding: 0.3rem 1rem;
	    border-radius: 30px;
	    font-size: 0.85rem;
	    cursor: pointer;
	    transition: 0.2s;
	    font-weight: 500;
	}

	.no-result {
	    text-align: center;
	    padding: 3rem 1rem;
	    color: var(--text-muted);
	    font-size: 1rem;
	}

	.no-result i {
	    font-size: 2.5rem;
	    color: var(--border-color);
	    margin-bottom: 0.8rem;
	    display: block;
	}

	.page {
	    display: none;
	    animation: fade 0.2s ease;
	}

	.page.active {
	    display: block;
	}

	@keyframes fade {
	    0% {
	        opacity: 0.5;
	        transform: translateY(4px);
	    }

	    100% {
	        opacity: 1;
	        transform: translateY(0);
	    }
	}

	.home-grid {
	    display: grid;
	    grid-template-columns: 1fr 1fr;
	    gap: 1.5rem;
	}

	@media (max-width: 768px) {
	    .home-grid {
	        grid-template-columns: 1fr;
	    }
	}

	.card-panel {
	    background: var(--bg-card);
	    border-radius: 10px;
	    border: 1px solid var(--border-color);
	    padding: 1.2rem 1.2rem 1.5rem;
	    box-shadow: var(--shadow-sm);
	    transition: background var(--transition), border var(--transition);
	}

	.card-panel .panel-title {
	    font-weight: 600;
	    font-size: 18px;
	    color: var(--text-primary);
	    padding-bottom: 0.5rem;
	    border-bottom: 1px solid var(--border-color);
	    margin-bottom: 0.8rem;
	    display: flex;
	    align-items: center;
	    gap: 6px;
	}

	.card-panel .panel-title i {
	    color: #009688;
	}

	.category-tags {
	    display: flex;
	    flex-wrap: wrap;
	    gap: 0.5rem;
	    margin-bottom: 0.8rem;
	}

	.category-tags span {
	    background: var(--bg-body);
	    padding: 0.2rem 1rem;
	    border-radius: 40px;
	    font-size: 0.8rem;
	    color: var(--text-secondary);
	    border: 1px solid var(--border-color);
	    cursor: pointer;
	    transition: 0.15s;
	}

	.category-tags span:hover {
	    background: var(--accent);
	    color: #fff;
	    border-color: var(--accent);
	}

	.doc-list li,
	.news-list li {
	    padding: 0.6rem 0;
	    border-bottom: 1px solid var(--border-color);
	    cursor: pointer;
	    transition: 0.15s;
	    /* font-size: 0.9rem; */
	    color: var(--text-secondary);
	}

	.doc-list li:last-child,
	.news-list li:last-child {
	    border-bottom: none;
	}

	.doc-list li:hover,
	.news-list li:hover {
	    color: var(--accent);
	}

	.doc-list .doc-title {
	    font-weight: 600;
	}

	.doc-foot {
	    display: flex;
	    flex-wrap: wrap;
	    gap: 0.5rem 1.2rem;
	    font-size: 0.75rem;
	    color: var(--text-muted);
	    margin-top: 0.4rem;
	}

	.doc-foot .tag {
	    background: var(--bg-body);
	    padding: 0.05rem 0.6rem;
	    border-radius: 30px;
	    border: 1px solid var(--border-color);
	}

	.doc-list .doc-meta,
	.news-list .news-meta {
	    display: flex;
	    flex-wrap: wrap;
	    justify-content: space-between;
	    font-size: 14px;
	    color: var(--text-muted);
	    margin-top: 10px;
	}

	.news-list .news-title {
	    font-weight: 600;
	}

	.news-foot {
	    display: flex;
	    flex-wrap: wrap;
	    gap: 0.5rem 1.2rem;
	    font-size: 0.75rem;
	    color: var(--text-muted);
	    margin-top: 0.4rem;
	}

	.news-foot .tag {
	    background: var(--bg-body);
	    padding: 0.05rem 0.6rem;
	    border-radius: 30px;
	    border: 1px solid var(--border-color);
	}


	.list-page .list-item {
	    background: var(--bg-card);
	    border-radius: var(--radius);
	    border: 1px solid var(--border-color);
	    padding: 0.8rem 1.2rem;
	    margin-bottom: 0.8rem;
	    cursor: pointer;
	    transition: background 0.15s, border var(--transition);
	    box-shadow: var(--shadow-sm);
	    display: flex;
	    gap: 1rem;
	    align-items: flex-start;
	}

	.list-page .list-item:hover {
	    background: var(--list-hover);
	}

	.list-page .list-item .item-title {
	    font-weight: 600;
	    padding-bottom: 10px;
	    font-size: 1rem;
	    color: var(--text-primary);
	}

	.list-page .list-item .item-summary {
	    font-size: 0.9rem;
	    color: var(--text-secondary);
	    margin-top: 0.2rem;
	    display: -webkit-box;
	    -webkit-line-clamp: 2;
	    -webkit-box-orient: vertical;
	    overflow: hidden;
	}

	.list-page .list-item .item-meta {
	    display: flex;
	    flex-wrap: wrap;
	    gap: 0.5rem 1.2rem;
	    font-size: 0.75rem;
	    color: var(--text-muted);
	    margin-top: 0.4rem;
	}

	.list-page .list-item .item-meta .tag {
	    background: var(--bg-body);
	    padding: 0.05rem 0.6rem;
	    border-radius: 30px;
	    border: 1px solid var(--border-color);
	}

	.list-page .list-item .item-content {
	    flex: 1;
	    min-width: 0;
	}

	.list-page .list-item .thumb {
	    flex: 0 0 150px;
	    width: 150px;
	    height: 110px;
	    border-radius: 10px;
	    overflow: hidden;
	    background: var(--bg-body);
	    border: 1px solid var(--border-color);
	    display: flex;
	    align-items: center;
	    justify-content: center;
	    color: var(--text-muted);
	    font-size: 2rem;
	    transition: border var(--transition), background var(--transition);
	}

	.list-page .list-item .thumb img {
	    width: 100%;
	    height: 100%;
	    object-fit: cover;
	    display: block;
	}


	.article-page .article-box {
	    background: var(--bg-card);
	    border-radius: var(--radius);
	    border: 1px solid var(--border-color);
	    padding: 1.8rem 2rem;
	    box-shadow: var(--shadow-sm);
	    transition: background var(--transition), border var(--transition);
	}

	.article-page .article-box h1 {
	    font-size: 1.6rem;
	    margin-bottom: 0.3rem;
	}

	.article-page .article-box .subhead {
	    display: flex;
	    flex-wrap: wrap;
	    gap: 0.5rem 1.5rem;
	    font-size: 0.8rem;
	    color: var(--text-muted);
	    border-bottom: 1px solid var(--border-color);
	    padding-bottom: 0.8rem;
	    margin-bottom: 1.2rem;
	}

	.article-page .article-box .content {
	    font-size: 14px;
	    color: var(--text-secondary);
	    line-height: 1.7;
	}

	.article-page .article-box .content img {
	    max-width: 100%;
	}

	.article-page .article-box .content pre {
	    display: block;
	    padding: 9.5px;
	    margin: 0 0 10px;
	    font-size: 13px;
	    line-height: 1.42857143;
	    color: #333;
	    word-break: break-all;
	    word-wrap: break-word;
	    background-color: #f5f5f5;
	    border: 1px solid #ccc;
	    border-radius: 4px;
	    overflow: scroll;
	}

	.article-page .article-box .content p {
	    margin-bottom: 1rem;
	}

	.article-page .article-box .content ul {
	    padding-left: 1.5rem;
	    margin-bottom: 1rem;
	}

	.article-page .article-box .content ul li {
	    list-style: disc;
	    margin-bottom: 0.3rem;
	}

	.article-nav {
	    display: flex;
	    flex-wrap: wrap;
	    justify-content: space-between;
	    margin-top: 2rem;
	    padding-top: 1rem;
	    border-top: 1px solid var(--border-color);
	    gap: 0.8rem;
	}

	.article-nav a {
	    color: #474747;
	    cursor: pointer;
	    font-weight: 500;
	    font-size: 0.9rem;
	    transition: 0.2s;
	}

	.article-nav a:hover {
	    color: var(--accent-hover);
	}

	.article-nav .disabled {
	    color: var(--text-muted);
	    pointer-events: none;
	    opacity: 0.5;
	}

	.pagination {
	    display: flex;
	    flex-wrap: wrap;
	    justify-content: center;
	    gap: 0.4rem;
	    margin-top: 1.5rem;
	}

	.pagination li,
	.page-num {
	    list-style: none;
	    background: var(--bg-card);
	    border: 1px solid var(--border-color);
	    padding: 0.3rem 1rem;
	    border-radius: 30px;
	    color: var(--text-secondary);
	    cursor: pointer;
	    transition: 0.15s;
	    font-size: 0.85rem;
	}

	.page-num.page-num-current {
	    background: #4CAF50;
	    color: #fff;
	    border-color: #4CAF50;
	}

	.pagination button:disabled {
	    opacity: 0.4;
	    cursor: not-allowed;
	}


	.contact-page .contact-grid {
	    display: grid;
	    grid-template-columns: 1fr 1fr;
	    gap: 1.5rem;
	}

	@media (max-width: 768px) {
	    .contact-page .contact-grid {
	        grid-template-columns: 1fr;
	    }
	}

	.contact-page .contact-card {
	    background: var(--bg-card);
	    border-radius: var(--radius);
	    border: 1px solid var(--border-color);
	    padding: 1.5rem;
	    box-shadow: var(--shadow-sm);
	    transition: background var(--transition), border var(--transition);
	}

	.contact-page .contact-card .contact-icon {
	    font-size: 2rem;
	    color: var(--accent);
	    margin-bottom: 0.5rem;
	}

	.contact-page .contact-card h3 {
	    font-size: 1.1rem;
	    margin-bottom: 0.3rem;
	}

	.contact-page .contact-card p {
	    color: var(--text-secondary);
	    font-size: 0.95rem;
	}

	.contact-page .contact-card .contact-detail {
	    margin-top: 0.5rem;
	    color: var(--text-muted);
	    font-size: 0.9rem;
	}

	.contact-page .contact-card .contact-detail i {
	    width: 1.5rem;
	    color: var(--accent);
	}

	.contact-page .contact-form {
	    background: var(--bg-card);
	    border-radius: var(--radius);
	    border: 1px solid var(--border-color);
	    padding: 1.5rem;
	    box-shadow: var(--shadow-sm);
	    transition: background var(--transition), border var(--transition);
	}

	.contact-page .contact-form .form-group {
	    margin-bottom: 1rem;
	}

	.contact-page .contact-form label {
	    display: block;
	    font-weight: 500;
	    font-size: 0.9rem;
	    margin-bottom: 0.3rem;
	    color: var(--text-secondary);
	}

	.contact-page .contact-form input,
	.contact-page .contact-form textarea {
	    width: 100%;
	    padding: 0.6rem 1rem;
	    border: 1px solid var(--border-color);
	    border-radius: 10px;
	    background: var(--bg-body);
	    color: var(--text-primary);
	    font-size: 0.95rem;
	    transition: border var(--transition), background var(--transition);
	    font-family: inherit;
	}

	.contact-page .contact-form input:focus,
	.contact-page .contact-form textarea:focus {
	    outline: none;
	    border-color: var(--accent);
	    box-shadow: 0 0 0 3px rgba(30, 109, 242, 0.15);
	}

	.contact-page .contact-form textarea {
	    resize: vertical;
	    min-height: 120px;
	}

	.contact-page .contact-form .submit-btn {
	    background: var(--accent);
	    color: #fff;
	    border: none;
	    padding: 0.6rem 1.8rem;
	    border-radius: 30px;
	    font-size: 0.95rem;
	    font-weight: 500;
	    cursor: pointer;
	    transition: 0.2s;
	}

	.contact-page .contact-form .submit-btn:hover {
	    background: var(--accent-hover);
	}

	.contact-page .contact-info-row {
	    display: flex;
	    flex-wrap: wrap;
	    gap: 1.5rem;
	    margin-top: 1.5rem;
	    padding-top: 1.5rem;
	    border-top: 1px solid var(--border-color);
	}

	.contact-page .contact-info-row .info-item {
	    display: flex;
	    align-items: center;
	    gap: 0.6rem;
	    color: var(--text-secondary);
	    font-size: 0.9rem;
	}

	.contact-page .contact-info-row .info-item i {
	    color: var(--accent);
	    font-size: 1.1rem;
	    width: 1.5rem;
	}

	.footer {
	    text-align: center;
	    padding: 1.5rem 0 0.5rem;
	    border-top: 1px solid var(--border-color);
	    color: var(--text-muted);
	    font-size: 0.8rem;
	    margin-top: 1rem;
	}

	/* ===== 手机隐藏 ===== */
	.hide-on-mobile {
	    display: block;
	}

	@media (max-width: 768px) {
	    .hide-on-mobile {
	        display: none !important;
	    }

	    .lang-links {
	        display: none;
	    }

	    .list-page .list-item .thumb {
	        display: none;
	    }

	    .header-right .lang-toggle,
	    .header-right .theme-btn {
	        display: none;
	    }

	    .mobile-settings-toggle {
	        display: flex;
	    }

	    .main-wrapper {
	        flex-direction: column;
	    }

	    .sidebar {
	        flex: 1;
	        position: static;
	        display: flex;
	        flex-wrap: wrap;
	        gap: 0.3rem;
	        padding: 0.8rem;
	    }

	    .sidebar .nav-title {
	        display: none;
	    }

	    .sidebar ul {
	        display: flex;
	        flex-wrap: wrap;
	        gap: 0.2rem;
	    }

	    .sidebar ul li {
	        padding: 0.3rem 0.8rem;
	        font-size: 0.85rem;
	        background: var(--bg-body);
	        border-radius: 30px;
	        border: 1px solid var(--border-color);
	    }

	    .sidebar ul li.active {
	        background: var(--accent);
	        color: #fff;
	    }

	    .sidebar ul li i {
	        display: none;
	    }

	    .article-page .article-box {
	        padding: 1.2rem;
	    }

	    .header {
	        position: relative;
	    }
	}


	@media (max-width: 480px) {
	    .header {
	        flex-wrap: nowrap;
	        justify-content: space-between;
	        align-items: center;
	        padding: 0.6rem 1rem;
	    }

	    .logo-area {
	        font-size: 1rem;
	        flex-shrink: 1;
	        min-width: 0;
	    }

	    .logo-area svg {
	        height: 30px;
	        flex-shrink: 0;
	    }

	    .logo-area span {
	        white-space: nowrap;
	        overflow: hidden;
	        text-overflow: ellipsis;
	    }

	    .header-right {
	        flex-shrink: 0;
	        margin-left: 0.5rem;
	    }

	    .mobile-settings-toggle {
	        padding: 0.15rem 0.6rem;
	        font-size: 0.9rem;
	    }

	    .search-bar input {
	        font-size: 0.85rem;
	    }
	}