/* AIFreePlan - 现代紫色主题 */
*{margin:0;padding:0;box-sizing:border-box}

:root{
  --bg: #F8FAFC;
  --bg-white: #ffffff;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --text: #1E1B4B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --accent: #6366F1;
  --accent-hover: #4F46E5;
  --accent-light: rgba(99, 102, 241, .1);
  --green: #059669;
  --green-light: rgba(5, 150, 105, .1);
  --yellow: #D97706;
  --yellow-light: rgba(217, 119, 6, .1);
  --red: #DB2777;
  --red-light: rgba(219, 39, 119, .1);
  --blue: #0284C7;
  --blue-light: rgba(2, 132, 199, .1);
  --shadow: 0 4px 20px rgba(0,0,0,.05);
  --shadow-hover: 0 8px 32px rgba(0,0,0,.1);
  --radius: 12px;
  --radius-lg: 16px;
}

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

/* ===== 导航栏 ===== */
.navbar{
  background:var(--bg-white);
  border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:100;
}
.nav-inner{
  max-width:1280px;margin:0 auto;padding:0 40px;
  height:72px;display:flex;align-items:center;justify-content:space-between;
}
.logo{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:24px;font-weight:700}
.logo-mark{font-size:20px}
.nav-links{display:flex;align-items:center;gap:32px}
.nav-link{color:var(--text);text-decoration:none;font-size:15px;font-weight:500;transition:color .2s}
.nav-link:hover{color:var(--accent)}
.nav-link.active{color:var(--accent)}
.nav-divider{width:1px;height:20px;background:var(--border);margin:0 8px}
.lang-btn{background:var(--accent);color:#fff;padding:10px 22px;border-radius:8px;font-size:15px;font-weight:600;text-decoration:none;transition:all .2s;border:none;cursor:pointer}
.lang-btn:hover{background:var(--accent-hover);transform:translateY(-1px)}
.mobile-menu-btn{display:none;background:none;border:none;font-size:20px;cursor:pointer;color:var(--text)}

/* ===== 主体 ===== */
main{min-height:calc(100vh - 120px);padding:0 0 60px}
.container{max-width:1280px;margin:0 auto;padding:0 40px}

/* ===== Hero 区域 ===== */
.hero{background:var(--bg-white);text-align:center;padding:60px 0 40px}
.hero-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 16px;
  background:var(--green);
  color:#fff;
  border-radius:9999px;
  font-size:13px;
  font-weight:600;
  margin-bottom:20px;
}
.hero h1{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:48px;font-weight:700;line-height:1.15;margin-bottom:16px}
.hero h1 .highlight{color:var(--accent)}
.hero p{color:var(--text-secondary);font-size:18px;max-width:640px;margin:0 auto 28px}
.stats{display:flex;justify-content:center;gap:40px;margin-top:8px}
.stat{display:flex;align-items:center;gap:6px}
.stat-num{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:18px;font-weight:700;color:var(--green)}
.stat-label{font-size:14px;color:var(--text-secondary)}

/* ===== 搜索和筛选 ===== */
.search-wrap{max-width:640px;margin:0 auto 28px;display:flex;align-items:center;gap:12px;padding:0 20px;height:56px;background:var(--bg);border-radius:12px;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.search-icon{font-size:18px;color:var(--text-muted)}
.search-box{
  flex:1;border:none;background:transparent;
  font-size:16px;color:var(--text);font-family:inherit;
  outline:none;
}
.search-box::placeholder{color:var(--text-muted)}

.filter-bar{background:var(--bg);padding:16px 0;display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.filter-tag{
  padding:8px 16px;border-radius:8px;font-size:14px;font-weight:500;
  cursor:pointer;transition:all .2s;border:none;font-family:inherit;
}
.filter-tag.active{background:var(--text);color:#fff}
.filter-tag.llm{background:var(--accent-light);color:var(--accent)}
.filter-tag.image{background:var(--red-light);color:var(--red)}
.filter-tag.video{background:var(--yellow-light);color:var(--yellow)}
.filter-tag.audio{background:var(--green-light);color:var(--green)}
.filter-tag.api{background:#F3F4F6;color:#4B5563}
.filter-tag.code{background:var(--blue-light);color:var(--blue)}
.filter-tag:hover{transform:translateY(-1px);opacity:.85}

/* ===== 卡片网格 ===== */
.grid-section{padding:40px 0}
.grid-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
.grid-header h2{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:24px;font-weight:700}
.grid-count{font-size:14px;color:var(--text-secondary)}
.card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}

/* ===== 工具卡片 ===== */
.tool-card{
  background:var(--bg-white);
  border-radius:var(--radius-lg);
  padding:24px;
  box-shadow:var(--shadow);
  transition:all .2s;
  display:flex;
  flex-direction:column;
  gap:14px;
  text-decoration:none;
  color:inherit;
}
.tool-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-hover);
}
.tool-card-header{display:flex;justify-content:space-between;align-items:center}
.tool-icon{
  width:44px;height:44px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:18px;font-weight:700;
}
.tool-category-badge{
  padding:4px 10px;border-radius:6px;font-size:12px;font-weight:600;
}
.tool-name{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:20px;font-weight:700}
.tool-quota{display:flex;align-items:baseline;gap:6px}
.tool-quota .num{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:32px;font-weight:700;color:var(--green)}
.tool-quota .unit{font-size:14px;color:var(--text-secondary)}
.tool-bar{height:6px;background:var(--border);border-radius:3px;overflow:hidden}
.tool-bar-fill{height:100%;border-radius:3px;background:var(--green);transition:width .6s ease}
.tool-cond{font-size:13px;color:var(--text-muted)}
.tool-cta{
  margin-top:auto;padding:10px 0;text-align:center;
  border-radius:8px;font-size:14px;font-weight:600;
  color:#fff;background:var(--text);cursor:pointer;transition:all .2s;
}
.tool-cta:hover{background:#0F0D2B}

/* ===== 工具详情页 ===== */
.guide-detail{padding:40px 0}
.guide-header{margin-bottom:32px}
.guide-header h1{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:36px;font-weight:700;line-height:1.3;margin-bottom:12px}
.guide-meta{display:flex;gap:16px;color:var(--text-secondary);font-size:14px;margin-bottom:16px}
.guide-tags{display:flex;gap:8px;flex-wrap:wrap}
.tag{
  padding:6px 12px;border-radius:8px;font-size:13px;font-weight:500;
  background:var(--accent-light);color:var(--accent);
}
.guide-content{
  background:var(--bg-white);
  border-radius:var(--radius-lg);
  padding:32px;
  box-shadow:var(--shadow);
  line-height:1.8;
}
.guide-content h2{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-size:24px;font-weight:700;
  margin:32px 0 16px;
  padding-bottom:8px;
  border-bottom:2px solid var(--border);
}
.guide-content h3{font-size:18px;font-weight:600;margin:24px 0 12px}
.guide-content p{margin-bottom:16px}
.guide-content ul{margin:16px 0;padding-left:24px}
.guide-content li{margin-bottom:8px}
.guide-content img{
  max-width:100%;height:auto;
  border-radius:var(--radius);
  margin:24px 0;
  box-shadow:var(--shadow);
}
.guide-content blockquote{
  border-left:4px solid var(--accent);
  padding:16px 20px;
  margin:24px 0;
  background:var(--accent-light);
  border-radius:0 var(--radius) var(--radius) 0;
}
.guide-content hr{border:none;border-top:1px solid var(--border);margin:32px 0}
.guide-content a{color:var(--accent);text-decoration:none;border-bottom:1px solid transparent;transition:border-color .2s}
.guide-content a:hover{border-bottom-color:var(--accent)}
.guide-content table{width:100%;border-collapse:collapse;margin:24px 0}
.guide-content th,.guide-content td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--border)}
.guide-content th{font-weight:600;background:var(--bg)}

