:root {
  --bg: #f0fdf4; --card: #ffffff; --text: #0f1c2e; --muted: #64748b;
  --accent: #059669; --accent-dark: #047857; --gold: #d97706;
  --border: #d1fae5; --radius: 14px;
  --shadow: 0 1px 3px rgba(6,78,59,0.06), 0 8px 24px rgba(6,78,59,0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Site navigation ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.site-header-inner { max-width: 1120px; min-height: 68px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-brand { min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.site-brand-mark { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 10px; background: #064e3b; color: #fff; font-size: 0.78rem; font-weight: 800; }
.site-brand-name { font-size: 0.95rem; }
.site-nav { display: flex; align-items: center; gap: 12px; }
.site-nav-link { padding: 8px 12px; border-radius: 8px; background: #ecfdf5; color: #047857; text-decoration: none; white-space: nowrap; font-size: 0.875rem; font-weight: 650; transition: background 0.15s, color 0.15s; }
.site-nav-link:hover { background: #d1fae5; color: #064e3b; }
.site-nav select { appearance: none; -webkit-appearance: none; width: auto; min-width: 120px; height: 38px; margin: 0; padding: 8px 34px 8px 12px; border: 1px solid var(--border, #e2e8f0); border-radius: 8px; background-color: #fff; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 11px center; background-size: 14px; color: var(--text, #0f1c2e); font-family: inherit; font-size: 0.875rem; line-height: 1.2; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 28, 46, 0.06); transition: border-color 0.15s, box-shadow 0.15s; }
.site-nav select:hover { border-color: var(--accent, #2563eb); }
.site-nav select:focus-visible { outline: 2px solid var(--accent, #2563eb); outline-offset: 2px; }
.site-nav select option { color: #0f1c2e; background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 64px 20px 96px;
  background:
    radial-gradient(circle at 15% 20%, rgba(217,119,6,0.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(16,185,129,0.30) 0%, transparent 50%),
    linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.06) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.6;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(2,44,34,0.35) 100%);
  pointer-events: none;
}
.hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 2; text-align: center; }
.hero-badge {
  display: inline-block;
  background: rgba(217,119,6,0.20);
  border: 1px solid rgba(217,119,6,0.45);
  color: #fcd34d;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.hero h1 { font-size: 2.1rem; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.02em; }
.hero p { margin: 0 auto; opacity: 0.9; font-size: 1rem; max-width: 560px; }

/* ---------- Language switcher ---------- */
.lang-switch { position: absolute; top: 16px; right: 16px; z-index: 3; }
.lang-switch select {
  appearance: none; -webkit-appearance: none;
  background-color: rgba(255,255,255,0.15);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff; padding: 7px 32px 7px 12px; border-radius: 8px;
  font-size: 0.85rem; font-family: inherit; cursor: pointer; transition: background-color 0.15s;
}
.lang-switch select:hover { background-color: rgba(255,255,255,0.28); }
.lang-switch select option { color: #0f1c2e; background: #fff; }

/* ---------- Layout ---------- */
.wrap { max-width: 720px; margin: -56px auto 0; padding: 0 20px 64px; position: relative; z-index: 2; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; box-shadow: var(--shadow); }

/* ---------- Form ---------- */
label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
input, select { width: 100%; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 9px; font-size: 1rem; margin-bottom: 18px; background: #fff; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; font-family: inherit; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(5,150,105,0.15); }
.row { display: flex; gap: 14px; }
.row > div { flex: 1; }
button.calc { width: 100%; padding: 15px; background: var(--accent); color: #fff; border: none; border-radius: 9px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.15s, transform 0.1s; font-family: inherit; }
button.calc:hover { background: var(--accent-dark); }
button.calc:active { transform: scale(0.99); }

/* ---------- Result ---------- */
#result { margin-top: 24px; padding: 24px; border-radius: 14px; background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%); border: 2px solid #059669; display: none; animation: fadeIn 0.35s ease; }
#result.show { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; color: #065f46; margin-bottom: 4px; }
.net-pay { font-size: 3rem; font-weight: 800; color: #064e3b; line-height: 1; letter-spacing: -0.02em; }
.freq-note { font-size: 0.85rem; color: #047857; margin-top: 6px; font-weight: 500; }
.breakdown { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(5,150,105,0.20); }
.bd-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; color: #065f46; }
.bd-row strong { color: #064e3b; font-weight: 600; }
.result-disclaimer { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(5,150,105,0.15); font-size: 0.78rem; color: #047857; opacity: 0.85; }

/* ---------- Content ---------- */
h2 { font-size: 1.25rem; margin: 36px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1rem; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; line-height: 1.65; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 14px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; }
th { background: #f0fdf4; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: #065f46; }
tr:last-child td { border-bottom: none; }
.disclaimer { font-size: 0.85rem; color: var(--muted); border-left: 3px solid #cbd5e1; padding: 4px 0 4px 14px; margin-top: 18px; }
.footer { text-align: center; font-size: 0.8rem; color: var(--muted); padding: 24px 20px 48px; }

@media (max-width: 560px) {
  .site-header-inner { min-height: 0; padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  .site-brand { flex: 1 1 100%; }
  .site-nav { width: 100%; justify-content: flex-end; gap: 8px; }
  .site-nav select { min-width: 118px; }
  .hero { padding: 48px 16px 80px; }
  .hero h1 { font-size: 1.5rem; }
  .wrap { padding: 0 14px 48px; }
  .card { padding: 20px; }
  .row { flex-direction: column; gap: 0; }
  .net-pay { font-size: 2.2rem; }
}
.site-footer { margin-top: 64px !important; padding: 48px 24px 22px !important; background: #0b0d12 !important; border-top: 1px solid rgba(255,255,255,0.08) !important; color: #a6adbb !important; text-align: left !important; font-size: 0.88rem !important; line-height: 1.6; }
.site-footer-inner { max-width: 1160px; margin: 0 auto; }
.site-footer-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,1.15fr) minmax(220px,0.9fr); gap: 48px; }
.site-footer-column { min-width: 0; }
.site-footer-wordmark { display: inline-flex; align-items: baseline; color: #f8fafc !important; font-size: 1.42rem; font-weight: 850; line-height: 1.15; text-decoration: none; }
.site-footer-wordmark .tld { color: var(--accent, #3b82f6); }
.site-footer-site-name { margin: 18px 0 0 !important; color: #f8fafc; font-size: 0.96rem; font-weight: 700; }
.site-footer-heading { margin: 0 0 16px !important; color: #f8fafc; font-size: 0.95rem; font-weight: 650; }
.site-footer-description { max-width: 420px; margin: 8px 0 0 !important; color: #98a1af; }
.site-footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; }
.site-footer-contact { margin: 0 !important; color: #b9c0cb; overflow-wrap: anywhere; }
.site-footer a { color: #b9c0cb !important; text-decoration: none; }
.site-footer a:hover { color: #fff !important; text-decoration: underline; }
.site-footer-bottom { margin-top: 38px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.1); color: #747d8a; font-size: 0.73rem; line-height: 1.5; }
.site-footer-bottom p { margin: 0; }
@media (max-width: 960px) { .site-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 34px; } .site-footer-column:first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .site-footer { padding: 36px 20px 20px !important; } .site-footer-grid { grid-template-columns: 1fr; gap: 28px; } .site-footer-column:first-child { grid-column: auto; } .site-footer-links { gap: 10px 14px; } .site-footer-bottom { margin-top: 28px; } }
