* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #f8fafc;
  color: #0f172a;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部导航 */
header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  margin-bottom: 40px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
}

.nav-links a {
  margin-left: 20px;
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover {
  color: #4f46e5;
}

/* 首页英雄区 */
.hero {
  text-align: center;
  padding: 40px 0 60px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
  color: #0f172a;
}

.hero p {
  font-size: 18px;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
}

/* 广告位 */
.ad-slot {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  color: #94a3b8;
  margin: 30px 0;
  font-size: 14px;
}

/* 工具卡片网格 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.tool-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tool-card:hover {
  border-color: #818cf8;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
  transform: translateY(-2px);
}

.tool-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #0f172a;
}

.tool-card p {
  font-size: 14px;
  color: #64748b;
}

/* 工具页面 */
.tool-page {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.tool-page h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.tool-page .desc {
  color: #64748b;
  margin-bottom: 24px;
}

textarea {
  width: 100%;
  min-height: 200px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-family: monospace;
  resize: vertical;
  margin-bottom: 16px;
}

textarea:focus {
  outline: none;
  border-color: #818cf8;
}

.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

button {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #4338ca;
}

button.secondary {
  background: #f1f5f9;
  color: #334155;
}

button.secondary:hover {
  background: #e2e8f0;
}

.result-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  font-size: 14px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.stat-item {
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #4f46e5;
}

.stat-label {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

input[type="number"] {
  width: 100px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.checkbox-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

/* 合规页面 */
.content-page {
  background: white;
  border-radius: 12px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto 30px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.content-page h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.content-page h2 {
  font-size: 20px;
  margin: 24px 0 12px;
  color: #1e293b;
}

.content-page p, .content-page li {
  color: #475569;
  margin-bottom: 12px;
}

.content-page ul {
  padding-left: 24px;
  margin: 12px 0;
}

/* 底部页脚 */
footer {
  background: white;
  border-top: 1px solid #e2e8f0;
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
  font-size: 14px;
  color: #64748b;
}

footer a {
  color: #64748b;
  text-decoration: none;
  margin: 0 12px;
}

footer a:hover {
  color: #4f46e5;
}

.footer-links {
  margin-bottom: 12px;
}

.copyright {
  font-size: 13px;
  color: #94a3b8;
}
