/* =========================================================
   Tenggo Tools｜騰哥工具箱 final v4
   黑 / 橘色系 + favicon + 工具卡 icon 分色 + 問題回報頁
   ========================================================= */

:root {
  --bg: #0d0d0e;
  --panel: #181818;
  --text: #f7f7f7;
  --muted: #b5b5b5;
  --line: rgba(255,255,255,0.10);

  --orange: #ff7a00;
  --orange-2: #ff9a2f;

  --status-stable: #22c55e;
  --status-dev: #facc15;
  --status-add: #38bdf8;
  --status-plan: #a78bfa;
  --status-template: #9ca3af;

  --card: rgba(255,255,255,0.05);
  --card-hover: rgba(255,255,255,0.08);

  --white: #ffffff;
  --light-bg: #f5f5f5;
  --light-line: #e8e8e8;
  --dark-text: #111111;
  --dark-muted: #666666;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background:
    radial-gradient(circle at top right, rgba(255,122,0,0.16), transparent 30%),
    radial-gradient(circle at top left, rgba(255,122,0,0.08), transparent 34%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13,13,14,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
  background: transparent;
}

.brand-title {
  font-weight: 900;
  letter-spacing: 0.03em;
  font-size: 19px;
  color: var(--text);
  line-height: 1.1;
}

.brand-name {
  color: var(--text);
}

.brand-tools {
  color: var(--orange);
}

.brand-sub {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.1;
  margin-top: 4px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

/* Sections */

section { padding: 36px 0; }

.hero {
  padding: 84px 0 52px;
}

.hero.center { text-align: center; }

.badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,122,0,0.36);
  color: #ffd6ad;
  background: rgba(255,122,0,0.08);
  font-size: 13px;
}

h1 {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.1;
  margin: 20px 0 16px;
  letter-spacing: -0.04em;
}

h2.section-title {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.hero p,
.section-desc {
  color: var(--muted);
}

.hero p {
  max-width: 820px;
  margin: 0 0 26px;
  font-size: 18px;
}

.hero.center p {
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-desc { margin: 6px 0 0; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero.center .actions {
  justify-content: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 16px 32px rgba(255,122,0,0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(255,122,0,0.33);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

.btn-secondary:hover {
  color: var(--orange);
  border-color: rgba(255,122,0,0.38);
}

.btn.disabled {
  opacity: 0.52;
  pointer-events: none;
}

/* Ads */

.ad-box {
  padding: 18px;
  border: 1px dashed rgba(255,122,0,0.38);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,0.03);
}

.ad-box strong {
  color: #ffd6ad;
  letter-spacing: 0.04em;
}

.ad-inner {
  min-height: 96px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
  margin-top: 10px;
  font-size: 14px;
  padding: 14px;
}

/* Cards */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card,
.panel,
.copy-box {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
}

.tool-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 318px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,122,0,0.36);
  background: var(--card-hover);
  box-shadow: 0 16px 34px rgba(0,0,0,0.24);
}

.tool-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 16px;
  outline: none;
}

/* Tool icon colors - 藍框處分色 */
.tool-icon-l1 {
  background: rgba(255,122,0,0.14);
  border: 1px solid rgba(255,122,0,0.42);
  color: #ffd6ad;
}

.tool-icon-spr {
  background: rgba(250,204,21,0.13);
  border: 1px solid rgba(250,204,21,0.42);
  color: #ffe68a;
}

.tool-icon-ping {
  background: rgba(56,189,248,0.13);
  border: 1px solid rgba(56,189,248,0.42);
  color: #9fe4ff;
}

.tool-icon-png {
  background: rgba(167,139,250,0.13);
  border: 1px solid rgba(167,139,250,0.42);
  color: #d8c8ff;
}

.tool-icon-yt {
  background: rgba(239,68,68,0.13);
  border: 1px solid rgba(239,68,68,0.42);
  color: #ffb1b1;
}

.tool-icon-plus {
  background: rgba(156,163,175,0.13);
  border: 1px solid rgba(156,163,175,0.38);
  color: #d9dce1;
}

.tool-card h3,
.panel h3 { margin: 0 0 10px; }

.tool-card h3 { font-size: 22px; }

.tool-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.tag {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #f0f0f0;
  border: 1px solid rgba(255,255,255,0.08);
}

.tool-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.tool-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.tool-actions .btn {
  flex: 1;
  min-height: 42px;
  padding: 0 12px;
  font-size: 14px;
}

/* Status colors */

.status {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.status-stable { color: var(--status-stable); }
.status-dev { color: var(--status-dev); }
.status-add { color: var(--status-add); }
.status-plan { color: var(--status-plan); }
.status-template { color: var(--status-template); }

/* Layout */

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.layout-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.panel { padding: 22px; }

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.list li { margin: 8px 0; }

.notice {
  background: rgba(255,122,0,0.10);
  border: 1px solid rgba(255,122,0,0.24);
  color: #ffd6ad;
  padding: 18px;
  border-radius: 16px;
}

/* Report copy box */

.copy-box {
  padding: 22px;
  color: var(--text);
  overflow: auto;
}

.copy-box pre {
  margin: 0;
  white-space: pre-wrap;
  color: #e8e8e8;
  font-family: "Consolas", "Microsoft JhengHei", monospace;
  font-size: 14px;
  line-height: 1.8;
}

/* Download */

.download-box {
  background: var(--white);
  color: var(--dark-text);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: center;
  box-shadow: 0 28px 70px rgba(0,0,0,0.28);
}

.download-box h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.download-box p {
  color: var(--dark-muted);
  margin: 0;
}

.download-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--dark-muted);
  font-size: 14px;
}

