/* 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #fff9f0; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; }
ul, ol { list-style: none; }
/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* 按钮 */
.btn { display: inline-block; padding: 12px 30px; border-radius: 30px; font-weight: 600; cursor: pointer; border: none; transition: all 0.3s ease; font-size: 15px; }
.btn-primary { background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%); color: #fff; box-shadow: 0 6px 20px rgba(255,107,53,0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255,107,53,0.45); }
/* 导航栏 */
.navbar { background: #fff; box-shadow: 0 3px 15px rgba(255,107,53,0.1); position: sticky; top: 0; z-index: 100; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; font-size: 22px; font-weight: bold; color: #ff6b35; }
.logo img { height: 48px; margin-right: 10px; }
.nav-menu { display: flex; gap: 28px; }
.nav-menu a { color: #555; font-weight: 500; font-size: 15px; }
.nav-menu a:hover { color: #ff6b35; }
.search-box { display: flex; align-items: center; background: #fff5eb; border-radius: 30px; padding: 5px 5px 5px 18px; }
.search-box input { border: none; background: transparent; outline: none; width: 200px; padding: 6px; font-size: 14px; }
.search-box button { background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%); color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.user-area a { color: #555; margin-left: 18px; font-weight: 500; }
.user-area a:hover { color: #ff6b35; }
/* Banner */
.banner { background: linear-gradient(135deg, #fff1e0 0%, #ffe2c5 50%, #ffd4aa 100%); padding: 70px 0; overflow: hidden; position: relative; }
.banner::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%); animation: pulse 8s ease-in-out infinite; }
@keyframes pulse {
    0%,100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
.banner-content { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.banner-text { flex: 1; }
.banner-text h1 { font-size: 52px; color: #ff6b35; margin-bottom: 20px; line-height: 1.2; font-weight: 800; text-shadow: 0 2px 4px rgba(255,107,53,0.1); }
.banner-text p { font-size: 18px; color: #7a4f2f; margin-bottom: 35px; max-width: 450px; }
/* 区块标题 */
.section-title { font-size: 26px; color: #333; margin-bottom: 30px; padding-left: 15px; border-left: 5px solid #ff6b35; font-weight: 700; }
/* 热门攻略 */
.hot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hot-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.06); transition: all 0.3s ease; border: 2px solid transparent; }
.hot-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(255,107,53,0.18); border-color: #ffd4aa; }
.hot-card img { width: 100%; height: 200px; object-fit: cover; }
.hot-card-info { padding: 18px; }
.hot-card-info h3 { font-size: 17px; margin-bottom: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hot-card-meta { display: flex; justify-content: space-between; font-size: 13px; color: #999; align-items: center; }
.card-tag { background: #fff1e0; color: #ff6b35; padding: 4px 12px; border-radius: 15px; font-size: 12px; font-weight: 500; }
/* 分类入口 */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.category-item { background: #fff; border-radius: 20px; padding: 30px 15px; text-align: center; box-shadow: 0 8px 25px rgba(0,0,0,0.06); transition: all 0.3s ease; border: 2px solid transparent; }
.category-item:hover { transform: translateY(-8px); background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%); color: #fff; box-shadow: 0 15px 35px rgba(255,107,53,0.3); border-color: #ffd4aa; }
.category-item:hover .cat-icon { transform: scale(1.2) rotate(-5deg); }
.cat-icon { font-size: 48px; margin-bottom: 12px; transition: all 0.3s ease; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
.cat-name { font-weight: 600; font-size: 15px; }
/* 内容布局 */
.content-wrap { display: flex; gap: 30px; }
.main-content { flex: 1; }
.sidebar { width: 320px; flex-shrink: 0; }
/* 攻略列表 */
.article-list { background: #fff; border-radius: 20px; padding: 25px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.article-item { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid #f8f0e8; transition: all 0.3s ease; border-radius: 12px; }
.article-item:last-child { border-bottom: none; }
.article-item:hover { transform: translateX(8px); background: #fff9f0; padding-left: 10px; padding-right: 10px; }
.article-thumb { width: 210px; height: 140px; border-radius: 12px; object-fit: cover; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.article-info { flex: 1; }
.article-title { font-size: 18px; margin-bottom: 12px; color: #333; font-weight: 600; }
.article-item:hover .article-title { color: #ff6b35; }
.article-desc { color: #888; font-size: 14px; margin-bottom: 18px; line-height: 1.7; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.article-meta { display: flex; gap: 20px; font-size: 13px; color: #999; align-items: center; }
/* 侧边栏 */
.widget { background: #fff; border-radius: 20px; padding: 22px; margin-bottom: 22px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.widget-title { font-size: 19px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #fff1e0; color: #333; font-weight: 700; }
.rank-list li { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #faf5f0; transition: all 0.2s; }
.rank-list li:last-child { border-bottom: none; }
.rank-list li:hover { padding-left: 5px; }
.rank-num { width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 8px; background: #f5f5f5; color: #999; font-size: 13px; font-weight: bold; margin-right: 12px; flex-shrink: 0; }
.rank-list li:nth-child(1) .rank-num { background: linear-gradient(135deg, #ff5252 0%, #ff1744 100%); color: #fff; box-shadow: 0 3px 8px rgba(255,23,68,0.3); }
.rank-list li:nth-child(2) .rank-num { background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%); color: #fff; box-shadow: 0 3px 8px rgba(245,124,0,0.3); }
.rank-list li:nth-child(3) .rank-num { background: linear-gradient(135deg, #ffc107 0%, #ffa000 100%); color: #fff; box-shadow: 0 3px 8px rgba(255,160,0,0.3); }
.rank-title { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 10px; font-weight: 500; }
.rank-title:hover { color: #ff6b35; }
.rank-views { font-size: 12px; color: #aaa; flex-shrink: 0; }
/* 底部 */
.footer { background: linear-gradient(135deg, #ff7a45 0%, #ff6b35 100%); color: #fff; padding: 40px 0 20px; margin-top: 60px; }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 30px; }
.footer-logo { font-size: 22px; font-weight: bold; color: #fff; margin-bottom: 10px; }
.footer-links a { margin-right: 20px; color: rgba(255,255,255,0.8); }
.footer-links a:hover { color: #fff; }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 13px; color: rgba(255,255,255,0.8); }
/* 免责声明 */
.disclaimer { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); border-radius: 12px; padding: 18px 22px; margin-bottom: 20px; font-size: 13px; color: #fff; line-height: 1.8; backdrop-filter: blur(10px); }
/* 响应式 */
@media (max-width: 1024px) {
    .hot-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .content-wrap { flex-direction: column; }
    .sidebar { width: 100%; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .search-box input { width: 120px; }
    .banner { padding: 40px 0; }
    .banner-content { flex-direction: column; text-align: center; }
    .banner-text h1 { font-size: 36px; }
    .banner-text p { margin: 0 auto 30px; }
    .banner-duck { width: 220px; margin-top: 30px; }
    .deco { display: none; }
    .hot-grid { grid-template-columns: 1fr; gap: 20px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .category-item { padding: 20px 10px; }
    .cat-icon { font-size: 36px; }
    .article-item { flex-direction: column; gap: 15px; }
    .article-thumb { width: 100%; height: 200px; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .section-title { font-size: 22px; }
}
@media (max-width: 480px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-text h1 { font-size: 30px; }
}