/* 隐私政策页面专用样式 - 支持深色/浅色模式自适应 */

/* 页面容器 */
.privacy-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面头部 */
.privacy-header {
    text-align: center;
    padding: 40px 0 60px;
    margin-bottom: 40px;
}

.privacy-header .art-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--tb--content, #333);
    margin: 0 0 20px;
}

.privacy-update-date {
    font-size: 1rem;
    color: var(--tb--gray, #666);
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid var(--tb--border, #e8ecf0);
    transition: all 0.3s ease;
}

/* 隐私政策内容区域 */
.privacy-content {
    margin-bottom: 50px;
}

.privacy-section {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--tb--border, #e8ecf0);
    transition: all 0.3s ease;
}

.section-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--tb--main, #007cba);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon i {
    font-size: 1.5rem;
    color: white;
}

/* 图标字体备用方案 */
.section-icon i:before {
    content: attr(data-icon);
}

/* 如果图标字体不加载，使用Unicode字符 */
.intro-section .section-icon i:before {
    content: "🛡️";
}

.collection-section .section-icon i:before {
    content: "📊";
}

.usage-section .section-icon i:before {
    content: "⚙️";
}

.contact-section .section-icon i:before {
    content: "✉️";
}

.thanks-section .section-icon i:before {
    content: "⭐";
}

.section-content {
    flex: 1;
}

.section-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--tb--content, #333);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--tb--main, #007cba);
    padding-bottom: 10px;
}

.section-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--tb--gray, #666);
    margin-bottom: 15px;
}

/* 隐私通知框 */
.privacy-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.privacy-notice p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
}

/* 信息分类区域 */
.info-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-category {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid var(--tb--border, #e8ecf0);
    transition: all 0.3s ease;
}

.info-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--tb--main, #007cba);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-category h3 i:before {
    content: attr(data-icon);
}

.info-category p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--tb--gray, #666);
    margin: 0;
}

/* Cookie详情 */
.cookie-details {
    background: white;
    border-radius: 4px;
    padding: 12px;
    margin-top: 10px;
    border-left: 3px solid var(--tb--main, #007cba);
}

.cookie-details p {
    font-size: 0.9rem;
    color: var(--tb--gray, #555);
    margin: 0;
}

/* 使用目的区域 */
.usage-purposes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.usage-purpose {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid var(--tb--border, #e8ecf0);
    transition: all 0.3s ease;
}

.purpose-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--tb--main, #007cba);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.purpose-icon i {
    font-size: 1.2rem;
    color: white;
}

.purpose-icon i:before {
    content: attr(data-icon);
}

.purpose-content {
    flex: 1;
}

.purpose-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tb--content, #333);
    margin-bottom: 8px;
}

.purpose-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--tb--gray, #666);
    margin: 0;
}

/* 联系方式 */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--tb--border, #e8ecf0);
    transition: all 0.3s ease;
}

.contact-method i {
    font-size: 1.2rem;
    color: var(--tb--main, #007cba);
    margin-top: 3px;
}

.contact-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tb--content, #333);
    margin-bottom: 6px;
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--tb--gray, #666);
    margin: 0;
}

