/* ===== 使用条款页面特定样式 ===== */

/* 页面标题部分 */
.terms-hero {
    background: linear-gradient(135deg, var(--primary-color), #0066cc);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.terms-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.terms-hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.terms-updated {
    font-size: 14px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .terms-hero h1 {
        font-size: 32px;
    }

    .terms-hero p {
        font-size: 16px;
    }
}

/* 内容区域 */
.terms-content {
    padding: 60px 0;
    background: #ffffff;
}

.terms-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

/* 目录侧边栏 */
.terms-toc {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.terms-toc h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.terms-toc ul {
    list-style: none;
}

.terms-toc li {
    margin-bottom: 12px;
}

.terms-toc a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 12px;
    border-left: 3px solid transparent;
}

.terms-toc a:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 16px;
}

/* 主要内容 */
.terms-main {
    line-height: 1.8;
}

.terms-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.terms-section:last-child {
    border-bottom: none;
}

.terms-section h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.terms-section h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.terms-section p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 16px;
}

/* 条款卡片 */
.terms-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.terms-card {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.terms-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.terms-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
}

.terms-card ul {
    list-style: none;
    padding: 0;
}

.terms-card li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
}

.terms-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.terms-card:nth-child(2) li::before {
    content: '✗';
    color: var(--error-color);
}

/* 条款列表 */
.terms-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.terms-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.terms-list li:last-child {
    border-bottom: none;
}

.terms-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 免责声明框 */
.disclaimer-box {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.disclaimer-box h3 {
    margin-top: 0;
    color: #856404;
}

.disclaimer-box p {
    color: #856404;
    margin-bottom: 0;
}

/* 联系信息 */
.contact-info {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info strong {
    color: var(--primary-color);
}

/* 页脚提示 */
.terms-footer {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 60px;
}

.terms-footer p {
    color: var(--text-light);
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .terms-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .terms-toc {
        position: static;
        margin-bottom: 30px;
    }

    .terms-toc h3 {
        display: none;
    }

    .terms-toc ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .terms-toc li {
        margin-bottom: 0;
    }

    .terms-toc a {
        padding: 6px 8px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .terms-hero h1 {
        font-size: 32px;
    }

    .terms-section h2 {
        font-size: 22px;
    }

    .terms-cards {
        grid-template-columns: 1fr;
    }

    .terms-toc ul {
        grid-template-columns: 1fr;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 打印样式 */
@media print {
    header,
    footer,
    .terms-toc {
        display: none;
    }

    .terms-wrapper {
        grid-template-columns: 1fr;
    }

    .terms-section {
        page-break-inside: avoid;
    }
}
