* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "Microsoft YaHei", sans-serif; background: #f5f6fa; color: #333; }

.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 100px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo { font-size: 22px; font-weight: 700; color: #1a1a2e; text-decoration: none; }
.logo span { color: #e94560; }
.header-links { display: flex; gap: 24px; }
.header-link { font-size: 14px; color: #555; text-decoration: none; transition: color .2s; }
.header-link:hover { color: #e94560; }

.hero-section { text-align: center; padding: 40px 100px 0; }
.hero-title { font-size: 40px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.hero-title .gradient-text { background: linear-gradient(to right, #12c2e9, #fbd786, #f7797d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 14px; color: #999; }

.nav-tabs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; max-width: 1400px; margin: 0 auto 24px; padding: 0 100px; }
.nav-tab {
  padding: 8px 18px; border-radius: 20px; font-size: 14px;
  cursor: pointer; transition: all .2s; border: none;
  background: #f0f0f0; color: #555;
}
.nav-tab:hover { background: #e8e8e8; }
.nav-tab.active { background: #1a1a2e; color: #fff; }

.search-bar { max-width: 1400px; margin: 30px auto; padding: 0 100px; }
.search-bar input {
  width: 100%; padding: 12px 20px;
  border: 2px solid #e0e0e0; border-radius: 8px;
  font-size: 15px; outline: none; transition: border .2s;
}
.search-bar input:focus { border-color: #1a1a2e; }

.container { max-width: 1400px; margin: 24px auto 0; padding: 0 100px 60px; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* 单色卡片 */
.color-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px; margin-top: 16px;
}
.color-card {
  background: #fff; border-radius: 12px; padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04); cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.color-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.color-label { font-size: 11px; color: #999; margin-bottom: 8px; font-weight: 500; }
.color-swatch { height: 80px; border-radius: 8px; margin-bottom: 10px; }
.color-info { display: flex; justify-content: space-between; align-items: center; }
.color-name { font-size: 13px; font-weight: 500; color: #333; }
.color-hex { font-size: 12px; color: #999; font-family: monospace; }

/* 渐变卡片 */
.gradient-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px; margin-top: 16px;
}
.gradient-card {
  background: #fff; border-radius: 12px; padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04); cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.gradient-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.gradient-label { font-size: 11px; color: #999; margin-bottom: 8px; font-weight: 500; }
.gradient-swatch { height: 80px; border-radius: 8px; margin-bottom: 10px; }
.gradient-info { display: flex; }
.gradient-info span { flex: 1; font-size: 11px; color: #666; font-family: monospace; text-align: center; }

/* 配色方案卡片 */
.scheme-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 16px;
}
.scheme-card {
  background: #fff; border-radius: 12px; padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04); cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.scheme-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.scheme-label { font-size: 11px; color: #999; margin-bottom: 8px; font-weight: 500; }
.scheme-swatch { height: 80px; border-radius: 8px; display: flex; margin-bottom: 10px; overflow: hidden; }
.scheme-swatch .stop { flex: 1; height: 100%; }
.scheme-info { display: flex; }
.scheme-info span { flex: 1; font-size: 11px; color: #666; font-family: monospace; text-align: center; }

.toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1a2e; color: #fff;
  padding: 10px 24px; border-radius: 8px;
  font-size: 14px; opacity: 0; transition: all .3s; z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.footer { text-align: center; padding: 30px 20px; color: #999; font-size: 13px; }

@media (max-width: 600px) {
  .nav-tabs { gap: 2px; }
  .nav-tab { padding: 6px 12px; font-size: 13px; }
  .container { padding: 0 15px 60px; }
  .color-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .gradient-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .scheme-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}