* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/*动画播放器样式 */
.animation-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 !important;
    background-color: transparent;
}

.lottie-player {
    width: 100%;
    height: auto;
}

/* RESULTS标题栏 */
.results-header {
    top: 0px;
    left: 0;
    width: 100%;
    background-color: #fff;
    color: white;
    text-align: center;
    padding: 15px 0;
    z-index: 999;
    transition: transform 0.3s ease;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}
/* 
.results-header h1 {
    font-size: 36px;
    font-weight: bold;
    max-width: 1200px;
    margin: 0 auto;
} */

/* .bk1{
margin-top: 80px;
}
*/


/* 主容器 - 固定布局 */
.container {
    display: flex;
    min-height: 100vh;
    padding-top: 20px; /* 为顶部菜单和RESULTS标题留出空间 */
    position: relative;
}

/* 3. 左侧空白区宽度（与侧边栏匹配，保证布局流） */
.nav-space {
    width: 220px;
    flex-shrink: 0;
}

/* 左侧导航栏样式 */
.side-nav {
    position: fixed;
    left: -220px;
    top: 120px;
    width: 200px;
    height: auto;
    max-height: 70vh;
    z-index: 100;
    transition: left 0.3s ease-out;
    overflow-y: auto;
    background: rgba(147, 55, 85, 0.05);
    border-radius: 8px;
    padding: 15px 0;
    backdrop-filter: blur(5px);
    -ms-overflow-style: none;  /* IE 和 Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 隐藏滚动条 - Chrome, Safari 和 Opera */
.side-nav::-webkit-scrollbar {
    display: none;
}

.side-nav.visible {
    left: 20px;
}

.side-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-logo {
    text-align: center; /* logo居中 */
    margin-bottom: 15px;
    padding: 0 15px;
}

.side-logo img {
    width: 130px !important;
    height: auto !important;
}

/* 导航项基础样式 */
.side-nav-items {
    position: relative;
    transition: all 0.3s ease;
    padding: 10px 15px;
    margin: 0 8px;
}

/* 分隔线 - 使用更简洁的方式 */
.side-nav-items:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 1px;
    background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(147, 55, 85, 0.2) 50%, 
    transparent 100%);
}

.side-nav-items a {
    text-decoration: none;
    color: #5b3340;
    font-size: 16px; /* 适当调整字体大小 */
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    display: block;
    padding: 6px 5px;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.side-nav-items a:hover {
    color: #933755;
/* 鼠标移至标题上方时的右移效果 */
/* padding-left: 10px; */
}

/* 活动状态 */
.side-nav-items.active a {
    color: #933755;
    background: rgba(147, 55, 85, 0.1);
    border-radius: 6px;
    font-weight: 600;
}

.side-nav-items.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 3px;
    background-color: #933755;
    border-radius: 0 2px 2px 0;
}

/* 最后一个项目特殊样式 */
.side-nav-items:last-child {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(147, 55, 85, 0.2);
}

.side-nav-items:last-child::after {
    display: none;
}

.side-nav-items:last-child a {
    color: #84214e;
    font-weight: 600;
    text-align: center;
}


/* 内容区域 - 固定位置 */
.content {
    flex: 1;
    padding: 30px 50px;
    max-width: 1200px;
    margin: 0 55px 0 45px;
}

.section-title {
    font-size: 28px;
    color: #84214e;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eaeaea;
}

.subsection-title {
    font-size: 22px;
    color: #5b3340;
    margin: 10px 0 12px;
}

.subsubsection-title {
    font-size: 18px;
    color: #5b3340;
    margin: 18px 0 10px;
}

.subsubsubsection-title {
    font-size: 16px;
    color: #5b3340;
    margin: 15px 0 8px;
    font-weight: 600;
}

.subsubsubsubsection-title {
    font-size: 14px;
    color: #5b3340;
    margin: 12px 0 6px;
    font-weight: 500;
}


p{
    margin:5px 0;
    text-align: justify;
}

/* 内容卡片 */
.content-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 8px 25px;
    margin-bottom: 30px;
    border: 1px solid #eaeaea;
    transition: box-shadow 0.3s;
}

.content-card:hover {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
}

/* 图片样式 */
.content-image {
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    margin: 18px auto;
    display: block;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
}

.image-caption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: -12px;
    margin-bottom: 18px;
    font-style: italic;
}

/* 参考文献区域 */
.references-section {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid #eaeaea;
    background-color: #fff8f0;
    border-radius: 10px;
    padding: 20px 25px;
}

.references-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}

.references-title {
    font-size: 22px;
    color: #5b3340;
}

.references-toggle {
    font-size: 18px;
    transition: transform 0.3s;
}

.references-toggle.collapsed {
    transform: rotate(-90deg);
}

.references-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.references-content.show {
    max-height: 1000px;
}

.reference-item {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    padding-left: 25px;
    text-indent: -25px;
}

.reference-number {
    font-weight: bold;
    color: #ea9c7a;
    margin-right: 5px;
}
.back-to-top-of-sidenav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(226, 45, 89, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
}

