/* 页面容器 */
.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 页面头部 */
.terms-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-link {
    display: inline-block;
    margin-bottom: 24px;
}

.logo {
    height: 32px;
    width: auto;
}

.terms-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* 主要内容 */
.terms-content {
    flex: 1;
    background: var(--bg-paper);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
}

/* 引言部分 */
.terms-intro {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border-light);
}

.terms-intro p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.terms-intro p:last-child {
    margin-bottom: 0;
}

.terms-intro strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 章节部分 */
.terms-section {
    margin-bottom: 48px;
    page-break-inside: avoid;
}

.terms-section:last-child {
    margin-bottom: 0;
}

/* 一级标题（章节标题） */
.terms-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    line-height: 1.4;
    letter-spacing: 0.3px;
}

/* 二级标题（小节标题） */
.terms-section h3 {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 32px 0 16px 0;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.terms-section h2 + h3 {
    margin-top: 24px;
}

/* 三级标题（子小节标题） */
.terms-section h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 24px 0 12px 0;
    line-height: 1.5;
    letter-spacing: 0.1px;
}

.terms-section h3 + h4 {
    margin-top: 20px;
}

/* 段落 */
.terms-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    text-align: justify;
}

.terms-section h3 + p,
.terms-section h4 + p {
    margin-top: 0;
}

.terms-section p:last-child {
    margin-bottom: 0;
}

/* 强调文本 */
.terms-section p strong,
.terms-section li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 列表 */
.terms-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.terms-section h3 + ul,
.terms-section h4 + ul {
    margin-top: 0;
}

.terms-section li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
}

.terms-section li:last-child {
    margin-bottom: 0;
}

.terms-section li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* 嵌套列表 */
.terms-section ul ul {
    margin-top: 12px;
    margin-bottom: 12px;
    margin-left: 20px;
}

.terms-section ul ul li::before {
    width: 4px;
    height: 4px;
    left: 6px;
    top: 11px;
    background: var(--primary-light);
}

/* 页脚 */
.terms-footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
}

.terms-footer p {
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-dark);
}

.separator {
    color: var(--border-light);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .terms-container {
        padding: 20px 16px;
    }

    .terms-content {
        padding: 24px 20px;
    }

    .terms-intro {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .terms-section {
        margin-bottom: 32px;
    }

    .terms-section h2 {
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .terms-section h3 {
        font-size: 16px;
        margin-top: 24px;
        margin-bottom: 12px;
    }

    .terms-section h4 {
        font-size: 15px;
        margin-top: 16px;
        margin-bottom: 10px;
    }

    .terms-section p,
    .terms-section li {
        font-size: 14px;
        line-height: 1.7;
    }

    .terms-section ul {
        margin-bottom: 16px;
    }

    .terms-section li {
        padding-left: 20px;
        margin-bottom: 10px;
    }

    .terms-section li::before {
        left: 6px;
        top: 9px;
    }
}

/* 打印样式 */
@media print {
    .terms-container {
        max-width: 100%;
        padding: 0;
    }

    .terms-header {
        margin-bottom: 24px;
    }

    .terms-content {
        box-shadow: none;
        padding: 0;
    }

    .terms-section {
        margin-bottom: 24px;
        page-break-inside: avoid;
    }

    .terms-section h2 {
        page-break-after: avoid;
    }

    .terms-footer {
        margin-top: 24px;
    }
}

/* 联系我们页面特殊样式 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-neutral);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.contact-item i {
    font-size: 24px;
    color: var(--primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-md);
}

.contact-detail {
    flex: 1;
}

.contact-detail h3 {
    font-size: 16px;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.contact-detail p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.text-muted {
    font-size: 12px !important;
    opacity: 0.8;
}

.qr-code {
    width: 120px;
    height: 120px;
    margin-top: 12px;
    border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-item {
        padding: 16px;
    }

    .qr-code {
        width: 100px;
        height: 100px;
    }
} 