/* 杭州易护科技有限公司 - 协议页面样式 */
/* 与首页配色风格保持一致 */

/* ========================================
   浏览器默认样式重置
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background: #f8f9fa;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    background-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

/* ========================================
   页面基础布局
   ======================================== */
.zh_agreement_body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.zh_agreement_wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   顶部外边距 - 避免被导航遮挡
   ======================================== */
.zh_agreement_header {
    /* 顶部栏50px + 导航94px + 额外间距 = 180px */
    margin-top: 180px;
    padding: 60px 0;
    background: linear-gradient(135deg, #18813f 0%, #749F06 100%);
    position: relative;
    overflow: hidden;
}

.zh_agreement_header_bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1920&h=400&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
}

.zh_agreement_header_content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: #fff;
}

.zh_agreement_icon {
    width: 80px;
    height: 80px;
    background: rgba(203, 225, 149, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    backdrop-filter: blur(10px);
}

.zh_agreement_icon i {
    font-size: 40px;
    color: #CBE195;
}

.zh_agreement_title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.zh_agreement_subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.zh_agreement_meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.zh_agreement_meta_item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh_agreement_meta_item i {
    color: #CBE195;
}

/* ========================================
   面包屑导航
   ======================================== */
.zh_breadcrumb {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.zh_breadcrumb_container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.zh_breadcrumb_link {
    color: #749F06;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.zh_breadcrumb_link:hover {
    color: #18813f;
}

.zh_breadcrumb_separator {
    color: #999;
}

.zh_breadcrumb_current {
    color: #666;
}

/* ========================================
   主要内容区域
   ======================================== */
.zh_agreement_main {
    flex: 1;
    padding: 60px 0;
}

.zh_agreement_container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

/* ========================================
   侧边栏目录
   ======================================== */
.zh_agreement_sidebar {
    position: sticky;
    top: 200px;
}

.zh_agreement_toc {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.zh_toc_title {
    font-size: 18px;
    font-weight: 700;
    color: #18813f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zh_toc_title i {
    color: #749F06;
}

.zh_toc_list {
    list-style: none;
}

.zh_toc_item {
    margin-bottom: 12px;
}

.zh_toc_link {
    display: block;
    padding: 10px 15px;
    color: #666;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.zh_toc_link:hover,
.zh_toc_link.active {
    background: #f8f9fa;
    color: #749F06;
    border-left-color: #749F06;
    transform: translateX(5px);
}

/* ========================================
   协议内容区域
   ======================================== */
.zh_agreement_content {
    background: #fff;
    border-radius: 20px;
    padding: 50px 60px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* 内容标题 */
.zh_content_title {
    font-size: 32px;
    font-weight: 700;
    color: #18813f;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #CBE195;
}

/* 章节标题 */
.zh_agreement_content h2,
.zh_agreement_content h3,
.zh_agreement_content h4 {
    color: #18813f;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.zh_agreement_content h2 {
    font-size: 24px;
    padding-left: 15px;
    border-left: 4px solid #749F06;
}

.zh_agreement_content h3 {
    font-size: 20px;
    color: #749F06;
}

.zh_agreement_content h4 {
    font-size: 18px;
    color: #555;
}

/* 段落 */
.zh_agreement_content p {
    margin-bottom: 18px;
    line-height: 2;
    color: #555;
    text-align: justify;
}

/* 列表 */
.zh_agreement_content ul,
.zh_agreement_content ol {
    margin: 20px 0 20px 25px;
    padding: 0;
}

.zh_agreement_content li {
    margin-bottom: 12px;
    line-height: 2;
    color: #555;
    list-style-position: outside;
}

.zh_agreement_content ul li {
    list-style-type: disc;
}

.zh_agreement_content ol li {
    list-style-type: decimal;
}

/* 强调文本 */
.zh_agreement_content strong,
.zh_agreement_content b {
    color: #18813f;
    font-weight: 700;
}

.zh_agreement_content em {
    font-style: normal;
    color: #749F06;
    font-weight: 600;
}

/* 重要提示框 */
.zh_notice_box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #749F06;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 30px 0;
}

.zh_notice_box p {
    margin-bottom: 10px;
}

.zh_notice_box p:last-child {
    margin-bottom: 0;
}

/* 特别提示 */
.zh_special_notice {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 30px 0;
}

.zh_special_notice::before {
    content: "⚠️ 特别提示";
    display: block;
    font-weight: 700;
    color: #ff9800;
    margin-bottom: 15px;
    font-size: 16px;
}

/* 编号段落 */
.zh_numbered_section {
    margin: 25px 0;
    padding-left: 30px;
    position: relative;
}

.zh_numbered_section::before {
    content: attr(data-number);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #749F06;
}

/* ========================================
   页脚
   ======================================== */
.zh_agreement_footer {
    background: linear-gradient(135deg, #18813f 0%, #749F06 100%);
    color: #fff;
    padding: 40px 0;
    margin-top: auto;
}

.zh_footer_container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.zh_footer_links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.zh_footer_link {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
    font-size: 14px;
}

.zh_footer_link:hover {
    color: #CBE195;
}

.zh_footer_copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.zh_footer_icp {
    color: rgba(255, 255, 255, 0.9);
    margin-left: 15px;
    transition: color 0.3s ease;
}

.zh_footer_icp:hover {
    color: #CBE195;
}

/* ========================================
   返回顶部按钮
   ======================================== */
.zh_back_to_top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #749F06 0%, #638708 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(116, 159, 6, 0.3);
    z-index: 999;
}

.zh_back_to_top.show {
    opacity: 1;
    visibility: visible;
}

.zh_back_to_top:hover {
    background: linear-gradient(135deg, #638708 0%, #749F06 100%);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(116, 159, 6, 0.4);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    .zh_agreement_container {
        grid-template-columns: 220px 1fr;
        gap: 30px;
    }

    .zh_agreement_header {
        margin-top: 160px;
    }
}

@media (max-width: 992px) {
    .zh_agreement_container {
        grid-template-columns: 1fr;
    }

    .zh_agreement_sidebar {
        position: static;
        order: -1;
    }

    .zh_agreement_toc {
        max-width: 100%;
    }

    .zh_agreement_header {
        margin-top: 150px;
        padding: 50px 0;
    }

    .zh_agreement_title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .zh_agreement_header {
        margin-top: 140px;
        padding: 40px 0;
    }

    .zh_agreement_title {
        font-size: 32px;
    }

    .zh_agreement_icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .zh_agreement_icon i {
        font-size: 30px;
    }

    .zh_agreement_main {
        padding: 40px 0;
    }

    .zh_agreement_content {
        padding: 35px 25px;
    }

    .zh_content_title {
        font-size: 26px;
    }

    .zh_agreement_content h2 {
        font-size: 20px;
    }

    .zh_agreement_content h3 {
        font-size: 18px;
    }

    .zh_breadcrumb_container {
        font-size: 13px;
    }

    .zh_back_to_top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .zh_agreement_header {
        margin-top: 130px;
        padding: 30px 0;
    }

    .zh_agreement_title {
        font-size: 26px;
    }

    .zh_agreement_content {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .zh_content_title {
        font-size: 22px;
    }

    .zh_agreement_content h2 {
        font-size: 18px;
    }

    .zh_agreement_toc {
        padding: 20px 18px;
    }

    .zh_footer_links {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
    .zh_agreement_header,
    .zh_agreement_sidebar,
    .zh_breadcrumb,
    .zh_agreement_footer,
    .zh_back_to_top {
        display: none;
    }

    .zh_agreement_container {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .zh_agreement_content {
        box-shadow: none;
        padding: 0;
    }

    .zh_agreement_body {
        background: #fff;
    }
}
