/* ============================================================
   sudovns.shop — DNS & VPS Tools Directory
   設計風格：現代極簡 / 技術工具站
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #059669;
  --accent-alt: #d97706;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --max-w: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.search-box {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.search-box:focus-within { border-color: var(--primary); }

.search-box input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text);
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box button {
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-box button:hover { background: var(--primary-hover); }

/* ---------- Main Content ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1rem;
}

/* ---------- Tool Cards Grid ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.tool-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.icon-dns    { background: #dbeafe; color: #2563eb; }
.icon-ip     { background: #dcfce7; color: #16a34a; }
.icon-domain { background: #fef3c7; color: #d97706; }
.icon-vps    { background: #fce7f3; color: #db2777; }
.icon-ssl    { background: #e0e7ff; color: #4f46e5; }
.icon-tools  { background: #f1f5f9; color: #475569; }

.tool-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tool-card .tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--bg-alt);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-weight: 500;
}

/* ---------- Category Section ---------- */
.category-section {
  margin-bottom: 48px;
}

.category-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-section h2 .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-dns  { background: #2563eb; }
.dot-ip   { background: #16a34a; }
.dot-vps  { background: #db2777; }
.dot-tool { background: #d97706; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 24px 24px;
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-inner h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-inner p, .footer-inner a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-inner a:hover { color: var(--primary); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- About Page ---------- */
.about-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  padding: 64px 24px;
  text-align: center;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

.about-content h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0 32px;
}

.feature-item {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.feature-item .emoji {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.feature-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb span { margin: 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { gap: 16px; }
}
