/* 模板3 - 扁平现代风（橙黄主题） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; background: #f7f3ee; color: #444; }
a { text-decoration: none; color: #FF6B35; }
a:hover { color: #E55A2B; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Header Bar */
.header-bar { background: #2C3E50; color: rgba(255,255,255,0.7); padding: 8px 0; font-size: 12px; }
.header-bar .wrap { display: flex; justify-content: space-between; }
.top-links a { color: rgba(255,255,255,0.6); margin: 0 6px; }
.top-links a:hover { color: #fff; }

/* Header Main */
.header-main { background: #fff; padding: 15px 0; box-shadow: 0 3px 10px rgba(0,0,0,0.05); }
.header-main .wrap { display: flex; align-items: center; gap: 30px; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-badge { background: #FF6B35; color: #fff; padding: 6px 12px; border-radius: 6px; font-weight: 800; font-size: 14px; letter-spacing: 1px; }
.logo-text a { font-size: 24px; font-weight: 800; color: #2C3E50; }
.logo-text small { display: block; font-size: 10px; color: #aaa; font-weight: 400; }
.nav-main { display: flex; gap: 3px; }
.nav-main a { color: #666; padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.nav-main a:hover { background: #FFF0E8; color: #FF6B35; }

/* Banner */
.banner-box { background: linear-gradient(135deg, #FF6B35, #F7931E); border-radius: 16px; padding: 35px 40px; margin: 25px 0; color: #fff; }
.banner-tag { display: inline-block; background: rgba(255,255,255,0.2); padding: 3px 14px; border-radius: 20px; font-size: 12px; margin-bottom: 10px; }
.banner-box h2 { font-size: 28px; margin-bottom: 6px; }
.banner-box p { opacity: 0.85; font-size: 14px; }

/* Category Tabs */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.cat-tab { background: #fff; border: 1px solid #e8e0d8; padding: 12px 22px; border-radius: 10px; display: flex; align-items: center; gap: 8px; transition: all 0.2s; }
.cat-tab:hover { background: #FF6B35; border-color: #FF6B35; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255,107,53,0.25); }
.ct-emoji { font-size: 16px; }
.cat-tab span:last-child { font-size: 13px; font-weight: 500; }

/* Section Head */
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 25px 0 15px; }
.section-head h2 { font-size: 20px; color: #2C3E50; }
.sh-more { color: #FF6B35; font-size: 13px; font-weight: 500; }
.sh-more:hover { color: #E55A2B; }

/* Item List */
.item-list { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); overflow: hidden; margin-bottom: 20px; }
.item-row { display: flex; padding: 18px 22px; border-bottom: 1px solid #f0ece8; transition: background 0.2s; gap: 18px; align-items: center; }
.item-row:last-child { border-bottom: none; }
.item-row:hover { background: #FFFAF7; }
.ir-img { width: 64px; height: 64px; background: #f7f3ee; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ir-img img { max-width: 48px; max-height: 48px; border-radius: 6px; }
.ir-body { flex: 1; min-width: 0; }
.ir-body h3 { font-size: 16px; margin-bottom: 6px; }
.ir-body h3 a { color: #2C3E50; }
.ir-body h3 a:hover { color: #FF6B35; }
.ir-meta { display: flex; gap: 12px; font-size: 12px; margin-bottom: 6px; }
.ir-cat { background: #FFF0E8; color: #FF6B35; padding: 1px 10px; border-radius: 10px; }
.ir-size { color: #999; }
.ir-hot { color: #E55A2B; }
.ir-body p { color: #999; font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ir-action { text-align: right; flex-shrink: 0; }
.ir-date { display: block; color: #bbb; font-size: 11px; margin-bottom: 8px; }
.ir-btn { display: inline-block; background: #FF6B35; color: #fff; padding: 6px 22px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.ir-btn:hover { background: #E55A2B; color: #fff; }

/* Recommended Grid */
.rec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.rec-grid-item { background: #fff; border-radius: 12px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: all 0.3s; }
.rec-grid-item:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255,107,53,0.12); }
.rgi-icon { width: 56px; height: 56px; margin: 0 auto 12px; background: #f7f3ee; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.rgi-icon img { max-width: 42px; max-height: 42px; border-radius: 6px; }
.rec-grid-item h4 { font-size: 14px; margin-bottom: 8px; }
.rec-grid-item h4 a { color: #2C3E50; }
.rec-grid-item h4 a:hover { color: #FF6B35; }
.rgi-tag { font-size: 11px; background: #FFF0E8; color: #FF6B35; padding: 2px 12px; border-radius: 10px; }

/* Layout 2 Col */
.layout-2col { display: flex; gap: 25px; margin-bottom: 25px; }
.main-col { flex: 1; min-width: 0; }
.side-col { width: 300px; flex-shrink: 0; }
.bread { padding: 12px 0; font-size: 13px; color: #999; }
.bc-sp { margin: 0 8px; color: #ccc; }
.bread a { color: #FF6B35; }
.bread span { color: #666; }
.list-title-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.list-title-bar h1 { font-size: 20px; color: #2C3E50; }
.list-title-bar span { color: #aaa; font-size: 12px; }

/* Pagination */
.pagination { text-align: center; margin: 20px 0; }
.pagination a, .pagination span { display: inline-block; padding: 8px 16px; margin: 0 3px; border-radius: 6px; font-size: 13px; }
.pagination a { background: #fff; color: #FF6B35; border: 1px solid #e8e0d8; }
.pagination a:hover { background: #FF6B35; color: #fff; border-color: #FF6B35; }
.pagination span { background: #FF6B35; color: #fff; }

/* Side Box */
.side-box { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.side-box h3 { font-size: 15px; color: #2C3E50; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #FFF0E8; }
.side-box ul { list-style: none; }
.side-box ul li { padding: 7px 0; border-bottom: 1px dashed #f0ece8; }
.side-box ul li:last-child { border-bottom: none; }
.side-box ul a { color: #666; font-size: 13px; display: block; }
.side-box ul a:hover { color: #FF6B35; padding-left: 5px; }
.side-rec { padding: 7px 0; border-bottom: 1px dashed #f0ece8; }
.side-rec:last-child { border-bottom: none; }
.side-rec a { color: #666; font-size: 13px; }
.side-rec a:hover { color: #FF6B35; }
.side-links a { display: inline-block; margin: 2px 8px 2px 0; color: #999; font-size: 12px; }
.side-links a:hover { color: #FF6B35; }

/* Detail Top */
.detail-top { background: #fff; border-radius: 12px; padding: 25px; display: flex; gap: 25px; align-items: center; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.dt-icon { width: 96px; height: 96px; background: #f7f3ee; border-radius: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dt-icon img { max-width: 72px; max-height: 72px; border-radius: 10px; }
.dt-info { flex: 1; }
.dt-info h1 { font-size: 22px; color: #2C3E50; margin-bottom: 12px; }
.dt-tags { display: flex; flex-wrap: wrap; gap: 15px; font-size: 13px; color: #888; margin-bottom: 18px; }
.dl-btn-orange { display: inline-block; background: linear-gradient(135deg, #FF6B35, #F7931E); color: #fff; padding: 14px 50px; border-radius: 30px; font-size: 17px; font-weight: bold; transition: all 0.3s; }
.dl-btn-orange:hover { transform: scale(1.04); box-shadow: 0 6px 25px rgba(255,107,53,0.35); color: #fff; }

/* Detail Content */
.detail-content { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.detail-content h3 { color: #2C3E50; font-size: 17px; margin: 20px 0 10px; padding-bottom: 8px; border-bottom: 2px solid #FFF0E8; }
.detail-content h3:first-child { margin-top: 0; }
.detail-content p { line-height: 1.8; color: #666; margin-bottom: 10px; font-size: 14px; }
.funclist { list-style: none; padding: 10px 0; }
.funclist li { padding: 8px 0; color: #555; font-size: 14px; }

/* Footer */
.footer-bar { background: #2C3E50; color: rgba(255,255,255,0.6); padding: 25px 0; margin-top: 30px; text-align: center; font-size: 13px; }
.f-links { margin-bottom: 10px; }
.f-links a { color: rgba(255,255,255,0.5); margin: 0 8px; font-size: 12px; }
.f-links a:hover { color: #FF6B35; }

@media (max-width: 768px) {
    .header-main .wrap { flex-wrap: wrap; }
    .nav-main { width: 100%; justify-content: center; margin-top: 10px; }
    .layout-2col { flex-direction: column; }
    .side-col { width: 100%; }
    .rec-grid { grid-template-columns: 1fr 1fr; }
    .item-row { flex-wrap: wrap; }
    .ir-action { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; }
    .detail-top { flex-direction: column; text-align: center; }
    .dt-tags { justify-content: center; }
}
