/* 平台协议页面样式 */

.agreement-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(197, 36, 40, 0.2);
    position: relative;
    display: flex;
    min-height: 80vh;
}

.agreement-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 36, 40, 0.05), transparent);
    animation: containerShine 5s ease-in-out infinite;
    z-index: 0;
}

@keyframes containerShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.agreement-container h1 {
    padding: 25px 40px;
    border-bottom: 2px solid rgba(197, 36, 40, 0.3);
    margin: 0;
    background: linear-gradient(135deg, rgba(197, 36, 40, 0.1) 0%, rgba(160, 30, 33, 0.1) 100%);
    color: #c52428;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 12px rgba(197, 36, 40, 0.4);
    position: relative;
    z-index: 1;
    font-size: 24px;
}

/* 协议导航 */
.agreement-nav {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-right: 1px solid rgba(0, 123, 255, 0.2);
    position: relative;
    z-index: 1;
    width: 280px;
    flex-shrink: 0;
}

.agreement-nav ul {
    list-style: none;
    padding: 30px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.agreement-nav ul li {
    margin-bottom: 0;
    width: 100%;
    text-align: left;
    position: relative;
}

.agreement-nav ul li a {
    display: block;
    padding: 15px 30px;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    border-radius: 0 12px 12px 0;
    background: transparent;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    margin-right: -1px;
}

.agreement-nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 36, 40, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.agreement-nav ul li a:hover {
    background: rgba(197, 36, 40, 0.15);
    color: #c52428;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(197, 36, 40, 0.2);
    border-color: rgba(197, 36, 40, 0.5);
    text-shadow: 0 2px 8px rgba(197, 36, 40, 0.4);
}

.agreement-nav ul li a:hover::before {
    left: 100%;
}

.agreement-nav ul li a.active {
    background: linear-gradient(135deg, rgba(197, 36, 40, 0.2) 0%, rgba(160, 30, 33, 0.2) 100%);
    color: #c52428;
    border-color: #c52428;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(197, 36, 40, 0.3);
    text-shadow: 0 2px 8px rgba(197, 36, 40, 0.4);
}

.agreement-nav ul li a.active::before {
    left: 100%;
    animation: navLinkShine 3s ease-in-out infinite;
}

@keyframes navLinkShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* 协议内容 */
.agreement-content {
    padding: 40px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    flex: 1;
    overflow-y: auto;
}

.agreement-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #c52428;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 4px solid #c52428;
    padding-left: 25px;
    text-shadow: 0 4px 12px rgba(197, 36, 40, 0.4);
    background: rgba(197, 36, 40, 0.1);
    padding: 15px 25px;
    border-radius: 0 12px 12px 0;
    border-top: 1px solid rgba(197, 36, 40, 0.3);
    border-bottom: 1px solid rgba(197, 36, 40, 0.3);
}

.agreement-section h3 {
    font-size: 22px;
    margin: 35px 0 20px;
    color: #c52428;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(197, 36, 40, 0.2);
}

.agreement-section pre {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #495057;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 15px;
    overflow-x: auto;
    border: 1px solid rgba(0, 123, 255, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.agreement-section pre:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.4);
}

.agreement-section p {
    margin-bottom: 20px;
    line-height: 2;
    color: #495057;
    font-size: 15px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* 代码块滚动条样式 */
.agreement-section pre::-webkit-scrollbar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.agreement-section pre::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 6px;
    border: 2px solid rgba(42, 42, 64, 0.8);
}

.agreement-section pre::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0099cc, #0077aa);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .agreement-nav {
        border-right: none;
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    }
    
    .agreement-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 20px 15px;
    }
    
    .agreement-nav ul li {
        width: calc(50% - 10px);
        margin-bottom: 15px;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .agreement-container {
        margin: 20px 15px;
        border-radius: 15px;
    }
    
    .agreement-container h1 {
        padding: 20px 30px;
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .agreement-content {
        padding: 30px 20px;
    }
    
    .agreement-nav ul {
        gap: 10px;
    }
    
    .agreement-nav ul li {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .agreement-nav ul li a {
        padding: 12px 15px;
        font-size: 13px;
        letter-spacing: 0;
    }
    
    .agreement-section h2 {
        font-size: 22px;
        margin-bottom: 25px;
        padding: 12px 20px;
    }
    
    .agreement-section h3 {
        font-size: 18px;
        margin: 30px 0 15px;
    }
    
    .agreement-section pre {
        padding: 20px;
        font-size: 14px;
        line-height: 1.7;
    }
    
    .agreement-section p {
        font-size: 14px;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .agreement-container {
        margin: 10px;
        border-radius: 12px;
    }
    
    .agreement-container h1 {
        padding: 15px 20px;
        font-size: 18px;
    }
    
    .agreement-content {
        padding: 20px 15px;
    }
    
    .agreement-section h2 {
        font-size: 20px;
        padding: 10px 15px;
    }
    
    .agreement-section h3 {
        font-size: 16px;
        margin: 25px 0 15px;
    }
    
    .agreement-section pre {
        padding: 15px;
        font-size: 13px;
    }
    
    .agreement-section p {
        font-size: 13px;
        line-height: 1.7;
    }
    
    .agreement-nav ul {
        padding: 15px 10px;
    }
    
    .agreement-nav ul li a {
        padding: 10px 12px;
        font-size: 12px;
    }
}