.contact-info a {
    color: var(--tb--main, #007cba);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* 感谢部分 */
.thanks-message {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--tb--main, #007cba);
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid var(--tb--border, #e8ecf0);
}

/* 深色模式适配 */
body.darking .privacy-update-date,
html[data-night="1"] .privacy-update-date {
    background: var(--tb--bdbg, #2a2a2a) !important;
    border-color: var(--tb--border, #404040) !important;
    color: var(--tb--content, #ffffff) !important;
}

body.darking .privacy-section,
body.darking .info-category,
body.darking .usage-purpose,
body.darking .contact-method,
html[data-night="1"] .privacy-section,
html[data-night="1"] .info-category,
html[data-night="1"] .usage-purpose,
html[data-night="1"] .contact-method {
    background: var(--tb--bdbg, #2a2a2a) !important;
    border-color: var(--tb--border, #404040) !important;
    color: var(--tb--content, #ffffff) !important;
}

body.darking .privacy-notice,
html[data-night="1"] .privacy-notice {
    background: #3d2914 !important;
    border-color: #5a3f1a !important;
}

body.darking .privacy-notice p,
html[data-night="1"] .privacy-notice p {
    color: #f4d03f !important;
}

body.darking .cookie-details,
html[data-night="1"] .cookie-details {
    background: var(--tb--bdbg, #2a2a2a) !important;
    border-left-color: var(--tb--main, #007cba) !important;
}

body.darking .thanks-message,
html[data-night="1"] .thanks-message {
    background: var(--tb--bdbg, #2a2a2a) !important;
    border-color: var(--tb--border, #404040) !important;
    color: var(--tb--main, #007cba) !important;
}

/* 暗黑模式下的文字颜色调整 */
body.darking .privacy-header .art-title,
body.darking .section-content h2,
body.darking .info-category h3,
body.darking .purpose-content h3,
body.darking .contact-info h4,
html[data-night="1"] .privacy-header .art-title,
html[data-night="1"] .section-content h2,
html[data-night="1"] .info-category h3,
html[data-night="1"] .purpose-content h3,
html[data-night="1"] .contact-info h4 {
    color: var(--tb--content, #ffffff) !important;
}

body.darking .section-content p,
body.darking .info-category p,
body.darking .purpose-content p,
body.darking .contact-info p,
body.darking .cookie-details p,
html[data-night="1"] .section-content p,
html[data-night="1"] .info-category p,
html[data-night="1"] .purpose-content p,
html[data-night="1"] .contact-info p,
html[data-night="1"] .cookie-details p {
    color: var(--tb--gray, #cccccc) !important;
}

/* 深色模式下的阴影调整 */
body.darking .privacy-section,
body.darking .contact-method,
html[data-night="1"] .privacy-section,
html[data-night="1"] .contact-method {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .privacy-page {
        padding: 0 15px;
    }
    
    .privacy-header {
        padding: 30px 0 40px;
    }
    
    .privacy-header .art-title {
        font-size: 2rem;
    }
    
    .privacy-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    
    .section-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .section-icon i {
        font-size: 1.2rem;
    }
    
    .section-content h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .info-categories {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .usage-purposes {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .usage-purpose {
        flex-direction: column;
        text-align: center;
    }
    
    .purpose-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .privacy-header .art-title {
        font-size: 1.8rem;
    }
    
    .privacy-update-date {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .section-content h2 {
        font-size: 1.3rem;
    }
    
    .info-category h3 {
        font-size: 1.1rem;
    }
    
    .purpose-content h3 {
        font-size: 1rem;
    }
    
    .usage-purpose {
        padding: 15px;
    }
    
    .contact-method {
        padding: 15px;
    }
}

/* 动画效果 */
.privacy-section:hover,
.info-category:hover,
.usage-purpose:hover,
.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.darking .privacy-section:hover,
body.darking .info-category:hover,
body.darking .usage-purpose:hover,
body.darking .contact-method:hover,
html[data-night="1"] .privacy-section:hover,
html[data-night="1"] .info-category:hover,
html[data-night="1"] .usage-purpose:hover,
html[data-night="1"] .contact-method:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 平滑过渡效果 */
.privacy-section,
.info-category,
.usage-purpose,
.contact-method,
.privacy-update-date,
.privacy-notice,
.cookie-details,
.thanks-message {
    transition: all 0.3s ease;
}

/* 确保在主题切换时平滑过渡 */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* 特殊样式 - 强调重要信息 */
.privacy-notice {
    position: relative;
}

.privacy-notice::before {
    content: "⚠️";
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.2rem;
}

.privacy-notice p {
    padding-left: 35px;
}

/* 链接样式 */
.section-content a {
    color: var(--tb--main, #007cba);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.section-content a:hover {
    border-bottom-color: var(--tb--main, #007cba);
}

/* 列表样式 */
.section-content ul,
.section-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.section-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--tb--gray, #666);
}

/* 强调文本 */
.section-content strong {
    color: var(--tb--content, #333);
    font-weight: 600;
}

body.darking .section-content strong,
html[data-night="1"] .section-content strong {
    color: var(--tb--content, #ffffff) !important;
}
