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

:root {
    --primary-color: #2979ff;
    --primary-dark: #1565c0;
    --primary-light: #e3f2fd;
    --accent-color: #ff5722;
    --text-dark: #263238;
    --text-medium: #455a64;
    --text-light: #78909c;
    --background: #f7f9fc;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'SimHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    overflow-x: hidden;
}

/* 隐藏左上角元素 */
body::before {
  display: none !important;
}

/* 隐藏所有可能包含路径的元素 */
[class*="path"], [id*="path"], [class*="file"], [id*="file"] {
  display: none !important;
}

/* 隐藏Live Server或开发工具的连接指示器 */
#live-server-indicator,
#browser-sync-indicator,
div[id*="indicator"],
div[class*="indicator"],
div[id*="connection"],
div[class*="connection"],
div[id*="status"],
div[class*="status"],
div[id*="socket"],
div[class*="socket"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 特定隐藏LiveReload/LiveServer/Browser-Sync指示器的样式 */
.livereload-loading,
#__bs_notify__,
.socket-connection-status,
.connection-status,
.dev-server-indicator {
  display: none !important;
}

/* 在网页加载时隐藏位于左上角的任何固定元素 */
body > div:first-child,
body > div:first-of-type {
  display: none !important;
}

/* 隐藏页面中所有的蓝色圆点/指示器 */
.indicator-dot, 
.progress-point,
.dot,
.circle,
.point,
.indicator,
.active-indicator,
.page-indicator,
.tab-indicator,
.progress-indicator,
.step-indicator,
.navigation-dot,
div[class*="dot"],
div[class*="point"],
div[class*="indicator"],
span[class*="dot"],
span[class*="point"],
span[class*="indicator"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    /* 强制移出屏幕 */
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* 隐藏与theory-panel或h3相关的任何指示器，包括伪元素 */
.theory-panel::before, .theory-panel::after,
.theory-panel h3::before, .theory-panel h3::after,
.tab-pane::before, .tab-pane::after,
p::before, p::after,
li::before, li::after,
div::before, div::after,
section::before, section::after,
label::before, label::after,
.slider::before, .slider::after,
.control-group::before, .control-group::after {
    display: none !important;
    content: none !important; /* 移除伪元素内容 */
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

header {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    z-index: 1;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #1a2133;
    color: #b0bec5;
    margin-top: 3rem;
    font-size: 0.9rem;
    position: relative;
}

footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* 导航栏样式升级 */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    background-color: #ffffff;
    padding: 0.75rem;
    border-radius: 50px; /* 创建药丸形状的容器 */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6f1;
}

.tab-btn {
    padding: 0.8rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600; /* 加粗字体 */
    color: var(--text-medium);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border-radius: 30px; /* 药丸形状的按钮 */
    text-decoration: none; /* 移除 a 标签的下划线 */
}

.tab-btn:hover {
    color: var(--primary-dark);
    background-color: var(--primary-light);
}

.tab-btn.active {
    color: white;
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(41, 121, 255, 0.3);
}

/* 移除旧的下划线效果 */
.tab-btn::before {
    display: none;
}

/* 标签内容区域 */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 控制面板样式 */
.control-panel, .ai-control-panel {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.control-panel:hover, .ai-control-panel:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.control-group input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-light));
    outline: none;
    border-radius: 8px;
    margin-bottom: 0.7rem;
    cursor: pointer;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(41, 121, 255, 0.3);
    transition: var(--transition);
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(41, 121, 255, 0.4);
}

.control-group output {
    display: block;
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-top: 0.3rem;
}

/* 实验仪器部分 */
.instrument-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    perspective: 1000px; /* 添加3D视角效果 */
}

.instrument-item {
    background: linear-gradient(145deg, #ffffff, #f5f7ff);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 
                0 1px 1px rgba(255, 255, 255, 0.8) inset;
    padding: 1.8rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    z-index: 1;
}

.instrument-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #6a11cb);
    opacity: 0;
    transition: all 0.4s ease;
}

.instrument-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.instrument-item:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 
                0 1px 1px rgba(255, 255, 255, 0.8) inset;
}

.instrument-item:hover::before {
    opacity: 1;
}

.instrument-item:hover::after {
    opacity: 1;
}

