/**
 * 隐私政策样式 - 简洁风格
 */
:root {
    --primary-color: #333333;
    --primary-light: #555555;
    --bg-color: #ffffff;
    --card-bg: #fafafa;
    --text-color: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --radius: 8px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #e0e0e0;
        --primary-light: #cccccc;
        --bg-color: #1a1a1a;
        --card-bg: #242424;
        --text-color: #f0f0f0;
        --text-secondary: #999999;
        --border-color: #333333;
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    padding: 0 16px;
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

html[dir="rtl"] body { direction: rtl; }

.container { max-width: 720px; margin: 0 auto; padding: 40px 0; }

.header {
    text-align: center;
    padding: 24px 0 32px;
    margin-bottom: 32px;
}

.header h1 { 
    font-size: 26px; 
    font-weight: 600; 
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.update-date { color: var(--text-secondary); font-size: 13px; }

/* 语言选择器 */
.lang-selector { position: fixed; top: 16px; right: 16px; z-index: 1000; }
html[dir="rtl"] .lang-selector { right: auto; left: 16px; }

.lang-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.lang-btn:hover { 
    border-color: var(--primary-color); 
    color: var(--text-color);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 140px;
    max-height: 320px;
    overflow-y: auto;
}
html[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
.lang-dropdown.show { display: block; }

.lang-option {
    display: block;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.15s;
}
.lang-option:hover { background: var(--card-bg); }
.lang-option.active { font-weight: 600; }

/* 目录 */
.toc {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}
.toc-title { 
    font-size: 13px; 
    font-weight: 500; 
    margin-bottom: 12px; 
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.toc-list { list-style: none; }
.toc-item { padding: 6px 0; }
.toc-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s;
}
html[dir="rtl"] .toc-item a { flex-direction: row-reverse; }
.toc-item a:hover { color: var(--text-secondary); }

/* 内容 */
.content {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border-color);
}

.section {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}
.section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.section h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
html[dir="rtl"] .section h2 { flex-direction: row-reverse; }
.section-icon { font-size: 18px; }
.section p { margin-bottom: 12px; color: var(--text-secondary); font-size: 14px; line-height: 1.8; }
.section ul, .section ol { margin: 12px 0; padding-left: 20px; }
html[dir="rtl"] .section ul, html[dir="rtl"] .section ol { padding-left: 0; padding-right: 20px; }
.section li { margin-bottom: 6px; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* 高亮框 */
.highlight-box {
    background: var(--bg-color);
    border-left: 3px solid var(--border-color);
    border-radius: 0 6px 6px 0;
    padding: 14px 16px;
    margin: 16px 0;
}
html[dir="rtl"] .highlight-box {
    border-left: none;
    border-right: 3px solid var(--border-color);
    border-radius: 6px 0 0 6px;
}
.highlight-box.warning { border-color: #d4a800; }
.highlight-box.info { border-color: #3d8c40; }
.highlight-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
html[dir="rtl"] .highlight-title { flex-direction: row-reverse; }

/* 联系卡片 */
.contact-card {
    background: var(--primary-color);
    border-radius: var(--radius);
    padding: 24px;
    color: white;
    text-align: center;
    margin-top: 32px;
}
@media (prefers-color-scheme: dark) {
    .contact-card { background: #333; }
}
.contact-card h3 { font-size: 15px; margin-bottom: 12px; font-weight: 500; }
.contact-email {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.contact-email:hover { background: rgba(255,255,255,0.25); }

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.8;
}
html[dir="rtl"] .back-to-top { right: auto; left: 24px; }
.back-to-top.show { display: flex; }
.back-to-top:hover { transform: scale(1.05); opacity: 1; }

.footer { 
    text-align: center; 
    padding: 32px 0; 
    color: var(--text-secondary); 
    font-size: 12px; 
}
.loading { text-align: center; padding: 48px; color: var(--text-secondary); }

@media (max-width: 600px) {
    .container { padding: 24px 0; }
    .header h1 { font-size: 22px; }
    .section h2 { font-size: 16px; }
    .content { padding: 24px 20px; }
}
