/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    padding: 0 15px 60px 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* App Bar 样式 */
.app-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.app-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-link {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.app-logo {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.home-link:hover .app-logo {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.app-title {
    font-size: 18px;
    font-weight: bold;
}

.app-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

.vip-button {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: #333;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vip-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* 搜索区域样式 */
.search-section {
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.search-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 厨师区域样式 */
.chef-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title h2 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.count {
    color: #667eea;
    font-weight: 600;
    font-size: 1rem;
}

/* 厨师网格布局 - 固定2列布局 */
.chef-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.chef-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    aspect-ratio: 1/2; /* 1:2比例 */
}

.chef-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.chef-image {
    width: 100%;
    height: 66.67%; /* 2/3高度，符合1:2比例 */
    object-fit: cover;
    border-bottom: 3px solid #667eea;
}

.chef-info {
    padding: 20px;
}

.chef-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.chef-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

.meta-label {
    color: #999;
}

/* 加载更多按钮 */
.load-more-section {
    text-align: center;
}

.load-more-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 模态框样式 - 根据1:2比例调整 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-body {
    margin-top: 20px;
}

.chef-detail {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.detail-image {
    width: 300px;
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.detail-info {
    flex: 1;
}

.detail-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    background: #f0f0f0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

.detail-desc p {
    line-height: 1.6;
    color: #555;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 字母索引区域样式 */
.alphabet-section {
    margin-bottom: 20px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.alphabet-index {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.alphabet-label {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.alphabet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alphabet-tag {
    display: inline-block;
    padding: 8px 12px;
    border: 2px solid #90EE90; /* 浅绿色边框 */
    border-radius: 20px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 36px;
    text-align: center;
}

.alphabet-tag:hover {
    background: #90EE90;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(144, 238, 144, 0.3);
}

.alphabet-tag.active {
    background: #90EE90;
    color: white;
    border-color: #76c776;
}

/* 移除响应式设计，使用固定布局 */

/* 底部导航栏样式 */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
    background-color: #fff;
    position: sticky;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 10px;
}

.bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

.bottom-nav .nav-item.active {
    color: #007bff;
}