/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #8b5cf6;
    --dark-bg: #0a0e27;
    --darker-bg: #050814;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo a:hover {
    color: #fff;
}

.logo i {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--card-bg);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.lang-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--gradient-2);
    color: white;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-home:hover {
    background: var(--primary-color);
    color: white;
}

.back-home i {
    font-size: 1rem;
}

/* 主要内容 */
.privacy-content {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 3rem 0;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
}

.page-header h1 {
    font-size: 3rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 政策章节 */
.policy-section {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.policy-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.policy-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-section h2 i {
    font-size: 1.5rem;
}

.policy-section h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.policy-section ul {
    list-style: none;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.policy-section ul li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 25px;
}

.policy-section ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.policy-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 联系信息框 */
.contact-info,
.contact-box {
    background: rgba(0, 212, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    margin-top: 1rem;
}

.contact-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p,
.contact-box p {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i,
.contact-box i {
    color: var(--primary-color);
    width: 20px;
}

.contact-info a,
.contact-box a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover,
.contact-box a:hover {
    color: white;
    text-decoration: underline;
}

/* 页脚 */
.policy-footer {
    text-align: center;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    margin-top: 3rem;
}

.policy-footer p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.policy-footer strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 底部页脚 */
.footer {
    background: var(--darker-bg);
    padding: 30px 0;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
}

.footer-content a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.footer-content a:hover {
    color: white;
    text-decoration: underline;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

/* 语言切换动画 */
.lang-content {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .policy-section {
        padding: 1.5rem;
    }

    .policy-section h2 {
        font-size: 1.4rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .policy-section h3 {
        font-size: 1.1rem;
    }

    .contact-box,
    .contact-info {
        padding: 1rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .policy-section {
        padding: 1rem;
    }

    .policy-section h2 {
        font-size: 1.2rem;
    }

    .policy-section h3 {
        font-size: 1rem;
    }

    .policy-section p,
    .policy-section ul li {
        font-size: 0.9rem;
    }

    .language-switcher {
        flex: 1;
    }

    .lang-btn {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .back-home {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .back-home span {
        display: none;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .back-to-top,
    .language-switcher {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .policy-section {
        page-break-inside: avoid;
        border: 1px solid #ccc;
        background: white;
    }

    .policy-section h2,
    .policy-section h3,
    .policy-section strong {
        color: black;
    }

    .policy-section p,
    .policy-section ul li {
        color: #333;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00a8cc;
}

/* 选中文本样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}