.instrument-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(230, 230, 250, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.instrument-item:hover .instrument-image {
    transform: translateZ(20px) scale(1.05);
    background-color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.instrument-item p {
    margin: 1rem 0 0.5rem;
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    display: inline-block;
    transform: translateZ(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.instrument-item p::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #6a11cb);
    transition: all 0.4s ease;
    opacity: 0.7;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.instrument-item:hover p {
    color: var(--primary-dark);
    transform: translateZ(15px);
}

.instrument-item:hover p::after {
    width: 80px;
    opacity: 1;
}

@media (max-width: 768px) {
    .instrument-gallery {
        grid-template-columns: 1fr;
    }
}

/* 牛顿环历史与插图布局美化 */
.history-with-illustration {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin: 2rem 0;
    align-items: center;
}

.history-text {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(145deg, #ffffff, #f8f9fc);
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.history-text::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(41, 121, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.newton-rings-illustration {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.illustration-container {
    width: 320px;
    height: 320px;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
}

.illustration-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    z-index: 2;
    pointer-events: none;
}

.illustration-container:hover {
    transform: translateY(-5px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.illustration-container canvas {
    width: 100%;
    height: 100%;
    display: block;
    transition: all 0.5s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.illustration-container:hover canvas {
    transform: scale(1.05);
}

.illustration-caption {
    text-align: center;
    color: var(--text-medium);
    font-size: 1rem;
    margin-top: 1rem;
    max-width: 320px;
    font-weight: 500;
    background: linear-gradient(145deg, #f8f9fc, #ffffff);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.illustration-caption:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .history-with-illustration {
        flex-direction: column;
    }
    
    .newton-rings-illustration {
        margin: 1rem auto;
    }
    
    .illustration-container {
        width: 280px;
        height: 280px;
    }
}

/* 干涉原理图示样式美化 */
.interference-illustration {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
    justify-content: center;
    background: linear-gradient(145deg, #f0f4ff, #ffffff);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.interference-illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.interference-diagram {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.interference-diagram:hover {
    transform: translateY(-8px) rotateX(3deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.interference-diagram canvas {
    background: linear-gradient(to bottom, #f0f4ff, #ffffff);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.2rem;
    border: 1px solid rgba(230, 230, 250, 0.5);
    max-width: 100%;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.interference-diagram:hover canvas {
    transform: translateZ(20px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.diagram-caption {
    text-align: center;
    color: var(--primary-dark);
    font-size: 1.05rem;
    margin: 0.8rem 0 0.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.diagram-caption::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #6a11cb);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.interference-diagram:hover .diagram-caption::after {
    width: 60px;
}

@media (max-width: 768px) {
    .interference-illustration {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
    }
    
    .interference-diagram {
        width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* 薄膜干涉图片画廊美化 */
.thin-film-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin: 25px 0;
    perspective: 1000px;
}

.thin-film-item {
    flex: 0 0 31%;
    background: linear-gradient(145deg, #ffffff, #f5f7ff);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.thin-film-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

.thin-film-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.thin-film-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    transition: all 0.5s ease;
    filter: brightness(1);
}

.thin-film-item:hover .thin-film-image {
    transform: translateZ(10px) scale(1.03);
    filter: brightness(1.1);
}

.thin-film-item p {
    padding: 15px;
    text-align: center;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    transform: translateZ(5px);
    position: relative;
}

.thin-film-item p::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #6a11cb);
    border-radius: 3px;
    opacity: 0;
    transition: all 0.3s ease;
}

.thin-film-item:hover p {
    color: var(--primary-dark);
}

.thin-film-item:hover p::after {
    opacity: 1;
    width: 50px;
}

@media (max-width: 768px) {
    .thin-film-gallery {
        flex-direction: column;
    }
    
    .thin-film-item {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
}

/* 等厚干涉与等倾干涉示意图美化 */
.interference-types {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 30px 0;
    background: linear-gradient(145deg, #f0f4ff, #ffffff);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.interference-types::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.interference-type-item {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.interference-type-item:hover {
    transform: translateY(-8px) rotateX(3deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.interference-type-item .interference-diagram {
    box-shadow: none;
    padding: 0;
    margin-bottom: 15px;
}

.interference-type-item canvas {
    background: linear-gradient(to bottom, #f0f4ff, #ffffff);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
    border: 1px solid rgba(230, 230, 250, 0.5);
    max-width: 100%;
    transition: all 0.4s ease;
}

.interference-type-item:hover canvas {
    transform: translateZ(15px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.interference-type-item .diagram-caption {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.interference-description {
    margin-top: 15px;
}

.interference-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-medium);
}

@media (max-width: 768px) {
    .interference-types {
        flex-direction: column;
        padding: 20px;
    }
    
    .interference-type-item {
        margin-bottom: 20px;
    }
}

/* 牛顿环干涉原理详解部分美化 */
.experiment-steps-container {
    margin: 30px 0;
    background: linear-gradient(145deg, #f8f9fc, #ffffff);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.experiment-steps-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.experiment-step-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.experiment-step-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.experiment-step-section h4 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    position: relative;
}

.experiment-step-section h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.experiment-step-section:hover h4::after {
    width: 100px;
}

.rings-visualization {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.visualization-container {
    width: 350px;
    height: 250px;
    background: linear-gradient(145deg, #f0f4ff, #ffffff);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.visualization-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.visualization-container:hover {
    transform: translateY(-5px) rotateX(3deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.visualization-container canvas {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.visualization-container:hover canvas {
    transform: scale(1.03);
}

.visualization-controls {
    margin-top: 15px;
    display: flex;
    align-items: center;
    background: white;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.visualization-controls:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.visualization-controls label {
    margin-right: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.visualization-controls input[type="range"] {
    flex: 1;
    height: 6px;
    appearance: none;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    border-radius: 3px;
    outline: none;
    margin: 0 10px;
}

.visualization-controls input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.visualization-controls input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.visualization-controls span {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 20px;
    text-align: center;
}

.graph-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.graph-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.graph-caption {
    text-align: center;
    color: var(--text-medium);
    font-size: 1rem;
    margin-top: 15px;
    font-weight: 500;
}

/* 关键概念强调 */
.key-concept {
    background: linear-gradient(145deg, #e3f2fd, #f5f7ff);
    border-left: 4px solid var(--primary-color);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 16px 16px 0;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.key-concept:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.key-concept::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 0.6;
}

.key-concept p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
    position: relative;
    z-index: 1;
}

.key-concept strong {
    color: var(--primary-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 2px;
}

@media (max-width: 768px) {
    .key-concept {
        padding: 15px 20px;
    }
    
    .key-concept p {
        font-size: 1rem;
    }
}

/* 实验原理模块样式 */
.theory-panel {
    background: linear-gradient(to bottom right, #ffffff, #f8f9fc);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    margin: 2.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.theory-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(41, 121, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.theory-panel:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.theory-panel h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
    position: relative;
}

.theory-panel h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 70px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.theory-panel:hover h3::after {
    width: 100px;
}

.theory-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-medium);
    position: relative;
    z-index: 1;
}

.theory-content p {
    margin-bottom: 1.4rem;
}

.theory-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.formula {
    background: linear-gradient(to right, #f5f7ff, #ffffff);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.8rem 0;
    font-family: 'Times New Roman', serif;
    text-align: center;
    font-size: 1.3rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8f0fe;
    position: relative;
    transition: var(--transition);
}

.formula::before {
    content: '⦅';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.1;
}

.formula::after {
    content: '⦆';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.1;
}

.formula:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.formula span {
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding: 0 3px;
}

.formula span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(41, 121, 255, 0.1);
    border-radius: 2px;
    z-index: -1;
}

/* 实验原理中的列表样式 */
.theory-content ul {
    list-style: none;
    padding-left: 1.8rem;
    margin: 1.3rem 0;
}

.theory-content ul li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1.8rem;
}

.theory-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    transition: var(--transition);
}

.theory-content ul li:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.1);
}

/* 实验原理中的引用样式 */
.theory-content blockquote {
    background: #f8faff;
    border-left: 4px solid var(--primary-color);
    padding: 1.3rem 1.8rem;
    margin: 1.8rem 0;
    font-style: italic;
    color: var(--text-medium);
    border-radius: 0 8px 8px 0;
    position: relative;
    transition: var(--transition);
}

.theory-content blockquote::before {
    content: '"';
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.theory-content blockquote:hover {
    background: #f0f4ff;
    transform: translateX(5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .theory-panel {
        padding: 1.8rem;
    }
    
    .theory-panel h3 {
        font-size: 1.3rem;
    }
    
    .formula {
        font-size: 1.1rem;
        padding: 1.2rem;
    }
    
    .instrument-gallery {
        grid-template-columns: 1fr;
    }
}

/* 仿真显示区域 */
.simulation-display {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.newton-rings-container {
    position: relative;
    width: 500px; /* 固定宽度 */
    height: 500px; /* 固定高度与宽度相同，确保是正方形 */
    max-width: 100%; /* 响应式设计 */
    aspect-ratio: 1/1; /* 强制保持1:1的比例 */
    margin: 0 auto;
    background-color: #000;
    border-radius: 10px; /* 减小圆角以更方正 */
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

#newton-rings-canvas {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1; /* 确保画布也保持1:1的比例 */
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: contain; /* 确保内容适合容器 */
}

.newton-rings-container:hover {
    border-color: rgba(41, 121, 255, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.newton-rings-container:hover #newton-rings-canvas {
    filter: brightness(1.1);
}

.canvas-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 10;
}

.zoom-controls {
    display: flex;
    gap: 5px;
}

#zoom-in, #zoom-out, #reset-view {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#zoom-in:hover, #zoom-out:hover, #reset-view:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.ring-info {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    margin-top: 10px;
    font-size: 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 选择提示样式 */
.selection-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.selection-toast.visible {
    opacity: 1;
}

/* 拟合数据显示 */
.fit-data {
    background-color: #f0f4f8;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.fit-data div {
    margin-bottom: 5px;
}

/* 按钮样式 */
button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(41, 121, 255, 0.3);
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

button:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(41, 121, 255, 0.4);
    transform: translateY(-2px);
}

button:focus::after {
    animation: ripple 1s ease-out;
}

.result-display {
    margin-top: 1.8rem;
    padding: 1.5rem;
    background-color: #f8faff;
    border-radius: 8px;
    border: 1px solid rgba(41, 121, 255, 0.1);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.result-display:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.result-display p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-medium);
}

.result-display span {
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 2px;
}

/* 导出按钮样式 */
.export-btn {
    margin-top: 1.2rem;
    padding: 0.7rem 1.4rem;
    background-color: #34a853;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.25);
}

.export-btn:hover {
    background-color: #2d9249;
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.35);
    transform: translateY(-2px);
}

/* 详细结果表格样式 */
.detailed-results {
    margin-top: 20px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.detailed-results h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #4285f4;
    padding-bottom: 8px;
}

.detailed-results table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.detailed-results td {
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
}

.detailed-results td:first-child {
    font-weight: 500;
    width: 40%;
    color: #555;
}

.detailed-results td:last-child {
    font-weight: 500;
    color: #333;
}

.detailed-results tr:nth-child(even) {
    background-color: #f8f9fa;
}

.detailed-results p {
    margin: 10px 0;
    padding: 8px;
    background-color: #f1f8ff;
    border-radius: 4px;
    color: #0366d6;
    font-weight: 500;
}

/* 重置视图按钮 */
.reset-view-btn {
    font-size: 0.8rem;
    padding: 4px 8px;
    opacity: 0.7;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    border: 1px solid #ddd;
}

.reset-view-btn:hover {
    opacity: 1;
    background-color: white;
}

/* 3D演示区域 */
.demo-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.demo-container {
    width: 100%;
    height: 500px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

/* 使用属性选择器而不是ID选择器，避免数字开头的ID选择器问题 */
[id="3d-scene-container"] {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

.demo-description {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.demo-description h3 {
    margin-bottom: 0.8rem;
    color: #333;
}

/* 教学资源面板 */
.theory-panel {
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.theory-panel h3 {
    color: #1a73e8;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e8f0fe;
    position: relative;
}

.theory-panel h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #1a73e8;
}

.theory-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.theory-content p {
    margin-bottom: 1.2rem;
}

.theory-content strong {
    color: #1a73e8;
    font-weight: 600;
}

.formula {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    padding: 1.2rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-family: 'Times New Roman', serif;
    text-align: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8f0fe;
}

.formula span {
    color: #1a73e8;
    font-weight: bold;
}

/* 实验原理中的列表样式 */
.theory-content ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.theory-content ul li {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
}

.theory-content ul li::before {
    content: '•';
    color: #1a73e8;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 实验原理中的引用样式 */
.theory-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #1a73e8;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .theory-panel {
        padding: 1.5rem;
    }
    
    .theory-panel h3 {
        font-size: 1.2rem;
    }
    
    .formula {
        font-size: 1.1rem;
        padding: 1rem;
    }
}

/* AI预测对比区域 */
.prediction-comparison {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.prediction-column, .actual-column {
    flex: 1 1 calc(50% - 0.75rem);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.prediction-column h3, .actual-column h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.prediction-chart-container, .actual-chart-container {
    height: 300px;
    margin-bottom: 1.5rem;
}

.prediction-results, .precision-metrics {
    background-color: #f0f4f8;
    padding: 1rem;
    border-radius: 4px;
}

.prediction-results p, .precision-metrics p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.prediction-results span, .precision-metrics span {
    font-weight: 600;
    color: #1a73e8;
}

/* 置信区间显示 */
.confidence-interval {
    background-color: rgba(26, 115, 232, 0.1);
    border-left: 3px solid #1a73e8;
    padding: 8px 12px;
    margin: 10px 0;
    font-size: 0.9rem;
}

.confidence-interval-value {
    font-weight: 600;
    color: #1a73e8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }
    
    .simulation-display, .prediction-comparison {
        flex-direction: column;
    }
    
    .newton-rings-container, .visualization,
    .prediction-column, .actual-column {
        flex: 1 1 100%;
    }
    
    .demo-controls {
        flex-wrap: wrap;
    }
}

.error-message {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border-left: 3px solid #d32f2f;
}

/* 波长输入控件 */
.wavelength-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.wavelength-input .slider {
    flex: 1;
}

.direct-input {
    display: flex;
    align-items: center;
    gap: 5px;
}

.direct-input input {
    width: 60px;
    padding: 4px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.direct-input span {
    color: #555;
    font-size: 0.9rem;
}

.instrument-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1rem;
    margin: 1rem 0;
}

.instrument-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.instrument-item:hover {
    transform: translateY(-5px);
}

.instrument-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    padding: 0.5rem;
}

.instrument-item p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

@media (max-width: 768px) {
    .instrument-gallery {
        grid-template-columns: 1fr;
    }
}

/* 牛顿环历史与插图布局 */
.history-with-illustration {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 1.5rem 0;
}

.history-text {
    flex: 1;
    min-width: 300px;
}

.newton-rings-illustration {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.illustration-container {
    width: 280px;
    height: 280px;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.illustration-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.illustration-caption {
    text-align: center;
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    max-width: 280px;
}

@media (max-width: 768px) {
    .history-with-illustration {
        flex-direction: column;
    }
    
    .newton-rings-illustration {
        margin: 1rem auto;
    }
}

/* 干涉原理图示样式 */
.interference-illustration {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.interference-diagram {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.interference-diagram canvas {
    background: linear-gradient(to bottom, #f0f4ff, #ffffff);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

.diagram-caption {
    text-align: center;
    color: var(--text-medium);
    font-size: 0.95rem;
    margin: 0.5rem 0 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .interference-illustration {
        flex-direction: column;
        align-items: center;
    }
    
    .interference-diagram {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* 薄膜干涉图片画廊 */
.thin-film-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin: 20px 0;
}

.thin-film-item {
    flex: 0 0 31%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.thin-film-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.thin-film-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.thin-film-item p {
    padding: 10px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-medium);
    background-color: #fff;
}

/* 薄膜干涉画廊响应式布局 */
@media (max-width: 768px) {
    .thin-film-gallery {
        flex-direction: column;
    }
    
    .thin-film-item {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }
}

/* 等厚干涉与等倾干涉示意图 */
.interference-types {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.interference-type-item {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interference-type-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.interference-type-item .interference-diagram {
    padding: 15px;
    background: linear-gradient(to bottom, rgba(0, 123, 255, 0.05), white);
    border-bottom: 1px solid #f0f0f0;
}

.interference-type-item canvas {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #000;
}

.interference-type-item .diagram-caption {
    margin: 10px 0 0;
    font-weight: 500;
    color: var(--primary-color);
    text-align: center;
}

.interference-description {
    padding: 15px;
}

.interference-description p {
    margin: 0;
    color: var(--text-medium);
    line-height: 1.5;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .interference-types {
        flex-direction: column;
    }
    
    .interference-type-item {
        margin-bottom: 15px;
    }
}

/* 关键概念模块 */
.key-concept {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 25px 0;
    text-align: center;
    background-color: rgba(0, 123, 255, 0.05);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.key-concept::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(0, 123, 255, 0.5);
    border-radius: 8px;
    pointer-events: none;
}

.key-concept p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
}

.key-concept strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 在移动设备上调整间距 */
@media (max-width: 768px) {
    .key-concept {
        padding: 12px 15px;
        margin: 20px 0;
    }
    
    .key-concept p {
        font-size: 1rem;
    }
}

/* 误差分析与实验注意事项布局样式 */
.error-analysis-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.error-card {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.error-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.error-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.error-card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.error-card-body {
    padding: 15px 20px;
}

.error-card-body ul {
    margin: 0;
    padding-left: 20px;
}

.systematic-error .error-card-header {
    background-color: var(--primary-color);
}

.random-error .error-card-header {
    background-color: #6c5ce7;
}

/* 误差处理方法样式 */
.error-solutions {
    background-color: rgba(240, 240, 240, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.solution-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.solution-step {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
}

.solution-step p {
    margin: 0;
}

.error-formula {
    max-width: 500px;
    margin: 20px auto;
}

/* 实验注意事项样式 */
.experiment-tips {
    margin-bottom: 30px;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tip-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.tip-text {
    flex: 1;
}

/* 数据拟合优化样式 */
.data-optimization {
    background-color: rgba(240, 240, 240, 0.5);
    border-radius: 10px;
    padding: 20px;
}

.optimization-method {
    margin-top: 15px;
}

.method-advantage {
    font-weight: 500;
    color: #2ecc71;
    margin-top: 15px;
}

.method-tip {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin-top: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .error-analysis-grid, 
    .solution-steps, 
    .tips-container {
        flex-direction: column;
    }
    
    .error-card,
    .solution-step {
        min-width: 100%;
    }
    
    .tips-container {
        grid-template-columns: 1fr;
    }
}

/* 牛顿环干涉原理详解部分样式 */
.newton-rings-principle-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.principle-content {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.interactive-formula {
    margin: 25px 0;
    padding: 15px;
    background: rgba(230, 230, 250, 0.1);
    border-left: 4px solid #6a7dfe;
    border-radius: 0 8px 8px 0;
}

.formula {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    position: relative;
}

.formula-tooltip {
    font-size: 0.9em;
    color: #888;
    margin-top: 5px;
    text-align: center;
    font-style: italic;
}

.interference-conditions {
    margin: 25px 0;
    padding: 15px;
    background: rgba(240, 248, 255, 0.1);
    border-radius: 8px;
}

.condition-cards {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.condition-card {
    flex: 1;
    min-width: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #f8f8f8;
}

.dark-ring .card-header {
    background: #2c3e50;
}

.bright-ring .card-header {
    background: #3498db;
}

.card-formula {
    padding: 15px;
    text-align: center;
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.card-note {
    padding: 8px;
    text-align: center;
    font-size: 0.9em;
    background: rgba(240, 240, 240, 0.9);
    color: #555;
    border-top: 1px solid #ddd;
}

.important-note {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 240, 245, 0.2);
    border-left: 4px solid #e74c3c;
    border-radius: 0 4px 4px 0;
    font-style: italic;
}

/* 协调实验步骤相关样式 */
.experiment-steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 20px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
}

.experiment-step-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.experiment-step-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.experiment-step-section h4 {
    color: #6a7dfe;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(106, 125, 254, 0.3);
    padding-bottom: 10px;
    font-size: 1.2em;
}

/* 干涉环半径计算部分样式 */
.calculation-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calculation-step {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.step-content {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
    transition: all 0.3s ease;
}

.step-content:hover {
    background: rgba(255, 255, 255, 0.12);
}

.step-arrow {
    font-size: 24px;
    color: #6a7dfe;
    font-weight: bold;
}

.step-formula {
    text-align: center;
    margin: 10px 0;
    font-size: 1.2em;
}

.highlighted {
    background: rgba(106, 125, 254, 0.1);
    border: 1px dashed #6a7dfe;
    padding: 12px;
    border-radius: 5px;
}

.rings-visualization {
    margin: 20px auto 0;
    width: 100%;
    max-width: 400px;
}

.visualization-container {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.visualization-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
}

.visualization-controls label {
    color: #ccc;
    font-size: 14px;
}

.visualization-controls input[type="range"] {
    width: 150px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.visualization-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #6a7dfe;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visualization-controls input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #4a5ede;
}

.visualization-controls span {
    color: #fff;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* 实验操作步骤部分样式 */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.workflow-step:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #6a7dfe, #4a5ede);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 测量曲率半径部分样式 */
.measurement-explanation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.explanation-text {
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.highlighted-formula {
    margin: 20px 0;
    padding: 15px;
    background: rgba(106, 125, 254, 0.1);
    border: 1px dashed #6a7dfe;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2em;
}

.graph-container {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.graph-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #ccc;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .measurement-explanation {
        grid-template-columns: 1fr;
    }
    
    .calculation-step {
        flex-direction: column;
    }
    
    .workflow-steps {
        grid-template-columns: 1fr;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

/* 添加删除按钮样式 */
.delete-btn {
    padding: 5px 10px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* 数据表格样式 */
.data-table {
    margin: 20px 0;
    overflow-x: auto;
}

.data-table {
    overflow-x: auto;
}

.data-table table {
    width: 100%;
    table-layout: fixed;
    min-width: 800px;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table thead th {
    background: #4285f4;
    color: #fff;
    padding: 12px 15px;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #3b78e7;
    white-space: nowrap;
}

.data-table th:nth-child(1) {
    width: 20%;
}

.data-table th:nth-child(2) {
    width: 20%;
}

.data-table th:nth-child(3) {
    width: 30%;
}

.data-table th:nth-child(4) {
    width: 30%;
}

.data-table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    text-align: center;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.data-table tbody tr:hover td {
    background: #edf2fd;
}

/* 选择提示样式 */
.selection-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.selection-toast.visible {
    opacity: 1;
}

/* 数据分析仪表盘样式 */
.data-insights-panel {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.data-insights-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.dashboard-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.dashboard-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.card-tools {
    display: flex;
    gap: 0.5rem;
}

.info-tooltip {
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.8rem;
    position: relative;
}

.info-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
}

.info-tooltip:hover::before {
    visibility: visible;
    opacity: 1;
}

.card-body {
    padding: 1rem;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gauge-container {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gauge-value {
    position: absolute;
    bottom: 30px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.trends-container, .distribution-container {
    height: 100%;
    width: 100%;
}

.metrics-container {
    display: flex;
    justify-content: space-around;
    height: 100%;
    padding: 1rem 0;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.metric-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* 高级控件样式 */
.advanced-controls {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.control-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.control-row:last-child {
    margin-bottom: 0;
}

.half-width {
    flex: 1;
}

.control-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: white;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.control-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(41, 121, 255, 0.2);
}

.control-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.primary-btn, .secondary-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
}

.secondary-btn {
    background-color: white;
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
}

.secondary-btn:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
}

.toggle-container {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    margin-right: 0.75rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 22px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* 图表控件样式 */
.chart-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.chart-control-btn {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.chart-control-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
}

.control-icon {
    font-size: 1rem;
    color: var(--text-medium);
}

.prediction-chart-container, .actual-chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1rem;
}

/* 交互式数据探索样式 */
.interactive-analysis {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.interactive-analysis h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.analysis-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.analysis-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-medium);
    position: relative;
    transition: var(--transition);
}

.analysis-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: var(--transition);
}

.analysis-tab:hover {
    color: var(--primary-color);
}

.analysis-tab.active {
    color: var(--primary-color);
    font-weight: 500;
}

.analysis-tab.active::after {
    background-color: var(--primary-color);
}

.analysis-pane {
    display: none;
    padding: 1rem 0;
}

.analysis-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

.analysis-description {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

/* 基础分析样式 */
.simple-controls {
    margin-bottom: 1.5rem;
}

.control-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chart-container {
    height: 300px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.analysis-info {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
}

.analysis-info h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.stat-label {
    font-weight: 500;
    color: var(--text-medium);
}

.stat-value {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* 半径分析样式 */
.parameter-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.parameter-control label {
    min-width: 120px;
    color: var(--text-medium);
}

.parameter-control input[type="range"] {
    flex: 1;
}

.radius-insights {
    margin-top: 1.5rem;
}

.insight-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.insight-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.insight-card p {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.insight-card span {
    font-weight: 500;
    color: var(--primary-color);
}

/* 波长分析样式 */
.wavelength-selection {
    margin-bottom: 1.5rem;
}

.selection-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.wavelength-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 5px;
}

.wavelength-btn .color-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

/* 针对不同背景色设置不同的文字颜色 */
.wavelength-btn[data-wavelength="450"] span,
.wavelength-btn[data-wavelength="650"] span {
    color: #ffffff; /* 深色背景(蓝色和红色)上使用白色文字 */
}

.wavelength-btn[data-wavelength="550"] span,
.wavelength-btn[data-wavelength="589"] span {
    color: #000000; /* 浅色背景(绿色和黄色)上使用黑色文字 */
}

.wavelength-btn.active {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

.wavelength-btn:hover {
    border-color: var(--primary-color);
    background-color: #f9f9f9;
}

.wavelength-btn.active {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.color-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.wavelength-comparison {
    margin: 1.5rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th, 
.comparison-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table th {
    background-color: #f5f5f5;
    font-weight: 500;
    color: var(--text-dark);
}

.comparison-table tr:hover td {
    background-color: #f9f9f9;
}

.wavelength-note {
    background-color: #fffde7;
    border-left: 4px solid #ffd600;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.wavelength-note p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    color: var(--text-medium);
    line-height: 1.5;
}

.note-icon {
    font-style: normal;
    color: #ffa000;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .selection-row {
        flex-direction: column;
    }
    
    .parameter-control {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .parameter-control input[type="range"] {
        width: 100%;
    }
}

/* 误差分析样式 */
.error-categories {
    margin-bottom: 2rem;
}

.error-category-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.error-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.error-card-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.error-card.systematic .error-card-header {
    background-color: #ff6b6b;
}

.error-card.random .error-card-header {
    background-color: #4dabf7;
}

.error-card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.error-percentage {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.error-card-body {
    padding: 1rem;
}

.error-card-body ul {
    margin: 0;
    padding-left: 1.5rem;
}

.error-card-body li {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.error-analysis-chart-container {
    height: 350px;
    margin-bottom: 2rem;
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.error-simulation-panel {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.error-simulation-panel h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.simulation-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-end;
}

.simulation-controls .control-group {
    flex: 1;
    min-width: 180px;
}

.error-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.result-chart-container {
    height: 280px;
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.error-impact-summary {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.error-table {
    width: 100%;
    border-collapse: collapse;
}

.error-table th,
.error-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.error-table th {
    font-weight: 500;
    color: var(--text-dark);
    background-color: #f5f5f5;
}

.error-table tr:hover td {
    background-color: #f7f7f7;
}

.error-methods-panel {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.error-methods-panel h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.method-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.method-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.step-content h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-content p {
    margin: 0;
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

.method-formula {
    background-color: #f0f0f0;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .error-category-cards {
        grid-template-columns: 1fr;
    }
    
    .error-result {
        grid-template-columns: 1fr;
    }
    
    .simulation-controls {
        flex-direction: column;
    }
}

/* 误差分析样式 */
.error-analysis-description {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.error-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.error-category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
    border: none;
}

.error-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.error-category-card.systematic {
    background: linear-gradient(to bottom, rgba(255, 107, 107, 0.1), white 15%);
}

.error-category-card.random {
    background: linear-gradient(to bottom, rgba(77, 171, 247, 0.1), white 15%);
}

.error-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.error-category-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.systematic .error-category-header h4::before,
.random .error-category-header h4::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.systematic .error-category-header h4::before {
    background-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.random .error-category-header h4::before {
    background-color: #4dabf7;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
}

.error-percentage {
    font-size: 26px;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 30px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.systematic .error-percentage {
    background-color: #ff6b6b;
}

.random .error-percentage {
    background-color: #4dabf7;
}

.error-category-body {
    padding: 25px 30px 30px;
    background-color: transparent;
}

.error-category-body p {
    margin-top: 0;
    margin-bottom: 25px;
    color: #495057;
    line-height: 1.6;
    font-size: 16px;
}

.error-cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}

.error-card {
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(248, 249, 250, 0.7);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 10px;
}

.error-card:hover {
    background-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.systematic .error-card:hover {
    border-left: 3px solid rgba(255, 107, 107, 0.7);
}

.random .error-card:hover {
    border-left: 3px solid rgba(77, 171, 247, 0.7);
}

.error-card h5 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #343a40;
}

.error-card p {
    margin: 0;
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
}

.error-chart-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.error-chart-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #343a40;
}

.error-simulation-panel {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.error-simulation-panel h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #343a40;
}

.simulation-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    font-weight: 600;
    color: #495057;
    min-width: 90px;
}

.control-group select, 
.control-group input[type="range"] {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    background-color: white;
}

.control-group input[type="range"] {
    width: 150px;
}

#error-magnitude-value {
    min-width: 35px;
    text-align: center;
    font-weight: 600;
    color: #495057;
}

.simulation-result {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.simulation-result .chart-container {
    flex: 1;
    min-width: 300px;
    height: 300px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.result-table {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.result-table h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #343a40;
}

.result-table table {
    width: 100%;
    border-collapse: collapse;
}

.result-table th, 
.result-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.result-table th {
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.result-table tr:hover {
    background-color: #f8f9fa;
}

.error-methods-panel {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.error-methods-panel h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #343a40;
}

.method-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #339af0;
    color: white;
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 5px;
}

.method-content {
    width: 100%;
    text-align: center;
}

.method-content h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #343a40;
}

.method-content p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .method-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}



@media (max-width: 992px) {
    .error-categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .error-categories {
        grid-template-columns: 1fr;
    }
    
    .simulation-result {
        flex-direction: column;
    }
    
    .method-cards {
        grid-template-columns: 1fr;
    }
    
    .error-cards {
        grid-template-columns: 1fr;
    }
}

/* 确保与现有样式兼容 */
.primary-button {
    background-color: #339af0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.primary-button:hover {
    background-color: #1c7ed6;
}

/* 确保分析面板样式正确 */
.analysis-pane {
    display: none;
    padding: 20px 0;
}

.analysis-pane.active {
    display: block;
}

/* 调整分析标签页样式 */
.analysis-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.analysis-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-weight: 600;
    color: #6c757d;
}

.analysis-tab.active {
    color: #339af0;
    border-bottom: 3px solid #339af0;
}

.analysis-tab:hover {
    color: #339af0;
    background-color: rgba(51, 154, 240, 0.05);
}

/* 拓展内容模块样式 */
.thinking-questions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.question-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(240, 240, 245, 0.7));
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.question-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}

.hint {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255, 248, 220, 0.7);
    border-left: 3px solid #f1c40f;
    border-radius: 0 4px 4px 0;
}

.hint p {
    color: #7d6c00;
    font-style: italic;
    margin: 0;
}

/* 科学前沿应用样式 */
.frontier-applications {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    margin-top: 20px;
}

.application-card {
    background-color: #f5f7fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #f0f7ff;
}

.application-card h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 18px;
}

.application-card p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-medium);
}

/* 视频容器样式 */
.application-video-container {
    grid-column: 1 / 3;
    margin: 20px auto;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff; /* 改为白色背景 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 5;
}

.application-video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
}

.application-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(33, 150, 243, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: 4px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.play-icon {
    color: white;
    font-size: 32px;
    margin-left: 5px;
}

.video-caption, .slideshow-caption {
    padding: 10px;
    margin: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    background-color: #fff; /* 白色背景 */
    color: #333;
    border-top: 1px solid rgba(33, 150, 243, 0.4); /* 浅蓝色上边框 */
    border-bottom: 2px solid rgba(33, 150, 243, 0.4); /* 浅蓝色下边框 */
    border-left: 2px solid rgba(33, 150, 243, 0.4); /* 浅蓝色左边框 */
    border-right: 2px solid rgba(33, 150, 243, 0.4); /* 浅蓝色右边框 */
    border-bottom-left-radius: 12px; /* 圆角与容器一致 */
    border-bottom-right-radius: 12px; /* 圆角与容器一致 */
}

@media (max-width: 768px) {
    .thinking-questions,
    .frontier-applications {
        grid-template-columns: 1fr;
    }
    
    .application-video-container {
        grid-column: 1;
        width: 100%;
    }
    
    #application-video-container, #video-wrapper, #application-video, #video-play-btn {
        cursor: pointer;
    }
    
    .video-wrapper:active .video-play-btn {
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* 实验报告生成部分样式 */
.report-generation {
    margin-top: 2.5rem;
    background: linear-gradient(to right, rgba(240, 248, 255, 0.7), rgba(248, 248, 255, 0.7));
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.report-generation h2 {
    color: #2196F3;
    margin-top: 0;
    font-size: 20px;
}

.report-generation hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 15px 0;
}

.report-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0;
}

.option-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: 15px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #2196F3;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.student-info {
    flex: 1;
    min-width: 250px;
}

.info-row {
    margin-bottom: 15px;
}

.info-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.info-row input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.report-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.report-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.preview-btn {
    background-color: #607D8B;
    color: white;
}

.print-btn {
    background-color: #2196F3;
    color: white;
}

.download-btn {
    background-color: #4CAF50;
    color: white;
}

.report-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f7f7f7;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.report-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.report-close:hover,
.report-close:focus {
    color: black;
    text-decoration: none;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.report-content {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

.report-content h1 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.report-content h2 {
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin: 20px 0 15px;
    color: #2196F3;
}

.report-content h3 {
    font-size: 16px;
    margin: 15px 0 10px;
    color: #555;
}

.report-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.report-content th, 
.report-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.report-content th {
    background-color: #f2f2f2;
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 25px;
}

.formula {
    text-align: center;
    font-style: italic;
    margin: 15px 0;
}

/* 打印样式 */
@media print {
    body * {
        visibility: hidden;
    }
    
    .report-content,
    .report-content * {
        visibility: visible;
    }
    
    .report-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

/* 模态框底部按钮样式 */
.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    background-color: #f7f7f7;
    border-radius: 0 0 8px 8px;
    gap: 10px;
}

.close-btn {
    background-color: #9e9e9e;
    color: white;
}

/* 确保预览模态框中的内容可滚动但高度有限制 */
.modal-body {
    max-height: 70vh; /* 增加最大高度 */
    overflow-y: auto; /* 自动显示滚动条 */
}

.modal-body {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
/* 3D演示页面美化 */

/* 演示控制按钮 */
.demo-controls {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.demo-controls button {
    border: 2px solid transparent;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.demo-controls button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(41, 121, 255, 0.25);
}

.demo-controls button:active {
    transform: translateY(0px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 主要操作按钮 */
.demo-controls button#start-demo,
.demo-controls button#reset-demo {
    background-image: linear-gradient(45deg, #2979ff 0%, #448aff 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(41, 121, 255, 0.2);
}

/* 暂停按钮 */
.demo-controls button#pause-demo {
    background-image: linear-gradient(45deg, #ffc107 0%, #ff9800 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.25);
    display: none; /* 初始隐藏 */
}

/* 次要/视图控制按钮 */
.demo-controls button#light-position,
.demo-controls button#camera-top,
.demo-controls button#camera-side {
    background-color: #e3f2fd;
    color: var(--primary-dark);
    border: 2px solid #e3f2fd;
}

.demo-controls button#light-position:hover,
.demo-controls button#camera-top:hover,
.demo-controls button#camera-side:hover {
    background-color: #bbdefb;
    border-color: #bbdefb;
    box-shadow: 0 7px 25px rgba(100, 181, 246, 0.2);
}

.light-position-controls {
    position: absolute;
    top: 120px; /* 调整位置避免遮挡 */
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
    color: var(--text-dark) !important;
}

.light-position-controls label {
    font-weight: 600;
    color: var(--text-medium);
}

.light-position-controls input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    margin-top: 5px;
}

.light-position-controls input[type="range"]:hover {
    opacity: 1;
}

.light-position-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.light-position-controls input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.light-position-controls span {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--primary-dark);
}

/* 为3D演示页面的文本内容添加特定样式 */
#3d-demo .demo-description-beautified {
    background-color: #fdfdff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    border: 1px solid #e0e6f1; /* 添加淡蓝色边框 */
}

#3d-demo .demo-description-beautified h3 {
    font-size: 1.5rem;
    color: #1a237e; /* 更深的蓝色 */
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
}

#3d-demo .demo-description-beautified h4 {
    font-size: 1.2rem;
    color: #2c3e50; /* 深石板蓝 */
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

#3d-demo .demo-description-beautified p {
    font-size: 1rem;
    line-height: 1.8;
    color: #34495e; /* 柔和的灰蓝色 */
    margin-bottom: 1rem;
}

#3d-demo .demo-description-beautified ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

#3d-demo .demo-description-beautified ol li {
    font-size: 1rem;
    color: #34495e; /* 柔和的灰蓝色 */
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* 通用内容面板样式 */
.content-panel {
    background-color: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.content-panel h3 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
}

.content-panel h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-panel p, .content-panel li {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.content-panel ol, .content-panel ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* 统一的内容面板样式，覆盖旧的 3d-demo 专用样式 */
#3d-demo .demo-description-beautified,
.content-panel {
    background-color: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

#3d-demo .demo-description-beautified h3,
.content-panel h3 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
}

#3d-demo .demo-description-beautified h4,
.content-panel h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#3d-demo .demo-description-beautified p,
#3d-demo .demo-description-beautified li,
.content-panel p,
.content-panel li {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

#3d-demo .demo-description-beautified ol,
#3d-demo .demo-description-beautified ul,
.content-panel ol, 
.content-panel ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* 仿真实验页面Flexbox布局 */
.simulation-layout-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: stretch;
}

/* 第一行：仿真实验说明 */
.simulation-layout-container > .theory-panel {
    order: 1;
    width: 100%;
}

/* 第二行：实验参数控制与演示图的容器 */
.simulation-layout-container .interactive-row {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    align-items: stretch;
    justify-content: space-between;
}

/* 实验参数控制面板 */
.simulation-layout-container .interactive-row > .control-panel {
    flex: 0 0 450px;
    min-width: 320px;
    max-width: 450px;
}

/* 演示图 */
.simulation-layout-container .interactive-row > .simulation-display {
    flex: 1 1 550px;
    min-width: 320px;
    max-width: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #f8f9fc);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.simulation-layout-container .interactive-row > .simulation-display:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

/* 第三行：数据采集与分析 */
.simulation-layout-container > .data-analysis {
    order: 3;
    width: 100%;
}

@media (max-width: 1100px) {
    .simulation-layout-container .interactive-row {
        flex-direction: column;
    }
    
    .simulation-layout-container .interactive-row > .control-panel,
    .simulation-layout-container .interactive-row > .simulation-display {
        width: 100%;
        max-width: none;
    }
}

/* 精致的数值输入控件样式 */
.input-with-unit {
    display: flex;
    align-items: center;
    background-color: #f7f9fc;
    border: 1px solid #e0e6f1;
    border-radius: 8px;
    padding: 0 12px;
    height: 45px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.input-with-unit:hover, .input-with-unit:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.1);
    background-color: #ffffff;
}

.numeric-input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
    height: 100%;
    padding: 0;
    text-align: right;
    -moz-appearance: textfield;
}

.numeric-input::-webkit-inner-spin-button, 
.numeric-input::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0;
}

.numeric-input:focus {
    outline: none;
}

.unit {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-left: 8px;
    font-weight: 500;
    min-width: 30px;
}

.range-hint {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
    padding: 0 2px;
    margin-bottom: 12px;
}

.min-value, .max-value {
    font-size: 0.75rem;
}

/* 波长颜色谱显示 */
.wavelength-info {
    margin-bottom: 16px;
}

.color-spectrum {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 4px;
}

.color-band {
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-band:hover {
    transform: scaleY(1.3);
}

.color-band.violet {
    background: linear-gradient(to right, #8000ff, #a020f0);
}

.color-band.blue {
    background: linear-gradient(to right, #0000ff, #1e90ff);
}

.color-band.green {
    background: linear-gradient(to right, #00ff00, #90ee90);
}

.color-band.yellow {
    background: linear-gradient(to right, #ffff00, #ffd700);
}

.color-band.orange {
    background: linear-gradient(to right, #ffa500, #ff8c00);
}

.color-band.red {
    background: linear-gradient(to right, #ff4500, #ff0000);
}

/* 确保控制面板样式更精致 */
.control-panel {
    background: linear-gradient(145deg, #ffffff, #f8f9fc);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.control-panel:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.control-panel h2 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary-light);
    position: relative;
}

.control-panel h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 70px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.control-panel:hover h2::after {
    width: 100px;
}

.control-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1.05rem;
}

/* 计算按钮样式优化 */
#calculate-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(41, 121, 255, 0.3);
}

#calculate-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: 0 6px 20px rgba(41, 121, 255, 0.4);
    transform: translateY(-2px);
}

#calculate-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(41, 121, 255, 0.3);
}

/* 结果显示区域优化 */
.result-display {
    background-color: #f0f7ff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid rgba(41, 121, 255, 0.15);
    transition: all 0.3s ease;
}

.result-display:hover {
    background-color: #e6f0ff;
    box-shadow: 0 5px 15px rgba(41, 121, 255, 0.1);
}

.result-display p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--text-medium);
    font-size: 1rem;
}

.result-display p:last-child {
    margin-bottom: 0;
}

.result-display span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* 数据分析标题和按钮布局 */
.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.data-header h3 {
    margin: 0;
}

.data-buttons {
    display: flex;
    gap: 10px;
}

.data-buttons button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

/* 确保按钮样式统一且美观 */
.data-buttons button#add-data-point {
    background-color: #4CAF50;
}

.data-buttons button#clear-data {
    background-color: #f44336;
}

.data-buttons button#calculate-from-data {
    background-color: #2196F3;
}

.data-buttons button:hover {
    transform: translateY(-2px);
}

/* 添加新的参数控制样式 */
.parameter-section {
    margin-bottom: 20px;
    border-left: 3px solid #2196f3;
    padding-left: 15px;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 0 4px 4px 0;
}

.parameter-category {
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #2196f3;
}

.parameter-description {
    font-size: 0.9em;
    color: #78909c;
    margin-bottom: 15px;
}

.param-name {
    font-weight: 500;
}

.param-info {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background-color: #78909c;
    color: white;
    font-size: 12px;
    margin-left: 5px;
    cursor: help;
}

.input-with-slider {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.main-slider {
    flex: 1;
    margin-right: 10px;
}

.input-group {
    display: flex;
    align-items: center;
    width: 100px;
}

.param-input {
    width: 60px;
    text-align: right;
    padding: 2px 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #f5f5f5;
}

.unit {
    margin-left: 5px;
    color: #757575;
    font-size: 0.9em;
}

.param-output {
    display: none; /* Hide the original output, we'll use the input field instead */
}

.select-param {
    width: 100%;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
}

.metric-item-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.metric-item-single .metric-label {
    font-size: 0.9em;
    color: #757575;
}

.metric-item-single .metric-value {
    font-size: 1.2em;
    font-weight: 500;
    color: #ff9800;
}

/* 确保在不同设备上保持方形 */
@media (max-width: 550px) {
    .newton-rings-container {
        width: 90vw; /* 在小屏幕上使用视口宽度 */
        height: 90vw; /* 高度等于宽度 */
    }
}

.main-title {
    font-size: 2.8em; /* Current font-size */
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 900px; /* 调整最大宽度 */
    margin: 0 auto; /* 居中 */
    padding: 0 15px; /* 增加左右内边距 */
}

/* 返回首页按钮样式 */
.back-link {
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background-color: transparent;
    z-index: 100;
}

.back-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.back-link svg {
    margin-right: 8px;
}

/* 上划按钮样式 */
.scroll-to-top {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(41, 121, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(41, 121, 255, 0.4);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* 轮播图样式 */
.slideshow-container {
    width: 100%;
    max-width: 1000px; /* 拉长展示区域宽度 */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid rgba(33, 150, 243, 0.4); /* 添加浅蓝色边框 */
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.1); /* 更改阴影颜色为浅蓝色 */
    background-color: #fff;
}

.slideshow-wrapper {
    position: relative;
    width: 500%;  /* 5张图片，每张占20% */
    height: 350px; /* 减小高度 */
    display: flex;
    transition: transform 1s ease-in-out;
}

.slide {
    width: 20%;  /* 每张图片占轮播图宽度的20% */
    height: 100%;
    flex-shrink: 0;
    background-color: #fff; /* 添加白色背景 */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 改为contain确保图片完整显示不变形 */
    display: block;
    background-color: #fff; /* 确保背景为白色 */
}

.dots-container {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(33, 150, 243, 0.4); /* 添加浅蓝色边框 */
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: rgba(33, 150, 243, 0.6); /* 浅蓝色背景 */
    border: 1px solid rgba(33, 150, 243, 0.8); /* 深一点的浅蓝色边框 */
}

.slideshow-caption {
    text-align: center;
    padding: 10px;
    font-size: 1rem;
    color: var(--text-dark);
    margin-top: 5px;
    background-color: transparent;
}

/* 左移动画 */
@keyframes slideLeft {
    from {transform: translateX(0);}
    to {transform: translateX(-20%);}
}