/* ========= ELDERLY-NAVBAR.CSS - 老年人友好型导航条样式（精简版） ========= */
/* 兼容性：Android 9.0+ / iOS 12+ / Chrome 70+ / Safari 12+ / 微信浏览器 */
/* 简单明了的导航条设计 */
.elderly-navbar-simple {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #4a7c1a;
    z-index: 1000;
    border-bottom: 2px solid #2a4a0f;
    padding: 0;
    height: 55px;
    min-height: 55px;
}

.elderly-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    height: 55px;
}

/* 网站标题区域 */
.elderly-site-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    font-weight: bold;
    min-width: 200px;
    height: 100%;
    padding: 0 5px;
}

/* PC端显示 - 单行 */
.site-title-pc {
    font-size: 25px;
    color: #FFD700;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 移动端显示 - 双行 */
.site-title-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.site-title-chinese {
    font-size: 22px;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 2px;
}

.site-title-english {
    font-size: 16px;
    color: #FFE680;
    font-weight: normal;
    letter-spacing: 0.5px;
    margin-top:5px;
}

/* 导航按钮区域 */
.elderly-nav-buttons {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: center;
    padding: 0 5px;
}

/* 导航按钮样式 */
.elderly-nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    background: #f8fff0;
    border-radius: 6px;
    border: 1px solid #e6f0d5;
    text-decoration: none;
    min-width: 80px;
    height: 38px;
}

.elderly-nav-button.active {
    background: #ffec8b;
    border-color: #ffcc00;
    color: #333;
}

.elderly-nav-button.pressed {
    background: #e6f0d5;
}

/* 按钮文字 */
.button-text {
    font-size: 20px;
    font-weight: bold;
    color: #3a6314;
    line-height: 1;
    margin: 0;
    padding: 0;
    letter-spacing: 0.5px;
    font-weight:bold;
}

.elderly-nav-button.active .button-text {
    color: #333;
}

/* 搜索区域 */
.elderly-nav-search {
    display: flex;
    align-items: center;
    position: relative;
    min-width: 50px;
}

/* 搜索切换按钮 */
.search-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    width: 42px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #FFD700;
    cursor: pointer;
    padding: 0;
}

/* 搜索容器 */
.search-container {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    padding: 12px;
    display: none;
    width: 280px;
    z-index: 1001;
    border: 2px solid #3a6314;
}

.search-container.active {
    display: block;
}

/* 搜索表单 */
.elderly-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.elderly-search-input {
    padding: 10px 12px;
    font-size: 18px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background: #f9f9f9;
    color: #333;
}

.elderly-search-input:focus {
    outline: none;
    border-color: #4a7c1a;
    background: white;
}

.elderly-search-input::placeholder {
    color: #999;
    font-size: 15px;
}

