/* 隐私政策页面样式 */
.privacy-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #f8f9fa;
}

.privacy-container {
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 页面头部 */
.hero-section {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.last-updated {
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
}

/* 政策内容 */
.policy-content {
    padding: 4rem 0;
    background: white;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

/* 侧边栏 */
.policy-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.toc-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.toc-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.table-of-contents {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-link {
    color: #7f8c8d;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.toc-link:hover {
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
    border-left-color: #6c5ce7;
}

.toc-link.active {
    background: rgba(108, 92, 231, 0.15);
    color: #6c5ce7;
    border-left-color: #6c5ce7;
    font-weight: 500;
}

/* 主要内容 */
.policy-main {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.policy-article {
    padding: 3rem;
}

.policy-section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.policy-section h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin: 2rem 0 1rem 0;
}

.policy-section h4 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
}

.policy-section p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.05rem;
}

.policy-section ul,
.policy-section ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* 高亮框 */
.highlight-box {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.highlight-box h4 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
}

.highlight-box p {
    color: white;
    margin-bottom: 0;
}

/* 使用场景 */
.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.use-case {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #6c5ce7;
}

.use-case h4 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.use-case p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* 共享场景 */
.sharing-scenarios {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.scenario {
    background: #fff5f5;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #e74c3c;
}

.scenario h4 {
    color: #c0392b;
    margin: 0 0 1rem 0;
}

.scenario p {
    margin: 0;
    color: #666;
}

/* 安全措施 */
.security-measures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.measure {
    background: #f0fff4;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #27ae60;
}

.measure h4 {
    color: #27ae60;
    margin: 0 0 1rem 0;
}

.measure ul {
    margin: 0;
    padding-left: 1.5rem;
}

.measure li {
    color: #666;
    margin-bottom: 0.5rem;
}

.security-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.security-notice p {
    margin: 0;
    color: #856404;
}

/* Cookie类型 */
.cookie-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.cookie-type {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-top: 4px solid #fd79a8;
}

.cookie-type h4 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.cookie-type p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* 用户权利 */
.user-rights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right {
    background: #f0f8ff;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #74b9ff;
}

.right h4 {
    color: #0984e3;
    margin: 0 0 1rem 0;
}

.right p {
    margin: 0;
    color: #666;
}

/* 儿童政策 */
.children-policy {
    background: #fff0f6;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #fd79a8;
    margin: 2rem 0;
}

.children-policy h4 {
    color: #e84393;
    margin: 0 0 1rem 0;
}

.children-policy ul {
    margin-bottom: 1.5rem;
}

.children-policy li {
    color: #666;
}

/* 政策更新 */
.policy-updates {
    background: #f0f8ff;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.policy-updates h4 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.policy-updates ul {
    margin-bottom: 1.5rem;
}

.policy-updates p {
    margin-bottom: 1rem;
}

/* 联系信息 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #00b894;
}

.contact-item h4 {
    color: #00b894;
    margin: 0 0 1rem 0;
}

.contact-item p {
    margin: 0;
    color: #666;
}

.contact-item a {
    color: #00b894;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* 导航样式 */
.nav-menu a.active {
    color: #6c5ce7;
    font-weight: 600;
}

.footer-nav a.active {
    color: #6c5ce7;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .policy-sidebar {
        position: static;
        order: 2;
    }
    
    .policy-article {
        padding: 2rem 1.5rem;
    }
    
    .use-cases,
    .security-measures,
    .cookie-types,
    .user-rights,
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .policy-content {
        padding: 2rem 0;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
    }
    
    .toc-section,
    .policy-article {
        padding: 1.5rem;
    }
}