/* agreements.css - 协议文档页面专用样式 */
@font-face {
    font-family: 'AidianFengYaHei';
    src: url('爱点风雅黑.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'AidianFengYaHei', sans-serif;
    background-color: #0a0a12;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* 协议页面特有样式 */
.agreements-hero {
    height: 300px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.agreements-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/pattern.png') repeat;
    opacity: 0.1;
}

.agreements-hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.agreements-hero-title {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.agreements-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.agreements-container {
    display: flex;
    min-height: calc(100vh - 300px);
    background: #0a0a12;
}

.agreements-sidebar {
    width: 300px;
    background: rgba(20, 20, 30, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.agreements-content {
    flex: 1;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.sidebar-header {
    padding: 0 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.sidebar-subtitle {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.documents-list {
    list-style: none;
    padding: 20px 0;
}

.document-item {
    padding: 0;
}

.document-link {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.document-link:hover {
    background: rgba(106, 17, 203, 0.1);
    color: #ffffff;
    border-left-color: #6a11cb;
}

.document-link.active {
    background: rgba(106, 17, 203, 0.2);
    color: #ffffff;
    border-left-color: #6a11cb;
}

.document-icon {
    width: 40px;
    height: 40px;
    background: rgba(106, 17, 203, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: #6a11cb;
    transition: all 0.3s ease;
}

.document-link:hover .document-icon {
    background: #6a11cb;
    color: white;
}

.document-link.active .document-icon {
    background: #6a11cb;
    color: white;
}

.document-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.document-info p {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.document-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.document-section.active {
    display: block;
}

.document-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(106, 17, 203, 0.3);
}

.document-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.document-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.meta-item i {
    margin-right: 8px;
    color: #6a11cb;
}

.document-content {
    line-height: 1.8;
    color: #e0e0e0;
}

.document-content h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.document-content h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin: 25px 0 10px;
}

.document-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.document-content ul, .document-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.document-content li {
    margin-bottom: 8px;
}

.document-content a {
    color: #6a11cb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.document-content a:hover {
    color: #2575fc;
    text-decoration: underline;
}

.highlight-box {
    background: rgba(106, 17, 203, 0.1);
    border-left: 4px solid #6a11cb;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.info-box {
    background: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.agreement-actions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-button {
    padding: 12px 25px;
    background: rgba(106, 17, 203, 0.2);
    border: 2px solid #6a11cb;
    color: #6a11cb;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'AidianFengYaHei', sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-button:hover {
    background: #6a11cb;
    color: white;
    transform: translateY(-2px);
}

.action-button.primary {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
}

.agreements-footer {
    background: rgba(10, 10, 18, 0.9);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.agreements-footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agreements-footer .footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.agreements-footer .footer-links {
    margin: 15px 0;
}

.agreements-footer .footer-links a {
    color: #b0b0b0;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agreements-footer .footer-links a:hover {
    color: #6a11cb;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a12;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.spinner-circle {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(106, 17, 203, 0.3);
    border-top-color: #6a11cb;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.spinner-text {
    color: #e0e0e0;
    font-size: 1.2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

/* 导航栏样式 - 协议页面专用 */
.agreements-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.agreements-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.agreements-nav-logo img {
    height: 40px;
}

.agreements-nav-menu {
    display: flex;
    list-style: none;
}

.agreements-nav-item {
    margin-left: 30px;
}

.agreements-nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.agreements-nav-link:hover {
    color: #6a11cb;
}

.agreements-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    transition: width 0.3s ease;
}

.agreements-nav-link:hover::after {
    width: 100%;
}

.agreements-nav-link i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.agreements-nav-link:hover i {
    transform: scale(1.2);
}

.agreements-nav-link.active {
    color: #6a11cb;
}

.agreements-hamburger {
    display: none;
    cursor: pointer;
}

.agreements-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #e0e0e0;
    transition: all 0.3s ease;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    min-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #F44336;
}

.notification.warning {
    background: #FF9800;
}

.notification.info {
    background: #2196F3;
}

/* 动画关键帧 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* 应用动画类 */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.slide-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 40, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7a21db 0%, #3585ff 100%);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .agreements-container {
        flex-direction: column;
    }
    
    .agreements-sidebar {
        width: 100%;
        height: auto;
        position: static;
        max-height: 400px;
    }
    
    .documents-list {
        display: flex;
        overflow-x: auto;
        padding: 15px;
    }
    
    .document-item {
        min-width: 200px;
    }
    
    .document-link {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .document-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .agreements-hero-title {
        font-size: 2.5rem;
    }
    
    .agreements-content {
        padding: 20px;
    }
    
    .document-title {
        font-size: 2rem;
    }
    
    .agreement-actions {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
    }
    
    .agreements-hamburger {
        display: block;
    }
    
    .agreements-nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 18, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        backdrop-filter: blur(10px);
    }
    
    .agreements-nav-menu.active {
        left: 0;
    }
    
    .agreements-nav-item {
        margin: 15px 0;
    }
    
    .notification {
        min-width: 250px;
        right: 10px;
        left: 10px;
    }
}

@media (max-width: 576px) {
    .agreements-hero-title {
        font-size: 2rem;
    }
    
    .agreements-hero-subtitle {
        font-size: 1rem;
    }
    
    .document-title {
        font-size: 1.8rem;
    }
    
    .document-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* 打印样式 */
@media print {
    .agreements-sidebar,
    .agreements-hero,
    .agreement-actions,
    .agreements-footer,
    .agreements-navbar {
        display: none;
    }
    
    .agreements-content {
        padding: 0;
    }
    
    .document-content {
        font-size: 12pt;
        line-height: 1.6;
        color: black;
    }
    
    .document-title {
        color: black;
    }
    
    .document-content h2,
    .document-content h3 {
        color: black;
    }
}

/* 悬停效果 */
.logo-hover {
    transition: transform 0.3s ease;
}

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

/* 页面过渡动画 */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a12;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 0.5s ease 0.5s forwards;
}