:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-nav: rgba(255,255,255,0.85);
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --border: #e5e7eb;
  --accent: #6366f1;
  --accent-light: #e0e7ff;
  --accent-hover: #4f46e5;
  --tag-bg: #f3f4f6;
  --tag-text: #374151;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-nav: rgba(15,23,42,0.9);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --border: #334155;
  --accent: #818cf8;
  --accent-light: #1e1b4b;
  --accent-hover: #6366f1;
  --tag-bg: #334155;
  --tag-text: #cbd5e1;
  --shadow: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.3), 0 4px 10px rgba(0,0,0,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.logo-icon { font-size: 24px; }
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.nav { display: flex; gap: 8px; }
.nav-link {
  padding: 6px 16px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-secondary);
  font-size: 14px; font-weight: 500; transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--accent); background: var(--accent-light); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.shop-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: white; text-decoration: none;
  transition: all 0.2s; box-shadow: 0 2px 12px rgba(249,115,22,0.4);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(249,115,22,0.4); }
  50% { box-shadow: 0 2px 20px rgba(249,115,22,0.7); }
}
.shop-badge:hover { transform: scale(1.07); box-shadow: 0 4px 20px rgba(249,115,22,0.6); }
.year-badge { font-weight: 800; font-size: 14px; }

.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; cursor: pointer;
  text-decoration: none; border: none; transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 6px 14px; font-size: 13px; }

.hero {
  padding: 64px 0 40px; text-align: center;
}
.hero-title { font-size: 44px; font-weight: 700; letter-spacing: -1px; margin-bottom: 12px; }
.highlight {
  background: linear-gradient(135deg, var(--accent), #a855f7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { font-size: 18px; color: var(--text-secondary); max-width: 500px; margin: 0 auto 32px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 32px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 14px; color: var(--text-tertiary); margin-top: 2px; }

.content { padding-bottom: 64px; }
.toolbar { margin-bottom: 24px; }

.search-box {
  position: relative; max-width: 480px; margin: 0 auto 20px;
}
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; }
.search-input {
  width: 100%; padding: 12px 40px 12px 42px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 15px; background: var(--bg-card); color: var(--text);
  outline: none; transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent); }
.search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 14px;
  color: var(--text-tertiary); padding: 4px;
}
.search-clear:hover { color: var(--text); }
.hidden { display: none !important; }

.filter-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tab {
  padding: 6px 18px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-secondary);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.2s;
}
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.active { background: var(--accent); border-color: var(--accent); color: white; }

.prompt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: all 0.25s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.card-model {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
}
.model-chatgpt { background: #dbeafe; color: #1d4ed8; }
.model-claude { background: #f3e8ff; color: #7c3aed; }
.model-midjourney { background: #fce7f3; color: #be185d; }
.model-stable-diffusion { background: #e0e7ff; color: #4338ca; }
.model-general { background: var(--tag-bg); color: var(--tag-text); }

[data-theme="dark"] .model-chatgpt { background: #1e3a5f; color: #93c5fd; }
[data-theme="dark"] .model-claude { background: #3b1f5e; color: #c4b5fd; }
[data-theme="dark"] .model-midjourney { background: #5b1a3a; color: #f9a8d4; }
[data-theme="dark"] .model-stable-diffusion { background: #1e245b; color: #a5b4fc; }

.featured-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: #fef3c7; color: #d97706;
}
[data-theme="dark"] .featured-badge { background: #78350f; color: #fbbf24; }

.card-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.card-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; flex: 1; }
.card-prompt {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
  font-size: 13px; line-height: 1.7; color: var(--text-secondary);
  margin-bottom: 16px; max-height: 120px; overflow-y: auto;
  white-space: pre-wrap; word-break: break-word;
  font-family: inherit; position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.card-prompt::-webkit-scrollbar { width: 6px; }
.card-prompt::-webkit-scrollbar-track { background: transparent; }
.card-prompt::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tag {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 11px; background: var(--tag-bg); color: var(--tag-text);
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: var(--radius-sm);
  background: var(--accent); color: white; border: none;
  font-size: 13px; cursor: pointer; transition: all 0.2s;
  white-space: nowrap; font-weight: 500;
}
.copy-btn:hover { background: var(--accent-hover); }
.copy-btn.copied { background: #10b981; }

.empty-state { text-align: center; padding: 64px 0; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 16px; font-size: 16px; }

.footer { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-inner { text-align: center; }
.footer p { color: var(--text-tertiary); font-size: 13px; }

.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  background: #1e293b; color: white; padding: 12px 28px;
  border-radius: var(--radius); font-size: 14px; font-weight: 500;
  z-index: 999; animation: toastIn 0.3s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
[data-theme="dark"] .toast { background: #f1f5f9; color: #0f172a; }
.toast.hidden { display: none; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; animation: modalIn 0.3s ease;
}
.modal-overlay.hidden { display: none; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px 36px 32px;
  max-width: 400px; width: 90%; text-align: center;
  box-shadow: var(--shadow-hover); position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--text-tertiary); padding: 4px; border-radius: 4px;
}
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.modal-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.modal-btn { display: block; width: 100%; padding: 12px; font-size: 16px; text-align: center; text-decoration: none; }
.modal-contact { font-size: 13px; color: var(--text-tertiary); margin-top: 16px; }

.about-section { padding: 64px 0; }
.about-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 48px 40px; box-shadow: var(--shadow);
}
.about-title { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.about-text { color: var(--text-secondary); font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.about-links { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }

@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 16px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 24px; }
  .prompt-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-inner { height: 56px; }
  .logo-text { font-size: 18px; }
}
