:root {
  --green-900: #1B4332;
  --green-700: #2D6A4F;
  --green-500: #52B788;
  --green-300: #95D5B2;
  --green-100: #D8F3DC;
  --green-50: #F0F7F4;
  --gray-900: #1a1a2e;
  --gray-700: #4a4a68;
  --gray-500: #7a7a94;
  --gray-300: #c4c4d4;
  --gray-100: #f0f0f5;
  --white: #ffffff;
  --danger: #d64045;
  --warning: #e8a317;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-900);
}

.logo:hover { text-decoration: none; }

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
  padding: 64px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green-900);
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-700);
  max-width: 560px;
  margin: 0 auto;
}

/* Selector */
.selector-section {
  padding: 32px 0;
  background: var(--white);
}

.selector-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--gray-700);
}

.appliance-select {
  width: 100%;
  max-width: 420px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-900);
  cursor: pointer;
  transition: border-color 0.2s;
}

.appliance-select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.2);
}

/* Guide Output */
.guide-output {
  padding: 16px 0 48px;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--gray-500);
}

.empty-state h2 {
  font-size: 1.3rem;
  margin: 16px 0 8px;
  color: var(--gray-700);
}

.empty-state p { max-width: 400px; margin: 0 auto; }

.hidden { display: none !important; }

.guide-content { animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.guide-header h2 {
  font-size: 1.6rem;
  color: var(--green-900);
}

.guide-actions {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-outline {
  background: var(--white);
  border-color: var(--green-500);
  color: var(--green-700);
}

.btn-outline:hover {
  background: var(--green-50);
}

/* Schedule Grid */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.schedule-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.schedule-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-100);
  color: var(--green-900);
}

.schedule-card ul {
  list-style: none;
}

.schedule-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem;
  line-height: 1.5;
}

.schedule-card li:last-child { border-bottom: none; }

.task-name {
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.task-detail {
  color: var(--gray-500);
  font-size: 0.85rem;
}

/* Warning Signs */
.warning-signs {
  background: #fff8f0;
  border: 1px solid #ffe0b2;
  border-radius: var(--radius);
  padding: 24px;
}

.warning-signs h3 {
  font-size: 1.1rem;
  color: var(--warning);
  margin-bottom: 12px;
}

.warning-signs ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}

.warning-signs li {
  font-size: 0.9rem;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.warning-signs li::before {
  content: "!";
  position: absolute;
  left: 0;
  color: var(--warning);
  font-weight: 700;
}

/* Info Section */
.info-section {
  padding: 56px 0;
  background: var(--green-50);
}

.info-section h2 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 32px;
  color: var(--green-900);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--green-700);
}

.info-card p {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* Mistakes Section */
.mistakes-section {
  padding: 56px 0;
}

.mistakes-section h2 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 32px;
  color: var(--green-900);
}

.mistakes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.mistake-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.mistake-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--danger);
}

.mistake-card p {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* DIY Section */
.diy-section {
  padding: 56px 0;
  background: var(--gray-100);
}

.diy-section h2 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 32px;
  color: var(--green-900);
}

.diy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.diy-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.diy-safe { border-top: 4px solid var(--green-500); }
.diy-pro { border-top: 4px solid var(--warning); }

.diy-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.diy-safe h3 { color: var(--green-700); }
.diy-pro h3 { color: var(--warning); }

.diy-card ul {
  list-style: none;
}

.diy-card li {
  padding: 8px 0;
  font-size: 0.92rem;
  padding-left: 22px;
  position: relative;
  color: var(--gray-700);
}

.diy-safe li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--green-500);
  border-radius: 50%;
}

.diy-pro li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--warning);
  border-radius: 50%;
}

/* FAQ */
.faq-section {
  padding: 56px 0;
}

.faq-section h2 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 32px;
  color: var(--green-900);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-list summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--gray-900);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--green-500);
  font-weight: 400;
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
  padding: 0 20px 16px;
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--green-900);
  color: var(--green-100);
  padding: 40px 0 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand { max-width: 320px; }

.footer-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.88rem;
  opacity: 0.8;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--green-300);
  font-size: 0.88rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* Print */
@media print {
  .site-header, .site-footer, .selector-section, .guide-actions, .hero { display: none; }
  .guide-content { display: block !important; }
  .empty-state { display: none !important; }
  body { font-size: 12px; }
  .schedule-card { break-inside: avoid; }
}

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-sub { font-size: 1rem; }
  .hero { padding: 40px 0 32px; }
  .guide-header { flex-direction: column; align-items: flex-start; }
  .schedule-grid { grid-template-columns: 1fr; }
  .info-grid, .mistakes-grid, .diy-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 0.82rem; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
