/* 巧米乐数字科技协议页面样式 - 参照首页风格 */

/* 基础布局和通用组件 */
.zh_agreement_page {
    background: #f8f9fa;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

.zh_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面头部横幅 */
.zh_agreement_hero {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #2b2520 0%, #3a3129 100%);
    color: #F0F0F0;
    text-align: center;
    overflow: hidden;
}

.zh_hero_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.zh_hero_content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.zh_agreement_icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #FA7D09 0%, #e56d00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 48px;
    color: #fff;
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.zh_hero_title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.zh_hero_subtitle {
    font-size: 20px;
    color: rgba(240,240,240,0.8);
    margin-bottom: 30px;
    font-weight: 300;
}

.zh_breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(240,240,240,0.7);
}

.zh_breadcrumb_item {
    color: rgba(240,240,240,0.7);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.zh_breadcrumb_item:hover {
    color: #FA7D09;
}

.zh_breadcrumb_item i {
    font-size: 12px;
}

.zh_breadcrumb_divider {
    color: rgba(240,240,240,0.5);
}

.zh_breadcrumb_active {
    color: #F0F0F0;
    font-weight: 600;
}

/* 主要内容区域 */
.zh_agreement_main {
    padding: 80px 0;
    background: #fff;
}

.zh_agreement_layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

/* 侧边栏目录 */
.zh_agreement_sidebar {
    position: sticky;
    top: 120px;
}

.zh_agreement_toc {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.zh_toc_title {
    font-size: 18px;
    font-weight: 600;
    color: #2b2520;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zh_toc_title i {
    color: #FA7D09;
    font-size: 16px;
}

.zh_toc_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zh_toc_item {
    margin-bottom: 8px;
}

.zh_toc_link {
    display: block;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.zh_toc_link:hover,
.zh_toc_link.active {
    background: #FA7D09;
    color: #fff;
    padding-left: 20px;
}

.zh_toc_link.active::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
}

/* 协议内容 */
.zh_agreement_content {
    background: #fff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.zh_special_notice {
    background: linear-gradient(135deg, #FA7D09 0%, #e56d00 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(250,125,9,0.2);
}

.zh_special_notice p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
}

.zh_special_notice p:last-child {
    margin-bottom: 0;
}

.zh_special_notice strong {
    font-weight: 700;
}

.zh_agreement_content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2b2520;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FA7D09;
    position: relative;
}

.zh_agreement_content h2:first-child {
    margin-top: 0;
}

.zh_agreement_content h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #e56d00;
}

.zh_agreement_content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2b2520;
    margin: 25px 0 15px;
}

.zh_agreement_content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2b2520;
    margin: 20px 0 10px;
}

.zh_agreement_content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.zh_agreement_content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.zh_agreement_content li {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

.zh_agreement_content strong {
    color: #2b2520;
    font-weight: 600;
}

.zh_notice_box {
    background: #f8f9fa;
    border-left: 4px solid #FA7D09;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.zh_notice_box p {
    margin-bottom: 10px;
    font-size: 15px;
}

.zh_notice_box p:last-child {
    margin-bottom: 0;
}

.zh_notice_box strong {
    color: #FA7D09;
    font-weight: 600;
}

/* 返回顶部按钮 */
.zh_back_to_top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FA7D09 0%, #e56d00 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(250,125,9,0.3);
}

.zh_back_to_top.show {
    opacity: 1;
    visibility: visible;
}

.zh_back_to_top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(250,125,9,0.4);
}

.zh_back_to_top i {
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .zh_agreement_layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .zh_agreement_sidebar {
        position: static;
        order: 2;
    }
    
    .zh_agreement_content {
        order: 1;
    }
    
    .zh_hero_title {
        font-size: 36px;
    }
    
    .zh_hero_subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .zh_agreement_hero {
        padding: 80px 0;
    }
    
    .zh_agreement_icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    .zh_hero_title {
        font-size: 30px;
    }
    
    .zh_hero_subtitle {
        font-size: 16px;
    }
    
    .zh_agreement_main {
        padding: 60px 0;
    }
    
    .zh_agreement_content {
        padding: 30px 20px;
    }
    
    .zh_agreement_toc {
        padding: 20px;
    }
    
    .zh_agreement_content h2 {
        font-size: 24px;
    }
    
    .zh_agreement_content h3 {
        font-size: 18px;
    }
    
    .zh_agreement_content h4 {
        font-size: 16px;
    }
    
    .zh_special_notice {
        padding: 20px;
    }
    
    .zh_back_to_top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .zh_hero_title {
        font-size: 24px;
    }
    
    .zh_hero_subtitle {
        font-size: 14px;
    }
    
    .zh_agreement_content {
        padding: 20px 15px;
    }
    
    .zh_agreement_toc {
        padding: 15px;
    }
    
    .zh_agreement_content h2 {
        font-size: 20px;
    }
    
    .zh_agreement_content h3 {
        font-size: 16px;
    }
    
    .zh_agreement_content h4 {
        font-size: 15px;
    }
    
    .zh_agreement_content p,
    .zh_agreement_content li {
        font-size: 14px;
    }
    
    .zh_special_notice {
        padding: 15px;
    }
    
    .zh_special_notice p {
        font-size: 14px;
    }
    
    .zh_notice_box {
        padding: 15px;
    }
    
    .zh_notice_box p {
        font-size: 14px;
    }
}