/* ====== 中国餐饮网 (China Catering Net) 全局样式 ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; background-color: #fdfaf6; color: #4a4a4a; line-height: 1.6; }
a { text-decoration: none; color: #4a4a4a; transition: color 0.3s ease; }
a:hover { color: #d35400; } /* 激发食欲的暖橙/番茄红 */
ul, li { list-style: none; }
.container { width: 1200px; margin: 0 auto; }

/* 顶部信息栏 - 简约米白 */
.topbar { background-color: #fff; border-bottom: 1px solid #f0e6d2; font-size: 13px; color: #7f8c8d; padding: 10px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-slogan { font-weight: bold; color: #d35400; }
.topbar-slogan i { font-style: normal; margin-right: 5px; }
.topbar-links a { color: #7f8c8d; margin-left: 20px; }
.topbar-links a:hover { color: #d35400; }

/* 头部主区域 - 暖意温馨 */
.header-wrapper { background: #fff; box-shadow: 0 4px 15px rgba(211,84,0,0.05); position: relative; z-index: 100; }
.header-main { display: flex; justify-content: space-between; align-items: center; height: 100px; }
.logo a { font-size: 38px; font-weight: 900; color: #d35400; letter-spacing: 2px; display: flex; align-items: center; }
.logo a::before { content: '🍽️'; font-size: 34px; margin-right: 12px; }
.logo span { font-size: 14px; font-weight: normal; color: #888; margin-left: 15px; border-left: 1px solid #ddd; padding-left: 15px; letter-spacing: 1px; }

/* 搜索框 - 圆角暖边 */
.search-box { display: flex; border: 2px solid #e67e22; border-radius: 30px; overflow: hidden; width: 340px; background: #fff; }
.search-box input { flex: 1; border: none; padding: 10px 20px; outline: none; font-size: 14px; }
.search-box button { background: #e67e22; color: #fff; border: none; padding: 0 25px; font-size: 15px; cursor: pointer; font-weight: bold; }
.search-box button:hover { background: #d35400; }

/* 主导航栏 - 暖橙底色 */
.nav-wrapper { background: linear-gradient(90deg, #d35400, #e67e22); }
.nav { display: flex; }
.nav li { position: relative; }
.nav a { color: #fff; font-size: 16px; font-weight: bold; padding: 15px 30px; display: block; letter-spacing: 1px; }
.nav a:hover, .nav .current a { background: rgba(0,0,0,0.1); }

/* 主体布局 */
.main-wrapper { margin-top: 30px; display: flex; justify-content: space-between; gap: 30px; margin-bottom: 60px; }
.content-main { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; }

/* 通用模块块 - 柔和卡片 */
.module { background: #fff; border-radius: 12px; padding: 25px; margin-bottom: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.module-title { font-size: 22px; font-weight: bold; color: #d35400; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #f9f0e6; display: flex; justify-content: space-between; align-items: baseline; position: relative; }
.module-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px; background: #d35400; }
.module-title a.more { font-size: 14px; color: #999; font-weight: normal; }
.module-title a.more:hover { color: #d35400; }

/* 首页 - 焦点大图幻灯 */
.hero-slider { position: relative; height: 380px; border-radius: 12px; overflow: hidden; margin-bottom: 30px; }
.hero-slider img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hero-slider:hover img { transform: scale(1.05); }
.hero-mask { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 20px 20px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; }
.hero-mask h2 { font-size: 24px; font-weight: bold; margin-bottom: 8px; }

/* 首页 - 美食/餐饮图文列表 (左图右文) */
.food-list li { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px dashed #f0e6d2; }
.food-list li:last-child { border-bottom: none; padding-bottom: 0; }
.food-thumb { width: 180px; height: 120px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.food-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.food-thumb:hover img { transform: scale(1.1); }
.food-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.food-info h3 { font-size: 18px; font-weight: bold; margin-bottom: 8px; }
.food-info p { color: #777; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
.food-meta { font-size: 13px; color: #aaa; display: flex; gap: 20px; margin-top: 10px; }
.food-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* 首页 - 餐饮品牌/加盟网格展示 */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.brand-card { border: 1px solid #f0e6d2; border-radius: 8px; padding: 15px; text-align: center; transition: all 0.3s; }
.brand-card:hover { border-color: #d35400; box-shadow: 0 5px 15px rgba(211,84,0,0.1); transform: translateY(-3px); }
.brand-logo { width: 80px; height: 80px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; border: 1px solid #eee; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-card h4 { font-size: 15px; font-weight: bold; margin-bottom: 5px; }
.brand-card p { font-size: 12px; color: #999; }

/* 侧边栏 - 快捷服务 (网格图标) */
.service-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.service-nav a { background: #fdf6ec; border: 1px solid #fae5d3; text-align: center; padding: 15px 0; border-radius: 8px; color: #d35400; font-size: 14px; font-weight: bold; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.service-nav a i { font-size: 24px; font-style: normal; }
.service-nav a:hover { background: #d35400; color: #fff; }

/* 侧边栏 - 排行榜 (餐饮热榜) */
.rank-list li { display: flex; padding: 12px 0; border-bottom: 1px dashed #eee; align-items: center; }
.rank-num { width: 22px; height: 22px; background: #e0e0e0; color: #fff; text-align: center; line-height: 22px; font-size: 12px; font-weight: bold; margin-right: 12px; border-radius: 4px; }
.rank-list li:nth-child(1) .rank-num { background: #c0392b; }
.rank-list li:nth-child(2) .rank-num { background: #d35400; }
.rank-list li:nth-child(3) .rank-num { background: #e67e22; }
.rank-title { flex: 1; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ====== 列表页专属样式 ====== */
.filter-box { background: #fff; padding: 25px; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.filter-row { display: flex; border-bottom: 1px dashed #f0e6d2; padding-bottom: 15px; margin-bottom: 15px; }
.filter-row:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.filter-label { font-weight: bold; color: #333; width: 80px; line-height: 30px; }
.filter-items { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.filter-items a { display: inline-block; padding: 0 15px; line-height: 30px; height: 30px; color: #666; font-size: 14px; border-radius: 15px; }
.filter-items a:hover, .filter-items a.active { background: #fdf6ec; color: #d35400; font-weight: bold; }

.dede_pages { margin: 40px 0; text-align: center; }
.dede_pages ul { display: inline-flex; gap: 8px; }
.dede_pages li { list-style: none; }
.dede_pages a, .dede_pages span { display: inline-block; padding: 8px 16px; border: 1px solid #f0e6d2; background: #fff; color: #333; border-radius: 4px; font-size: 14px; font-weight: bold; }
.dede_pages a:hover, .dede_pages .thisclass { background: #d35400; color: #fff; border-color: #d35400; }

/* ====== 内容页专属样式 ====== */
.breadcrumb { font-size: 14px; color: #888; margin-bottom: 20px; padding: 5px 0; }
.breadcrumb a { color: #333; }
.breadcrumb a:hover { color: #d35400; }

.article-box { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.article-header { text-align: center; border-bottom: 1px solid #f0e6d2; padding-bottom: 25px; margin-bottom: 30px; }
.article-header h1 { font-size: 30px; color: #111; margin-bottom: 15px; line-height: 1.4; font-weight: bold; }
.article-meta { font-size: 13px; color: #888; display: flex; justify-content: center; gap: 25px; }
.article-meta span { display: flex; align-items: center; gap: 5px; }

.article-summary { background: #fdf6ec; padding: 20px; color: #d35400; font-size: 15px; line-height: 1.8; margin-bottom: 30px; border-radius: 8px; border-left: 4px solid #d35400; }

.article-content { font-size: 17px; color: #333; line-height: 2; text-align: justify; }
.article-content p { margin-bottom: 25px; text-indent: 2em; }
.article-content img { max-width: 100%; height: auto; display: block; margin: 30px auto; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.article-content h2, .article-content h3 { color: #d35400; margin: 40px 0 20px; border-bottom: 1px solid #f0e6d2; padding-bottom: 10px; }
.article-content strong { color: #000; font-weight: bold; }

.article-tags { margin-top: 40px; display: flex; gap: 10px; align-items: center; }
.article-tags strong { font-size: 14px; color: #666; }
.article-tags a { background: #f9f0e6; color: #d35400; padding: 4px 15px; border-radius: 20px; font-size: 13px; }
.article-tags a:hover { background: #d35400; color: #fff; }

.article-prenext { margin-top: 30px; padding-top: 20px; border-top: 1px dashed #f0e6d2; font-size: 15px; line-height: 2; }
.article-prenext a { color: #d35400; font-weight: bold; }

/* 底部区域 */
.footer { background: #2c2520; color: #a89d93; padding: 50px 0 20px; margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 40px; }
.footer-info h2 { color: #fff; font-size: 26px; margin-bottom: 15px; display: flex; align-items: center; }
.footer-info h2::before { content: '🍽️'; margin-right: 10px; }
.footer-info p { max-width: 400px; font-size: 14px; line-height: 1.8; }
.footer-nav { display: flex; gap: 70px; }
.footer-nav dl dt { color: #fff; font-size: 16px; font-weight: bold; margin-bottom: 15px; }
.footer-nav dl dd { margin-bottom: 10px; }
.footer-nav a { color: #a89d93; font-size: 14px; }
.footer-nav a:hover { color: #e67e22; }
.footer-bottom { text-align: center; font-size: 13px; }