/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
:root {
    /* 现代化配色方案 */
    --primary-color: #4361EE;
    --secondary-color: #3A0CA3;
    --accent-color: #7209B7;
    --text-color: #2B2D42;
    --light-text: #64748B;
    --background-color: #FFFFFF;
    --light-bg: #F7F9FC;
    --border-color: #E2E8F0;
    --gradient-primary: linear-gradient(135deg, #4361EE, #7209B7);
    --shadow: 0 10px 25px -5px rgba(67, 97, 238, 0.1), 0 10px 10px -5px rgba(67, 97, 238, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-radius: 16px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 头部样式 */
header {
    padding: 1.2rem 0;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 42px;
    margin-right: 12px;
    filter: drop-shadow(0 4px 8px rgba(67, 97, 238, 0.2));
    transition: var(--transition);
    object-fit: contain;
    border-radius: 12px;
}

.logo img:hover {
    transform: scale(1.05) rotate(5deg);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.8rem;
}

nav ul li {
    margin-left: 0.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    transition: var(--transition);
}

nav ul li a.active, 
nav ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.08);
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.05);
    transform: translateY(-2px);
}

/* 主要内容样式 */
main {
    padding: 4rem 0;
    background-color: var(--light-bg);
    min-height: calc(100vh - 200px);
}

.hero {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(247,249,252,1) 100%);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    opacity: 0.05;
    border-radius: 50%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
}

.last-updated {
    color: var(--light-text);
    font-style: italic;
    font-size: 0.95rem;
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: rgba(67, 97, 238, 0.05);
    border-radius: 30px;
}

/* 隐私政策内容样式 */
.policy-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2.5rem;
    background-color: var(--background-color);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.policy-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.policy-nav {
    padding: 2.5rem 1.8rem;
    background-color: rgba(247, 249, 252, 0.7);
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

.policy-nav h3 {
    margin-bottom: 1.8rem;
    font-size: 1.3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.policy-nav ul {
    list-style: none;
}

.policy-nav ul li {
    margin-bottom: 0.8rem;
}

.toc-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.toc-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: var(--background-color);
    background: var(--primary-color);
    margin-right: 0.8rem;
    font-size: 0.8rem;
    opacity: 0.9;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.toc-link:hover {
    background-color: rgba(67, 97, 238, 0.08);
    transform: translateX(4px);
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.05);
}

.toc-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background-color: var(--border-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.toc-link:hover::after {
    transform: scaleX(1);
}

.toc-link.active {
    background-color: rgba(67, 97, 238, 0.12);
    font-weight: 500;
    position: relative;
}

.toc-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 0 2px 2px 0;
}

.policy-text {
    padding: 2.5rem;
}

.policy-text section {
    margin-bottom: 3.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    opacity: 0.4;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.policy-text section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.policy-text section:last-child {
    border-bottom: none;
}

.policy-text h2 {
    font-size: 2rem;
    margin-bottom: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: inline-block;
}

.placeholder-text {
    padding: 1.5rem;
    background-color: rgba(67, 97, 238, 0.03);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.02);
}

.policy-content-text {
    line-height: 1.8;
}

.policy-content-text p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

.policy-content-text ul {
    margin-bottom: 1.2rem;
    margin-left: 1.5rem;
}

.policy-content-text li {
    margin-bottom: 0.7rem;
}

.policy-content-text h3 {
    margin-top: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.policy-content-text a {
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 1px;
}

.policy-content-text a:hover {
    border-bottom: 2px solid var(--primary-color);
}

/* 页脚样式 */
footer {
    padding: 4rem 0 3rem;
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--background-color) 100%);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 36px;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 4px 8px rgba(67, 97, 238, 0.2));
    object-fit: contain;
    border-radius: 10px;
}

.footer-logo p {
    color: var(--light-text);
    margin-top: 0.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(67, 97, 238, 0.2);
}

.footer-links h4,
.footer-download h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 1rem;
}

.footer-links ul li a {
    color: var(--text-color);
    font-weight: 400;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-links ul li a i {
    color: var(--primary-color);
    font-size: 1rem;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.app-badges {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

.app-badge i {
    font-size: 1.4rem;
}

.app-badge:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 25px rgba(67, 97, 238, 0.25);
}

.copyright {
    text-align: center;
    color: var(--light-text);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.made-with {
    font-size: 0.9rem;
}

.made-with i {
    color: #e04c8e;
    background: linear-gradient(45deg, #ff3366, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 响应式设计 */
@media (max-width: 900px) {
    .policy-content {
        grid-template-columns: 1fr;
    }
    
    .policy-nav {
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-links ul,
    .app-badges {
        align-items: center;
    }
    
    .footer-links h4,
    .footer-download h4 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        padding: 80px 20px 30px;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }
    
    nav ul.show {
        right: 0;
    }
    
    nav ul li {
        margin: 0 0 1rem 0;
    }
    
    header .container {
        position: relative;
    }
}

@media (max-width: 600px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        justify-content: center;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.5rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .policy-text h2 {
        font-size: 1.6rem;
    }
    
    .policy-content-text h3 {
        font-size: 1.2rem;
    }
}

/* 增加动画效果 */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .policy-content {
    animation: fadeIn 0.8s ease-out;
}

/* 添加卡片悬停效果 */
.hero:hover,
.policy-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 35px -5px rgba(67, 97, 238, 0.1), 0 15px 20px -5px rgba(67, 97, 238, 0.07);
    transition: var(--transition);
}

/* 添加元素进入视图的动画 */
.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 高亮点击的章节 */
.highlight-section {
    animation: highlight 2s ease-out;
}

@keyframes highlight {
    0% {
        background-color: rgba(67, 97, 238, 0.15);
    }
    100% {
        background-color: transparent;
    }
}

/* 移动导航菜单 */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.8rem;
    z-index: 110;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background-color: rgba(67, 97, 238, 0.08);
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gradient-primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        padding: 80px 20px 30px;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }
    
    nav ul.show {
        right: 0;
    }
    
    nav ul li {
        margin: 0 0 1rem 0;
    }
    
    header .container {
        position: relative;
    }
}

@media (max-width: 600px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        justify-content: center;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.5rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .policy-text h2 {
        font-size: 1.6rem;
    }
    
    .policy-content-text h3 {
        font-size: 1.2rem;
    }
} 