/* ===== 古董家具 - 样式表 ===== */
/* 页面风格: portfolio-case (案例展示风格) */
/* 主色调: #8B7355 (古董木色) */

:root {
  --primary-color: #8B7355;
  --primary-dark: #6B5344;
  --accent-color: #00bcd4;
  --text-color: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg-color: #FAF8F5;
  --bg-dark: #F5F0E8;
  --border-color: #E8E0D5;
  --white: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 4px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 2px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--text-color);
  font-size: 15px;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--primary-color);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

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

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

/* ===== Split Screen Layout ===== */
.split-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.split-panel {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-panel-left {
  background: var(--bg-dark);
}

.split-panel-right {
  background: var(--white);
}

.split-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.split-desc {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ===== Section Title ===== */
.section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

/* ===== Article Lists ===== */
.article-section {
  padding: 60px 0;
}

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

.article-list {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.article-list h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.article-list ul {
  list-style: none;
}

.article-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
}

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

.article-list a {
  color: var(--text-color);
  font-size: 14px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--bg-dark);
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-light);
}

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

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

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-muted);
}

.breadcrumb strong {
  color: var(--text-color);
  font-weight: 500;
}

/* ===== Category Page ===== */
.category-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
}

.category-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.category-block h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

.category-items {
  list-style: none;
}

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

.category-items li:last-child {
  border-bottom: none;
}

.category-items a {
  color: var(--text-color);
  font-size: 15px;
  flex: 1;
}

.category-items a:hover {
  color: var(--primary-color);
}

.category-items .tag {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: 20px;
}

.category-block .btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

/* ===== Article Page ===== */
.article-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
}

.article-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.article-panel h1 {
  font-size: 26px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.4;
}

.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.article-meta span {
  margin-right: 20px;
}

.article-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-color);
}

.article-content p {
  margin-bottom: 16px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 24px 0 12px;
}

.article-content ul {
  margin: 12px 0;
  padding-left: 24px;
}

.article-content li {
  margin: 8px 0;
}

/* ===== 404 Page ===== */
.error-page {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-content {
  max-width: 500px;
}

.error-code {
  font-size: 120px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.8;
}

.error-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 16px;
}

.error-desc {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 48px 0 24px;
  margin-top: 60px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin: 10px 0;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .split-screen {
    grid-template-columns: 1fr;
  }

  .split-panel {
    padding: 40px 24px;
  }

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

  .category-split,
  .article-split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
  }

  .nav {
    width: 100%;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
  }

  .nav a.active::after {
    bottom: -12px;
  }

  .split-title {
    font-size: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .error-code {
    font-size: 80px;
  }

  .error-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .split-panel {
    padding: 32px 20px;
  }

  .article-panel {
    padding: 24px;
  }

  .category-block {
    padding: 24px;
  }
}
