/* 自定义样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-image {
    position: relative;
}

/* 卡片样式 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* 法律文档样式 */
.legal-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    padding: 80px 0 60px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-toc {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.legal-toc ul {
    list-style: none;
    padding-left: 0;
}

.legal-toc li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.legal-toc li:last-child {
    border-bottom: none;
}

.legal-toc a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-toc a:hover {
    color: #0056b3;
}

.legal-section {
    scroll-margin-top: 100px;
}

.legal-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
}

.legal-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

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

.legal-section li {
    margin-bottom: 0.5rem;
}

/* 更新历史样式 */
.changelog-item {
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.changelog-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.version-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.release-date {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 2rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .legal-hero {
        padding: 60px 0 40px;
    }
    
    .legal-toc {
        padding: 1rem;
    }
    
    .changelog-item {
        padding-left: 1.5rem;
    }
}

/* 滚动行为 */
html {
    scroll-behavior: smooth;
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 按钮样式增强 */
.btn {
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* 徽章样式 */
.badge {
    font-weight: 500;
}

/* 页脚样式 */
footer {
    background: var(--dark-color) !important;
}

footer h5 {
    color: white;
}

footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

footer .list-unstyled a {
    color: #adb5bd !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .list-unstyled a:hover {
    color: white !important;
    text-decoration: underline;
}

/* 打印样式 */
@media print {
    .navbar, footer {
        display: none;
    }
    
    main {
        padding-top: 0 !important;
    }
    
    .legal-hero {
        background: none !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}