69 lines
3.9 KiB
HTML
69 lines
3.9 KiB
HTML
{% extends "base_tailwind.html" %}
|
|
|
|
{% block title %}用户服务协议 - {{ brand_name }}{% endblock %}
|
|
|
|
{% block extra_css %}
|
|
<style>
|
|
.prose h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
|
|
.prose h2 { font-size: 1.1rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid rgba(0,0,0,0.08); }
|
|
.dark .prose h2 { border-bottom-color: rgba(255,255,255,0.08); }
|
|
.prose h3 { font-size: 0.95rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.5rem; }
|
|
.prose p { margin-bottom: 0.75rem; line-height: 1.75; color: #4b5563; }
|
|
.dark .prose p { color: #9ca3af; }
|
|
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 0.75rem; }
|
|
.prose li { margin-bottom: 0.35rem; line-height: 1.7; color: #4b5563; }
|
|
.dark .prose li { color: #9ca3af; }
|
|
.prose ul li { list-style-type: disc; }
|
|
.prose ol li { list-style-type: decimal; }
|
|
.prose strong { font-weight: 600; color: #111827; }
|
|
.dark .prose strong { color: #f3f4f6; }
|
|
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.875rem; }
|
|
.prose th { background: #f3f4f6; font-weight: 600; padding: 0.6rem 0.8rem; text-align: left; border: 1px solid #e5e7eb; }
|
|
.dark .prose th { background: #1f2937; border-color: #374151; }
|
|
.prose td { padding: 0.6rem 0.8rem; border: 1px solid #e5e7eb; }
|
|
.dark .prose td { border-color: #374151; }
|
|
.prose hr { border: none; border-top: 1px solid #e5e7eb; margin: 1.5rem 0; }
|
|
.dark .prose hr { border-top-color: #374151; }
|
|
.prose code { background: #f3f4f6; padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.85em; }
|
|
.dark .prose code { background: #1f2937; }
|
|
.prose blockquote { border-left: 3px solid #e5e7eb; padding-left: 1rem; color: #6b7280; margin: 1rem 0; }
|
|
.dark .prose blockquote { border-color: #374151; color: #9ca3af; }
|
|
</style>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="max-w-3xl mx-auto py-4">
|
|
<!-- 返回 -->
|
|
<div class="mb-6 list-item-enter" style="animation-delay:0ms">
|
|
<a href="javascript:history.back()" class="inline-flex items-center gap-1.5 text-sm text-neutral-500 hover:text-neutral-800 dark:hover:text-neutral-200 transition-colors">
|
|
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"/>
|
|
</svg>
|
|
返回
|
|
</a>
|
|
</div>
|
|
|
|
<div class="glass rounded-3xl p-6 md:p-10 layer-3 list-item-enter" style="animation-delay:50ms">
|
|
<!-- 头部 -->
|
|
<div class="flex items-start gap-4 mb-8 pb-6 border-b border-neutral-200 dark:border-neutral-800">
|
|
<div class="w-12 h-12 rounded-2xl bg-black dark:bg-white flex items-center justify-center text-white dark:text-black font-bold text-lg flex-shrink-0">S</div>
|
|
<div>
|
|
<h1 class="text-xl md:text-2xl font-bold text-neutral-900 dark:text-white">用户服务协议</h1>
|
|
<p class="text-sm text-neutral-500 dark:text-neutral-400 mt-1">{{ brand_name }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 正文:由后端读取 docs/terms.md 渲染 -->
|
|
<div class="prose text-sm md:text-base text-neutral-800 dark:text-neutral-200">
|
|
{{ content | safe }}
|
|
</div>
|
|
|
|
<!-- 底部链接 -->
|
|
<div class="mt-8 pt-6 border-t border-neutral-200 dark:border-neutral-800 flex gap-4 text-sm text-neutral-500">
|
|
<a href="{{ url_for('main.privacy') }}" class="hover:text-black dark:hover:text-white transition-colors underline underline-offset-2">隐私政策</a>
|
|
<a href="{{ url_for('main.buy') }}" class="hover:text-black dark:hover:text-white transition-colors underline underline-offset-2">购买页面</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|