@charset "utf-8";
:root {
  --primary: #1a365d;
  --accent: #ed8936;
  --secondary: #2c5282;
  --bg-dark: #0f172a;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --text-dark: #1a202c;
  --text-muted: #4a5568;
  --text-light: #718096;
  --border-color: #e2e8f0;
  --metal: linear-gradient(135deg, #374151 0%, #1f2937 50%, #111827 100%);
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --radius: 4px;
  --radius-sm: 2px;
}

* {
  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;
}

/* ========== Header ========== */
.header {
  background: var(--metal);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.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: 2px solid var(--accent);
  filter: grayscale(100%) brightness(1.2);
}

.nav-bar {
  flex: 1;
}

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

.nav li a {
  display: block;
  padding: 20px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.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;
}

/* ========== Service Section ========== */
.service-section {
  padding: 60px 0;
  background: var(--bg-dark);
}

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

.service-card {
  background: var(--metal);
  border: 2px solid #374151;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.2s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #e5e7eb;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-card p {
  font-size: 13px;
  color: #9ca3af;
}

/* ========== Stats Section ========== */
.stats-section {
  padding: 60px 0;
  background: var(--metal);
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
}

.stats-header {
  text-align: center;
  margin-bottom: 40px;
}

.stats-header h2 {
  font-size: 28px;
  font-weight: 900;
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: rgba(255,255,255,0.05);
  border: 2px solid #374151;
  padding: 40px 20px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 10px;
  font-family: 'Courier New', monospace;
}

.stat-label {
  font-size: 14px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ========== Section Header ========== */
.section-header {
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--primary);
}

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

/* ========== Content Section ========== */
.content-section {
  padding: 60px 0;
}

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

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

/* ========== Timeline List ========== */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  background: var(--bg-white);
  border: 3px solid var(--primary);
  padding: 24px;
  transition: all 0.2s;
}

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

.timeline-date {
  flex: 0 0 70px;
  text-align: center;
  background: var(--primary);
  padding: 12px;
}

.date-day {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.date-month {
  display: block;
  font-size: 12px;
  color: #a0aec0;
}

.timeline-content {
  flex: 1;
  display: flex;
  gap: 20px;
}

.timeline-thumb {
  flex: 0 0 200px;
  height: 150px;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--border-color);
}

.timeline-info {
  flex: 1;
}

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

.timeline-info h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.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;
}

/* ========== Product Section ========== */
.product-section {
  padding: 60px 0;
  background: var(--bg-white);
  border-top: 3px solid var(--primary);
}

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

.product-card {
  background: var(--bg-light);
  border: 3px solid var(--primary);
  overflow: hidden;
  transition: all 0.2s;
}

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

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

.product-info {
  padding: 20px;
}

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

.product-info h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

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

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

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

/* ========== Tags Section ========== */
.tags-section {
  padding: 60px 0;
}

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

.tag-item {
  padding: 10px 20px;
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  border: 3px solid var(--primary);
  transition: all 0.2s;
}

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

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

.sidebar-widget {
  background: var(--bg-white);
  border: 3px solid var(--primary);
  padding: 20px;
}

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

.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid 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: 900;
}

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

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

.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: 2px solid var(--border-color);
}

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

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

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

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

.sidebar .tags-cloud {
  gap: 8px;
}

.sidebar .tag-item {
  padding: 6px 12px;
  font-size: 12px;
}

/* ========== 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: 3px solid var(--primary);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  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: #fff;
  font-weight: 700;
  border: 3px solid var(--accent);
}

.no-data {
  text-align: center;
  padding: 60px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-white);
  border: 3px solid var(--primary);
}

/* ========== Page Header ========== */
.page-header {
  background: var(--bg-dark);
  border-bottom: 3px solid var(--accent);
  padding: 50px 0;
}

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

.breadcrumb {
  margin-bottom: 16px;
}

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

.separator {
  margin: 0 10px;
  color: #6b7280;
}

.page-title {
  font-size: 32px;
  font-weight: 900;
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ========== Article Content ========== */
.article-content {
  background: var(--bg-white);
  border: 3px solid var(--primary);
  padding: 40px;
}

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

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

.article-body img {
  max-width: 100%;
  height: auto;
  border: 3px solid var(--primary);
  margin: 24px 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 32px 0 16px;
  font-weight: 800;
  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 ========== */
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 3px solid var(--primary);
}

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

/* ========== Footer ========== */
.footer {
  background: var(--metal);
  border-top: 3px solid var(--accent);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .timeline-date {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    background: none;
    padding: 0;
  }

  .date-day {
    color: var(--primary);
  }

  .article-content {
    padding: 24px;
  }
}
