body { margin: 0; }

/* 无侧边栏时，主内容占满宽度 */
.main-content-full {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    box-sizing: border-box;
}

/* 有侧边栏时的布局 */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar-column {
    width: 240px;
    flex-shrink: 0;
}

.main-column {
    flex: 1;
    min-width: 0;
    padding: 10px 20px;
}

.mobile-header {
    display: none;
}

@media (max-width: 768px) {
    .app-wrapper { flex-direction: column; }
    .sidebar-column { display: none; }
    .mobile-header { display: flex; align-items: center; gap: 10px; padding: 8px; background: #1e293b; color: #fff; }
    .btn-toggle-sidebar { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }
}

.hilite { background: #fda; }

.page-toolbar-wrap {
    padding: 0;
    margin: 0 0 12px;
    border: 1px solid #dfdfdf;
    border-radius: 3px;
    z-index: 9999999;
}

.search-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px 0;
}

.search-bar label {
    font-weight: 600;
    color: #334155;
}

.search-bar input[type="text"] {
    height: 34px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    min-width: 200px;
}

.search-bar .btn-search {
    height: 34px;
    padding: 0 16px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.action-bar {
    text-align: center;
    margin: 12px 0 20px;
    color: #334155;
}

.action-bar a {
    color: #2563eb;
    text-decoration: none;
    margin: 0 6px;
    font-weight: 600;
}

.action-bar a:hover { text-decoration: underline; }

.data-table {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-collapse: collapse;
}

.data-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 12px;
    text-align: left;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.data-table tr:hover td { background: #f8fafc; }

.data-table a {
    color: #2563eb;
    text-decoration: none;
}

.data-table a:hover { text-decoration: underline; }

.layer_food_to_symptom table {
    margin: 10px auto;
}

.layer_food_to_symptom td {
    padding: 6px 8px;
}

.nav ul li {
    float: left;
    margin-right: 10px;
}

.nav ul li a,
a.nav {
    background: #105CB6;
    border: 1px solid #0B4C98;
    color: #FFFFFF;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: 28px;
    line-height: 2;
    text-align: center;
    width: 107px;
}
