/* 画册 - 手册风格样式 */
:root {
  --accent-color: #009688;
  --accent-light: #e0f2f1;
  --accent-dark: #00796b;
  --text-primary: #212121;
  --text-secondary: #757575;
  --text-muted: #9e9e9e;
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-border: #e0e0e0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 64px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  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-dark);
}

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  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: 32px;
}

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

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

.search-box {
  position: relative;
}

.search-box input {
  width: 240px;
  padding: 8px 16px;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--accent-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
  color: white;
  padding: 64px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

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

/* Section Title */
.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
}

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

.category-card {
  background: var(--bg-primary);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.2s;
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.category-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* Manual List */
.manual-list {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-border);
  margin: 48px 0;
}

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

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

.manual-info h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

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

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

.btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

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

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

.btn-outline:hover {
  background: var(--accent-light);
}

/* Search Section */
.search-section {
  background: var(--bg-primary);
  padding: 48px 0;
  margin: 48px 0;
  border-radius: var(--radius-lg);
  text-align: center;
}

.search-section h2 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.search-large {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-large input {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  border: 2px solid var(--bg-border);
  border-radius: var(--radius-md);
  outline: none;
}

.search-large input:focus {
  border-color: var(--accent-color);
}

/* Article Lists Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.article-list {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--bg-border);
}

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

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

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

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

.article-list a {
  color: var(--text-primary);
  font-size: 14px;
  display: block;
}

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

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

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

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

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

/* Category Header */
.category-header {
  background: var(--bg-primary);
  padding: 48px 24px;
  text-align: center;
  border-bottom: 1px solid var(--bg-border);
}

.category-header h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* Sections List */
.sections-list {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-border);
  margin: 32px 0;
}

.section-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.section-item::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
}

.section-item a {
  color: var(--text-primary);
  flex: 1;
}

/* Article Page Layout */
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  margin: 32px 0;
}

.sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.sidebar h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.quick-links {
  list-style: none;
}

.quick-links li {
  margin-bottom: 8px;
}

.quick-links a {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 8px 12px;
  display: block;
  border-radius: var(--radius-sm);
}

.quick-links a:hover,
.quick-links a.active {
  background: var(--accent-light);
  color: var(--accent-color);
}

/* Article Content */
.article-content {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-border);
  padding: 48px;
}

.article-content h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
}

.article-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Step Cards */
.step-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  border-left: 4px solid var(--accent-color);
}

.step-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent-color);
}

.step-card p {
  margin: 0;
  color: var(--text-secondary);
}

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

.article-nav a {
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 500;
}

.article-nav .nav-center {
  color: var(--text-muted);
}

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

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

.error-page h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

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

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--bg-border);
  padding: 48px 0;
  margin-top: 64px;
}

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

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

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.footer-column li {
  margin-bottom: 10px;
}

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

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .categories-grid,
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .sidebar {
    position: static;
    order: -1;
  }

  .quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .quick-links li {
    margin: 0;
  }
}

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

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 24px;
  }

  .search-box {
    order: 2;
  }

  .search-box input {
    width: 160px;
  }

  .hero {
    padding: 48px 16px;
  }

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

  .categories-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .manual-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .article-content {
    padding: 24px;
  }

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

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