/* 返回顶部按钮(文字模板自配，与footer的back-to-top冲突，故删去) */

/*  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: rgba(44, 123, 229, 1);
}

.back-to-top::after {
    content: 'Back to top';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.back-to-top:hover::after {
    opacity: 1;
} */

/* part list */
.table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    overflow-x: auto;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 10px;
}

.parts-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 14px;
}

.parts-table th {
    background-color: #CE6787;
    color: white;
    font-weight: normal;
    padding: 12px 15px;
    text-align: center;
    position: sticky;
    top: 0;
}

.parts-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.parts-table tr:nth-child(even) {
    background-color: #f9f7f8;
}

.parts-table tr:hover {
    background-color: #f9edf5;
}

.registry-code {
    color: #992c59;
    font-family: 'Courier New', monospace;
}

.link-icon {
    color: #a33b63;
    margin-left: 5px;
    font-size: 0.9em;
}

.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.status-approved {
    background-color: #e6f7ee;
    color: #0d8050;
}

.status-pending {
    background-color: #fff8e6;
    color: #b35900;
}

.status-rejected {
    background-color: #fce8e8;
    color: #c23030;
}

/* word link response */

.part-transition {
/* transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter; */
    transition-duration: .15s;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
}

.part-duration {
    transition-duration: .3s;
}

.part-link {
    box-shadow: inset 0 -.5em 0 -1px rgba(219, 110, 167, 0.8) ;
}

.part-link:hover {
    box-shadow: inset 0 -1.2em 0 -1px rgba(219, 110, 167, 0.8) ;
}

.parts-table a{
    text-decoration: none;
}

.parts-table a:link {
    color: #000; 
}


.parts-table a:visited {
    color: #000; 
}


.parts-table a:hover {
    color: #720c3a; 
}


.parts-table a:active {
    color: #ab1cbe; 
}

/* PDF文档查看器 */
#pdf-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    height: 700px;
}
#pdf-viewer {
    width: 100%;
    height: 100%;
}

/* 内容模板*/
ul{
padding-left: 15px;
}
ol{
padding-left: 20px;
}

/* 手机端响应式设计 - 移除侧边栏 */
@media (max-width: 768px) {
    /* 主导航栏优化 */
    .guide-navbar {
        padding: 10px 15px;
    }
    
    .guide-logo {
        max-width: 120px;
        height: auto;
    }
    

    /* 内容区域优化 - 移除侧边栏相关布局 */
    .container {
        flex-direction: column;
        padding-top: 10px;
    }
    
    .nav-space {
        display: none;
    }
    
    /* 完全移除左侧导航栏 */
    .side-nav {
        display: none !important;
    }
    
    .content {
        padding: 15px;
        margin: 0;
        width: 100%;
    }
    
    /* 文字图片布局优化 */
    .text-image-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .text-content, .image-content {
        flex: none;
        width: 100%;
        min-width: auto;
    }
    
    /* 内容卡片优化 */
    .content-card {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    /* 标题优化 */
    .section-title {
        font-size: 22px;
        text-align: center;
    }
    
    /* 图片优化 */
    .content-image {
        max-width: 100%;
        height: auto;
    }
    

    /* 表格优化 */
    .table-container {
        overflow-x: auto;
    }
    
    .parts-table {
        min-width: 600px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .content {
        padding: 10px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .content-card {
        padding: 12px;
    }
}

/* pdf and quotes in Education  */

.pdf-container {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 600px;
    overflow: hidden;
}
.pdf-viewer {
    width: 100%;
    height: 100%;
}
blockquote {
    border-left: 4px solid pink;
    padding-left: 15px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}


.highlight-link {
    color: #8B0000;
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
}

.highlight-link:hover {
    text-decoration: underline;
}
.code-block {
    background-color: #f8f9fa;
    border: 1px solid #eaecf0;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.4;
}
/* hardware 花费 */

.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cost-table th,
.cost-table td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: center;
}

.cost-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}





/* 图标题说明 */

.image-intro{
    font-size: 14px;
    color: #666;
    margin-top: -12px;
    margin-bottom: 18px;
    font-style: italic;
    width: 80%; /* 占container宽度的80% */
    margin-left: auto; /* 自动左外边距 */
    margin-right: auto; /* 自动右外边距 */
    text-align: justify; /* 文字两端对齐 */
    line-height: 1.5; /* 增加行高提高可读性 */
    word-wrap: break-word; /* 允许长单词换行 */
    overflow-wrap: break-word; /* 确保文字能够正确换行 */
}


.typewriter {
    overflow: hidden;
    border-left: 4px solid pink;
    padding-left: 15px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    white-space: nowrap;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
    font-size: 2em; /* 字号略放大 */
    line-height: 1.4;
    max-width: 100%;
}

/* 打字效果 */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* 光标闪烁效果 */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: pink; }
}

/* 确保引用内容在移动设备上正常显示 */
@media (max-width: 768px) {
    .typewriter {
        white-space: normal;
        animation: none;
        border-left: 4px solid pink;
        padding-left: 15px;
    }
}