/* 隐私政策页面专用样式 */

/* 语言切换器 */
.language-switcher {
    position: relative;
    margin-left: 1rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
}

.lang-btn i:last-child {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.lang-btn.active i:last-child {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark-secondary);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 5px;
}

.lang-option:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
}

.lang-option i {
    font-size: 0.8rem;
    width: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lang-option.active i {
    opacity: 1;
}

/* 隐私政策主要内容 */
.privacy-main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background: var(--dark-bg);
}

.privacy-header {
    text-align: center;
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.privacy-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 隐私政策内容 */
.privacy-content {
    padding: 60px 0;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeInContent 0.5s ease-out;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--gradient-secondary);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.policy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.policy-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.policy-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
    padding-left: 1rem;
}

.policy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1rem;
    font-size: 1.05rem;
}

.policy-section ul {
    list-style: none;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.policy-section ul li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.05rem;
}

.policy-section ul li::before {
    content: '▸';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.policy-section ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 联系信息样式 */
.contact-info {
    background: rgba(0, 212, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    margin-left: 1rem;
    margin-top: 1rem;
}

.contact-info p {
    padding-left: 0;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.contact-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 导航栏样式调整 */
.nav-logo a {
    text-decoration: none;
}

.nav-logo a h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
}

/* 页脚多语言支持 */
.footer .content-section {
    display: none;
}

.footer .content-section.active {
    display: block;
}

/* 滚动条样式 */
.privacy-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.privacy-content::-webkit-scrollbar {
    width: 6px;
}

.privacy-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.privacy-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.privacy-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .language-switcher {
        order: -1;
        margin-left: 0;
        margin-right: 1rem;
    }
    
    .nav-container {
        justify-content: space-between;
    }
    
    .privacy-header h1 {
        font-size: 2.2rem;
    }
    
    .privacy-header {
        padding: 40px 0 30px;
    }
    
    .privacy-content {
        padding: 40px 0;
    }
    
    .policy-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
    }
    
    .policy-section h3 {
        font-size: 1.2rem;
    }
    
    .lang-dropdown {
        right: auto;
        left: 0;
    }
}

@media (max-width: 480px) {
    .privacy-header h1 {
        font-size: 1.8rem;
    }
    
    .policy-section {
        padding: 1rem;
    }
    
    .policy-section h2 {
        font-size: 1.3rem;
    }
    
    .policy-section ul {
        padding-left: 1rem;
    }
    
    .contact-info {
        margin-left: 0;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .language-switcher,
    .footer {
        display: none;
    }
    
    .privacy-main {
        margin-top: 0;
    }
    
    .policy-section {
        background: transparent;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    .privacy-header h1 {
        color: #000;
    }
    
    .policy-section h2,
    .policy-section h3 {
        color: #000;
    }
    
    .policy-section p,
    .policy-section li {
        color: #333;
    }
}

/* 可访问性增强 */
.policy-section:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.lang-option:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .policy-section {
        border: 2px solid var(--primary-color);
    }
    
    .lang-btn {
        border: 2px solid var(--primary-color);
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .content-section.active {
        animation: none;
    }
    
    .lang-dropdown {
        transition: none;
    }
    
    .lang-btn i:last-child {
        transition: none;
    }
}

