:root {
  --brand: #0f766e;
  --brand-dark: #0b5f59;
  --brand-soft: #ccfbf1;
  --ink: #0f172a;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, #dff7f2 0%, transparent 35%),
    radial-gradient(circle at 88% 0%, #e2e8f0 0%, transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #f8fafc 45%, #f1f5f9 100%);
  font-family: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

header {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
}

.nav-link {
  position: relative;
  color: #334155;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #14b8a6);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.surface-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.hero-stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  border: 1px solid #dbe3ee;
  border-radius: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: 0.65rem;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.25);
}

.btn-secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 0.65rem;
  font-weight: 500;
}

.btn-secondary:hover {
  background: #f8fafc;
}

.card-hover {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.09);
  border-color: #cbd5e1;
}

.tag-chip {
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.1;
  background: white;
  color: #334155;
}

.tag-chip.active {
  background: linear-gradient(135deg, #0f766e, #0b5f59);
  color: white;
  border-color: #0f766e;
}

.hero-gradient {
  background: radial-gradient(circle at 92% -10%, #99f6e4 0%, #f8fafc 42%);
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-fit {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.studio-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.studio-address {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 3.75rem;
}

.studio-support-badges,
.studio-tags {
  min-height: 1.75rem;
  max-height: 1.75rem;
  overflow: hidden;
}

.badge-featured {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
}

.sticky-filter {
  position: sticky;
  top: 1rem;
}

.section-title {
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: #475569;
  font-size: 0.98rem;
}

.filter-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.input-modern {
  border-radius: 0.45rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  line-height: 1.35;
}

input:not([type='checkbox']):not([type='radio']),
select,
textarea {
  border-radius: 0.45rem;
  padding: 0.5rem 0.75rem;
  line-height: 1.35;
  text-indent: 0;
}

.empty-state {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
}

.pagination-btn {
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.6rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 0.85rem;
}

.pagination-btn:hover {
  background: #f8fafc;
}

.pagination-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-color: transparent;
}

input,
select,
textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #0f766e !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13) !important;
}
