/*!
 * maideyi.com v2 — DailyMeal 风格改版
 * 设计 tokens 参照 thedailymeal.com unified 主题
 * v=20261102
 */
:root{
  --orange:#DA6F18;
  --orange-light:#E8B17D;
  --orange-lightest:#FFF5E0;
  --bg:#FAF9F9;
  --white:#FFFFFF;
  --dark:#1C1B18;
  --text:#1C1B18;
  --text2:#41403B;
  --muted:#7E7873;
  --line:#E2DDDB;
  --radius:12px;
  --radius-s:8px;
  --shadow:0 2px 20px rgba(0,0,0,.05);
  --font:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  --maxw:1200px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.6}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none;transition:color .15s}
a:hover{color:var(--orange)}
ul,ol{list-style:none}
.floatfix{clear:both}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}

/* ================= 顶栏 ================= */
.top-bar{position:sticky;top:0;z-index:900;background:var(--white);border-bottom:1px solid var(--line);height:60px}
.top-bar .wrap{height:60px;display:flex;align-items:center;gap:16px}
.nav-toggle{display:flex;flex-direction:column;justify-content:center;gap:5px;width:28px;height:28px;cursor:pointer;background:none;border:0;flex:0 0 auto}
.nav-toggle span{display:block;height:2px;background:var(--dark);border-radius:2px}
.logo{font-size:26px;font-weight:800;letter-spacing:1px;line-height:1;flex:0 0 auto}
.logo a{color:var(--dark)}
.logo a:hover{color:var(--dark)}
.logo b{color:var(--orange);font-weight:800}
.top-search{margin-left:auto;position:relative;width:260px;max-width:40%}
.top-search input{width:100%;height:38px;border:1px solid var(--line);border-radius:19px;background:var(--bg);padding:0 62px 0 16px;font-size:14px;color:var(--text);outline:none}
.top-search input:focus{border-color:var(--orange-light);background:#fff}
.top-search button{position:absolute;right:4px;top:4px;width:54px;height:30px;border:0;border-radius:15px;background:var(--orange);color:#fff;cursor:pointer;font-size:13px;line-height:30px;font-family:inherit}
.top-nav-links{display:flex;gap:4px;margin-left:8px;overflow:hidden}
.top-nav-links a{font-size:15px;font-weight:600;color:var(--text2);padding:6px 10px;border-radius:var(--radius-s);white-space:nowrap}
.top-nav-links a:hover,.top-nav-links a.on{color:var(--orange);background:var(--orange-lightest)}

/* ================= 抽屉导航 ================= */
.drawer-mask{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:998}
.drawer{position:fixed;top:0;left:-340px;width:320px;max-width:86vw;height:100%;background:var(--white);z-index:999;overflow-y:auto;transition:left .25s;box-shadow:var(--shadow)}
.drawer.open{left:0}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line)}
.drawer-close{font-size:22px;color:var(--muted);cursor:pointer;background:none;border:0;line-height:1}
.drawer-nav{padding:10px 0}
.drawer-nav a{display:block;padding:12px 24px;font-size:16px;font-weight:600;color:var(--text2)}
.drawer-nav a:hover{background:var(--orange-lightest);color:var(--orange)}
.drawer-nav a.on{color:var(--orange)}
body.drawer-open{overflow:hidden}

/* ================= 区块标题 ================= */
.section{margin:36px 0}
.section-header{display:flex;align-items:center;gap:16px;margin-bottom:22px}
.section-header h2{font-size:24px;font-weight:800;line-height:1.2;white-space:nowrap;color:var(--text)}
.section-header h2 i{font-style:normal;color:var(--orange)}
.section-header:after{content:"";flex:1;height:1px;background:var(--line)}
.section-header .more{font-size:14px;color:var(--muted);white-space:nowrap}
.section-header .more:hover{color:var(--orange)}

