@charset "utf-8";
:root {
  --primary: #5d4e37;
  --accent: #c9302c;
  --secondary: #8b7355;
  --bg-light: #faf8f5;
  --bg-white: #ffffff;
  --text-dark: #3d3d3d;
  --text-muted: #666666;
  --text-light: #999999;
  --border-color: #d4c4b0;
  --shadow: 6px 6px 0 var(--secondary);
  --shadow-sm: 3px 3px 0 var(--secondary);
  --radius: 4px;
  --radius-sm: 2px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: var(--bg-light);
  font-family: 'Microsoft YaHei', -apple-system, sans-serif;
  color: var(--text-dark);
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, li {
  list-style: none;
}

/* ========== Header ========== */
.header {
  background: var(--bg-white);
  border-bottom: 2px solid var(--primary);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo img {
  height: 50px;
  border-radius: var(--radius);
}

.nav-bar {
  margin-left: auto;
}

.nav {
  display: flex;
  gap: 0;
}

.nav li a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 3px solid transparent;
  transition: all 0.25s ease;
}

.nav li a:hover,
.nav li.active a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ========== Main Wrapper ========== */
.main-wrapper {
  min-height: calc(100vh - 200px);
}

/* ========== Container ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Banner Section ========== */
.banner-section {
  position: relative;
  background: var(--primary);
  overflow: hidden;
}

.banner-scroll {
  display: flex;
  transition: transform 0.5s ease;
}

.banner-item {
  flex: 0 0 100%;
}

.banner-bg {
  display: block;
  position: relative;
  height: 450px;
  background-size: cover;
  background-position: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(93,78,55,0.85) 0%, rgba(61,61,61,0.4) 100%);
}

.banner-caption {
  position: absolute;
  bottom: 60px;
  left: 60px;
  color: #fff;
  max-width: 600px;
}

.banner-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.banner-caption h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.banner-caption p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

/* ========== Service Section ========== */
.service-section {
  padding: 50px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-icon {
  flex: 0 0 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  border-radius: 50%;
}

.service-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.service-content p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== Magazine Section ========== */
.magazine-section {
  padding: 50px 0;
  background: var(--bg-light);
}

.magazine-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.magazine-featured {
  position: relative;
}

.magazine-main {
  display: block;
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
}

.magazine-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.magazine-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}

.magazine-text h2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.magazine-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}

.magazine-date {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.magazine-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.magazine-mini {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.magazine-mini:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.mini-thumb {
  flex: 0 0 100px;
  height: 80px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
}

.mini-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-cat {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.mini-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-date {
  font-size: 12px;
  color: var(--text-light);
}

/* ========== Timeline Section ========== */
.timeline-section {
  padding: 50px 0;
  background: var(--bg-white);
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.content-main {
  min-width: 0;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.timeline-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.timeline-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--primary), transparent);
}

.timeline-list {
  position: relative;
  padding-left: 30px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.timeline-date {
  position: absolute;
  left: -30px;
  top: 0;
  width: 60px;
  text-align: center;
  background: var(--bg-white);
  z-index: 1;
}

.timeline-day {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.timeline-month {
  display: block;
  font-size: 12px;
  color: var(--text-light);
}

.timeline-dot {
  position: absolute;
  left: -8px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 3px solid var(--bg-white);
  border-radius: 50%;
  z-index: 2;
}

.timeline-content {
  flex: 1;
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.timeline-content:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.timeline-thumb {
  flex: 0 0 180px;
  height: 130px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
}

.timeline-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-cat {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.timeline-info h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.timeline-info h3 a {
  color: var(--text-dark);
}

.timeline-info h3 a:hover {
  color: var(--accent);
}

.timeline-info p {
  font-size: 14px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
  margin-top: auto;
}

/* ========== Topic Section ========== */
.topic-section {
  padding: 50px 0;
  background: var(--bg-light);
}

.topic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary);
}

.topic-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.topic-more {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.topic-more:hover {
  text-decoration: underline;
}

.topic-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.topic-card {
  position: relative;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.topic-card:hover .topic-bg {
  transform: scale(1.08);
}

.topic-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.topic-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 1;
}

.topic-cat {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.topic-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.topic-info h3 a {
  color: #fff;
}

.topic-info p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Tags Section ========== */
.tags-section {
  padding: 50px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

.tags-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary);
}

.tags-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  padding: 8px 18px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all 0.25s ease;
}

.tag-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========== Sidebar ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
}

.rank-list li:last-child {
  border-bottom: none;
}

.rank-num {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
}

.rank-list li:nth-child(1) .rank-num { background: var(--accent); }
.rank-list li:nth-child(2) .rank-num { background: #d4a03c; }
.rank-list li:nth-child(3) .rank-num { background: #6b8e23; }

.rank-list a {
  flex: 1;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-list a:hover {
  color: var(--accent);
}

.recent-list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
}

.recent-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.recent-thumb {
  flex: 0 0 60px;
  height: 60px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
}

.recent-info {
  flex: 1;
  min-width: 0;
}

.recent-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-item:hover .recent-title {
  color: var(--accent);
}

.recent-date {
  font-size: 12px;
  color: var(--text-light);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-item {
  padding: 10px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.social-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-item {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.25s ease;
}

.page-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-current {
  padding: 0 16px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.no-data {
  text-align: center;
  padding: 60px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ========== Footer ========== */
.footer {
  background: var(--primary);
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px;
  text-align: center;
  font-size: 14px;
}

.footer-bottom p {
  margin-bottom: 10px;
}

.footer-bottom a {
  color: #d4a03c;
  margin: 0 8px;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ========== Page Header ========== */
.page-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 0;
}

.page-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header .breadcrumb {
  margin-bottom: 12px;
}

.page-header .breadcrumb a {
  color: var(--accent);
}

.page-header .separator {
  margin: 0 8px;
  color: var(--text-light);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

/* ========== Article List (List Page) ========== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-item {
  display: flex;
  gap: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.article-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.article-item .article-thumb {
  flex: 0 0 280px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius) 0 0 var(--radius);
}

.article-info {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  width: fit-content;
  letter-spacing: 1px;
}

.article-info h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-info h2 a {
  color: var(--text-dark);
}

.article-info h2 a:hover {
  color: var(--accent);
}

.article-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

/* ========== Article Content (Detail Page) ========== */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  padding: 40px 0;
}

.article-content {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px;
}

.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 20px 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 32px 0 16px;
  font-weight: 700;
}

.article-body ul,
.article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
  list-style: disc;
}

/* ========== Article Tags ========== */
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.tags-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .magazine-grid {
    grid-template-columns: 1fr;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .topic-scroll {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-bar {
    display: none;
  }

  .banner-caption {
    left: 30px;
    bottom: 40px;
  }

  .banner-caption h2 {
    font-size: 24px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .timeline-list::before {
    display: none;
  }

  .timeline-item {
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
  }

  .timeline-date {
    position: static;
    width: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    background: none;
  }

  .timeline-dot {
    display: none;
  }

  .timeline-content {
    flex-direction: column;
  }

  .timeline-thumb {
    flex: 0 0 150px;
  }

  .topic-scroll {
    grid-template-columns: 1fr;
  }

  .article-item {
    flex-direction: column;
  }

  .article-item .article-thumb {
    flex: 0 0 200px;
    border-radius: var(--radius) var(--radius) 0 0;
  }
}
