@charset "utf-8";
:root {
  --primary: #2d5a27;
  --accent: #ff6b35;
  --secondary: #f7c59f;
  --tertiary: #efefd0;
  --bg-dark: #1a1a1a;
  --bg-light: #faf9f6;
  --bg-white: #ffffff;
  --text-dark: #2d2d2d;
  --text-muted: #6b6b6b;
  --text-light: #999999;
  --border-color: #e5e5e5;
  --shadow: 6px 6px 0 var(--accent);
  --shadow-sm: 3px 3px 0 var(--secondary);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html, body {
  background: var(--bg-light);
  font-family: -apple-system, 'Microsoft YaHei', sans-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);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-bar {
  background: var(--primary);
  color: #fff;
  padding: 8px 0;
}

.header-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.header-nav a {
  color: rgba(255,255,255,0.9);
  margin-left: 20px;
}

.header-nav a:hover {
  color: #fff;
}

.header-main {
  padding: 15px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  gap: 8px;
}

.main-nav li a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.main-nav li a:hover,
.main-nav li.active a {
  background: var(--accent);
  color: #fff;
}

.menu-toggle {
  display: none;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
}

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

/* ========== Notice Bar ========== */
.notice-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.notice-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notice-label {
  flex: 0 0 60px;
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-sm);
}

.notice-scroll {
  flex: 1;
  overflow: hidden;
}

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

.notice-scroll a:hover {
  color: var(--accent);
}

/* ========== Section Header ========== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

.more-link {
  padding: 8px 20px;
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  border: 2px solid var(--border-color);
}

.more-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ========== Featured Section ========== */
.featured-section {
  padding: 40px 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.featured-big {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-img {
  display: block;
  height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
}

.featured-cat {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 12px;
}

.featured-overlay h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.featured-overlay p {
  font-size: 14px;
  opacity: 0.9;
}

.featured-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all 0.2s;
}

.featured-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

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

.featured-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--text-dark);
}

.featured-info h4:hover {
  color: var(--accent);
}

.featured-info span {
  font-size: 12px;
  color: var(--text-light);
}

/* ========== Icons Section ========== */
.icons-section {
  padding: 40px 0;
  background: var(--bg-white);
}

.icons-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all 0.2s;
}

.icon-item:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

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

.icon-item:hover .icon-box {
  background: #fff;
  color: var(--accent);
}

.icon-name {
  font-size: 13px;
  font-weight: 600;
}

/* ========== Cards Section ========== */
.cards-section {
  padding: 50px 0;
}

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

.scroll-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

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

.scroll-thumb {
  display: block;
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.scroll-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
}

.scroll-info {
  padding: 20px;
}

.scroll-info h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.4;
}

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

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

.scroll-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
}

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

.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-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  transition: all 0.2s;
}

.article-item:hover {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

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

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

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

.article-info h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.4;
}

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

.article-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  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);
}

/* ========== Gallery Section ========== */
.gallery-section {
  padding: 50px 0;
}

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

.gallery-item {
  display: block;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.gallery-item:hover .gallery-mask {
  opacity: 1;
}

.gallery-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-mask span {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}

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

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

.tag-btn {
  padding: 10px 24px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  border-radius: 25px;
  border: 2px solid var(--border-color);
  transition: all 0.2s;
}

.tag-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.05);
}

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

.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.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 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 4px;
}

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

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

.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: 13px;
  font-weight: 700;
  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);
}

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

.tag-item {
  padding: 6px 14px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

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

/* ========== 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-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

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

.list-thumb {
  display: block;
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.list-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
}

.list-content {
  padding: 20px;
}

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

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

.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;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

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

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

.breadcrumb {
  margin-bottom: 12px;
}

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

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

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

.article-header-meta {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== 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-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  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-sm);
  margin: 20px 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 28px 0 14px;
  font-weight: 800;
  color: var(--primary);
}

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

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

.article-footer {
  margin-top: 30px;
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========== 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: 2px solid var(--border-color);
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

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

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

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

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

.footer-bottom a {
  color: var(--secondary);
  margin: 0 10px;
}

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

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

  .icons-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

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

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

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

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

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

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

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

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

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