/* ===== FAQ ===== */
.faq-section{margin-top:40px}
.faq-section h2{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:24px;font-weight:700;margin-bottom:24px}
.faq-list{display:flex;flex-direction:column;gap:12px}
.faq-item{
  background:var(--bg-white);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.faq-item summary{
  padding:16px 20px;
  font-weight:600;
  cursor:pointer;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:'+';font-size:20px;color:var(--text-muted);transition:transform .2s}
.faq-item[open] summary::after{transform:rotate(45deg)}
.faq-item p{padding:0 20px 16px;color:var(--text-secondary);line-height:1.7}

/* ===== 面包屑 ===== */
.breadcrumb{
  display:flex;align-items:center;gap:8px;
  padding:16px 0;font-size:14px;color:var(--text-muted);
}
.breadcrumb a{color:var(--text-secondary);text-decoration:none;transition:color .2s}
.breadcrumb a:hover{color:var(--accent)}

/* ===== 广告位 ===== */
.ad-banner{background:var(--bg);padding:30px 0;text-align:center}
.ad-box{
  max-width:1280px;margin:0 auto;height:100px;
  background:var(--bg-white);border-radius:12px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.ad-label{padding:4px 10px;background:var(--text-muted);color:#fff;border-radius:4px;font-size:11px;font-weight:700}
.ad-text{font-size:14px;color:var(--text-muted)}

/* ===== 提交CTA ===== */
.submit-cta{background:var(--text);padding:60px 0;text-align:center}
.submit-cta h2{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:36px;font-weight:700;color:#fff;margin-bottom:12px}
.submit-cta p{color:rgba(255,255,255,.7);max-width:560px;margin:0 auto 24px;font-size:16px}

/* ===== 页脚 ===== */
.footer{background:var(--text);padding:50px 0 30px;color:#fff}
.footer-inner{display:flex;justify-content:space-between;gap:60px;flex-wrap:wrap}
.footer-brand{max-width:300px}
.footer-brand .logo{color:var(--green);margin-bottom:8px;display:inline-block}
.footer-brand p{font-size:14px;color:rgba(255,255,255,.6);line-height:1.5}
.footer-links{display:flex;gap:60px}
.footer-col{display:flex;flex-direction:column;gap:10px}
.footer-col h4{font-size:14px;font-weight:700;margin-bottom:4px}
.footer-col a{color:rgba(255,255,255,.6);text-decoration:none;font-size:14px;transition:color .2s}
.footer-col a:hover{color:#fff}
.footer-bottom{margin-top:30px;padding-top:20px;border-top:1px solid rgba(255,255,255,.1);font-size:13px;color:rgba(255,255,255,.4)}

/* ===== 按钮 ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 22px;border-radius:8px;font-size:15px;font-weight:600;
  cursor:pointer;border:none;transition:all .2s;text-decoration:none;
}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent-hover);transform:translateY(-1px)}
.btn-dark{background:var(--text);color:#fff}
.btn-dark:hover{background:#0F0D2B}
.btn-green{background:var(--green);color:#fff}
.btn-green:hover{background:#047857}

/* ===== 分类页面 ===== */
.category-header{
  background:var(--bg-white);
  padding:40px 0;
  text-align:center;
  border-bottom:1px solid var(--border);
}
.category-header h1{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:36px;font-weight:700;margin-bottom:12px}
.category-header p{color:var(--text-secondary);font-size:18px;max-width:640px;margin:0 auto}

/* ===== 响应式 ===== */
@media (max-width:1024px){
@media (max-width:768px){
@media (max-width:480px){
