/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background: #0f1115;
}
a { color: #4fc3f7; text-decoration: none; }
a:hover { color: #80d8ff; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
  background: #1a1d23;
  border-bottom: 1px solid #2a2e35;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}
.site-logo:hover { color: #4fc3f7; }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  color: #aaa;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.site-nav a:hover {
  color: #fff;
  border-bottom-color: #4fc3f7;
}

/* ===== Hero ===== */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, #1a1d23 0%, #0f1115 100%);
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.hero .lead {
  font-size: 1.2rem;
  color: #999;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: #4fc3f7;
  color: #0f1115;
}
.btn-primary:hover {
  background: #80d8ff;
  color: #0f1115;
}
.btn-secondary {
  background: transparent;
  color: #4fc3f7;
  border: 2px solid #4fc3f7;
}
.btn-secondary:hover {
  background: #4fc3f7;
  color: #0f1115;
}
.btn-download {
  background: #66bb6a;
  color: #fff;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}
.btn-download:hover { background: #81c784; color: #fff; }
.btn-buy-cn {
  background: #ff6b6b;
  color: #fff;
}
.btn-buy-cn:hover { background: #ff8787; color: #fff; }
.btn-buy-global {
  background: #ffa726;
  color: #fff;
}
.btn-buy-global:hover { background: #ffb74d; color: #fff; }

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section-alt { background: #16181d; }
.section h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 2rem;
  text-align: center;
}
.section-footer {
  text-align: center;
  margin-top: 2rem;
}

/* ===== Feature Grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.feature {
  background: #1a1d23;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #2a2e35;
  text-align: center;
}
.feature h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.feature p { color: #888; }

/* ===== Macro Grid ===== */
.macro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ===== Macro Card ===== */
.macro-card {
  background: #1a1d23;
  border: 1px solid #2a2e35;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.macro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body { padding: 1.25rem; }
.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.card-body h3 a { color: #fff; }
.card-body h3 a:hover { color: #4fc3f7; }
.card-body .summary {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== Tags ===== */
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.tag.class { background: #5c6bc0; color: #fff; }
.tag.spec { background: #26a69a; color: #fff; }
.tag.version { background: #78909c; color: #fff; }
.tag.type { background: #78909c; color: #fff; }
.tag.type-free { background: #66bb6a; color: #fff; }
.tag.type-premium { background: #ffa726; color: #fff; }

/* ===== Page List ===== */
.page-list { padding: 3rem 0; }
.page-list h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

/* ===== Filters ===== */
.filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  background: #1a1d23;
  border: 1px solid #2a2e35;
  color: #aaa;
  font-weight: 500;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: #4fc3f7;
  border-color: #4fc3f7;
  color: #0f1115;
}

/* ===== Taxonomy Cloud ===== */
.taxonomy-cloud { margin-bottom: 2rem; }
.taxonomy-cloud h3 {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 0.75rem;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-link {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: #1a1d23;
  border: 1px solid #2a2e35;
  color: #aaa;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.tag-link:hover {
  background: #4fc3f7;
  color: #0f1115;
  border-color: #4fc3f7;
}

/* ===== Detail Page ===== */
.page-single { padding: 3rem 0; }
.macro-detail { max-width: 800px; margin: 0 auto; }
.detail-header { margin-bottom: 2rem; }
.detail-header h1 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 1rem;
}
.detail-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.detail-preview {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a2e35;
}
.detail-content {
  color: #ccc;
  font-size: 1.05rem;
  line-height: 1.8;
}
.detail-content h2, .detail-content h3 {
  color: #fff;
  margin: 2rem 0 1rem;
}
.detail-content ul, .detail-content ol {
  margin: 1rem 0 1rem 1.5rem;
}
.detail-content li { margin: 0.5rem 0; }

/* ===== Download & Purchase ===== */
.download-area, .purchase-area {
  margin-top: 2.5rem;
  padding: 2rem;
  background: #16181d;
  border-radius: 12px;
  border: 1px solid #2a2e35;
  text-align: center;
}
.download-area .hint {
  margin-top: 1rem;
  color: #888;
  font-size: 0.9rem;
}
.purchase-area h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}
.models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.model-card {
  background: #1a1d23;
  border: 1px solid #2a2e35;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
}
.model-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #2a2e35;
}
.model-header h4 { color: #fff; font-size: 1.1rem; }
.model-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffa726;
}
.model-features {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
}
.model-features li {
  padding: 0.4rem 0;
  color: #bbb;
  border-bottom: 1px solid #222;
}
.model-features li::before {
  content: "✓ ";
  color: #66bb6a;
  font-weight: bold;
}
.model-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.model-actions .btn { text-align: center; }

/* ===== Footer ===== */
.site-footer {
  background: #1a1d23;
  border-top: 1px solid #2a2e35;
  padding: 2rem 0;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  margin-top: 4rem;
}
.footer-links { margin-bottom: 0.75rem; }
.footer-links a { color: #4fc3f7; }
.footer-links a:hover { color: #80d8ff; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .site-header .container { flex-direction: column; height: auto; padding: 1rem; }
  .site-nav { margin-top: 0.75rem; gap: 1rem; }
  .macro-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }
}
