/* 公共样式 - 全站通用 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* 移除所有链接的下划线 */
a {
    text-decoration: none;
    color: inherit;
}

body.no-scroll {
    overflow: hidden;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    height: 49px;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 28px;
    width: auto;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.search-btn, .menu-btn {
    background: transparent;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover, .menu-btn:hover {
    transform: scale(1.1);
}

/* 导航菜单 */
.nav-menu {
    background: white;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 0 10px;
    height: 44px;
    -webkit-overflow-scrolling: touch;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    padding: 0 20px;
    text-decoration: none;
    color: #666;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-item:hover {
    color: #1abc9c;
}

.nav-item.active {
    color: #1abc9c;
    border-bottom-color: #1abc9c;
    font-weight: bold;
}

.logo a {
    display: flex;
    align-items: center;
}

/* 搜索面板 */
.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    visibility: hidden;
}

.search-panel.show {
    transform: translateY(0);
    visibility: visible;
}

.search-container {
    background: #1abc9c;
    padding: 15px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 0 15px;
    gap: 10px;
}

.search-icon {
    color: #1abc9c;
    font-size: 18px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 0;
    font-size: 16px;
}

.search-input::placeholder {
    color: #999;
}

.search-cancel {
    background: #1abc9c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.search-content {
    background: #f5f5f5;
    height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.search-section h4 {
    color: #999;
    font-size: 14px;
    margin: 15px 0 15px 20px;
    font-weight: normal;
}

.search-results {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

/* 菜单面板 */
.menu-panel {
    position: fixed;
    top: 49px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    visibility: hidden;
}

.menu-panel.show {
    transform: translateX(0);
    visibility: visible;
}

.menu-content {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
}

.menu-category {
    margin-bottom: 30px;
}

.menu-category h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
    display: block;
}

.menu-category h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 90px;
    height: 2px;
    background: #1abc9c;
}

.menu-category-content {
    display: block;
}

.menu-items {
    margin-bottom: 15px;
}

.menu-row {
    display: flex;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.menu-item {
    padding: 12px 15px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    margin-right: 0;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s;
    width: calc(50% - 10px);
    display: block;
}

.menu-item:last-child {
    margin-right: 0;
}

.menu-item:hover {
    background: #1abc9c;
    color: white;
}

.menu-toggle {
    background: transparent;
    border: 1px solid #1abc9c;
    color: #1abc9c;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 4px;
    margin-left: auto;
    width: fit-content;
}

.menu-toggle i {
    font-size: 10px;
}

.search-item {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
}

.search-item:hover {
    background: #f9f9f9;
}

.search-item:last-child {
    border-bottom: none;
}


