body {
    background: #F5F6F7 !important;
    min-height: 100vh;
}

.content-area::-webkit-scrollbar {
    width: 6px;
}

.content-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.content-area::-webkit-scrollbar-thumb {
    background: #4b7bff;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: #3b5bdb;
}

.modern-header {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

.modern-header.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.agreement-banner {
    position: relative;
    width: 100%;
    height: 500px;
    margin-top: 0;
    padding-top: 70px;
    background: url('../image/banne/wen.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(147, 51, 234, 0.15) 100%);
}

.banner-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.banner-title {
    font-size: 56px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.banner-subtitle {
    font-size: 22px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 24px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.banner-description {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.6;
    max-width: 700px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.breadcrumb-container {
    background: #F5F6F7;
    padding: 20px 0;
}

.breadcrumb-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    font-size: 15px;
    line-height: 1.5;
}

.breadcrumb-icon {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-right: 6px;
    position: relative;
    top: -1px;
}

.breadcrumb-icon:hover {
    color: #4b7bff;
}

.breadcrumb-icon i {
    font-size: 14px;
    display: block;
}

.breadcrumb-item {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    font-weight: 400;
}

.breadcrumb-item:hover {
    color: #4b7bff;
}

.breadcrumb-item.active {
    color: #4b7bff;
    font-weight: 500;
}

.breadcrumb-separator {
    display: inline-block;
    margin: 0 10px;
    color: #d1d5db;
    font-size: 14px;
    user-select: none;
}

.disclaimers-content {
    padding: 50px 0 60px;
    min-height: auto;
}

.disclaimers-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.disclaimers-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    border-bottom: 2px solid #E5E6EB;
    padding-bottom: 0;
}

.tab-item {
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    margin-bottom: -2px;
}

.tab-item:hover {
    color: #4b7bff;
}

.tab-item.active {
    color: #4b7bff;
    font-weight: 600;
    border-bottom-color: #4b7bff;
}

.content-area {
    background: #ffffff;
    border-radius: 16px;
    padding: 60px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04), 0 8px 48px rgba(0, 0, 0, 0.08);
    min-height: 600px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
}

.content-area::before {
    content: 'B8-SVC-AGREEMENT-v2.5';
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 50px;
    font-weight: 600;
    color: rgba(75, 123, 255, 0.04);
    transform: translate(-50%, -50%) rotate(-45deg);
    pointer-events: none;
    z-index: 10;
    letter-spacing: 6px;
    white-space: nowrap;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
    position: relative;
    z-index: 1;
}

.tab-content.active {
    display: block;
}

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

.tab-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #4b7bff;
    display: inline-block;
    letter-spacing: 0.5px;
    position: relative;
}

.tab-content h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b5bdb, #667eea);
    transition: width 0.4s ease;
}

.tab-content h3:hover::after {
    width: 100%;
}

.tab-content h3 .version-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #4b7bff;
    background: rgba(75, 123, 255, 0.08);
    padding: 4px 12px;
    border-radius: 12px;
    margin-left: 12px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    border: 1px solid rgba(75, 123, 255, 0.2);
    position: relative;
    top: -2px;
}

.tab-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 36px 0 20px;
    padding-left: 16px;
    border-left: 4px solid #4b7bff;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

.tab-content p {
    font-size: 15px;
    line-height: 2;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: justify;
    letter-spacing: 0.3px;
}

.tab-content p:last-child {
    margin-bottom: 0;
}

.tab-content br {
    display: block;
    content: "";
    margin-top: 12px;
}

.tab-content ul,
.tab-content ol {
    padding-left: 32px;
    margin-bottom: 24px;
}

.tab-content li {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 12px;
    color: #2d3748;
    letter-spacing: 0.3px;
}

.tab-content li::marker {
    color: #4b7bff;
    font-weight: 600;
}

.tab-content strong {
    color: #1a1a2e;
    font-weight: 600;
    background: linear-gradient(to bottom, transparent 60%, rgba(75, 123, 255, 0.15) 60%);
    padding: 0 2px;
}

.tab-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb 50%, transparent);
    margin: 32px 0;
}

