/* 手工陶瓷 - 手册风格样式 */
:root {
  --accent-color: #8B4513;
  --accent-light: #D2691E;
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --bg-primary: #fff;
  --bg-secondary: #f8f6f3;
  --bg-card: #fff;
  --border-color: #e8e4df;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 4px;
  --max-width: 1200px;
  --header-height: 60px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-secondary);
}

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

a:hover {
  color: var(--accent-light);
}

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

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

.logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-color);
}

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

.nav a {
  color: var(--text-primary);
  font-size: 14px;
}

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 6px 12px;
  width: 240px;
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-size: 13px;
}

.search-box button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
}

/* Main Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px;
}

/* Hero Section */
.hero {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 50px 40px;
  text-align: center;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
}

.hero h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.hero p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Section Title */
.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

/* Categories Grid */
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.category-card:hover {
  box-shadow: var(--shadow);
}

.category-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--accent-color);
}

.category-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Manual List */
.manual-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 40px;
}

.manual-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
}

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

.manual-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

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

.manual-actions {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 6px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.btn-primary {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

.btn:hover {
  opacity: 0.9;
}

/* Search Section */
.search-section {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 40px;
}

.search-section .search-box {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 16px;
  background: var(--bg-secondary);
}

.search-section .search-box input {
  font-size: 15px;
}

/* Three Column Layout */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.col-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
}

.col-section h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

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

.col-section li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}

.col-section li:last-child {
  border-bottom: none;
}

.col-section a {
  color: var(--text-primary);
  font-size: 13px;
}

.col-section a:hover {
  color: var(--accent-color);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

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

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

/* Page Header */
.page-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
}

/* Section List */
.section-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 25px;
  margin-bottom: 30px;
}

.section-list h3 {
  font-size: 14px;
  margin-bottom: 15px;
}

.section-list ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.section-list li {
  font-size: 13px;
}

.section-list li::before {
  content: "•";
  color: var(--accent-color);
  margin-right: 6px;
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

/* Article Layout */
.article-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  height: fit-content;
}

.sidebar h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 8px 0;
  font-size: 13px;
}

.sidebar a {
  color: var(--text-secondary);
}

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

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

.article-content h1 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.article-content h2 {
  font-size: 18px;
  margin: 30px 0 15px;
  color: var(--accent-color);
}

.article-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.step-box {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.step-box h4 {
  font-size: 14px;
  margin-bottom: 8px;
}

.step-box p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Article Navigation */
.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 30px;
}

.article-nav a {
  font-size: 13px;
  color: var(--text-secondary);
}

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

/* Related Articles */
.related-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.related-section h3 {
  font-size: 14px;
  margin-bottom: 15px;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.related-list a {
  font-size: 13px;
  color: var(--text-primary);
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 80px 20px;
}

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

.error-page h1 {
  font-size: 24px;
  margin-bottom: 15px;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  font-size: 16px;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
}

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

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-secondary);
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 15px;
  }

  .nav {
    display: none;
  }

  .search-box {
    width: 100%;
    margin-top: 10px;
  }

  .categories,
  .three-col,
  .two-col {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    order: 2;
  }

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

  .hero {
    padding: 30px 20px;
  }

  .hero h1 {
    font-size: 24px;
  }
}
