/* 手机端自适应样式 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        min-height: auto;
        padding: 10px;
    }
    
    .logo-container {
        width: 150px;
        top: 5px;
    }
    
    .logo {
        width: 100%;
    }
    
    .input-section, .result-section {
        margin-top: 100px;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .select-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .instructions {
        padding: 10px;
    }
    
    .instructions > div {
        flex-direction: column;
    }
    
    .instructions > div > div:nth-child(2) {
        margin-left: 0;
        margin-top: 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    #exchange-rate, #exchange-rate-right {
        position: static;
        margin: 10px 0;
        text-align: center;
    }
    
    .nav-links {
        position: static;
        justify-content: center;
        margin: 10px 0;
    }
    
    .input-group {
        margin-bottom: 10px;
        margin-top: 10px;
    }
    
    h1 {
        font-size: 1.5em;
        text-align: center;
    }
}



/* 公共头部样式 */
.common-header {
    width: 100%;
    background-color: white;
    padding: 15px 20px;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    top: 0;
    left: 0;
}

.logo-container {
    width: 80px; /* 保持首页logo尺寸 */
}

.logo {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.header-nav {
    display: flex;
    gap: 15px;
}

.nav-btn {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #f5f5f5;
    transition: all 0.3s;
}

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

/* 首页额外按钮容器（如果需要在内容区重复显示） */
.index-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

/* 手机端头部适配 */
@media (max-width: 768px) {
    .common-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 15px;
    }

    .header-nav {
        width: 100%;
        justify-content: space-between;
        gap: 5px;
    }

    .nav-btn {
        font-size: 16px;
        padding: 6px 4px;
    }

    .index-actions {
        flex-direction: column;
    }
}h1.left {
    float: left;
    width: 30%;
}

.header {display: block;overflow: hidden;}

.right {}

.right {
    float: right;
    margin-top: 23px;
}



@media screen and (max-width: 767px) {

h1.left {
    width: 100%;
}

.right {
    width: 100%;
    margin-top: 0px;
    margin-bottom: 17px;
}
#exchange-rate {
    position: relative!important;
    top: 10px!important;
    left: unset!important;
}

div#exchange-rate-right {
    position: relative !important;
    right: unset!important;
}

.logo-container {
    position: relative!important;
}.input-section {
    margin-top: -13px!important;
}.result-section {
    margin-top: -48px!important;
}

div {}

.instructions > div > div:nth-child(2) {
    margin-left: 0px!important;
    margin-top: 0px!important;
}

.instructions > div > div:nth-child(3) {
    width: 100%!important;
}

.instructions > div > div:nth-child(2)>div {
    width: 100%!important;
}
}