@charset "utf-8";
:root {
  --primary: #8b4513;
  --accent: #d4a574;
  --secondary: #f5f0e8;
  --tertiary: #2f2f2f;
  --bg-dark: #3d3d3d;
  --bg-light: #f5f0e8;
  --bg-white: #fffef9;
  --text-dark: #2f2f2f;
  --text-muted: #6b6b6b;
  --text-light: #999999;
  --border-color: #d4a574;
  --shadow: 8px 8px 0 var(--accent);
  --shadow-sm: 4px 4px 0 var(--primary);
}

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

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

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

ul, li {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.header-top {
  background: var(--tertiary);
  color: var(--accent);
  padding: 8px 0;
  font-size: 13px;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
}

.top-right a {
  color: var(--accent);
  margin-left: 20px;
}

.top-right a:hover {
  text-decoration: underline;
}

.header-center {
  padding: 30px 0;
  text-align: center;
}

.logo { text-align: center; }
.logo img { height: 100px; width: 100px; object-fit: cover; border-radius: 10px; }
.site-name { display: block; font-size: 1.25rem; font-weight: 700; color: #1a1a1a; margin-top: 8px; }

.header-nav { background: var(--primary); }

.nav-list { display: flex; justify-content: center; }

.nav-list li a {
  display: block;
  padding: 14px 28px;
  color: var(--bg-white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}

.nav-list li:first-child a {
  border-left: 1px solid rgba(255,255,255,0.2);
}

.nav-list li a:hover,
.nav-list li.active a {
  background: var(--accent);
  color: var(--tertiary);
}

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

/* ========== Hero Section ========== */
.hero-section {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--tertiary);
}

.hero-bg {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s;
}

.hero-slide:first-child {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7));
}

.hero-text {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 10;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent);
  color: var(--tertiary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-text h2 {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 0 var(--primary);
}

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

/* ========== Marquee Section ========== */
.marquee-section {
  background: var(--bg-white);
  border-bottom: 3px solid var(--border-color);
  padding: 12px 0;
}

.marquee-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.marquee-label {
  flex: 0 0 60px;
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
}

.marquee-content {
  flex: 1;
  overflow: hidden;
}

.marquee-content a {
  color: var(--text-dark);
  font-size: 14px;
  margin-right: 40px;
  white-space: nowrap;
}

.marquee-content a:hover {
  color: var(--primary);
}

/* ========== Section Header ========== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
}

.section-header h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
}

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

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

.feature-card {
  /* border removed */
  padding: 20px;
}

.feature-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--border-color);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
  transition: all 0.2s;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item:hover {
  padding-left: 8px;
}

.feature-img {
  flex: 0 0 60px;
  height: 45px;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--primary);
}

.feature-title {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ========== Timeline Section ========== */
.timeline-section {
  padding: 50px 0;
}

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

.timeline-list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--accent);
  /* border removed */
}

.timeline-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-content {
  background: var(--bg-white);
  /* border removed */
  padding: 20px;
}

.timeline-content h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
}

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

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

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

.card-item {
  position: relative;
  display: block;
  height: 280px;
  background-size: cover;
  background-position: center;
  border: 4px solid var(--primary);
  overflow: hidden;
}

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s;
}

.card-item:hover .card-bg {
  transform: scale(1.1);
}

.card-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  color: #fff;
  z-index: 2;
}

.card-cat {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent);
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-info h3 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card-info p {
  font-size: 12px;
  opacity: 0.8;
}

/* ========== Two Column Section ========== */
.twocol-section {
  padding: 50px 0;
}

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

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

.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-white);
  /* border removed */
  transition: all 0.2s;
}

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

.article-thumb {
  flex: 0 0 240px;
  height: 160px;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--primary);
}

.article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-cat {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  width: fit-content;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-content h3 a:hover {
  color: var(--primary);
}

.article-content 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: 16px;
  font-size: 12px;
  color: var(--text-light);
}

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

.sidebar-widget {
  background: var(--bg-white);
  /* border removed */
  padding: 20px;
}

.widget-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--accent);
}

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

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

.rank-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.rank-list li:nth-child(1) .rank-num { background: var(--primary); }
.rank-list li:nth-child(2) .rank-num { background: var(--accent); color: var(--tertiary); }
.rank-list li:nth-child(3) .rank-num { background: #c9a86c; }

.rank-list a {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
}

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

.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 70px;
  height: 100px; width: 100px; object-fit: cover;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--primary);
}

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

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

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

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

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

.tag-item {
  padding: 8px 16px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--primary);
  text-transform: uppercase;
  transition: all 0.2s;
}

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

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

.links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-item {
  padding: 12px 24px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--primary);
  text-transform: uppercase;
  transition: all 0.2s;
}

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

/* ========== 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 removed */
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.2s;
}

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

.page-current {
  padding: 0 16px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--tertiary);
  font-weight: 800;
  border: 3px solid var(--accent);
}

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

.breadcrumb {
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--primary);
}

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

.page-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ========== Article Section ========== */
.article-section {
  padding: 50px 0;
}

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

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

.article-body {
  background: var(--bg-white);
  /* border removed */
  padding: 40px;
  font-size: 16px;
  line-height: 1.9;
}

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

.article-body img {
  max-width: 100%;
  height: auto;
  /* border removed */
  margin: 20px 0;
}

.article-body h2,
.article-body h3 {
  margin: 28px 0 14px;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
}

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

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

.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px dashed var(--border-color);
}

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

/* ========== List Section ========== */
.list-section {
  padding: 50px 0;
}

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

.list-card {
  background: var(--bg-white);
  /* border removed */
  overflow: hidden;
  transition: all 0.3s;
}

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

.list-thumb {
  display: block;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--primary);
  position: relative;
}

.list-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.list-content {
  padding: 20px;
}

.list-content h3 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.4;
}

.list-content h3 a:hover {
  color: var(--primary);
}

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

.list-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  font-size: 12px;
  color: var(--text-light);
}

/* ========== Footer ========== */
.footer {
  background: var(--tertiary);
  color: var(--accent);
  padding: 30px 0;
  border-top: 4px solid var(--primary);
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
}

.footer-bottom a {
  color: var(--accent);
  margin: 0 10px;
  text-transform: uppercase;
  font-weight: 700;
}

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

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

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

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

  .article-thumb {
    flex: 0 0 180px;
    height: 130px;
  }

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

@media (max-width: 768px) {
  .nav-list {
    flex-wrap: wrap;
  }

  .nav-list li a {
    padding: 12px 16px;
    font-size: 13px;
  }

  .hero-section {
    height: 300px;
  }

  .hero-text h2 {
    font-size: 24px;
  }

  .card-list {
    grid-template-columns: 1fr;
  }

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

  .article-thumb {
    flex: 0 0 100%;
    height: 200px;
  }

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

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