/* File Station 服務中心 — 對齊 user/src/viewerkit/theme.css 中性調色盤 */
:root {
  --claude-bg: #faf9f5;
  --claude-surface: #ffffff;
  --claude-surface-hover: #f7f6f2;
  --claude-border: #e8e6dc;
  --claude-border-strong: #b0aea5;
  --claude-text: #141413;
  --claude-text-secondary: #5c5a54;
  --claude-text-tertiary: #b0aea5;
  --claude-accent: #d97757;
  --claude-accent-hover: #c45d3e;
  --claude-accent-light: #faf0eb;
  --claude-info: #6a9bcc;
  --claude-info-light: #eef4f9;

  --shadow-md: 0 4px 12px rgba(217, 119, 87, 0.1), 0 2px 4px rgba(20, 20, 19, 0.04);
  --shadow-lg: 0 10px 30px rgba(217, 119, 87, 0.12), 0 4px 8px rgba(20, 20, 19, 0.05);
  --shadow-xl: 0 20px 50px rgba(217, 119, 87, 0.14), 0 8px 16px rgba(20, 20, 19, 0.06);

  --fs-title: clamp(1.5rem, 5vw, 2.25rem);
  --fs-body: clamp(0.9rem, 2.6vw, 1rem);
  --fs-small: clamp(0.75rem, 2.2vw, 0.875rem);
  --fs-micro: clamp(0.66rem, 1.9vw, 0.75rem);
}

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

html {
  height: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans TC', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #faf9f5;
  color: #141413;
  height: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button,
[role='button'],
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a:focus-visible {
  outline: 2px solid #d97757;
  outline-offset: 3px;
  border-radius: 20px;
}

::selection {
  background-color: rgba(217, 119, 87, 0.18);
  color: #141413;
}

/* ── Layout ─────────────────────────────────────────────── */
.portal {
  position: relative;
  display: flex;
  min-height: 100dvh;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: max(env(safe-area-inset-top), 1.5rem) max(env(safe-area-inset-left), 1rem)
    max(env(safe-area-inset-bottom), 1.5rem) max(env(safe-area-inset-right), 1rem);
}

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 460px;
  flex-direction: column;
  gap: 2.75rem;
}

/* ── Ambient background ─────────────────────────────────── */
.ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
}

.orb-a {
  top: 10%;
  left: 50%;
  width: 16rem;
  height: 16rem;
  transform: translateX(-50%);
  background: rgba(217, 119, 87, 0.1);
}

.orb-b {
  bottom: 6%;
  left: 8%;
  width: 14rem;
  height: 14rem;
  background: rgba(106, 155, 204, 0.1);
}

.orb-c {
  top: 42%;
  right: -4rem;
  width: 14rem;
  height: 14rem;
  background: rgba(217, 119, 87, 0.06);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(217, 119, 87, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 32%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 32%, #000 25%, transparent 78%);
}

@media (min-width: 640px) {
  .orb-a {
    top: 12%;
    left: 20%;
    width: 24rem;
    height: 24rem;
    transform: none;
    filter: blur(120px);
  }

  .orb-b {
    bottom: 10%;
    right: 18%;
    left: auto;
    width: 22rem;
    height: 22rem;
    filter: blur(110px);
  }

  .orb-c {
    top: 46%;
    left: 62%;
    width: 16rem;
    height: 16rem;
  }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: rise 0.6s cubic-bezier(0.22, 0.9, 0.35, 1) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  margin-bottom: 1.4rem;
  border-radius: 1.35rem;
  background: #ffffff;
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(232, 230, 220, 0.9);
  animation: breathe 3s ease-in-out infinite;
}

.brand-logo {
  display: block;
  width: clamp(4.5rem, 14vw, 5.75rem);
  height: clamp(4.5rem, 14vw, 5.75rem);
  border-radius: 0.95rem;
  object-fit: cover;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(217, 119, 87, 0.25);
  border-radius: 999px;
  background: #faf0eb;
  color: #c45d3e;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #d97757;
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.18);
}

.title {
  font-size: var(--fs-title);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #141413;
  margin-bottom: 0.35rem;
}

.title-accent {
  color: #d97757;
}

.subtitle {
  font-size: var(--fs-small);
  color: #5c5a54;
}

/* ── Service cards ──────────────────────────────────────── */
.services {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid #e8e6dc;
  border-radius: 1.35rem;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease;
}

.card-files {
  animation: rise 0.6s 0.12s cubic-bezier(0.22, 0.9, 0.35, 1) both;
}

.card-mail {
  animation: rise 0.6s 0.24s cubic-bezier(0.22, 0.9, 0.35, 1) both;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 119, 87, 0.4);
  background: #f7f6f2;
  box-shadow: var(--shadow-lg);
}

.card:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.08s;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 0.95rem;
  transition: transform 0.25s ease;
}

.card:hover .card-icon {
  transform: scale(1.06);
}

.card-files .card-icon {
  background: linear-gradient(135deg, #fdf3ee, #f7e3d9);
  color: #c45d3e;
}

.card-mail .card-icon {
  background: linear-gradient(135deg, #f0f6fc, #e0ecf7);
  color: #6a9bcc;
}

.card-icon .material-symbols-outlined {
  font-size: 1.6rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #141413;
}

.card-desc {
  font-size: var(--fs-micro);
  color: #b0aea5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #e8e6dc;
  border-radius: 999px;
  background: #ffffff;
  color: #b0aea5;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease,
    color 0.25s ease;
}

.card:hover .card-arrow {
  background: #d97757;
  border-color: #d97757;
  color: #ffffff;
  transform: translateX(2px);
}

.card-arrow .material-symbols-outlined {
  font-size: 1.15rem;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--fs-micro);
  color: #b0aea5;
  animation: rise 0.6s 0.36s cubic-bezier(0.22, 0.9, 0.35, 1) both;
}

.footer-sep {
  opacity: 0.6;
}

/* ── Motion ─────────────────────────────────────────────── */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
