/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #3D8BF7;
  --primary-dark: #2B6CB0;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --text: #1A202C;
  --text-light: #718096;
  --border: #E2E8F0;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.12);
  --max-width: 1120px;
  --header-h: 64px;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ========== Header ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo {
  font-size: 22px; font-weight: 700; color: var(--text);
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }
.nav { display: flex; gap: 32px; }
.nav a {
  font-size: 15px; color: var(--text-light); font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); }

/* ========== Hero ========== */
.hero {
  padding: calc(var(--header-h) + 80px) 0 80px;
  background: linear-gradient(135deg, #EBF4FF 0%, #E0ECFF 50%, #F0E6FF 100%);
  text-align: center;
}
.hero h1 {
  font-size: 42px; font-weight: 800;
  letter-spacing: -1px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { font-size: 18px; color: var(--text-light); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px; border-radius: var(--radius); font-size: 15px;
  font-weight: 600; cursor: pointer; transition: all 0.2s; border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ========== Sections ========== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 30px; font-weight: 700; text-align: center; margin-bottom: 8px;
}
.section-desc { font-size: 16px; color: var(--text-light); text-align: center; margin-bottom: 48px; }

/* ========== Card Grid ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  transition: all 0.25s;
}
.section-alt .card { background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.card-icon { font-size: 36px; margin-bottom: 16px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }
.card-link { font-size: 14px; font-weight: 600; }

/* ========== Plugin List ========== */
.plugin-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.plugin-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 20px 24px; transition: box-shadow 0.2s;
}
.plugin-item:hover { box-shadow: var(--shadow); }
.plugin-name { font-weight: 600; font-size: 15px; min-width: 140px; }
.plugin-desc { font-size: 13px; color: var(--text-light); flex: 1; }
.plugin-tag {
  font-size: 12px; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; white-space: nowrap;
}
.plugin-tag:contains("免费"), .plugin-tag:not(:contains("付费")) {
  background: #C6F6D5; color: #22543D;
}
.plugin-tag { background: #FED7D7; color: #742A2A; }

/* ========== Model Grid ========== */
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.model-card {
  background: #fff; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--border);
  transition: all 0.25s;
}
.model-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.placeholder-thumb {
  height: 180px; background: linear-gradient(135deg, #E0ECFF, #F0E6FF);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 14px;
}
.model-info { padding: 16px; }
.model-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.model-meta { font-size: 12px; color: var(--text-light); }

/* ========== About ========== */
.about-content { max-width: 680px; margin: 0 auto; text-align: center; }
.about-content p { font-size: 15px; color: var(--text-light); margin-bottom: 12px; }
.contact-info { margin-top: 24px; }
.contact-info p { font-size: 14px; }

/* ========== Footer ========== */
.footer {
  background: var(--text); color: rgba(255,255,255,0.7);
  padding: 32px 0; text-align: center;
}
.footer-inner p { font-size: 13px; }
.footer-links { margin-top: 8px; display: flex; gap: 16px; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 13px; }
.footer-links a:hover { color: #fff; }

/* ========== Mobile ========== */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .plugin-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 15px; }
  .section-title { font-size: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .nav {
    display: none; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 16px;
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .plugin-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .plugin-name { min-width: auto; }
}
