/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background: #f0ebe6;
  color: #494036;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #c67a3c; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input { font: inherit; }

/* ========== Header ========== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(120, 84, 58, 0.95);
  backdrop-filter: blur(8px);
  padding: 0 40px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.header-left { display: flex; align-items: center; gap: 36px; }
.site-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 18px; font-weight: 700; white-space: nowrap; }
.site-logo svg { width: 24px; height: 24px; fill: #fff; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { color: rgba(255,255,255,.85); font-size: 15px; padding: 4px 0; position: relative; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a::after { content:''; position:absolute; bottom:-2px; left:0; width:0; height:2px; background:#fff; transition:width .25s; }
.main-nav a:hover::after, .main-nav a.active::after { width:100%; }

.header-right { display: flex; align-items: center; gap: 16px; }
.search-box {
  position: relative; width: 220px;
}
.search-box input {
  width: 100%; height: 36px; padding: 0 36px 0 14px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 20px;
  background: rgba(255,255,255,.12); color: #fff; font-size: 14px;
  outline: none; transition: all .2s;
}
.search-box input::placeholder { color: rgba(255,255,255,.5); }
.search-box input:focus { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.search-box .search-icon {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.6); pointer-events: none;
}
.btn-login {
  padding: 6px 20px; border: 1px solid rgba(255,255,255,.6); border-radius: 20px;
  color: #fff; font-size: 14px; transition: all .2s;
}
.btn-login:hover { background: rgba(255,255,255,.15); }

.mobile-menu-btn { display: none; color: #fff; font-size: 24px; }

/* ========== Carousel / Banner ========== */
.banner-section { padding: 20px 0 0 0; max-width: 1360px; margin: 0 auto; }
.carousel {
  position: relative; border-radius: 16px; overflow: hidden;
  height: 380px; background: #d5c4b0;
}
.carousel-inner { position: relative; width: 100%; height: 100%; }
.carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  display: flex; align-items: flex-end; padding: 48px;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.carousel-slide .slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 60%);
}
.carousel-slide .slide-text { position: relative; z-index: 2; color: #fff; }
.carousel-slide .slide-text h2 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.carousel-slide .slide-text p { font-size: 16px; opacity: .9; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #494036; transition: all .2s; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

/* ========== Main Content Layout ========== */
.main-content {
  max-width: 1360px; margin: 0 auto;
  padding: 24px 40px;
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 24px;
}
.main-content-2col {
  max-width: 1360px; margin: 0 auto;
  padding: 24px 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

/* ========== Sidebar (Left) ========== */
.sidebar-card {
  background: #fff; border-radius: 12px; padding: 24px;
  margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.sidebar-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; color: #c67a3c;
  margin-bottom: 16px;
}
.sidebar-title svg { width: 20px; height: 20px; fill: #c67a3c; }
.category-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid #f0ebe6; font-size: 15px;
}
.category-list a:last-child { border-bottom: none; }
.category-list a .arrow { color: #c9bfb3; transition: transform .2s; }
.category-list a:hover .arrow { transform: translateX(4px); color: #c67a3c; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 5px 12px; border-radius: 16px; font-size: 13px;
  background: #f5f0eb; color: #7a6e62; transition: all .2s;
}
.tag-cloud a:hover { background: #c67a3c; color: #fff; }

/* ========== Article List (Center) ========== */
.section-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.section-header svg { width: 28px; height: 28px; fill: #c67a3c; }
.section-header h2 { font-size: 24px; font-weight: 700; color: #494036; }
.section-header p { font-size: 14px; color: #a09688; margin-top: 2px; }

.article-card {
  display: flex; gap: 20px; padding: 20px;
  background: #fff; border-radius: 12px;
  margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.article-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.article-card .card-image {
  flex-shrink: 0; width: 220px; height: 160px;
  border-radius: 8px; overflow: hidden;
}
.article-card .card-image img { width: 100%; height: 100%; object-fit: cover; }
.article-card .card-body { flex: 1; display: flex; flex-direction: column; }
.article-card .card-cat {
  display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px;
  background: #fdf2e9; color: #c67a3c; border: 1px solid #f0d4b8; margin-bottom: 8px; width: fit-content;
}
.article-card .card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.article-card .card-title:hover { color: #c67a3c; }
.article-card .card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.article-card .card-tags a,
.article-card .card-tags .tag {
  padding: 2px 8px; border-radius: 4px; font-size: 12px;
  background: #f5f0eb; color: #7a6e62;
}
.article-card .card-tags a:hover,
.article-card .card-tags .tag:hover { background: #c67a3c; color: #fff; }
.article-card .card-excerpt {
  font-size: 14px; color: #8a7e72; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.article-card .card-meta {
  display: flex; gap: 16px; font-size: 13px; color: #b0a69a; margin-top: 8px;
}
.article-card .card-meta span { display: flex; align-items: center; gap: 4px; }

/* ========== Category Page Grid ========== */
.category-header { margin-bottom: 24px; }
.category-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.category-header p { font-size: 15px; color: #8a7e72; }
.breadcrumb { font-size: 14px; color: #a09688; margin-bottom: 16px; }
.breadcrumb a:hover { color: #c67a3c; }
.breadcrumb .sep { margin: 0 8px; }

.article-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-bottom: 24px;
}
.grid-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.grid-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.grid-card .grid-image { width: 100%; height: 200px; overflow: hidden; }
.grid-card .grid-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.grid-card:hover .grid-image img { transform: scale(1.05); }
.grid-card .grid-body { padding: 16px; }
.grid-card .card-cat {
  display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px;
  background: #fdf2e9; color: #c67a3c; border: 1px solid #f0d4b8; margin-bottom: 8px;
}
.grid-card .card-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.grid-card .card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.grid-card .card-tags a,
.grid-card .card-tags .tag {
  padding: 2px 8px; border-radius: 4px; font-size: 12px;
  background: #f5f0eb; color: #7a6e62;
}
.grid-card .card-excerpt {
  font-size: 13px; color: #8a7e72; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 10px;
}
.grid-card .card-meta {
  display: flex; gap: 14px; font-size: 12px; color: #b0a69a;
}
.grid-card .card-meta span { display: flex; align-items: center; gap: 4px; }

/* ========== Sidebar (Right) ========== */
.hot-list { counter-reset: hot; }
.hot-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #f5f0eb;
}
.hot-list li:last-child { border-bottom: none; }
.hot-list .rank {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  background: #d5c4b0;
}
.hot-list li:nth-child(1) .rank { background: #c67a3c; }
.hot-list li:nth-child(2) .rank { background: #d4944e; }
.hot-list li:nth-child(3) .rank { background: #dba96a; }
.hot-list .hot-info { flex: 1; }
.hot-list .hot-title { font-size: 14px; font-weight: 500; line-height: 1.4; }
.hot-list .hot-title:hover { color: #c67a3c; }
.hot-list .hot-stat { font-size: 12px; color: #b0a69a; margin-top: 2px; display: flex; align-items: center; gap: 4px; }

/* ========== Pagination ========== */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 20px 0;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 8px; font-size: 14px; border: 1px solid #e0d8cf; background: #fff;
  transition: all .2s;
}
.pagination a:hover { border-color: #c67a3c; color: #c67a3c; }
.pagination .current { background: #c67a3c; color: #fff; border-color: #c67a3c; }
.pagination .page-info { border: 1px solid #e0d8cf; font-size: 14px; color: #8a7e72; padding: 0 16px; }

/* ========== Article Detail ========== */
.article-detail {
  background: #fff; border-radius: 12px; padding: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.article-detail .article-title { font-size: 28px; font-weight: 700; margin-bottom: 16px; line-height: 1.4; }
.article-detail .article-meta-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.article-detail .article-meta-tags a {
  padding: 3px 10px; border-radius: 4px; font-size: 13px;
  background: #f5f0eb; color: #7a6e62; border: 1px solid #e8e0d6;
}
.article-detail .article-info {
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; color: #a09688; margin-bottom: 24px;
}
.article-detail .article-info .cat-badge {
  padding: 3px 12px; border-radius: 16px; font-size: 13px;
  background: #c67a3c; color: #fff;
}
.article-detail .article-info span { display: flex; align-items: center; gap: 4px; }
.article-detail .article-cover {
  width: 100%; border-radius: 12px; overflow: hidden; margin-bottom: 24px;
}
.article-detail .article-cover img { width: 100%; max-height: 450px; object-fit: cover; }
.article-detail .article-content {
  font-size: 16px; line-height: 1.8; color: #494036;
}
.article-detail .article-content h2 { font-size: 22px; font-weight: 700; margin: 24px 0 12px; }
.article-detail .article-content h3 { font-size: 18px; font-weight: 700; margin: 20px 0 10px; }
.article-detail .article-content p { margin-bottom: 16px; }

.article-actions {
  display: flex; gap: 16px; padding: 20px 0; margin-top: 16px;
  border-top: 1px solid #f0ebe6;
}
.article-actions button {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 24px; border-radius: 20px; font-size: 14px;
  border: 1px solid #e0d8cf; color: #7a6e62; transition: all .2s;
}
.article-actions button:hover { border-color: #c67a3c; color: #c67a3c; }

.prev-next {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 24px 0;
}
.prev-next a {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; background: #fff; border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: all .2s;
}
.prev-next a:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.prev-next .pn-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #f5f0eb; display: flex; align-items: center; justify-content: center;
  color: #c67a3c; font-size: 18px; flex-shrink: 0;
}
.prev-next .pn-label { font-size: 13px; color: #a09688; }
.prev-next .pn-title { font-size: 14px; font-weight: 500; margin-top: 2px; }
.prev-next .no-link {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 20px; background: #fff; border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); color: #b0a69a; font-size: 14px;
}

.related-section { margin: 32px 0; }
.related-section h3 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ========== Footer ========== */
.site-footer {
  background: linear-gradient(135deg, #5a4234 0%, #3d2b1f 100%);
  color: rgba(255,255,255,.8); padding: 48px 40px 0;
  margin-top: 40px;
}
.footer-content {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 48px;
  padding-bottom: 32px;
}
.footer-section h3 {
  font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.footer-section p { font-size: 14px; line-height: 1.8; opacity: .8; }
.footer-links a {
  display: block; padding: 4px 0; font-size: 14px;
  color: rgba(255,255,255,.7); transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  text-align: center; padding: 20px 0; margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 14px; opacity: .6;
}
.footer-bottom strong { color: #fff; opacity: 1; }

/* ========== Mobile Menu Overlay ========== */
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.5);
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: #fff; z-index: 201; padding: 24px;
  transition: right .3s; box-shadow: -4px 0 16px rgba(0,0,0,.1);
}
.mobile-nav-overlay.open .mobile-nav { right: 0; }
.mobile-nav .close-btn { font-size: 24px; float: right; color: #494036; }
.mobile-nav .nav-links { margin-top: 40px; }
.mobile-nav .nav-links a { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid #f0ebe6; }

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .main-content { grid-template-columns: 1fr 260px; }
  .left-sidebar { display: none; }
  .banner-section, .main-content, .main-content-2col { padding-left: 24px; padding-right: 24px; }
  .site-header { padding: 0 24px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .search-box { display: none; }
  .mobile-menu-btn { display: block; }
  .site-header { padding: 0 16px; }
  .banner-section { padding: 16px; }
  .carousel { height: 260px; }
  .carousel-slide { padding: 24px; }
  .carousel-slide .slide-text h2 { font-size: 24px; }
  .main-content { grid-template-columns: 1fr; padding: 16px; }
  .main-content-2col { grid-template-columns: 1fr; padding: 16px; }
  .right-sidebar { display: none; }
  .left-sidebar { display: none; }
  .article-card { flex-direction: column; }
  .article-card .card-image { width: 100%; height: 180px; }
  .article-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .prev-next { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding: 32px 16px 0; }
  .article-detail { padding: 20px; }
  .article-detail .article-title { font-size: 22px; }
}
.search-box .search-icon{display:none!important}
.banner-section{padding-left:0 !important;padding-right:0 !important;padding-bottom:0 !important;}
