/* 基础样式 */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 1rem;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1) !important;
    transform: translateY(-1px);
}

/* 搜索容器样式 */
.search-container {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: -30px;
    position: relative;
    transform: translateY(-25%);  /* 向上移动自身高度的50% */
    z-index: 10;  /* 确保搜索框在顶部区域上方 */
}

/* 字符显示样式 */
.character-large {
    font-size: 3rem;
    font-weight: bold;
}

.pronunciation {
    background: #ff6b6b;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.1rem;
}

/* 统计信息样式 */
.stats-container {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    padding: 0 1rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-nav .nav-link {
        margin: 0 0.4rem;
    }

    .search-container {
        margin-top: 0;
        padding: 1.5rem;
    }

    .stat-item {
        padding: 0 0.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* 当前页面高亮 */
.nav-link.active {
    color: #fff !important;
    font-weight: bold;
    border-bottom: 2px solid #fff;
}

/* 顶部区域背景样式 */
.hero-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 重置选项卡样式，覆盖外部 CSS */
#phoneticTabs.nav-tabs .nav-link {
    color: #495057 !important;
    font-weight: 500;
    border: none !important;
    background: none !important;
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    cursor: pointer;
}

#phoneticTabs.nav-tabs .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: bold;
    border-bottom: 3px solid var(--primary-color) !important;
}

#phoneticTabs.nav-tabs .nav-link:hover {
    color: var(--primary-color) !important;
    background: none !important;
}





