/* Privacy Policy页面专用样式 */
@import url('main.css');

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.header-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-icon i {
    font-size: 4rem;
    color: white;
}

.last-updated {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* Sidebar Navigation */
.sidebar-nav {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    top: 100px;
}

.sidebar-nav h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1976d2;
}

.sidebar-nav .nav-link {
    color: #666;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    position: relative;
}

.sidebar-nav .nav-link:hover {
    background: #f8f9fa;
    color: #1976d2;
    transform: translateX(5px);
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(45deg, #1976d2, #2196f3);
    color: white;
}

.sidebar-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #1976d2;
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.sidebar-nav .nav-link:hover::before,
.sidebar-nav .nav-link.active::before {
    opacity: 1;
}

/* Privacy Content */
.privacy-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.content-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.content-section h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.content-section h2 i {
    color: #1976d2;
    margin-right: 0.5rem;
}

.content-section h4 {
    color: #444;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    position: relative;
    padding-left: 1rem;
}

.content-section h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 4px;
    height: 1.2rem;
    background: linear-gradient(45deg, #1976d2, #2196f3);
    border-radius: 2px;
}

.content-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-section ul {
    margin-bottom: 1rem;
}

.content-section li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.content-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #1976d2;
    font-weight: bold;
}

.content-section li strong {
    color: #333;
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    color: #1976d2;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #666;
    margin-bottom: 0;
}

/* Navigation Active State */
.navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Smooth Scrolling Behavior */
html {
    scroll-behavior: smooth;
}

/* 滚动间谍效果 */
.content-section {
    scroll-margin-top: 100px;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .sidebar-nav {
        position: static !important;
        margin-bottom: 2rem;
    }
    
    .privacy-content {
        margin-top: 0;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .header-icon {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }
    
    .header-icon i {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .privacy-content {
        padding: 1.5rem;
    }
    
    .content-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .sidebar-nav {
        padding: 1rem;
    }
    
    .sidebar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-item i {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 60px 0 30px;
    }
    
    .header-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }
    
    .header-icon i {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .privacy-content {
        padding: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .content-section h4 {
        font-size: 1.1rem;
    }
    
    .sidebar-nav .nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }
    
    .sidebar-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem;
        text-align: center;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .sidebar-nav,
    footer {
        display: none !important;
    }
    
    .page-header {
        background: none !important;
        color: #333 !important;
        padding: 1rem 0 !important;
    }
    
    .page-header::before {
        display: none;
    }
    
    .privacy-content {
        box-shadow: none;
        border: 1px solid #ccc;
        margin: 0;
    }
    
    .content-section {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .content-section h2 {
        color: #333 !important;
        border-bottom: 2px solid #333;
    }
    
    .container {
        max-width: none !important;
    }
}

/* 页面加载动画 */
.page-loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.page-loaded .page-loading {
    opacity: 1;
    transform: translateY(0);
}

/* 高亮当前章节 */
.content-section.highlight {
    background: rgba(25, 118, 210, 0.02);
    border-left: 4px solid #1976d2;
    padding-left: 1.5rem;
    margin-left: -1.5rem;
    border-radius: 0 8px 8px 0;
}

/* 自定义滚动条 */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #1976d2;
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #1565c0;
} 