.elderly-search-submit {
    padding: 10px;
    background: #4a7c1a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

/* 搜索关闭按钮 */
.search-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    border: none;
    font-size: 22px;
    color: #666;
    cursor: pointer;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* 导航条占位符 */
.navbar-placeholder {
    height: 55px;
    width: 100%;
}

/* 响应式设计 - 768px以下切换为双行显示 */
@media (max-width: 768px) {
    .elderly-navbar-simple {
        height: 50px;
        min-height: 50px;
        padding: 0;
        border-bottom: 2px solid #2a4a0f;
    }
    
    .elderly-navbar-container {
        padding: 0 5px;
        height: 50px;
    }
    
    /* 移动端显示双行标题 */
    .site-title-pc {
        display: none;
    }
    
    .site-title-mobile {
        display: flex;
    }
    
    .elderly-site-title {
        min-width: 160px;
        justify-content: center;
        padding: 0 3px;
    }
    
    .site-title-chinese {
        font-size: 23px;
        margin-bottom: 0;
        line-height: 1;
    }
    
    .site-title-english {
        font-size: 18px;
        line-height: 1;
        color: #FFE680;
    }
    
    .elderly-nav-buttons {
        gap: 6px;
        padding: 0 3px;
        margin: 0 3px;
    }
    
    .elderly-nav-button {
        padding: 3px 10px;
        background: #f8fff0;
        min-width: 70px;
        height: 34px;
        border-radius: 4px;
    }
    
    .button-text {
        font-size: 18px;
        color: #3a6314;
        letter-spacing: 0.2px;
        font-weight: bolder;
    }
    
    .elderly-nav-search {
        min-width: 40px;
    }
    
    .search-toggle {
        width: 36px;
        height: 32px;
        font-size: 19px;
        color: #FFD700;
    }
    
    .search-container {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        width: auto;
        margin: 0 8px;
        border-radius: 6px;
        padding: 8px;
        border: 2px solid #3a6314;
    }
    
    .elderly-search-input {
        padding: 8px 10px;
        font-size: 17px;
    }
    
    .elderly-search-input:focus {
        border-color: #4a7c1a;
    }
    
    .elderly-search-submit {
        padding: 8px;
        font-size: 17px;
        background: #4a7c1a;
    }
    
    .navbar-placeholder {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .elderly-navbar-simple {
        height: 46px;
        min-height: 46px;
        border-bottom: 2px solid #2a4a0f;
    }
    
    .elderly-navbar-container {
        padding: 0 3px;
        height: 46px;
    }
    
    .elderly-site-title {
        min-width: 110px;
    }
    
    .site-title-chinese {
        font-size: 23px;
    }
    
    .site-title-english {
        font-size: 14px;
    }
    
    .elderly-nav-buttons {
        gap: 3px;
        padding: 0;
    }
    
    .elderly-nav-button {
        padding: 2px 8px;
        min-width: 65px;
        height: 32px;
        background: #f8fff0;
    }
    
    .button-text {
        font-size: 17px;
        font-weight:bolder;
        color: #3a6314;
        letter-spacing: 0.1px;
    }
    
    .search-toggle {
        width: 34px;
        height: 30px;
        font-size: 17px;
        color: #FFD700;
    }
    
    .search-container {
        top: 46px;
        margin: 0 5px;
        padding: 6px;
        border: 2px solid #3a6314;
    }
    
    .elderly-search-input {
        padding: 6px 8px;
        font-size: 16px;
    }
    
    .elderly-search-submit {
        padding: 6px;
        font-size: 16px;
        background: #4a9c20;
    }
    
    .navbar-placeholder {
        height: 46px;
    }
}

@media (max-width: 360px) {
    .elderly-navbar-simple {
        height: 44px;
        min-height: 44px;
        border-bottom: 1px solid #2a4a0f;
    }
    
    .elderly-navbar-container {
        padding: 2px 2px;
        height: 44px;
        gap: 1px;
    }
    
    .elderly-site-title {
        min-width: 90px;
        padding: 0 2px;
    }
    
    .site-title-chinese {
        font-size: 20px;
    }
    
    .site-title-english {
        font-size: 11px;
        letter-spacing: 0.3px;
        color: #FFE680;
    }
    
    .elderly-nav-buttons {
        gap: 2px;
        padding: 0;
        margin:0;
    }
    
    .elderly-nav-button {
        padding: 2px 0px;
        margin:0;
        min-width: 63px;
        height: 30px;
        border-radius: 3px;
        background: #f8fff0;
    }
    
    .button-text {
        font-size: 15px;
        color: #3a6314;
        font-weight: bold;
        margin:0;
        padding:0;
    }
    
    .search-toggle {
        width: 32px;
        height: 28px;
        font-size: 16px;
        color: #FFD700;
    }
    
    .navbar-placeholder {
        height: 44px;
    }
}

@media (max-width: 320px) {
    .elderly-navbar-simple {
        height: 42px;
        min-height: 42px;
        border-bottom: 1px solid #2a4a0f;
    }
    
    .elderly-navbar-container {
        padding: 0;
        height: 42px;
    }
    
    .elderly-site-title {
        min-width: 95px;
    }
    
    .site-title-chinese {
        font-size: 16px;
    }
    
    .site-title-english {
        font-size: 11px;
    }
    
    .elderly-nav-button {
        padding: 1px 0px;
        min-width: 60px;
        height: 28px;
        background: #f8fff0;
        margin:0;
        padding:0;
    }
    
    .button-text {
        font-size: 14px;
        color: #3a6314;
    }
    
    .search-toggle {
        width: 30px;
        height: 26px;
        font-size: 15px;
        color: #FFD700;
    }
    
    .navbar-placeholder {
        height: 42px;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .elderly-navbar-simple {
        background: #3a6314;
        border-bottom: 3px solid #000000;
    }
    
    .elderly-nav-button {
        background: white;
        border: 2px solid #000000;
    }
    
    .elderly-nav-button.active {
        background: #ffff00;
        border: 3px solid #000000;
    }
    
    .search-toggle {
        border: 2px solid #000000;
    }
    
    .search-container {
        border: 3px solid #3a6314;
    }
}

/* 特大字体模式支持 */
@media (prefers-font-size: large) {
    .site-title-pc {
        font-size: 28px;
    }
    
    .site-title-chinese {
        font-size: 24px;
    }
    
    .site-title-english {
        font-size: 18px;
    }
    
    .elderly-nav-button {
        padding: 6px 15px;
        min-width: 90px;
        height: 42px;
        background: #f8fff0;
    }
    
    .button-text {
        font-size: 22px;
        color: #3a6314;
    }
    
    .search-toggle {
        font-size: 24px;
        width: 46px;
        height: 42px;
        color: #FFD700;
    }
    
    .elderly-search-input {
        font-size: 20px;
        padding: 12px 14px;
    }
    
    .elderly-search-submit {
        font-size: 20px;
        padding: 12px;
        background: #4a7c1a;
    }
}

@media (prefers-font-size: x-large) {
    .elderly-navbar-simple {
        height: 60px;
        min-height: 60px;
    }
    
    .elderly-navbar-container {
        height: 60px;
    }
    
    .site-title-pc {
        font-size: 30px;
    }
    
    .site-title-chinese {
        font-size: 26px;
    }
    
    .site-title-english {
        font-size: 20px;
    }
    
    .elderly-nav-button {
        padding: 8px 18px;
        min-width: 100px;
        height: 46px;
        background: #f8fff0;
    }
    
    .button-text {
        font-size: 24px;
        color: #3a6314;
    }
    
    .search-toggle {
        font-size: 26px;
        width: 50px;
        height: 46px;
        color: #FFD700;
    }
    
    .elderly-search-input {
        font-size: 22px;
        padding: 14px 16px;
    }
    
    .elderly-search-submit {
        font-size: 22px;
        padding: 14px;
        background: #4a7c1a;
    }
    
    .navbar-placeholder {
        height: 60px;
    }
}