.download-side {
  padding: 18px;
  border-radius: 18px;
  background: var(--light-bg);
  border: 1px solid var(--light-line);
  text-align: center;
}

.download-side .btn-primary {
  width: 100%;
  margin-top: 12px;
}

.safe-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--dark-muted);
  font-size: 14px;
  text-align: left;
}

.safe-list li { margin: 8px 0; }

/* Steps */

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}

.num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,122,0,0.15);
  color: #ffd6ad;
  font-weight: 900;
  border: 1px solid rgba(255,122,0,0.22);
}

.step h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Updates */

.update-item {
  border-left: 4px solid var(--orange);
  padding: 4px 0 4px 16px;
  margin: 18px 0;
}

.update-date {
  color: var(--muted);
  font-size: 13px;
}

/* Footer */

.footer {
  margin-top: 34px;
  padding: 36px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* Responsive */

@media (max-width: 920px) {
  .tools-grid,
  .layout-grid,
  .layout-grid-3,
  .download-box {
    grid-template-columns: 1fr;
  }

  .nav-links { display: none; }
  .section-head { display: block; }
  .download-meta { grid-template-columns: 1fr; }
  .brand-title { font-size: 16px; }
}


/* AdSense safe placement helpers */
.ad-section {
  padding: 42px 0;
}

.ad-section.after-hero {
  padding-top: 20px;
  padding-bottom: 48px;
}

.ad-section.after-content {
  padding-top: 52px;
}

.ad-label {
  display: inline-block;
  color: #ffd6ad;
  letter-spacing: 0.06em;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.ad-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.download-section {
  padding-top: 46px;
  padding-bottom: 50px;
}

.report-cta {
  background: rgba(255,122,0,0.10);
  border: 1px solid rgba(255,122,0,0.24);
  color: #ffd6ad;
  padding: 20px;
  border-radius: 18px;
}


.tool-icon-idea {
  background: rgba(156,163,175,0.10);
  border: 1px dashed rgba(156,163,175,0.45);
  color: #d9dce1;
}


/* Stacked text inside tool icon */

.tool-icon-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.15;
  text-align: center;
}

.tool-icon-stack span {
  display: block;
}
