/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* 默认显示（桌面端） */
.footer-info {
    display: block;
}

/* 手机端（通常指屏幕宽度 <= 768px）隐藏 */
@media (max-width: 768px) {
    .footer-info {
        display: none !important;
    }
}
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}
.query-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s ease;
}
.query-section {
    background-color: #e6b85a;
    line-height: 10px;
    padding: 2.5rem 1rem;
}
input {
    font-family: inherit;
}
.query-label {
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    padding: 10px 20px;
    background-color: #e6b85a;
    margin-right: 10px;
    min-width: 200px;
    text-align: center;
}

.mobile-search-btn {
    margin-left: 1rem;
    /* padding: 0.5rem 1rem; */
    height: 100%;
    background-color: #D39B2C;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 204px;
}

/* 基础样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

}

/* 媒体查询 - 需要有不同的样式 */
@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }
}


/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.query-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
}
.top-bar {
    background: linear-gradient(to bottom, #FFE7B3, #F6C462);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 120px;
    height: auto;
}

.subtitle {
    width: 187px;
    height: auto;
}

.mobile-menu-btn {
    display: none;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
}

.menu-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 页脚 */
.footer {
    background-color: #D39B2C;;
    color: white;
}
/* 主导航 */
.main-nav {
    background:#D39B2C
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 15px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.nav-link:hover {
    font-weight: 500;
}

.nav-arrow {
    width: 8px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    left: 20px;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 10;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 24px;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.dropdown-item:hover {
    color: #D39B2C;
    background-color: #F8F8F8;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-input {
    width: 160px;
    padding: 6px 30px 6px 12px;
    font-size: 13px;
    color: white;
    background: transparent;
    border: 1px solid white;
    border-radius: 20px;
    outline: none;
    caret-color: white;
}

.search-input::placeholder {
    color: white;
    opacity: 0.9;
}

.search-input:focus::placeholder {
    color: rgba(211, 155, 44, 0.7);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
}

.search-icon {
    width: 100%;
    height: 100%;
}

.login-link {
    color: white;
    font-size: 1.2rem;
}




.title-image {
    padding-left: 74px;
    display: block;
    max-width: 320px;
    margin: 40px auto 30px;
    width: 72%;
}



.query-input:focus {
    border-color: #D39B2C;
}


.query-btn:hover {
    background-color: #c28c20;
}

.about-link {
    display: block;
    text-align: center;
    margin-top: 40px;
    color: #C39539;
    font-size: 16px;
    font-family: 'PingFang SC', sans-serif;
}

/* 移动端底部导航 */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    z-index: 100;
}

.bottom-nav-items {
    display: flex;
    padding: 8px 0;
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: 8px 2px;
}

.bottom-nav-icon {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bottom-nav-text {
    margin-top: 4px;
    font-size: 11px;
    color: #666;
}

.bottom-nav-text.active {
    color: #D39B2C;
}
.query-btn {
    padding: 12px 25px;
    background-color: #d88c2f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}
/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-content {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo {
        width: 100px;
    }

    .subtitle {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }

    .query-container {
        padding: 0 20px;
    }

    .title-image {
        margin-top: 37px;
        margin-bottom: 29px;

    }

    .about-link {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 80px;
    }

    .subtitle {
        width: 120px;
    }

    .top-bar-content {
        padding: 6px 10px;
    }

    .query-container {
        padding: 0 15px;
    }

    .title-image {
        width: 90%;
        max-width: 280px;
    }
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.close-menu-btn {
    font-size: 24px;
    color: #666;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 16px;
    color: #333;
}

.mobile-dropdown {
    display: none;
    padding-left: 15px;
    padding-bottom: 10px;
}

.mobile-dropdown-item {
    display: block;
    padding: 10px 0;
    color: #666;
    font-size: 14px;
}

/* 加载动画 */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e6b85a;
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 3000;
}

.loading-bar.active {
    transform: translateX(0);
}