/* IE面板样式 */
.ie-panel {
    display: none;
    background: #ffffff;
    padding: 10px 0;
    box-shadow: 3px 3px 5px 0 rgba(0,0,0,.3);
    clear: both;
    text-align: center;
    position: relative;
    z-index: 1;
}

html.ie-10 .ie-panel,
html.lt-ie-10 .ie-panel {
    display: block;
}

/* 基础样式 */
body {
    background-color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-content,
.detection-section,
.footer {
    background-color: #ffffff;
}

/* 导航栏样式 */
.rd-navbar {
    position: static !important;
    background: white;
}

.rd-navbar-wrap {
    position: relative !important;
    height: auto !important;
    background: white;
}

.rd-navbar-inner .container {
    background-color: #ffffff;
}

.rd-navbar-inner .rd-navbar-menu-wrap .container {
    background-color: #F5F5F5;
}

.rd-navbar-nav-wrap {
    display: flex;
    justify-content: center;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.rd-navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
}

.rd-navbar-nav li {
    margin: 0;
    border-right: none !important;
}

.rd-navbar-nav li a {
    color: #333;
    font-size: 18px;
    padding: 12px 25px;
    text-decoration: none;
    transition: color 0.3s ease;
    border: none !important;
    font-weight: normal;
    outline: none;
}

.rd-navbar-nav li.active a {
    color: #ffffff;
    background-color: #38c133;
    border-radius: 4px;
}

.rd-navbar-nav li:not(.active) a:hover {
    color: #333;
    background-color: transparent;
}

.rd-navbar-nav li a:hover,
.rd-navbar-nav li a:focus,
.rd-navbar-nav li a:active {
    color: #ff4444 !important;
    background-color: transparent !important;
    text-decoration: none;
    border: none !important;
    outline: none;
}

.rd-navbar-nav li.active a:hover {
    color: #ffffff !important;
    background-color: #E85F64;
}

.rd-navbar-nav li:last-child {
    display: block;
}

.rd-navbar-nav li:last-child a {
    border: none;
    border-radius: 4px;
    padding: 12px 25px;
}

@media (max-width: 768px) {
    .rd-navbar-nav {
        gap: 20px;
    }
    
    .rd-navbar-nav li a {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* 页脚样式 */
.footer {
    color: #000000;
}

.footer a,
.footer div:first-child a {
    color: #000000 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover,
.footer div:first-child a:hover {
    color: #ff4444 !important;
    text-decoration: none;
}

.footer span,
.footer div:first-child a span {
    color: inherit;
    transition: color 0.3s ease;
}

/* 标题样式 */
.text-extra-big {
    text-align: center;
    padding: 50px 0;
}

.text-extra-big .big {
    font-size: 60px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 背景图片容器样式 */
.parallax-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    width: 100%;
}

.parallax-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-overlay-gray-darkest {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 检测区域样式 */
.detection-section {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.upload-container {
    width: 100%;
    max-width: 1125px;
    background: #ffffff;
    border: 2px dashed #4CAF50;
    border-radius: 15px;
    padding: 15px 10px;
    text-align: center;
    margin: 20px auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-container:hover {
    border-color: #45a049;
    background: #f8f9fa;
}

.upload-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.upload-options label {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.upload-options p {
    color: #666;
    margin: 5px 0;
    font-size: 14px;
}

.file-input-group,
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 675px;
    margin: 20px auto;
}

.file-input-wrapper {
    width: 325px;
    position: relative;
}

.upload-btn {
    width: 100%;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #45a049;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

#startBtn,
#saveBtn {
    width: 325px;
    padding: 15px 0;
    background: #cccccc;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

#startBtn:not(:disabled),
#saveBtn:not(:disabled) {
    background: #4CAF50;
    cursor: pointer;
}

#startBtn:not(:disabled):hover,
#saveBtn:not(:disabled):hover {
    background: #45a049;
}

/* 响应式布局调整 */
@media (max-width: 1024px) {
    .button-container,
    .file-input-group {
        max-width: 90%;
    }
    
    .file-input-wrapper,
    #startBtn,
    #saveBtn {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .button-container,
    .file-input-group {
        flex-direction: column;
        align-items: center;
    }
    
    .file-input-wrapper,
    #startBtn,
    #saveBtn {
        width: 100%;
        max-width: 325px;
    }
}

/* 文本结果样式 */
.text-results {
    text-align: left;
    padding: 10px;
}

.text-results h5 {
    margin: 10px 0 5px 0;
    color: #4CAF50;
    font-size: 14px;
}

.text-results p {
    margin: 3px 0;
    font-size: 12px;
    color: #666;
}

.score-container {
    text-align: center;
    margin: 15px auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    width: 100%;
}

.score-item {
    margin: 10px 0;
    font-size: 16px;
    color: #4CAF50;
}

.score-total {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
}

.result-text-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
    text-align: center;
}

/* 语言切换按钮样式 */
.language-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: block;
}

.language-switch a {
    border: 2px solid #38c133;
    border-radius: 4px;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.language-switch a:hover {
    background-color: #38c133;
    color: #ffffff;
    border-color: #38c133;
}

/* 进度条样式 */
.progress-container {
    width: 100%;
    max-width: 675px;
    margin: 10px 0;
    display: none;
}

.progress {
    height: 4px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin: 5px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
    width: 0%;
}

#progressText {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin: 5px 0;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
}

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

.modal-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ff4444;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff0000;
}

/* 输出容器样式 */
.output-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px;
}

.result-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 15px 0;
    padding: 20px;
    display: flex;
    gap: 20px;
}

.result-info {
    flex: 1;
}

.result-section {
    margin: 3px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 2px solid #4CAF50;
}

.result-section h5 {
    color: #333;
    margin: 0 0 3px 0;
    font-size: 20px;
    font-weight: bold;
}

.result-section p {
    margin: 0;
    line-height: 1.3;
}

.action-buttons {
    margin-top: 15px;
}

.save-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.save-btn:hover {
    background: #218838;
}

/* 响应式布局调整 */
@media (max-width: 1200px) {
    .output-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .output-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .output-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .output-container {
        grid-template-columns: 1fr;
    }
    
    .result-card img {
        height: 220px;
    }
}

/* 体表标记检测图像容器样式 */
.detection-image-container {
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.detection-image {
    width: 100%;
    max-height: 300px;
}

/* 移除所有重复的样式定义 */
.rd-navbar-menu-wrap,
.rd-navbar-mobile-scroll,
.rd-navbar-nav,
.rd-navbar-nav li,
.rd-navbar-nav li a {
    box-shadow: none !important;
    border: none !important;
    border-right: none !important;
    border-image: none !important;
    background-image: none !important;
}