* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans TC', sans-serif; background: #0a0a0a; color: #e0e0e0; line-height: 1.6; }
a { color: #7c8aff; text-decoration: none; transition: color 0.2s; }
a:hover { color: #a0aaff; }
a:focus-visible { outline: 2px solid #7c8aff; outline-offset: 2px; }
.filter-btn:focus-visible { outline: 2px solid #7c8aff; outline-offset: 2px; }
.copy-btn:focus-visible { outline: 2px solid #7c8aff; outline-offset: 2px; }

.header { background: #111; border-bottom: 1px solid #222; padding: 16px 0; position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: #999; font-size: 14px; }
.nav a:hover, .nav a.active { color: #fff; }
.btn-download { background: #7c8aff; color: #fff !important; padding: 8px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.btn-download:hover { background: #6570e0; }

.hero { text-align: center; padding: 60px 24px 40px; }
.hero h1 { font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.hero p { font-size: 18px; color: #888; max-width: 600px; margin: 0 auto; }

.filters { max-width: 1400px; margin: 0 auto 32px; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.filter-btn { background: #1a1a1a; border: 1px solid #333; color: #aaa; padding: 6px 16px; border-radius: 20px; cursor: pointer; font-size: 13px; transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { background: #7c8aff; color: #fff; border-color: #7c8aff; }

.grid { max-width: 1400px; margin: 0 auto; padding: 0 24px 60px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.card { background: #141414; border: 1px solid #222; border-radius: 10px; padding: 16px; transition: all 0.2s; display: flex; flex-direction: column; }
.card:hover { border-color: #444; transform: translateY(-2px); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { background: #1e1e2e; color: #7c8aff; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 500; }
.tag.verified { background: #1a2e1a; color: #4ade80; }
.card h3 { font-size: 14px; color: #fff; margin-bottom: 6px; font-weight: 600; }
.card p { font-size: 12px; color: #888; flex: 1; }

/* Detail page */
.detail-container { max-width: 800px; margin: 0 auto; padding: 40px 24px 80px; }
.breadcrumb { font-size: 14px; color: #666; margin-bottom: 24px; }
.breadcrumb a { color: #7c8aff; }
.detail-header { margin-bottom: 32px; }
.detail-header h1 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.detail-header .desc { font-size: 16px; color: #999; line-height: 1.7; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.detail-section { margin-bottom: 32px; }
.detail-section h2 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #222; }
.detail-section h3 { font-size: 16px; font-weight: 600; color: #ccc; margin: 16px 0 8px; }
.detail-section p, .detail-section li { font-size: 15px; color: #bbb; line-height: 1.8; }
.detail-section ul, .detail-section ol { padding-left: 24px; margin: 8px 0; }
.detail-section li { margin-bottom: 6px; }
.prompt-box { background: #1a1a2e; border: 1px solid #333; border-radius: 10px; padding: 20px; margin: 16px 0; position: relative; }
.prompt-box code { display: block; white-space: pre-wrap; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 14px; color: #c8d0ff; line-height: 1.7; }
.copy-btn { position: absolute; top: 12px; right: 12px; background: #333; color: #ccc; border: none; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.copy-btn:hover { background: #444; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.info-card { background: #1a1a1a; border: 1px solid #222; border-radius: 8px; padding: 16px; }
.info-card .label { font-size: 12px; color: #666; text-transform: uppercase; margin-bottom: 4px; }
.info-card .value { font-size: 15px; color: #fff; font-weight: 500; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: #7c8aff; font-size: 14px; margin-top: 32px; }

.footer { background: #111; border-top: 1px solid #222; padding: 40px 24px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: #666; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: #777; font-size: 12px; }

@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .nav { gap: 12px; flex-wrap: wrap; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}
