:root {
  --brand: #732634;
  --brand-deep: #8c2641;
  --brand-soft: #d9b4be;
  --brand-pink: #faacc4;
  --bg: #120c0e;
  --bg-elevated: #1c1215;
  --bg-card: #24161a;
  --text: #f5e6ea;
  --text-muted: #c9a8b2;
  --line: rgba(250, 172, 196, 0.14);
  --radius: 1rem;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(140, 38, 65, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(250, 172, 196, 0.08), transparent 50%),
    var(--bg);
  font-family: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--brand-pink);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #ffd0e0;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10001;
  padding: 0.55rem 0.85rem;
  border-radius: 0.4rem;
  color: #1a1012;
  background: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar {
  background: rgba(115, 38, 52, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--line);
}

.navbar .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brand-soft);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.navbar-brand:hover {
  color: var(--brand-pink);
}

.navbar-brand .brand-logo {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.nav-meta {
  color: var(--brand-soft);
  font-size: 0.9rem;
  opacity: 0.9;
}

main {
  flex: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  padding: 3.5rem 0 2rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  color: var(--brand-pink);
  border: 1px solid rgba(250, 172, 196, 0.28);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.hero-lead {
  margin: 0;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section {
  padding: 1rem 0 3.5rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, rgba(42, 24, 28, 0.95), rgba(28, 18, 21, 0.98));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.35rem 1.35rem;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-deep));
  opacity: 0.85;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 172, 196, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.tool-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  background: rgba(250, 172, 196, 0.1);
  border: 1px solid rgba(250, 172, 196, 0.18);
}

.tool-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.tool-card .tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: var(--brand-soft);
  background: rgba(115, 38, 52, 0.45);
  border: 1px solid rgba(250, 172, 196, 0.15);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.tool-card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.tool-features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  color: var(--brand-soft);
  font-size: 0.88rem;
}

.tool-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.tool-features li::before {
  content: "·";
  color: var(--brand-pink);
  font-weight: 700;
  line-height: 1.4;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
  border-color: rgba(250, 172, 196, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a33d57, var(--brand-deep));
  color: #fff;
}

.btn-block {
  width: 100%;
}

.about {
  margin-top: 0.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.about h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.about p {
  margin: 0;
  color: var(--text-muted);
  max-width: 48rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(18, 12, 14, 0.85);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .container {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  color: var(--brand-soft);
}

.site-footer a:hover {
  color: var(--brand-pink);
}