/* ================= Hero 区 ================= */
.featured{display:grid;grid-template-columns:2fr 1fr;gap:24px;margin-top:24px}
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;position:relative}
.card-img{position:relative;aspect-ratio:16/9;background:var(--line);overflow:hidden;display:block}
.card-img img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.card:hover .card-img img{transform:scale(1.04)}
.cat-label{position:absolute;top:0;left:0;z-index:2;background:var(--orange);color:#fff;font-size:12px;font-weight:600;line-height:1;padding:8px 10px;border-top-left-radius:var(--radius);border-bottom-right-radius:var(--radius);letter-spacing:.5px}
.card:hover .cat-label{background:var(--dark)}
.card-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.card-title{font-size:17px;font-weight:700;line-height:1.45;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-title a{color:inherit}
.card-excerpt{font-size:14px;color:var(--muted);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-meta{margin-top:auto;display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);padding-top:8px;border-top:1px dashed var(--line)}
.card-meta a{color:var(--orange)}
/* hero 主卡 */
.card-hero .card-title{font-size:26px;line-height:1.35;-webkit-line-clamp:3}
.card-hero .card-excerpt{font-size:15px;-webkit-line-clamp:3;color:var(--text2)}
/* 右列小卡：横向 */
.card-side{flex-direction:row;align-items:stretch}
.card-side .card-img{width:38%;aspect-ratio:4/3;flex:0 0 auto;border-radius:0}
.card-side .card-body{padding:12px 14px}
.card-side .card-title{font-size:15px;-webkit-line-clamp:3}
.featured-side{display:flex;flex-direction:column;gap:16px}
.featured-side .card{flex:1}

/* ================= 文章网格 ================= */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.grid-4{grid-template-columns:repeat(4,1fr)}

/* ================= 列表页 ================= */
.page-head{margin-top:28px}
.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:12px}
.breadcrumb a{color:var(--muted)}
.breadcrumb a:hover{color:var(--orange)}
.breadcrumb b{color:var(--text);font-weight:600}
.cat-desc{background:var(--orange-lightest);border:1px solid var(--orange-light);border-radius:var(--radius-s);padding:12px 16px;font-size:14px;color:var(--text2);margin-bottom:20px;line-height:1.7}

/* ================= 分页 ================= */
.pagination{margin:36px 0;text-align:center}
.pagination ul{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;padding:0;margin:0}
.pagination li{list-style:none}
.pagination li>a,.pagination li>span{display:inline-block;min-width:38px;height:38px;line-height:36px;padding:0 12px;text-align:center;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--white);font-size:14px;color:var(--text2)}
.pagination li>a:hover{border-color:var(--orange);color:var(--orange)}
.pagination li.active>a{background:var(--orange);border-color:var(--orange);color:#fff;font-weight:600}
.pagination li:first-child>a{border:0;background:transparent;color:var(--muted);min-width:0}

/* ================= 文章详情页 ================= */
.article-wrap{max-width:820px;margin:28px auto 0;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.article-hero{position:relative;aspect-ratio:21/9;background:var(--line)}
.article-hero img{width:100%;height:100%;object-fit:cover}
.article-hero .cat-label{border-top-left-radius:0}
.article-head{padding:28px 32px 20px}
.article-head h1{font-size:30px;font-weight:800;line-height:1.4;color:var(--text)}
.article-meta{display:flex;flex-wrap:wrap;gap:14px;margin-top:14px;font-size:13px;color:var(--muted);padding-bottom:18px;border-bottom:1px solid var(--line)}
.article-meta b{color:var(--text2);font-weight:600}
.article-content{padding:24px 32px 32px;font-size:17px;line-height:1.9;color:var(--text2);word-break:break-word}
.article-content p{margin:0 0 18px}
.article-content img{margin:10px auto;border-radius:var(--radius-s)}
.article-content h2,.article-content h3{color:var(--text);margin:26px 0 14px;font-weight:700}
.article-content a{color:var(--orange)}
.article-content ul,.article-content ol{margin:0 0 18px;padding-left:24px;list-style:disc}
.article-content ol{list-style:decimal}
.article-content table{width:100%;border-collapse:collapse;margin:0 0 18px}
.article-content table td,.article-content table th{border:1px solid var(--line);padding:8px 10px;font-size:15px}
.article-footer-note{margin-top:24px;padding:14px 16px;background:var(--bg);border-radius:var(--radius-s);font-size:13px;color:var(--muted);line-height:1.8}

/* 标签条 */
.tag-strip{display:flex;flex-wrap:wrap;gap:8px;padding:0 32px 24px}
.tag-strip a{font-size:13px;color:var(--text2);background:var(--bg);border:1px solid var(--line);border-radius:15px;padding:5px 14px}
.tag-strip a:hover{border-color:var(--orange);color:var(--orange);background:var(--orange-lightest)}

/* 相关文章 */
.related{padding:8px 32px 32px}

/* ================= 侧栏（搜索/标签页用） ================= */
.with-side{display:grid;grid-template-columns:1fr 320px;gap:32px;align-items:start}
.side-widget{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px 20px;margin-bottom:24px}
.side-widget h3{font-size:16px;font-weight:800;padding-bottom:12px;margin-bottom:12px;border-bottom:2px solid var(--dark);position:relative}
.side-widget h3:after{content:"";position:absolute;left:0;bottom:-2px;width:48px;height:2px;background:var(--orange)}
.side-list li{padding:9px 0;border-bottom:1px dashed var(--line);font-size:14px;line-height:1.5}
.side-list li:last-child{border-bottom:0}
.side-list a{color:var(--text2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.side-list a:hover{color:var(--orange)}
.side-list .side-thumb{display:flex;gap:12px;align-items:flex-start}
.side-list .side-thumb img{width:88px;height:60px;object-fit:cover;border-radius:var(--radius-s);flex:0 0 auto;background:var(--line)}
.side-list .side-thumb span{font-size:12px;color:var(--muted);margin-top:4px;display:block}
.tagcloud{display:flex;flex-wrap:wrap;gap:8px}
.tagcloud a{font-size:13px;color:var(--text2);background:var(--bg);border:1px solid var(--line);border-radius:15px;padding:5px 12px}
.tagcloud a:hover{border-color:var(--orange);color:var(--orange)}

/* ================= 搜索页 ================= */
.search-result-info{font-size:14px;color:var(--muted);margin:20px 0 4px}
.search-result-info b{color:var(--orange);font-weight:600}
.search-empty{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:48px 24px;text-align:center;color:var(--muted)}

/* ================= 页脚 ================= */
.site-footer{background:var(--dark);color:#B9B5B0;margin-top:56px}
.footer-links{display:flex;flex-wrap:wrap;gap:6px 24px;padding:26px 0 18px;border-bottom:1px solid #33322E;font-size:14px}
.footer-links a{color:#D8D5D1}
.footer-links a:hover{color:var(--orange-light)}
.footer-bottom{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:space-between;padding:18px 0 26px;font-size:13px;color:#7E7873}
.footer-bottom .domain{color:var(--orange-light);font-weight:600}
.footer-tags{padding:20px 0 0}
.footer-tags a{display:inline-block;font-size:12px;color:#8B8880;border:1px solid #33322E;border-radius:14px;padding:3px 12px;margin:0 8px 8px 0}
.footer-tags a:hover{color:var(--orange-light);border-color:var(--orange-light)}

/* ================= 返回顶部 ================= */
.backtop{position:fixed;right:24px;bottom:80px;width:44px;height:44px;border-radius:50%;background:var(--white);border:1px solid var(--line);box-shadow:var(--shadow);color:var(--text2);font-size:18px;text-align:center;line-height:42px;cursor:pointer;z-index:500;display:none}
.backtop:hover{background:var(--orange);border-color:var(--orange);color:#fff}

/* ================= 提示条 ================= */
.hot-strip{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:12px 18px;display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin-top:24px;font-size:13px}
.hot-strip strong{color:var(--orange);font-weight:700;white-space:nowrap}
.hot-strip a{color:var(--text2)}
.hot-strip a:hover{color:var(--orange)}

/* ================= 广告位占位 ================= */
.ad-slot{margin:20px 0;text-align:center}

/* ================= 404 / 提示页 ================= */
.msg-page{max-width:640px;margin:60px auto;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:48px 32px;text-align:center}
.msg-page h1{font-size:52px;color:var(--orange);font-weight:800}
.msg-page p{color:var(--muted);margin:12px 0 22px}

/* ================= 响应式 ================= */
@media (max-width:1024px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .with-side{grid-template-columns:1fr}
}
@media (max-width:760px){
  .top-nav-links{display:none}
  .top-search{width:180px}
  .featured{grid-template-columns:1fr}
  .featured-side{flex-direction:column;overflow:visible;gap:12px}
  .featured-side .card{min-width:0;flex:1 1 auto}
  .card-hero .card-title{font-size:20px}
  .grid{grid-template-columns:1fr;gap:16px}
  .grid-4{grid-template-columns:repeat(2,1fr);gap:12px}
  .article-head{padding:20px 18px 14px}
  .article-head h1{font-size:22px}
  .article-content{padding:18px;font-size:16px}
  .article-footer-note{margin:0 18px 20px}
  .tag-strip,.related{padding-left:18px;padding-right:18px}
  .section{margin:26px 0}
  .section-header h2{font-size:19px}
  .backtop{right:14px;bottom:70px}
}

/* ================= show 页双栏修正 ================= */
.with-side .article-wrap{max-width:none;margin:0}

/* 无图文章占位 */
.img-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:22px;font-weight:800;letter-spacing:4px;color:#CFC9C4;
  background:repeating-linear-gradient(45deg,#F3F0ED,#F3F0ED 12px,#EDE8E4 12px,#EDE8E4 24px)}
.card-side .img-ph{font-size:15px;letter-spacing:2px}

/* 列表页：首条导语卡（横向大卡） */
.grid-list .card:first-child{grid-column:1 / -1;flex-direction:row;align-items:stretch}
.grid-list .card:first-child .card-img{width:44%;flex:0 0 auto;aspect-ratio:16/9}
.grid-list .card:first-child .card-body{padding:22px 26px;gap:10px}
.grid-list .card:first-child .card-title{font-size:24px;-webkit-line-clamp:2}
.grid-list .card:first-child .card-excerpt{font-size:15px;-webkit-line-clamp:3}
@media (max-width:760px){
  .grid-list .card:first-child{flex-direction:column}
  .grid-list .card:first-child .card-img{width:100%}
  .grid-list .card:first-child .card-body{padding:14px 16px}
  .grid-list .card:first-child .card-title{font-size:18px}
}