.tab-content a {
    color: #4b7bff;
    text-decoration: none;
    border-bottom: 1px solid rgba(75, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.tab-content a:hover {
    color: #3b5bdb;
    border-bottom-color: #3b5bdb;
}

.tab-content code {
    background: #f3f4f6;
    color: #d32f2f;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.tab-content .important-notice {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08) 0%, rgba(255, 142, 83, 0.08) 100%);
    border-left: 4px solid #ff6b6b;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.1);
}

.tab-content .info-notice {
    background: linear-gradient(135deg, rgba(75, 123, 255, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
    border-left: 4px solid #4b7bff;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(75, 123, 255, 0.1);
}

.tab-content .success-notice {
    background: linear-gradient(135deg, rgba(67, 209, 149, 0.08) 0%, rgba(72, 187, 120, 0.08) 100%);
    border-left: 4px solid #43d195;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(67, 209, 149, 0.1);
}

.tab-content blockquote {
    border-left: 4px solid #4b7bff;
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(75, 123, 255, 0.05);
    border-radius: 0 8px 8px 0;
    color: #2d3748;
    font-style: italic;
}

.tab-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tab-content th {
    background: #f8f9fa;
    color: #1a1a2e;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid #4b7bff;
}

.tab-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #2d3748;
}

.tab-content tr:last-child td {
    border-bottom: none;
}

.tab-content tr:hover td {
    background: rgba(75, 123, 255, 0.03);
}

.agreement-footer {
    text-align: center;
    padding: 40px 0 0;
    margin-top: 40px;
}

.back-button {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

@media (max-width: 768px) {
    .agreement-banner {
        height: 380px;
        margin-top: 0;
        padding-top: 60px;
    }
    
    .banner-content {
        padding: 0 20px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .banner-subtitle {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .banner-description {
        font-size: 14px;
    }
    
    .breadcrumb-container {
        padding: 16px 0;
    }
    
    .breadcrumb-wrapper {
        padding: 0 20px;
        font-size: 14px;
    }
    
    .breadcrumb-icon {
        margin-right: 5px;
    }
    
    .breadcrumb-icon i {
        font-size: 14px;
    }
    
    .breadcrumb-separator {
        margin: 0 8px;
        font-size: 13px;
    }
    
    .disclaimers-content {
        padding: 40px 0 40px;
    }
    
    .disclaimers-container {
        padding: 0 20px;
    }
    
    .disclaimers-tabs {
        gap: 24px;
        padding-bottom: 0;
    }
    
    .tab-item {
        padding: 12px 0;
        font-size: 15px;
    }
    
    .content-area {
        padding: 30px 20px;
        min-height: 400px;
        border-radius: 12px;
    }
    
    .tab-content h3 {
        font-size: 24px;
        margin-bottom: 24px;
        padding-bottom: 14px;
        letter-spacing: 0.3px;
    }
    
    .tab-content h3 .version-tag {
        font-size: 12px;
        padding: 3px 8px;
        margin-left: 8px;
        border-radius: 8px;
    }
    
    .tab-content h4 {
        font-size: 18px;
        margin: 24px 0 16px;
        padding-left: 12px;
        letter-spacing: 0.2px;
    }
    
    .tab-content p {
        font-size: 14px;
        line-height: 1.9;
        letter-spacing: 0.2px;
    }
    
    .tab-content li {
        font-size: 14px;
        line-height: 1.9;
    }
    
    .tab-content table {
        font-size: 14px;
    }
    
    .tab-content th,
    .tab-content td {
        padding: 10px 12px;
    }
    
    .agreement-footer {
        padding: 30px 0 0;
        margin-top: 30px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .disclaimers-container {
        padding: 0 30px;
    }
    
    .content-area {
        padding: 50px 40px;
        border-radius: 14px;
    }
    
    .tab-content h3 {
        font-size: 28px;
    }
    
    .tab-content h4 {
        font-size: 19px;
    }
}

@media print {
    body {
        background: #ffffff !important;
    }
    
    .modern-header,
    .agreement-banner,
    .breadcrumb-container,
    .disclaimers-tabs,
    .agreement-footer {
        display: none !important;
    }
    
    .content-area {
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
        padding: 20px !important;
    }
    
    .tab-content h3,
    .tab-content h4 {
        page-break-after: avoid;
    }
    
    .tab-content p,
    .tab-content li {
        page-break-inside: avoid;
    }
}

::selection {
    background: rgba(75, 123, 255, 0.2);
    color: #1a1a2e;
}

.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #ffffff;
    color: #4b7bff;
    border: 2px solid #e8eef7;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    backdrop-filter: blur(10px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #4b7bff;
    color: #ffffff;
    border-color: #4b7bff;
    box-shadow: 0 4px 24px rgba(75, 123, 255, 0.25);
    transform: translateY(-4px);
}

.back-to-top:active {
    transform: translateY(-2px);
    box-shadow: 0 2px 12px rgba(75, 123, 255, 0.2);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 70px;
        right: 20px;
        font-size: 18px;
        border-radius: 14px;
    }
}

::-moz-selection {
    background: rgba(75, 123, 255, 0.2);
    color: #1a1a2e;
}
