/* ============================================
   餐饮界 - 主样式表
   Primary Color: #D4302F (餐饮红)
   Based on watcn.com layout
   ============================================ */

/* ============ Reset ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: #333;
    background: #f5f5f5;
    line-height: 1.6;
    font-size: 15px;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ============ Container ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page-content { padding: 20px 0 40px; }

/* ============ Header ============ */
.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.header-top { background: #f8f8f8; font-size: 12px; color: #999; padding: 6px 0; }
.header-top-inner { display: flex; justify-content: space-between; align-items: center; }
.header-top-links a { color: #999; margin-left: 15px; }
.header-top-links a:hover { color: #D4302F; }

.header-main { padding: 14px 0; }
.header-main-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img {
    height: 36px;
    width: auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.logo:hover .logo-img {
    transform: scale(1.05);
    opacity: 0.9;
}

.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 15px; color: #333; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; transition: all 0.2s; }
.main-nav a:hover, .main-nav a.active { color: #D4302F; border-bottom-color: #D4302F; }

/* Mobile Menu */
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-menu-btn span { width: 24px; height: 2px; background: #333; transition: all 0.3s; }
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99; }
.mobile-nav { display: none; position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: #fff; z-index: 100; padding: 80px 30px 30px; flex-direction: column; gap: 16px; transition: right 0.3s; overflow-y: auto; }
.mobile-nav a { font-size: 16px; color: #333; padding: 8px 0; border-bottom: 1px solid #eee; }

/* ============ Hero Section ============ */
.hero-section { background: #fff; padding: 30px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }

/* Carousel */
.hero-carousel { position: relative; overflow: hidden; border-radius: 8px; background: #f0f0f0; height: 420px; }
.carousel-track { position: relative; height: 100%; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; }
.carousel-slide.active { opacity: 1; z-index: 1; }
.carousel-card { height: 100%; }
.carousel-link { display: flex; flex-direction: column; height: 100%; }
.carousel-image { flex: 1; min-height: 280px; overflow: hidden; position: relative; }
.carousel-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-icon { font-size: 60px; color: rgba(255,255,255,0.5); font-weight: 900; }
.carousel-info { padding: 16px 20px; background: #fff; }
.carousel-title { font-size: 20px; font-weight: 800; color: #333; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carousel-meta { font-size: 13px; color: #999; display: flex; gap: 16px; }
.carousel-btn { position: absolute; top: 40%; transform: translateY(-50%); z-index: 10; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; font-size: 28px; cursor: pointer; color: #333; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.carousel-btn:hover { background: #D4302F; color: #fff; }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.2s; }
.carousel-dot.active { background: #D4302F; width: 24px; border-radius: 4px; }

/* Sidebar */
.hero-sidebar { display: flex; flex-direction: column; gap: 0; }
.sidebar-card { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 2px solid #D4302F; margin-bottom: 12px; }
.sidebar-header h3 { font-size: 18px; font-weight: 800; color: #D4302F; }
.sidebar-header a { font-size: 13px; color: #999; }
.sidebar-header a:hover { color: #D4302F; }
.sidebar-card h4 { font-size: 16px; font-weight: 800; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #D4302F; }

.quick-news-card { height: 100%; display: flex; flex-direction: column; }
.quick-news-list { flex: 1; overflow: hidden; }
.quick-news-list li { padding: 10px 0; border-bottom: 1px dashed #eee; }
.quick-news-list li:last-child { border-bottom: none; }
.qn-time { font-size: 12px; color: #D4302F; font-weight: 600; margin-bottom: 4px; display: block; }
.qn-content h4 { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 4px; border: none; padding: 0; line-height: 1.4; }
.qn-summary { font-size: 12px; color: #888; margin-bottom: 4px; }
.qn-source { font-size: 11px; color: #aaa; }

/* ============ Hot Tags ============ */
.hot-tags-section { background: #fff; padding: 20px 0; margin: 1px 0; }
.section-title-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #D4302F; }
.section-title-bar h3, .section-title-bar h2 { font-size: 22px; font-weight: 800; color: #D4302F; }
.more-link { font-size: 14px; color: #999; }
.more-link:hover { color: #D4302F; }
.article-count { font-size: 14px; color: #999; }

.tags-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-item { display: inline-flex; align-items: center; gap: 4px; padding: 6px 16px; background: #f8f8f8; border: 1px solid #eee; border-radius: 20px; font-size: 13px; color: #666; transition: all 0.2s; }
.tag-item:hover { background: #D4302F; color: #fff; border-color: #D4302F; }
.tag-count { font-size: 11px; color: #aaa; }
.tag-item:hover .tag-count { color: rgba(255,255,255,0.7); }

/* ============ Articles Section ============ */
.articles-section { background: #fff; padding: 30px 0; margin: 1px 0; }
.article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.article-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: all 0.3s; }
.article-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); border-color: #ddd; }
.article-card-link { display: block; }
.article-card-image { height: 160px; overflow: hidden; }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card-body { padding: 14px; }
.article-card-title { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-summary { font-size: 13px; color: #888; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-meta { font-size: 12px; color: #aaa; display: flex; gap: 10px; flex-wrap: wrap; }
.meta-tag { color: #D4302F; }

/* ============ Article List ============ */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-list-item { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: all 0.3s; }
.article-list-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.ali-link { display: flex; gap: 20px; }
.ali-image { width: 220px; min-height: 150px; flex-shrink: 0; overflow: hidden; }
.ali-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ali-body { padding: 20px 20px 20px 0; flex: 1; }
.ali-body h3 { font-size: 20px; font-weight: 800; color: #333; margin-bottom: 10px; line-height: 1.4; }
.ali-summary { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 12px; }
.ali-meta { font-size: 13px; color: #999; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.ali-tag { display: inline-block; padding: 2px 10px; background: #FFF0F0; color: #D4302F; border-radius: 4px; font-size: 12px; }

/* ============ Article Detail ============ */
.article-hero-image { margin-bottom: 24px; border-radius: 12px; overflow: hidden; }
.article-hero-image img { width: 100%; max-height: 400px; object-fit: cover; display: block; }
.article-header { margin-bottom: 24px; }
.article-header h1 { font-size: 28px; font-weight: 900; color: #222; line-height: 1.3; margin-bottom: 16px; }
.article-meta-bar { font-size: 13px; color: #999; display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.article-tag { padding: 4px 14px; background: #FFF0F0; color: #D4302F; border-radius: 20px; font-size: 13px; }
.article-tag:hover { background: #D4302F; color: #fff; }
.article-body { font-size: 16px; color: #333; line-height: 1.8; }
.article-body p { margin-bottom: 16px; }
.article-body img { max-width: 100%; border-radius: 8px; margin: 20px 0; }

/* ============ Brands ============ */
.brands-section { background: #fff; padding: 30px 0; margin: 1px 0; }
.brands-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.brand-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; width: calc(20% - 12px); transition: transform 0.2s; }
.brand-item:hover { transform: translateY(-3px); }
.brand-item-avatar { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; }
.brand-item-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-item-name { font-size: 13px; color: #333; text-align: center; }
.brands-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.brand-card-link { display: block; }
.brand-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 24px 16px; text-align: center; transition: all 0.3s; }
.brand-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.brand-card-avatar { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; margin: 0 auto 12px; }
.brand-card-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.brand-card-summary { font-size: 13px; color: #888; line-height: 1.5; }

/* Brand Detail */
.brand-detail { background: #fff; border-radius: 8px; padding: 30px; }
.brand-header { display: flex; gap: 24px; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.brand-header-avatar { width: 80px; height: 80px; border-radius: 20px; overflow: hidden; flex-shrink: 0; }
.brand-header-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-header-info h1 { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.brand-category { display: inline-block; padding: 4px 12px; background: #FFF0F0; color: #D4302F; border-radius: 4px; font-size: 13px; }
.brand-website { display: inline-block; padding: 4px 12px; color: #D4302F; font-size: 13px; margin-left: 10px; }
.brand-body { font-size: 16px; line-height: 1.8; color: #333; }
.brand-body h3 { font-size: 20px; margin-bottom: 12px; font-weight: 800; }

/* ============ Books ============ */
.books-section { background: #fff; padding: 30px 0; margin: 1px 0; }
.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.books-page-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.book-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: all 0.3s; }
.book-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.book-cover { height: 200px; overflow: hidden; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-info { padding: 16px; }
.book-info h4 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.book-summary { font-size: 13px; color: #888; margin-bottom: 10px; }
.book-price { font-size: 20px; font-weight: 800; color: #D4302F; margin-bottom: 6px; }
.original-price { font-size: 14px; color: #999; text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.book-buy-count { font-size: 12px; color: #aaa; }

/* Book Detail */
.book-detail-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
.book-detail-cover { border-radius: 12px; overflow: hidden; }
.book-detail-cover img { width: 100%; display: block; }
.book-detail-info h1 { font-size: 28px; font-weight: 900; margin-bottom: 12px; }
.book-detail-summary { font-size: 15px; color: #666; margin-bottom: 20px; }
.book-detail-price { margin-bottom: 12px; }
.book-detail-price .current-price { font-size: 32px; font-weight: 800; color: #D4302F; }
.book-detail-price .original-price { font-size: 18px; }
.discount-badge { display: inline-block; padding: 2px 10px; background: #D4302F; color: #fff; border-radius: 4px; font-size: 13px; margin-left: 8px; }
.book-detail-meta { font-size: 13px; color: #999; margin-bottom: 16px; }
.btn-buy { padding: 12px 40px; background: #D4302F; color: #fff; border: none; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-buy:hover { background: #b82827; }
.book-detail-desc { margin-top: 30px; }
.book-detail-desc h3 { font-size: 18px; margin-bottom: 12px; font-weight: 800; }
.book-detail-desc p { font-size: 15px; color: #555; line-height: 1.8; }

/* ============ Quick News ============ */
.quick-news-page-list { display: flex; flex-direction: column; gap: 0; background: #fff; border-radius: 8px; overflow: hidden; }
.quick-news-item { display: flex; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.quick-news-item:last-child { border-bottom: none; }
.qn-image { width: 120px; height: 68px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.qn-image img { width: 100%; height: 100%; object-fit: cover; }
.qn-time-badge { font-size: 12px; color: #D4302F; font-weight: 600; min-width: 80px; padding-top: 2px; }
.qn-body { flex: 1; }
.qn-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: #333; }
.qn-body p { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 6px; }
.qn-source-tag { font-size: 11px; color: #aaa; }

/* ============ Page Layout ============ */
.page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; margin-top: 20px; }
.page-main { min-width: 0; }
.page-sidebar { position: sticky; top: 100px; align-self: start; }

.breadcrumb { font-size: 13px; color: #999; padding: 12px 0; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #D4302F; }
.breadcrumb span { margin: 0 4px; }

/* Sidebar */
.sidebar-cat-list li { border-bottom: 1px solid #f5f5f5; }
.sidebar-cat-list a { display: block; padding: 8px 12px; font-size: 14px; color: #666; border-left: 3px solid transparent; transition: all 0.2s; }
.sidebar-cat-list a:hover, .sidebar-cat-list a.active { color: #D4302F; background: #FFF5F5; border-left-color: #D4302F; }

.sidebar-hot-list li { padding: 8px 0; border-bottom: 1px dashed #eee; }
.sidebar-hot-list li:last-child { border-bottom: none; }
.sidebar-hot-list a { font-size: 13px; color: #555; line-height: 1.4; display: flex; align-items: flex-start; gap: 8px; }
.sidebar-hot-list a:hover { color: #D4302F; }
.hot-rank { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 4px; background: #eee; font-size: 11px; font-weight: 700; color: #999; flex-shrink: 0; }
.sidebar-hot-list li:first-child .hot-rank,
.sidebar-hot-list li:nth-child(2) .hot-rank,
.sidebar-hot-list li:nth-child(3) .hot-rank { background: #D4302F; color: #fff; }

/* ============ Related ============ */
.related-articles { background: #fff; border-radius: 8px; padding: 20px; margin-top: 30px; }
.related-articles h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #D4302F; }
.related-articles li { padding: 8px 0; border-bottom: 1px dashed #eee; }
.related-articles li:last-child { border-bottom: none; }
.related-articles a { font-size: 14px; color: #555; }
.related-articles a:hover { color: #D4302F; }

/* ============ Pagination ============ */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 30px 0; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; color: #666; background: #fff; transition: all 0.2s; }
.pagination a:hover { background: #D4302F; color: #fff; border-color: #D4302F; }
.pagination .current { background: #D4302F; color: #fff; border-color: #D4302F; font-weight: 600; }
.pagination .disabled { color: #ccc; cursor: not-allowed; }

/* ============ Footer ============ */
.site-footer { background: #2C2C2C; color: #bbb; padding: 40px 0 20px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; font-weight: 700; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo .logo-img {
    height: 30px;
    width: auto;
    display: block;
}
.footer-about p { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.footer-social { font-size: 13px; display: flex; align-items: center; gap: 10px; }
.footer-social a { font-size: 18px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: #999; }
.footer-contact li { font-size: 13px; color: #aaa; margin-bottom: 2px; line-height: 1.8; }
.footer-contact li strong { color: #ccc; font-weight: 600; }

.footer-col a:hover { color: #D4302F; }
.footer-bottom { border-top: 1px solid #444; padding-top: 16px; margin-top: 30px; text-align: center; font-size: 12px; color: #777; }
.footer-bottom p { margin-bottom: 4px; }

/* ============ Empty State ============ */
.empty-state { padding: 60px 0; text-align: center; color: #999; font-size: 15px; }
