/* 用户协议页样式 - 参考深色主题风格 */

body {
    background: #0f0f0f;
}

.zh_container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Banner */
.zh_page_banner {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    background: #0f0f0f;
}

.zh_banner_content {
    position: relative;
    z-index: 1;
}

.zh_banner_title {
    font-size: 80px;
    font-weight: 600;
    line-height: 1.335;
    letter-spacing: -2px;
    color: #fff;
    margin-bottom: 20px;
}

.zh_banner_desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: -0.36px;
    margin-bottom: 30px;
}

.zh_breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
}

.zh_breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.zh_breadcrumb a:hover {
    color: #f20e09;
}

.zh_breadcrumb i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.zh_breadcrumb span {
    color: #fff;
}

/* 文章区域 */
.zh_article_section {
    padding: 80px 0;
    background: #0f0f0f;
}

.zh_article_layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: flex-start;
}

/* 主内容区 */
.zh_article_main {
    min-width: 0;
}

.zh_article_card {
    background: rgba(148, 148, 148, 0.09);
    backdrop-filter: blur(37px);
    border-radius: 24px;
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s;
}

.zh_article_card:hover {
    background: rgba(148, 148, 148, 0.12);
}

/* 文章内容样式 */
.zh_article_body {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
    background: transparent !important;
}

/* 覆盖富文本编辑器输出的白色背景 */
.zh_article_body * {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* 保留图片和特殊元素的背景 */
.zh_article_body img {
    background: transparent !important;
}

.zh_article_body table {
    background: transparent !important;
}

.zh_article_body table th,
.zh_article_body table td {
    background: transparent !important;
}

/* 覆盖可能的内联样式白色背景 */
.zh_article_body [style*="background-color: #fff"],
.zh_article_body [style*="background-color:#fff"],
.zh_article_body [style*="background-color: white"],
.zh_article_body [style*="background-color:white"],
.zh_article_body [style*="background: #fff"],
.zh_article_body [style*="background:#fff"],
.zh_article_body [style*="background: white"],
.zh_article_body [style*="background:white"] {
    background: transparent !important;
}

/* 覆盖可能的内联样式黑色文字 */
.zh_article_body [style*="color: #000"],
.zh_article_body [style*="color:#000"],
.zh_article_body [style*="color: #333"],
.zh_article_body [style*="color:#333"],
.zh_article_body [style*="color: black"],
.zh_article_body [style*="color:black"] {
    color: rgba(255, 255, 255, 0.75) !important;
}

.zh_article_body h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff !important;
    margin: 50px 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    background: transparent !important;
}

.zh_article_body h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #f20e09;
}

.zh_article_body h2:first-child {
    margin-top: 0;
}

.zh_article_body h3 {
    font-size: 24px;
    font-weight: 600;
    color: #fff !important;
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid #f20e09;
    background: transparent !important;
}

.zh_article_body h4 {
    font-size: 20px;
    font-weight: 600;
    color: #fff !important;
    margin: 30px 0 15px;
    background: transparent !important;
}

.zh_article_body p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.75) !important;
    background: transparent !important;
}

.zh_article_body ul,
.zh_article_body ol {
    margin: 25px 0;
    padding-left: 30px;
}

.zh_article_body ul li,
.zh_article_body ol li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.8;
    background: transparent !important;
}

.zh_article_body ul li::marker {
    color: #f20e09;
}

.zh_article_body ol li::marker {
    color: #f20e09;
    font-weight: 600;
}

.zh_article_body a {
    color: #f20e09;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.zh_article_body a:hover {
    color: #c40b07;
    border-bottom-color: #f20e09;
}

.zh_article_body blockquote {
    background: rgba(242, 14, 9, 0.05) !important;
    border-left: 4px solid #f20e09;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75) !important;
}

.zh_article_body strong {
    color: #fff !important;
    font-weight: 600;
    background: transparent !important;
}

.zh_article_body em {
    color: rgba(255, 255, 255, 0.6);
}

.zh_article_body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zh_article_body table th,
.zh_article_body table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    text-align: left;
}

