/* ===========================================================
   品牌推荐 + 名厨推荐 独立样式
   来源: 4m33517uc66h1.doubaoapps.com 实际页面样式
   对应 HTML: index.html 里 section#brands + section#chefs
   =========================================================== */

/* -------- 设计变量（改颜色只改这里） -------- */
:root {
    --white:        #ffffff;
    --ink-1:        #1a1a1a;
    --ink-2:        #555555;
    --ink-3:        #888888;
    --line:         #eeeeee;
    --radius:       10px;
    --red:          #8f1d26;
    --red-deep:     #6b141a;
    --gold:         #c9a063;
    --gold-light:   #ffd180;
    --bg-alt:       #fafaf8;
    --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
    --shadow:       0 8px 24px rgba(0,0,0,.12);
    --serif:        "Noto Serif SC","Source Han Serif CN","Songti SC","STSong",serif;
}

/* ===========================================================
   通用区块
   =========================================================== */
.section { padding: 30px 0 30px; }
.section-alt { background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 100%); }
.section .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* -------- 标题栏 -------- */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}
/* ★ 追加：tab + 更多 同一行 */
.tabs-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.tabs-bar .more-groups { flex-shrink: 0; margin-bottom: 26px; }
.section-title { display: flex; align-items: center; gap: 16px; }
.sec-seal {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--red); color: #fff; font-weight: 700; font-size: 20px;
    flex-shrink: 0; position: relative;
    box-shadow: 0 2px 8px rgba(143,29,38,.3);
}
.sec-seal::after {
    content: ''; position: absolute; inset: 4px; border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.55);
}
.section-title h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink-1); margin: 0; letter-spacing: 1px; }
.section-title .en { display: block; font-size: 11px; color: #999; letter-spacing: 2px; margin-top: 2px; text-transform: uppercase; }

/* 更多链接 */
.more-link {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--ink-2); font-size: 14px; text-decoration: none; transition: color .2s;
}
.more-link:hover { color: var(--red); }
.more-link svg { width: 16px; height: 16px; }

/* ===========================================================
   品牌推荐（Tabs）
   =========================================================== */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tab-btn {
    padding: 6px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
    color: var(--ink-2); background: var(--white); border: 1px solid var(--line);
    cursor: pointer; transition: all .2s;
}
.tab-btn:hover { color: var(--red); border-color: var(--gold); }
.tab-btn.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 12px rgba(168,36,47,.3); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* -------- 品牌卡片 -------- */
.brand-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 18px; }
.brand-grid-list { display: grid; grid-template-columns: repeat(1, 1fr); gap: 18px; }
.brand-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
    display: block; text-decoration: none; color: inherit;
}
.brand-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.brand-card .bimg { position: relative; height: 150px; overflow: hidden; }
.brand-card .bimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.brand-card:hover .bimg img { transform: scale(1.06); }
.brand-card .btag {
    position: absolute; left: 12px; top: 12px; background: rgba(143,29,38,.9); color: #fff;
    font-size: 11.5px; padding: 3px 10px; border-radius: 3px; letter-spacing: .06em;
}
.brand-card .bstar {
    position: absolute; right: 12px; top: 12px; display: flex; gap: 2px; color: var(--gold-light);
}
.brand-card .bstar svg { width: 13px; height: 13px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.brand-card .binfo { padding: 14px 16px 16px; }
.brand-card .binfo h4 { font-size: 15.5px; font-weight: 700; margin: 0 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-1); }
.brand-card .binfo p { font-size: 12.5px; color: var(--ink-3); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }

/* ===========================================================
   企业荣誉评定（每个卡片内部自然三行）
   =========================================================== */
.honor-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.honor-card {
    background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold);
    border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
    /* 没有 display:flex！恢复块级自然流，hc-level / hc-name / hc-no 各占一行 */
}
.honor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.honor-card .hc-level { font-family: var(--serif); font-size: 16px; font-weight: 900; color: var(--red); letter-spacing: .08em; margin-bottom: 6px; }
.honor-card .hc-level::after { content: ""; display: block; width: 34px; height: 2px; background: var(--gold); margin-top: 9px; border-radius: 1px; }
.honor-card .hc-name { font-size: 15px; font-weight: 700; margin: 12px 0 6px; color: var(--ink-1); }
.honor-card .hc-no { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ===========================================================
   名厨推荐
   =========================================================== */
.chef-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 18px; }
.chef-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
    display: block; text-decoration: none; color: inherit;
}
.chef-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.chef-card .cimg { height: 180px; overflow: hidden; position: relative; }
.chef-card .cimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.chef-card:hover .cimg img { transform: scale(1.06); }
.chef-card .cimg .chef-name {
    position: absolute; left: 0; bottom: 0; right: 0; padding: 26px 16px 10px;
    background: linear-gradient(180deg, transparent, rgba(20,13,10,.82));
    color: #fff; font-size: 13.5px; letter-spacing: .06em;
}
.chef-card .cimg .chef-name b { font-family: var(--serif); font-size: 16px; font-weight: 700; margin-right: 6px; }
.chef-card .cinfo { padding: 16px; }
.chef-card .cinfo h4 { font-family: var(--serif); font-size: 16.5px; font-weight: 700; color: var(--red-deep); margin: 0 0 7px; }
.chef-card .cinfo p { 
  font-size: 13px; color: var(--ink-2); 
  line-height: 1.65; margin: 0; 
  display: -webkit-box;        /* 加 */
  -webkit-line-clamp: 2;       /* 加：最多 2 行 */
  -webkit-box-orient: vertical; /* 加 */
  overflow: hidden;             /* 加 */
}