/* 用户协议弹窗样式 */
.terms-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: all 0.3s ease;
}

.terms-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.terms-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 0;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

.terms-modal.active .terms-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terms-modal-header {
    padding: 30px 30px 16px;
    text-align: center;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px 12px 0 0;
}

.terms-modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
    letter-spacing: 1px;
}

.terms-modal-header .subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.terms-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #bdc3c7;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.terms-modal-close:hover {
    background: #f8f9fa;
    color: #e74c3c;
    transform: rotate(90deg);
}

.terms-modal-body {
    padding: 20px 30px 30px;
    flex: 1;
    overflow-y: auto;
    /* 隐藏滚动条但保持可滚动 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE和Edge */
}

/* Webkit浏览器隐藏滚动条 */
.terms-modal-body::-webkit-scrollbar {
    display: none;
}

.terms-section {
    margin-bottom: 24px;
}

.terms-section:last-child {
    margin-bottom: 0;
}

.terms-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.terms-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #444;
    margin: 16px 0 8px 0;
}

.terms-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 10px 0;
}

.terms-section p:last-child {
    margin-bottom: 0;
}

.terms-section ul {
    margin: 0 0 10px 0;
    padding-left: 20px;
}

.terms-section li {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 6px;
}

.terms-section li:last-child {
    margin-bottom: 0;
}

.terms-highlight {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    margin: 15px 0;
}

.terms-highlight p {
    margin: 0;
    font-weight: 500;
    color: #333;
}

.terms-footer {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    text-align: center;
    flex-shrink: 0;
    border-top: 1px solid #eee;
}

.terms-footer p {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px 0;
}

.terms-contact {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.terms-contact-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.terms-contact-btn.primary {
    background: #007bff;
    color: white;
}

.terms-contact-btn.primary:hover {
    background: #0056b3;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .terms-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .terms-modal-header,
    .terms-modal-body,
    .terms-footer {
        padding: 20px;
    }
    
    .terms-modal-header h2 {
        font-size: 20px;
    }
    
    .terms-contact {
        flex-direction: column;
        align-items: center;
    }
    
    .terms-contact-btn {
        width: 200px;
        justify-content: center;
    }
}