.zh_article_body table th {
    background: rgba(242, 14, 9, 0.1) !important;
    font-weight: 600;
    color: #fff !important;
}

.zh_article_body table tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.zh_article_body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.zh_article_body code {
    background: rgba(242, 14, 9, 0.1);
    color: #f20e09;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.zh_article_body pre {
    background: rgba(15, 15, 15, 0.5);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 25px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zh_article_body pre code {
    background: transparent;
    padding: 0;
}

/* 侧边栏 */
.zh_article_sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* 自定义滚动条 */
.zh_article_sidebar::-webkit-scrollbar {
    width: 6px;
}

.zh_article_sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.zh_article_sidebar::-webkit-scrollbar-thumb {
    background: rgba(242, 14, 9, 0.3);
    border-radius: 3px;
}

.zh_article_sidebar::-webkit-scrollbar-thumb:hover {
    background: #f20e09;
}

/* 侧边栏卡片 */
.zh_sidebar_widget {
    background: rgba(148, 148, 148, 0.09);
    backdrop-filter: blur(37px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s;
}

.zh_sidebar_widget:hover {
    background: rgba(148, 148, 148, 0.12);
    transform: translateY(-5px);
}

.zh_widget_title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.zh_widget_title i {
    color: #f20e09;
    font-size: 20px;
}

.zh_widget_body {
    display: flex;
    flex-direction: column;
}

/* 目录（TOC） */
.zh_toc_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zh_toc_item {
    margin-bottom: 8px;
}

.zh_toc_item a {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}

.zh_toc_item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: #f20e09;
    border-radius: 2px;
    transition: all 0.3s;
}

.zh_toc_item a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 20px;
}

.zh_toc_item a:hover::before {
    height: 16px;
}

.zh_toc_item.active a {
    background: rgba(242, 14, 9, 0.1);
    color: #fff;
    font-weight: 600;
    padding-left: 20px;
}

.zh_toc_item.active a::before {
    height: 20px;
}

/* TOC 层级 */
.zh_toc_item.level-h2 {
    margin-left: 0;
}

.zh_toc_item.level-h2 a {
    font-weight: 600;
    font-size: 15px;
}

.zh_toc_item.level-h3 {
    margin-left: 15px;
}

.zh_toc_item.level-h3 a {
    font-size: 14px;
}

/* 相关链接 */
.zh_link_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zh_link_list li {
    margin-bottom: 12px;
}

.zh_link_list li:last-child {
    margin-bottom: 0;
}

.zh_link_list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.zh_link_list a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(242, 14, 9, 0.3);
    color: #fff;
    transform: translateX(5px);
}

.zh_link_list i {
    font-size: 16px;
    color: #f20e09;
    flex-shrink: 0;
}

/* 快速联系卡片 */
.zh_contact_widget {
    background: rgba(148, 148, 148, 0.09);
    backdrop-filter: blur(37px);
    text-align: center;
}

.zh_contact_text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    line-height: 1.6;
}

.zh_contact_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: #f20e09;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.zh_contact_btn:hover {
    background: #c40b07;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 14, 9, 0.4);
}

/* 响应式 */
@media (max-width: 1200px) {
    .zh_container {
        max-width: 960px;
    }

    .zh_banner_title {
        font-size: 60px;
    }
}

@media (max-width: 992px) {
    .zh_container {
        max-width: 720px;
    }

    .zh_banner_title {
        font-size: 42px;
    }

    .zh_article_layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .zh_article_sidebar {
        position: static;
        max-height: none;
    }

    .zh_article_card {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .zh_page_banner {
        padding: 120px 0 60px;
    }

    .zh_banner_title {
        font-size: 36px;
    }

    .zh_banner_desc {
        font-size: 16px;
    }

    .zh_article_section {
        padding: 60px 0;
    }

    .zh_article_card {
        padding: 30px 20px;
    }

    .zh_article_body h2 {
        font-size: 24px;
        margin: 40px 0 20px;
    }

    .zh_article_body h3 {
        font-size: 20px;
    }

    .zh_article_body h4 {
        font-size: 18px;
    }

    .zh_sidebar_widget {
        padding: 25px 20px;
    }
}
