:root {
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-hover: #2a2a2a;
  --primary: #e53935;
  --primary-hover: #ff5252;
  --text-main: #f5f5f5;
  --text-muted: #a0a0a0;
  --border: #333333;
  --radius: 8px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
ul { list-style: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 32px; width: auto; border-radius: 4px; }
.brand span { font-size: 1.2rem; font-weight: 700; letter-spacing: 1px; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { font-size: 0.95rem; color: var(--text-muted); transition: color 0.2s; }
.main-nav a:hover { color: var(--text-main); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.btn-download {
  background-color: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s;
}
.btn-download:hover { background-color: var(--primary-hover); }

/* Hero */
.hero {
  padding: 60px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.3;
}
.hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}
.hero-search {
  display: flex;
  max-width: 500px;
  margin: 0 auto 24px;
  background: var(--surface);
  border-radius: 24px;
  padding: 4px;
  border: 1px solid var(--border);
}
.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 20px;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
}
.hero-search button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0 24px;
  font-size: 1rem;
  cursor: pointer;
}
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 32px; }
.tags span {
  background: var(--surface);
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.tags span:hover { background: var(--surface-hover); color: var(--text-main); }
.hero-actions { display: flex; justify-content: center; gap: 16px; }
.btn-outline {
  padding: 10px 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--text-main); }

/* Section Common */
.section { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 1.8rem; margin-bottom: 12px; }
.section-desc { color: var(--text-muted); margin-bottom: 32px; max-width: 600px; }

/* Grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s;
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); border-color: #444; }
.card-img { width: 100%; aspect-ratio: 3/4; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.card-content { padding: 16px; }
.card-title { font-size: 1.1rem; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; display: flex; gap: 8px; }
.card-desc { font-size: 0.9rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Features */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-item {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature-item h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--primary); }
.feature-item p { font-size: 0.95rem; color: var(--text-muted); }

/* Scenarios */
.scenario-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.scenario-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.scenario-icon {
  width: 48px;
  height: 48px;
  background: rgba(229, 57, 53, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}
.scenario-text h3 { font-size: 1.1rem; margin-bottom: 8px; }
.scenario-text p { font-size: 0.9rem; color: var(--text-muted); }

/* Article */
.article-block {
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.article-block h2 { font-size: 1.8rem; margin-bottom: 16px; }
.article-meta { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }
.article-content h3 { font-size: 1.2rem; margin: 24px 0 12px; }
.article-content p { color: #ccc; margin-bottom: 16px; line-height: 1.8; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  margin-top: 60px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.site-footer p { margin-bottom: 8px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text-main); }
.contact-info { margin-bottom: 16px; }
.contact-info a { color: var(--primary); font-weight: bold; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .article-block { padding: 24px; }
}
@media (max-width: 480px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; background: transparent; gap: 12px; }
  .hero-search input { border: 1px solid var(--border); background: var(--surface); border-radius: 24px; }
  .hero-search button { padding: 12px; border-radius: 24px; }
  .hero-actions { flex-direction: column; }
}