/* styles.css */

:root {
    /* 深色模式颜色 */
    --dark-bg-primary: #1a1a1a;
    --dark-bg-secondary: #2d2d2d;
    --dark-text-primary: #f0f0f0;
    --dark-text-secondary: #b0b0b0;
    --dark-border: #444;
    
    /* 浅色模式颜色 */
    --light-bg-primary: #ffffff;
    --light-bg-secondary: #f8f9fa;
    --light-text-primary: #333333;
    --light-text-secondary: #666666;
    --light-border: #e0e0e0;
    
    /* 强调色 */
    --accent-color: #1976d2; /* 克莱因蓝 */
    --danger-color: #d32f2f; /* 暗红 */
}

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s;
    scroll-behavior: smooth;
}

.dark-mode {
    background-color: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

.light-mode {
    background-color: var(--light-bg-primary);
    color: var(--light-text-primary);
}

/* 卡片样式 */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 8px;
    overflow: hidden;
}

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

.dark-mode .card {
    background-color: var(--dark-bg-secondary);
    border: 1px solid var(--dark-border);
}

.light-mode .card {
    background-color: var(--light-bg-secondary);
    border: 1px solid var(--light-border);
}

/* 三语对照排版 */
.trilingual-block {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.chinese-text {
    font-size: 1.125rem; /* 18px */
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.english-text, .japanese-text {
    font-size: 0.875rem; /* 14px */
    color: var(--dark-text-secondary);
    line-height: 1.6;
}

.light-mode .english-text, 
.light-mode .japanese-text {
    color: var(--light-text-secondary);
}

.highlight-danger {
    color: var(--danger-color);
    font-weight: 600;
}

/* 时间线样式 */
.timeline-container {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
    transition: transform 0.3s;
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-item::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    left: -6px;
    top: 8px;
    z-index: 2;
    transition: transform 0.3s;
}

.timeline-item:hover::before {
    transform: scale(1.2);
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--accent-color);
}

.phase-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.phase-description {
    font-size: 0.875rem;
    color: var(--dark-text-secondary);
    line-height: 1.5;
}

.light-mode .phase-description {
    color: var(--light-text-secondary);
}

.phase-check {
    color: #4caf50;
    font-weight: bold;
}

/* 模糊遮罩面板 */
.blur-panel {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    transition: all 0.3s;
}

.dark-mode .blur-panel {
    background-color: rgba(0, 0, 0, 0.2);
}

.hidden-content {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.hidden-content.revealed {
    filter: blur(0);
}

.reveal-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.3s;
}

.reveal-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.defense-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
    padding: 15px;
    border-radius: 4px;
}

.dark-mode .defense-item {
    border-bottom: 1px solid #444;
}

.defense-item:hover {
    background-color: rgba(25, 118, 210, 0.05);
}

.dark-mode .defense-item:hover {
    background-color: rgba(25, 118, 210, 0.1);
}

.defense-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.defense-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 导航样式 */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.2s;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--accent-color);
    background-color: rgba(25, 118, 210, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

/* 标题样式 */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: var(--accent-color);
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--accent-color);
}

/* 经济准则样式 */
.economic-item {
    margin-bottom: 1rem;
    padding: 1rem;
    border-left: 4px solid var(--accent-color);
    background-color: rgba(25, 118, 210, 0.05);
    border-radius: 0 4px 4px 0;
}

/* 附录样式 */
.appendix-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.appendix-item:hover {
    background-color: rgba(25, 118, 210, 0.05);
}

.appendix-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.version-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.version-item:hover {
    background-color: rgba(25, 118, 210, 0.05);
}

.version-item::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    left: -4px;
    top: 6px;
}

/* 返回顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 100;
}

.scroll-to-top.visible {
    opacity: 1;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .subsection-title {
        font-size: 1.25rem;
    }
    
    .trilingual-block {
        padding: 1rem;
    }
    
    .chinese-text {
        font-size: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .timeline-container {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 15px;
    }
}

@media (max-width: 640px) {
    .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .subsection-title {
        font-size: 1.1rem;
    }
}