
:root {
  --primary: #e67e22;
  --primary-dark: #d35400;
  --secondary: #27ae60;
  --bg: #fafafa;
  --card: #ffffff;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --border: #e0e0e0;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --max-width: 960px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Header */
header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; }
.logo svg { width: 32px; height: 32px; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 500; }
nav a:hover { color: #fff; text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #fff5e6, #fff);
  padding: 50px 20px; text-align: center;
}
.hero h1 { font-size: 2rem; margin-bottom: 10px; color: var(--primary-dark); }
.hero p { color: var(--text-light); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 30px 20px; }

/* Cards */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px;
}
.card h2 { font-size: 1.3rem; margin-bottom: 16px; color: var(--primary-dark); }
.card h3 { font-size: 1.1rem; margin: 20px 0 10px; color: var(--text); }

/* Tool Grid */
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 30px;
}
.tool-card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
  border: 1px solid var(--border);
}
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.tool-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary-dark); }
.tool-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 14px; }
.btn {
  display: inline-block; background: var(--primary); color: #fff; padding: 10px 18px;
  border-radius: 8px; font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn-secondary { background: var(--secondary); }
.btn-secondary:hover { background: #219150; }

/* Form elements */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
input, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 1rem; background: #fff; color: var(--text);
}
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,126,34,0.15); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

/* Results */
.result-box {
  background: #f0fdf4; border: 1px solid #c6f6d5; border-radius: 10px;
  padding: 20px; margin-top: 20px; display: none;
}
.result-box.active { display: block; }
.result-box h4 { color: var(--secondary); margin-bottom: 10px; font-size: 1.1rem; }
.result-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #e0e0e0; }
.result-item:last-child { border-bottom: none; }
.result-value { font-weight: 700; color: var(--primary-dark); }

/* Content sections */
.content-section { margin-top: 30px; }
.content-section h2 { font-size: 1.4rem; color: var(--primary-dark); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.content-section h3 { font-size: 1.1rem; margin: 18px 0 8px; color: var(--text); }
.content-section p, .content-section li { color: var(--text-light); font-size: 0.95rem; margin-bottom: 10px; }
.content-section ul { padding-left: 20px; margin-bottom: 14px; }
.content-section li { margin-bottom: 6px; }

/* Affiliate box */
.affiliate-box {
  background: #fff8f0; border: 1px solid #ffe0b2; border-radius: 10px;
  padding: 20px; margin-top: 24px;
}
.affiliate-box h4 { color: var(--primary-dark); margin-bottom: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 10px; }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px; text-align: center;
}
.product-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; background: #f5f5f5; }
.product-card .p-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.product-card .p-price { color: var(--primary); font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.product-card a { font-size: 0.8rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; color: var(--text); margin-bottom: 6px; cursor: pointer; }
.faq-a { color: var(--text-light); font-size: 0.95rem; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

/* Footer */
footer {
  background: #2c3e50; color: #bdc3c7; padding: 40px 20px 20px; margin-top: 40px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
footer a { color: #bdc3c7; font-size: 0.9rem; display: block; margin-bottom: 8px; }
footer a:hover { color: #fff; }
.copyright { text-align: center; font-size: 0.85rem; color: #7f8c8d; border-top: 1px solid #34495e; padding-top: 20px; }

/* Schema debug hide */
script[type="application/ld+json"] { display: none; }

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.5rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  nav { width: 100%; justify-content: flex-start; gap: 12px; margin-top: 8px; }
}
