/* ==================== 公共组件样式 ==================== */

/* 区域和语言选择器样式 */
.navbar-region {
    display: flex;
    align-items: center;
}

.region-selector-wrapper {
    position: relative;
    display: inline-block;
}

.region-current {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    border: 2px solid #e5e5e7;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.region-current:hover {
    border-color: #d2d2d7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.region-current .flag-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.region-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: #ffffff;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.region-selector-wrapper.active .region-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-section {
    padding: 12px 0;
    border-bottom: 0.5px solid #e5e5e7;
}

.dropdown-section:last-child {
    border-bottom: none;
}

.dropdown-section-title {
    padding: 0 16px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.region-option, .language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: #1d1d1f;
    cursor: pointer;
    transition: background 0.15s ease;
}

.region-option:hover, .language-option:hover {
    background: #f5f5f7;
}

.region-option.active, .language-option.active {
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
}

.region-option .flag-icon, .language-option .flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.option-label {
    flex: 1;
    font-size: 15px;
    font-weight: 400;
}

.region-option.active .option-label,
.language-option.active .option-label {
    font-weight: 500;
}

.region-check {
    font-size: 16px;
    color: #007AFF;
    opacity: 0;
    font-weight: bold;
}

.region-option.active .region-check,
.language-option.active .region-check {
    opacity: 1;
}

/* 底部导航栏样式 */
.bottom-navbar-wrapper {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
}

.bottom-navbar {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(242, 242, 247, 0.65);
    backdrop-filter: saturate(180%);
    -webkit-backdrop-filter: saturate(180%);
    border-radius: 30px;
    padding: 8px 12px;
    gap: 8px;
    height: 60px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #8e8e93; /* 默认灰色 */
    flex: 1; /* 平均分配宽度 - 关键! */
    padding: 8px 4px; /* 与首页一致 */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 与首页一致 */
    border-radius: 26px; /* 与首页一致 */
    position: relative;
}

.nav-item.active {
    color: #007aff; /* iOS蓝色 */
    background: rgba(235, 235, 240, 0.75); /* 半透明背景 - 与首页保持一致 */
    backdrop-filter: saturate(180%) blur(12px); /* 毛玻璃效果：饱和度+模糊 */
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.15); /* 蓝色阴影 */
}

.nav-item:active {
    transform: scale(0.95); /* 点击缩放效果 */
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.nav-item:not(.active) .active-icon {
    display: none;
}

.nav-item.active .inactive-icon {
    display: none;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
}

.nav-item:not(.active) .nav-label {
    color: #8e8e93;
}

.nav-item.active .nav-label {
    color: #007aff;
}

.search-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(242, 242, 247, 0.65);
    backdrop-filter: saturate(180%);
    -webkit-backdrop-filter: saturate(180%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: all 0.2s;
}

.search-button:active {
    transform: scale(0.95);
}

.search-button .nav-icon {
    width: 24px;
    height: 24px;
}

