/* 条款页特有样式 - Terms Page Styles */

/* 条款页头部 */
.terms-header {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.terms-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.terms-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* 条款内容 */
.terms-content {
    margin-bottom: 50px;
}

.terms-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-light);
    line-height: 1.8;
}

.terms-section h1,
.terms-section h2,
.terms-section h3,
.terms-section h4,
.terms-section h5,
.terms-section h6 {
    color: var(--text-primary);
    margin-bottom: 15px;
    margin-top: 25px;
}

.terms-section h1 {
    font-size: 28px;
    font-weight: 800;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 10px;
}

.terms-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
}

.terms-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-secondary);
}

.terms-section h4 {
    font-size: 18px;
    font-weight: 600;
}

.terms-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 16px;
}

.terms-section ul,
.terms-section ol {
    color: var(--text-secondary);
    margin-bottom: 15px;
    padding-left: 25px;
}

.terms-section li {
    margin-bottom: 8px;
}

.terms-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.terms-section em {
    color: var(--accent-warning);
    font-style: italic;
}

.terms-section a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.terms-section a:hover {
    color: var(--accent-secondary);
    border-bottom-color: var(--accent-secondary);
}

.terms-section blockquote {
    background: var(--bg-accent);
    border-left: 4px solid var(--accent-primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.terms-section code {
    background: var(--bg-accent);
    color: var(--accent-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.terms-section pre {
    background: var(--bg-accent);
    color: var(--text-secondary);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border-light);
}

.terms-section pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.terms-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-accent);
    border-radius: 10px;
    overflow: hidden;
}

.terms-section th,
.terms-section td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.terms-section th {
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.terms-section td {
    color: var(--text-secondary);
}

.terms-section tr:hover {
    background: rgba(79, 70, 229, 0.1);
}

/* 特殊样式 */
.terms-section .highlight {
    background: var(--accent-warning);
    color: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.terms-section .important {
    background: var(--accent-danger);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--accent-danger);
}

.terms-section .note {
    background: var(--accent-success);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--accent-success);
}

.terms-section .warning {
    background: var(--accent-warning);
    color: var(--bg-primary);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--accent-warning);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .terms-header {
        padding: 30px 20px;
    }
    
    .terms-title {
        font-size: 24px;
    }
    
    .terms-section {
        padding: 25px;
    }
    
    .terms-section h1 {
        font-size: 24px;
    }
    
    .terms-section h2 {
        font-size: 20px;
    }
    
    .terms-section h3 {
        font-size: 18px;
    }
    
    .terms-section p {
        font-size: 15px;
    }
    
    .terms-section table {
        font-size: 14px;
    }
    
    .terms-section th,
    .terms-section td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .terms-header {
        padding: 25px 15px;
    }
    
    .terms-title {
        font-size: 20px;
    }
    
    .terms-section {
        padding: 20px;
    }
    
    .terms-section h1 {
        font-size: 20px;
    }
    
    .terms-section h2 {
        font-size: 18px;
    }
    
    .terms-section h3 {
        font-size: 16px;
    }
    
    .terms-section p {
        font-size: 14px;
    }
    
    .terms-section ul,
    .terms-section ol {
        padding-left: 20px;
    }
    
    .terms-section table {
        font-size: 13px;
    }
    
    .terms-section th,
    .terms-section td {
        padding: 6px 8px;
    }
    
    .terms-section blockquote {
        padding: 15px;
    }
    
    .terms-section pre {
        padding: 15px;
    }
}
