html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

:root {
    --simple-color: #4CAF50;
    --simple-hover: #ac1e23;
    --simple-body-bg-color: #f5f5f5;
    --simple-card-bg-color: #ffffff;
    --simple-card-white-bg-color: #ffffff;
    --simple-card-grey-bg-color: #f1f2f3;
    --simple-transparent-bg-color: #684df412;
    --simple-header-height: 55px;
    --simple-footer-height: 50px;
    --simple-black-color: #000000;
    --simple-grey-color: #878787;
    --simple-white-color: #ffffff;
    --simple-main-max-width: 1300px;
    --simple-border-radius-s: 4px;
    --simple-border-radius-m: 8px;
    --simple-border-radius-l: 4px;
    --simple-border-radius-xl: 8px;
}

*,
::after,
::before {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
form,
button,
input {
    margin: 0;
    padding: 0;
}

a,
a:hover,
a:active {
    outline: none;
    text-decoration: none;
}

a:hover {
    color: var(--simple-hover);
}

a {
    color: var(--simple-color);
}

img {
    vertical-align: middle;
    border: none;
}

input,
input:focus {
    outline: none;
    border: 0;
}

button {
    background: unset;
    border: 0;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

button:focus-visible,
button:focus {
    outline: 0;
}

ul,
li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 公共样式 */
.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.d-grid {
    display: grid;
}

.d-none {
    display: none;
}

.d-initial {
    display: initial;
}

.m-1 {
    margin: 5px;
}

.m-2 {
    margin: 10px;
}

.m-3 {
    margin: 15px;
}

.m-4 {
    margin: 20px;
}

.mt-1 {
    margin-top: 5px;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 20px;
}

.mr-1 {
    margin-right: 5px;
}

.mr-2 {
    margin-right: 10px;
}

.mr-3 {
    margin-right: 15px;
}

.mr-4 {
    margin-right: 20px;
}

.mb-1 {
    margin-bottom: 5px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mb-4 {
    margin-bottom: 20px;
}

.ml-1 {
    margin-left: 5px;
}

.ml-2 {
    margin-left: 10px;
}

.ml-3 {
    margin-left: 15px;
}

.ml-4 {
    margin-left: 20px;
}

.p-1 {
    padding: 5px;
}

.p-2 {
    padding: 10px;
}

.p-3 {
    padding: 15px;
}

.p-4 {
    padding: 20px;
}

.pt-1 {
    padding-top: 5px;
}

.pt-2 {
    padding-top: 10px;
}

.pt-3 {
    padding-top: 15px;
}

.pt-4 {
    padding-top: 20px;
}

.pr-1 {
    padding-right: 5px;
}

.pr-2 {
    padding-right: 10px;
}

.pr-3 {
    padding-right: 15px;
}

.pr-4 {
    padding-right: 20px;
}

.pb-1 {
    padding-bottom: 5px;
}

.pb-2 {
    padding-bottom: 10px;
}

.pb-3 {
    padding-bottom: 15px;
}

.pb-4 {
    padding-bottom: 20px;
}

.pl-1 {
    padding-left: 5px;
}

.pl-2 {
    padding-left: 10px;
}

.pl-3 {
    padding-left: 15px;
}

.pl-4 {
    padding-left: 20px;
}

.p-relative {
    position: relative;
}

.p-absolute {
    position: absolute;
}

.p-sticky {
    position: sticky;
}

.align-items-center {
    align-items: center;
}

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

.text-align-center {
    text-align: center;
}

.justify-content-center {
    justify-content: center;
}

.overflow-auto {
    overflow: auto;
}

.overflow-hidden {
    overflow: hidden;
}

body {
    background: var(--simple-body-bg-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#main {
    min-height: calc(100vh - var(--simple-header-height) - var(--simple-footer-height) - 20px);
}

/* 主体内容 */
.collect-card {
    width: 100%;
    background-color: var(--simple-card-bg-color);
    border-radius: var(--simple-border-radius-xl);
}

.collect-card-header {
    display: flex;
    align-items: center;
}

.collect-card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.term-separator {
    margin: 0 5px 0 15px;
    height: 10px;
    width: 2.5px;
    border-radius: 2px;
    background-color: var(--simple-color);
}

.term-tab {
    display: flex;
    flex: 1;
    overflow-x: overlay;
    overflow-y: hidden;
    height: 28px;
    align-items: center;
}

.term-tab::-webkit-scrollbar {
    height: 0;
}

.term-tab-item {
    flex-shrink: 0;
}

.term-tab-item a {
    display: block;
    position: relative;
    font-size: 14px;
    line-height: 16px;
    padding: 0 8px;
    color: var(--simple-black-color);
}

.term-active {
    color: var(--simple-color);
    background-color: rgba(76, 175, 80, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
}

.term-active:after {
    content: '';
    position: absolute;
    width: 15px;
    height: 2.5px;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    z-index: 1;
    border-radius: 2px;
    background-color: var(--simple-color);
}

.collect-card-content {
    width: 100%;
}

.collect-card-tab {
    display: none;
    flex-wrap: wrap;
}

.tab-active {
    display: flex;
}

.simple-site a:hover .site-def-url-img img,
.simple-site a:hover .site-def-one-img img,
.simple-site a:hover .site-def-two-img img,
.simple-site a:hover .site-def-thr-img img {
    animation: jumps 1.2s ease 1
}

/* 图片动画 */
@keyframes jumps {
    0% {
        transform: translate(0)
    }

    10% {
        transform: translateY(8px) scaleX(1.2) scaleY(0.8)
    }

    30% {
        transform: translateY(-5px) scaleX(1) scaleY(1) rotate(5deg)
    }

    50% {
        transform: translateY(3px) scale(1) rotate(0)
    }

    55% {
        transform: translateY(0) scaleX(1.1) scaleY(0.9) rotate(0)
    }

    70% {
        transform: translateY(-5px) scaleX(1) scaleY(1) rotate(-2deg)
    }

    80% {
        transform: translateY(0) scaleX(1) scaleY(1) rotate(0)
    }

    85% {
        transform: translateY(0) scaleX(1.05) scaleY(0.95) rotate(0)
    }

    to {
        transform: translateY(0) scaleX(1) scaleY(1)
    }
}

/* 网址默认风格 */
.site-def-card-item {
    width: 16.6666%;
}

.site-def-url-body {
    color: var(--simple-black-color);
    border: 1px solid #e0e0e0;
    border-radius: var(--simple-border-radius-l);
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.site-def-card-item:hover .site-def-go a {
    color: var(--simple-color);
}

.site-def-url-img {
    display: flex;
    height: 30px;
    width: 30px;
    margin: 0 10px 0 5px;
    align-items: center;
}

.site-def-url-img img {
    width: 100%;
    height: 100%;
    border-radius: var(--simple-border-radius-s);
}

.site-def-url-info {
    flex: 1;
    width: 0;
}

.site-def-url-title {
    font-size: 14px;
    color: var(--simple-black-color);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.site-def-url-desc p {
    font-size: 12px;
    color: var(--simple-grey-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-def-tool {
    top: 15px;
    right: 11px;
}

.site-def-go a {
    color: var(--simple-card-grey-bg-color);
}

@media (max-width: 991px) {
    .site-def-card-item,
    .site-two-card-item,
    .site-thr-card-item,
    .software-one-card-item {
        width: 33.3333%
    }
}

@media (max-width: 767px) {
    .site-def-card-item,
    .site-two-card-item,
    .site-thr-card-item,
    .software-one-card-item {
        width: 50%
    }
}

/* 背景样式 */
body {
    background: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

/* 主内容区 */
.main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 20px auto 20px;
    margin-top: 20px;
    width: 95%;
    max-width: 1200px;
    box-sizing: border-box;
    border-radius: 8px;
}

/* 左侧标志 */
.logo-section {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    flex-shrink: 0;
}

.logo-main {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.logo-icon {
    margin-right: 10px;
}

.logo-icon a {
    display: block;
    text-decoration: none;
}

.logo-icon img {
    height: 60px;
    width: auto;
    transition: transform 0.2s ease;
}

.logo-icon a:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* 图标部分 */
.logo-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #000;
    cursor: pointer;
    text-align: center;
}

.icon-item:link,
.icon-item:visited {
    color: #000;
}

.icon-item:hover {
    color: #4CAF50;
}

.icon-item img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

/* 搜索区域 */
.search-section {
    flex: 1;
    min-width: 0;
    max-width: 900px;
    margin-left: 0;
}

/* 搜索选项 */
.search-options {
    margin-bottom: 10px;
}

.option-item {
    color: #333;
    text-decoration: none;
    margin-right: 15px;
    font-size: 14px;
}

.option-item:link,
.option-item:visited {
    color: #333;
}

.option-item:hover {
    color: #4CAF50;
}

.option-item.active {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    padding: 4px 12px;
    text-decoration: none;
    position: relative;
}

.option-item.active:after {
    content: '';
    position: absolute;
    width: 15px;
    height: 2.5px;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    z-index: 1;
    border-radius: 2px;
    background-color: #4CAF50;
}

.option-item.active:link,
.option-item.active:visited {
    color: #4CAF50;
}

/* 搜索�?*/
.search-box {
    display: flex;
    margin-bottom: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #4CAF50;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
}

.search-box button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #45a049;
}

/* 公告�?*/
.announcement {
    background-color: rgba(76, 175, 80, 0.1);
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 14px;
    overflow: hidden;
    position: relative;
}

.announcement-icon {
    margin-right: 10px;
    color: #4CAF50;
}

.announcement-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 20px;
    overflow: hidden;
}

.announcement-text {
    color: #666;
    display: block;
    width: 100%;
    text-decoration: none;
    transition: opacity 0.5s ease;
    line-height: 1.5;
    padding: 2px 0;
}

.announcement-text:hover {
    color: #4CAF50;
    text-decoration: underline;
}

/* 主要内容 */
.mainContainer {
    background-color: white;
    margin: 0 auto 20px;
    width: 95%;
    max-width: 1200px;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

/* 手机端自适应布局 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        margin: 0 auto 20px;
        margin-top: 0;
    }

    .logo-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .logo-main {
        margin-bottom: 0;
    }

    .logo-icon img {
        height: 36px;
    }

    .logo-slogan {
        display: none;
    }

    .logo-icons {
        margin-top: 0;
        gap: 5px;
    }

    .icon-item {
        font-size: 11px;
        display: flex;
        align-items: center;
        gap: 4px;
        text-align: center;
    }

    .icon-item img {
        width: 28px;
        height: 28px;
    }

    .search-section {
        max-width: 100%;
        margin-left: 0;
    }

    .search-options {
        margin-bottom: 10px;
    }

    .option-item {
        font-size: 12px;
        margin-right: 10px;
    }

    .search-box input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .search-box button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .announcement {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .announcement-container {
        height: auto;
        min-height: 16px;
    }
    
    .announcement-text {
        line-height: 1.4;
        padding: 1px 0;
    }
}

/* 加载动画容器样式 */
#loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loading-image {
    width: 100px;
    height: 100px;
}

/* 底部样式 */
.footer {
    margin: 20px auto 0;
    width: 95%;
    max-width: 1200px;
    box-sizing: border-box;
    padding-bottom: 20px;
}

.footer-inner {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #555;
    font-size: 13px;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.footer-nav a:hover {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.08);
}

.footer-nav-sep {
    color: #e0e0e0;
    font-size: 12px;
    user-select: none;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 13px;
    color: #999;
}

.footer-copy a {
    color: #999;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-copy a:hover {
    color: #4CAF50;
}

@media (max-width: 768px) {
    .footer-nav {
        padding: 12px 16px;
        gap: 2px;
    }

    .footer-nav a {
        font-size: 12px;
        padding: 4px 8px;
    }

    .footer-bottom {
        padding: 12px 16px;
        flex-direction: column;
        gap: 6px;
    }

    .footer-copy {
        font-size: 12px;
        text-align: center;
    }
}

/* 网站卡片优化样式 */
.simple-site {
    margin-bottom: 5px;
}

.site-def-url-body {
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

.site-def-url-title {
    font-size: 14px;
    margin-bottom: 2px;
}

.site-def-url-desc p {
    font-size: 12px;
    margin-bottom: 0;
}

.site-def-url-img img {
    width: 32px;
    height: 32px;
}

/* 面包屑导航 */
.breadcrumb-bar {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb-bar a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-bar a:hover {
    color: var(--simple-color);
}

.breadcrumb-bar span {
    margin: 0 8px;
    color: #d1d5db;
}

.breadcrumb-bar span:last-child {
    color: #4CAF50;
    font-weight: 500;
}

.detail-main {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 24px;
    margin: 0 auto 20px;
    width: 95%;
    max-width: 1200px;
    box-sizing: border-box;
}
.detail-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}
.detail-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--simple-border-radius-m);
    border: 1px solid #e0e0e0;
    object-fit: contain;
    flex-shrink: 0;
}
.detail-icon-placeholder {
    width: 56px;
    height: 56px;
    border-radius: var(--simple-border-radius-m);
    background: #f1f2f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.detail-meta h1 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
}
.detail-meta .short-desc {
    font-size: 13px;
    color: #878787;
    margin-bottom: 8px;
}
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-tag {
    font-size: 12px;
    color: #555;
    background: #f1f2f3;
    padding: 2px 10px;
    border-radius: 4px;
}
.visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--simple-color);
    color: #fff;
    padding: 9px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    margin-left: auto;
    flex-shrink: 0;
    align-self: flex-start;
}
.visit-btn:hover { background: #45a049; color: #fff; }

.detail-content {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}
.detail-content p { margin: 0 0 10px; }

.section-label {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--simple-color);
    border-radius: 2px;
}
.related-grid {
    display: flex;
    flex-wrap: wrap;
}
.related-item {
    width: 16.6666%;
    padding: 5px;
    box-sizing: border-box;
}
.related-item-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: var(--simple-border-radius-l);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}
.related-item-inner:hover {
    border-color: #bdbdbd;
    color: inherit;
}
.related-item-inner img {
    width: 28px;
    height: 28px;
    border-radius: var(--simple-border-radius-s);
    object-fit: contain;
    flex-shrink: 0;
}
.r-name {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.r-desc {
    font-size: 12px;
    color: #878787;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 991px) {
    .related-item { width: 33.3333%; }
}
@media (max-width: 767px) {
    .related-item { width: 50%; }
    .detail-main { padding: 16px; }
}

/* 详情页富文本内容样式 */
.detail-content {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}
.detail-content h1,
.detail-content h2,
.detail-content h3,
.detail-content h4,
.detail-content h5,
.detail-content h6 {
    color: #4CAF50;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #4CAF50;
    font-weight: 600;
    line-height: 1.4;
}
.detail-content h1 { 
    font-size: 20px;
    margin-top: 24px;
}
.detail-content h2 {
    font-size: 17px;
    margin-top: 22px;
}
.detail-content h3 { 
    font-size: 15px;
    margin-top: 20px;
}
.detail-content h4,
.detail-content h5,
.detail-content h6 { 
    font-size: 14px;
    margin-top: 18px;
}

.detail-content p {
    margin: 0 0 12px;
    color: #444;
}

.detail-content ol,
.detail-content ul {
    margin: 0 0 12px;
}
.detail-content ol {
    list-style: decimal;
    padding-left: 24px;
}
.detail-content ul {
    list-style: none;
    padding-left: 24px;
}
.detail-content ul li {
    padding-left: 0;
    position: relative;
    list-style: none;
}
.detail-content ul li::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--simple-color);
}
.detail-content ol li {
    padding-left: 2px;
    list-style: decimal;
}
.detail-content ol li::marker {
    color: var(--simple-color);
}
.detail-content li {
    margin-bottom: 5px;
    color: #444;
}

.detail-content a {
    color: var(--simple-color);
    text-decoration: none;
}
.detail-content a:hover {
    color: var(--simple-hover);
    text-decoration: underline;
}

.detail-content strong { font-weight: 600; }
.detail-content em { font-style: italic;}

.detail-content blockquote {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 3px solid var(--simple-color);
    background: rgba(76, 175, 80, 0.05);
    color: #555;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
}

.detail-content code {
    background: #f1f2f3;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 13px;
    font-family: "SFMono-Regular", Consolas, monospace;
    color: #333;
}

.detail-content pre {
    background: #f6f8fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 16px;
    overflow-x: auto;
    margin: 0 0 12px;
    position: relative;
}

/* 代码块语言标签 */
.code-language-label {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    opacity: 0.7;
    pointer-events: none;
}

/* 代码块复制按钮 */
.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    color: #57606a;
    cursor: pointer;
    transition: all 0.15s;
    opacity: 0;
    z-index: 1;
}

.detail-content pre:hover .code-copy-btn {
    opacity: 1;
}

.code-copy-btn:hover {
    background: #f3f4f6;
    border-color: #8c959f;
}

.code-copy-btn:active {
    background: #e5e7eb;
}

.code-copy-btn.copied {
    color: #059669;
    border-color: #059669;
}

.detail-content pre code {
    background: none;
    padding: 0;
    color: #333;
    font-size: 13px;
    display: block;
    white-space: pre;
    word-wrap: normal;
}

/* WangEditor 代码块语言标签 */
.detail-content pre[data-language]::before {
    content: attr(data-language);
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 代码高亮颜色（基础支持） */
.detail-content pre .hljs-keyword,
.detail-content pre .hljs-selector-tag,
.detail-content pre .hljs-literal,
.detail-content pre .hljs-section,
.detail-content pre .hljs-link {
    color: #d73a49;
    font-weight: 600;
}

.detail-content pre .hljs-string,
.detail-content pre .hljs-title,
.detail-content pre .hljs-name,
.detail-content pre .hljs-type,
.detail-content pre .hljs-attribute,
.detail-content pre .hljs-symbol,
.detail-content pre .hljs-bullet,
.detail-content pre .hljs-addition,
.detail-content pre .hljs-variable,
.detail-content pre .hljs-template-tag,
.detail-content pre .hljs-template-variable {
    color: #22863a;
}

.detail-content pre .hljs-comment,
.detail-content pre .hljs-quote,
.detail-content pre .hljs-deletion,
.detail-content pre .hljs-meta {
    color: #6a737d;
    font-style: italic;
}

.detail-content pre .hljs-number,
.detail-content pre .hljs-regexp,
.detail-content pre .hljs-selector-id,
.detail-content pre .hljs-selector-class,
.detail-content pre .hljs-selector-pseudo {
    color: #005cc5;
}

.detail-content pre .hljs-function,
.detail-content pre .hljs-params {
    color: #6f42c1;
}

.detail-content img {
    max-width: 100%;
    border-radius: 4px;
    margin: 8px 0;
    border: 1px solid #e0e0e0;
}

.detail-content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 12px;
    font-size: 14px;
}
.detail-content th,
.detail-content td {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}
.detail-content th {
    background: #f1f2f3;
    font-weight: 600;
    color: #333;
}

/* 评论区 */
.comment-empty {
    color: #999;
    font-size: 14px;
    padding: 16px 0;
    margin: 0;
}

/* 页面标题徽章样式 - 悬浮在右上角 */
.page-header-title {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
}

.page-header-title h1 {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 4px 12px;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
    white-space: nowrap;
}

.page-content {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: #4CAF50;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #4CAF50;
    font-weight: 600;
}

.page-content h1 {
    font-size: 24px;
    margin-top: 30px;
}

.page-content h2 {
    font-size: 20px;
    margin-top: 28px;
}

.page-content h3 {
    font-size: 18px;
    margin-top: 24px;
}

.page-content h4 {
    font-size: 16px;
    margin-top: 20px;
}

.page-content h5 {
    font-size: 15px;
    margin-top: 18px;
}

.page-content h6 {
    font-size: 14px;
    margin-top: 16px;
}

.page-content p {
    margin: 0 0 12px;
    color: #444;
}

.page-content ul,
.page-content ol {
    margin: 0 0 12px;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 6px;
}

.page-content a {
    color: var(--simple-color);
    text-decoration: none;
}

.page-content a:hover {
    color: var(--simple-hover);
    text-decoration: underline;
}

.comment-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: cover;
    background: #f1f2f3;
}
.comment-main {
    flex: 1;
    min-width: 0;
}
.comment-item:last-child { border-bottom: none; }
.comment-item.new { background: rgba(76, 175, 80, 0.04); border-radius: 4px; padding: 14px 10px; }
.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.comment-nick {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.comment-time {
    font-size: 12px;
    color: #aaa;
}
.comment-body {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    word-break: break-word;
}
.comment-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.comment-form-row {
    margin-bottom: 10px;
}
.comment-form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.comment-form-row input,
.comment-form-row textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.2s;
    font-family: inherit;
}
.comment-form-row input:focus,
.comment-form-row textarea:focus {
    outline: none;
    border-color: var(--simple-color);
}
.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.comment-msg {
    font-size: 13px;
    color: #999;
}
.comment-msg.error { color: #ef4444; }
.comment-msg.success { color: var(--simple-color); }
.comment-form-footer button {
    background: var(--simple-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.comment-form-footer button:hover { background: #45a049; }
.comment-form-footer button:disabled { background: #9ca3af; cursor: not-allowed; }

/* 回复嵌套 */
.comment-replies {
    margin-top: 10px;
    padding-left: 16px;
    border-left: 2px solid #f0f0f0;
}
.comment-reply .comment-avatar {
    width: 30px;
    height: 30px;
}
.reply-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 6px;
    transition: color 0.2s;
}
.reply-btn:hover { color: var(--simple-color); }
.reply-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 10px;
}
.reply-tip #reply-cancel {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}
.reply-tip #reply-cancel:hover { color: #ef4444; }
