/* 交易纠纷页面专用样式 */

/* 交易纠纷区域 */
.disputes {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.disputes-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
}

.disputes-header h2 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.disputes-content {
    padding: 40px;
    margin-top: 120px; /* 为固定标题留出空间 */
}

/* 介绍文本 */
.disputes-intro {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid #e74c3c;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.disputes-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
    margin: 0;
    text-align: justify;
    text-indent: 2em;
}

/* 规则标题 */
.disputes-rules h3 {
    font-size: 24px;
    color: #2c3e50;
    font-weight: bold;
    margin: 0 0 30px 0;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    position: relative;
}

.disputes-rules h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

/* 规则项目 */
.rule-item {
    margin-bottom: 30px;
    padding: 25px;
    background-color: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

.rule-item:hover::before {
    width: 8px;
}

.rule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.rule-item:last-child {
    margin-bottom: 0;
}

.rule-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
    margin: 0;
    text-align: justify;
    text-indent: 0;
}

.rule-item p strong {
    color: #2c3e50;
    font-weight: bold;
}

/* 特殊强调效果 */
.rule-item:nth-child(1) {
    border-left-color: #e74c3c;
}

.rule-item:nth-child(1)::before {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.rule-item:nth-child(2) {
    border-left-color: #f39c12;
}

.rule-item:nth-child(2)::before {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.rule-item:nth-child(3) {
    border-left-color: #27ae60;
}

.rule-item:nth-child(3)::before {
    background: linear-gradient(45deg, #27ae60, #229954);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .disputes-header {
        padding: 20px;
    }
    
    .disputes-header h2 {
        font-size: 24px;
    }
    
    .disputes-content {
        padding: 20px;
        margin-top: 100px; /* 调整小屏幕的顶部间距 */
    }
    
    .disputes-intro {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .disputes-intro p {
        font-size: 15px;
        text-indent: 1em;
    }
    
    .disputes-rules h3 {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .rule-item {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .rule-item p {
        font-size: 15px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .disputes-header {
        padding: 15px;
    }
    
    .disputes-header h2 {
        font-size: 20px;
    }
    
    .disputes-content {
        padding: 15px;
        margin-top: 90px; /* 调整更小屏幕的顶部间距 */
    }
    
    .disputes-intro {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .disputes-intro p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .disputes-rules h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .rule-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .rule-item p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* 页面加载动画 */
.disputes {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.disputes-intro {
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.disputes-rules h3 {
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

.rule-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.rule-item:nth-child(1) { animation-delay: 0.6s; }
.rule-item:nth-child(2) { animation-delay: 0.8s; }
.rule-item:nth-child(3) { animation-delay: 1.0s; }

/* 特殊效果 */
.rule-item:hover p strong {
    color: #3498db;
    transition: color 0.3s ease;
}

.disputes-rules h3:hover {
    color: #3498db;
    transition: color 0.3s ease;
}

/* 打印样式 */
@media print {
    .disputes-header {
        position: static;
        background: #f8f9fa !important;
        color: #000 !important;
    }
    
    .disputes-content {
        margin-top: 0;
    }
    
    .rule-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
