/* 
 * 中国美食网 - 统一样式表
 * 风格：温馨、诱人、生活化、地域文化感
 * 配色：#e67e22 (胡萝卜橙 - 激发食欲), #c0392b (石榴红 - 传统美食感), #fdfaf0 (米白色背景 - 干净舒适)
 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 15px; color: #333; line-height: 1.7; background: #fdfaf0; }
a { text-decoration: none; color: #333; transition: 0.3s; }
a:hover { color: #e67e22; }
ul { list-style: none; }

.container { width: 1200px; margin: 0 auto; }

/* 头部 */
.header { background: #fff; border-bottom: 2px solid #e67e22; padding: 20px 0; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { font-size: 32px; color: #c0392b; font-weight: 900; }
.logo span { color: #e67e22; font-weight: 300; margin-left: 5px; font-size: 18px; }

/* 导航 */
.nav-wrap { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav { display: flex; height: 50px; align-items: center; justify-content: center; }
.nav li a { display: block; padding: 0 25px; line-height: 50px; font-size: 16px; font-weight: 600; color: #555; }
.nav li a:hover, .nav li.active a { color: #e67e22; position: relative; }
.nav li a:hover::after, .nav li.active a::after { content: ""; position: absolute; bottom: 10px; left: 25px; right: 25px; height: 3px; background: #e67e22; border-radius: 2px; }

/* 首页大图轮播感 */
.hero-food { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin: 30px 0; }
.hero-main { height: 450px; position: relative; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.hero-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; }
.hero-caption h2 { font-size: 28px; margin-bottom: 10px; }

.hero-side { display: flex; flex-direction: column; gap: 20px; }
.side-item { height: 215px; position: relative; border-radius: 12px; overflow: hidden; }
.side-item img { width: 100%; height: 100%; object-fit: cover; }
.side-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 18px; }

/* 美食卡片 */
.food-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-bottom: 50px; }
.food-card { background: #fff; border-radius: 12px; overflow: hidden; transition: 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.food-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(230, 126, 34, 0.15); }
.food-img { height: 200px; overflow: hidden; position: relative; }
.food-img img { width: 100%; height: 100%; object-fit: cover; }
.food-tag { position: absolute; top: 15px; left: 15px; background: rgba(192, 57, 43, 0.9); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.food-info { padding: 20px; }
.food-info h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.4; height: 48px; overflow: hidden; }
.food-meta { display: flex; justify-content: space-between; font-size: 13px; color: #999; }

/* 内容页样式 */
.recipe-wrap { background: #fff; padding: 50px; border-radius: 20px; margin: 40px 0; box-shadow: 0 5px 25px rgba(0,0,0,0.03); }
.recipe-header { text-align: center; margin-bottom: 40px; }
.recipe-header h1 { font-size: 32px; color: #333; margin-bottom: 20px; }
.recipe-content { font-size: 17px; line-height: 2; color: #444; }
.recipe-content img { max-width: 100%; height: auto; border-radius: 15px; margin: 30px 0; }

/* 侧边栏排行 */
.side-box { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 30px; }
.side-title { font-size: 18px; font-weight: 800; color: #c0392b; margin-bottom: 20px; border-bottom: 2px solid #fdfaf0; padding-bottom: 10px; display: flex; align-items: center; }
.side-title::before { content: "🥘"; margin-right: 10px; }
.side-list li { padding: 12px 0; border-bottom: 1px dashed #eee; display: flex; gap: 10px; }
.rank-num { width: 24px; height: 24px; background: #fdf2f0; color: #c0392b; text-align: center; line-height: 24px; border-radius: 4px; font-size: 12px; font-weight: bold; flex-shrink: 0; }

/* 页脚 */
.footer { background: #333; color: #eee; padding: 80px 0 40px; margin-top: 60px; }
.footer-flex { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 60px; }
.footer h4 { color: #e67e22; margin-bottom: 25px; font-size: 18px; }
.footer-links a { color: #ccc; display: block; margin-bottom: 12px; font-size: 14px; }
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 30px; border-top: 1px solid #444; font-size: 13px; color: #888; }
