/* 重置和基础样式 */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h2 {
    text-align: center;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 2rem;
}

.wrapper {
    width: 100%;
    min-height: 100vh;
    background: #f8fafc;
    font-family: inherit;
}

/* 顶部导航栏 */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0 2rem;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    margin-right: 0.5rem;
    object-fit: contain;
}

.logo-scut {
    width: 75px;
    height: 70px;
}

.logo-trans {
    width: 90px;
    height: 85px;
}

.logo-aramco {
    width: 150px;
    height: 120px;
}

/* 主导航菜单 */
ul.main__menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main__menu > li {
    margin: 0 1rem;
    
}

.main__menu > li > a {
    color: #4a5568;
    display: block;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.main__menu > li:hover > a,
.main__menu > li:focus > a {
    color: #667eea;
    background: #f1f5f9;
}

/* 语言切换按钮 */
#langBtn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 20px;
    bottom: 20px;
    transition: all 0.3s ease;
    z-index: 1000;
}

#langBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 欢迎标题 */
.welcome-text {
    background: #ffffff;
    margin: 2rem;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.welcome-text h2 {
    color: #2d3748;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}
.welcome-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.welcome-icon svg {
    filter: drop-shadow(0 4px 6px rgba(102, 126, 234, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.welcome-subtitle {
    margin-top: 1rem;
    text-align: center;
}

.subtitle-text {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    font-weight: 500;
}
/* 步骤导航 */
.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.step:hover .step-box {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 步骤标签 (Step X) */
.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-align: center;
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.current-step .step-label {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #5a67d8;
}

/* 步骤方格 */
.step-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 80px;
    padding: 1rem 0.75rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.current-step .step-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #5a67d8;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.step:hover:not(.current-step) .step-box {
    background: #f1f5f9;
    border-color: #cbd5e0;
}

/* 步骤标题 */
.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.current-step .step-title {
    color: #ffffff;
}

/* 步骤描述 */
.step-description {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.2;
}

.current-step .step-description {
    color: rgba(255, 255, 255, 0.85);
}

/* 步骤连接器 */
.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 2rem 0.5rem 0 0.5rem; /* 调整上边距以对齐方格 */
}

.arrow {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.step-connector:hover .arrow {
    opacity: 0.8;
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .steps {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 1.5rem;
    }
    
    .step {
        flex-shrink: 0;
    }
    
    .step-box {
        min-width: 120px;
        min-height: 70px;
        padding: 0.75rem;
    }
    
    .step-title {
        font-size: 0.8rem;
    }
    
    .step-description {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .step {
        width: 100%;
        max-width: 300px;
    }
    
    .step-box {
        width: 100%;
        min-width: auto;
        min-height: 60px;
    }
    
    .step-connector {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .arrow {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .step-label {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .step-box {
        min-height: 55px;
        padding: 0.75rem 0.5rem;
    }
    
    .step-title {
        font-size: 0.8rem;
    }
    
    .step-description {
        font-size: 0.7rem;
    }
}

/* 状态样式 */
.step.completed .step-label {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.step.completed .step-box {
    border-color: #10b981;
    background: #f0fdf4;
}

.step.completed .step-title {
    color: #065f46;
}

.step.completed .step-description {
    color: #047857;
}


.step:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.current-step {
    /* background: #667eea; */
    color: #ffffff;
    font-weight: 600;
    border-color: #5a67d8;
}

.arrow {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* 表单区域 */
.select_option {
    background: #ffffff;
    margin: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.select__option__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.single__option {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.single__option:hover {
    border-color: #667eea;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.1);
}

.single__option label {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: left;
}

.single__option select,
.single__option input {
    width: 95%;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 1rem;
    font-size: 0.9rem;
    color: #374151;
    background: #ffffff;
    transition: all 0.2s ease;
}

.single__option select:focus,
.single__option input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 提交按钮 */
.btn__search {
    background: #667eea;
    color: #ffffff;
    border: none;
    height: 50px;
    padding: 0 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 2rem;
    float: right;
}

.btn__search:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn__search:active {
    transform: translateY(0);
}

/* 关于页面 */
.about_wrapper {
    width: 100%;
    min-height: 100vh;
    background: #f8fafc;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    color: #374151;
}

.about-content h2 {
    color: #2d3748;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.welcome-paragraph {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 2rem;
}

/* 容器和图表 */
.container {
    background: #ffffff;
    margin: 2rem;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.chart-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    min-height: 400px;
}

#chartSelector {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    background: #ffffff;
}

