/* ============================================================
   锐意工场 Enterprise Studio — 极简酷炫企业旗舰主题
   ============================================================ */

:root {
  --color-bg: #09090b;
  --color-surface: #111114;
  --color-surface-elevated: #18181c;
  --color-text: #fafafa;
  --color-muted: #a1a1aa;
  --color-primary: #6366f1;
  --color-accent: #22d3ee;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-strong: rgba(255, 255, 255, 0.18);
  --font-sans: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --page-max-width: 1180px;
  --page-max-width-xl: 1280px;
  --sidebar-width: 17rem;
  --layout-gap: 2.5rem;
  --article-readable-width: 46rem;
  --content-width: var(--article-readable-width);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.28);
  --header-height: 4rem;
  --section-gap: 5rem;
  --hero-fg: var(--color-text);
  --hero-fg-muted: var(--color-muted);
  --glass-bg: rgba(17, 17, 20, 0.72);
  --glass-blur: 16px;
  --grid-line: rgba(255, 255, 255, 0.04);
  --orb-opacity: 0.55;
}

[data-theme="light"] {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-surface-elevated: #f4f4f5;
  --color-text: #09090b;
  --color-muted: #71717a;
  --color-border: rgba(9, 9, 11, 0.1);
  --color-border-strong: rgba(9, 9, 11, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.78);
  --grid-line: rgba(9, 9, 11, 0.05);
  --orb-opacity: 0.35;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-surface-elevated: #f4f4f5;
    --color-text: #09090b;
    --color-muted: #71717a;
    --color-border: rgba(9, 9, 11, 0.1);
    --color-border-strong: rgba(9, 9, 11, 0.16);
    --glass-bg: rgba(255, 255, 255, 0.78);
    --grid-line: rgba(9, 9, 11, 0.05);
    --orb-opacity: 0.35;
  }
}

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

body.theme-enterprise-studio {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: clamp(0.9375rem, 2vw, 1rem);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

a { color: var(--color-primary); text-decoration: none; transition: color 0.15s ease, opacity 0.15s ease; }
a:hover { opacity: 0.88; }

.container { max-width: var(--page-max-width); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 1400px) { .container { max-width: var(--page-max-width-xl); } }

/* —— 背景装饰 —— */
.studio-grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 15%, transparent 75%);
}

.studio-glow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.studio-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--orb-opacity);
}

.studio-orb-1 {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  top: -8%;
  right: -6%;
  background: color-mix(in srgb, var(--color-primary) 55%, transparent);
}

.studio-orb-2 {
  width: 36vw;
  height: 36vw;
  max-width: 440px;
  max-height: 440px;
  bottom: 10%;
  left: -8%;
  background: color-mix(in srgb, var(--color-accent) 45%, transparent);
}

body.theme-enterprise-studio .studio-header,
body.theme-enterprise-studio .studio-layout,
body.theme-enterprise-studio .studio-home,
body.theme-enterprise-studio .studio-footer {
  position: relative;
  z-index: 1;
}

/* —— 密度 —— */
body.studio-density-airy { --section-gap: 6rem; }
body.studio-density-compact { --section-gap: 3.5rem; }

/* —— 圆角 —— */
body.studio-radius-sharp { --radius: 2px; --radius-lg: 4px; }
body.studio-radius-pill { --radius: 999px; --radius-lg: 20px; }

/* —— 顶栏 —— */
.studio-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

body.studio-header-floating .studio-header {
  margin: 0.75rem 1rem 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

body.studio-header-solid .studio-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

body.studio-header-transparent .studio-header {
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 100;
}

body.studio-header-transparent .studio-header.is-scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom-color: var(--color-border);
}

.studio-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

.studio-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text);
  font-weight: 600;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text small { font-size: 0.72rem; font-weight: 400; color: var(--color-muted); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.studio-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.studio-nav a {
  color: var(--color-muted);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: color 0.15s, background 0.15s;
}

.studio-nav a:hover {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  opacity: 1;
}

.studio-nav .nav-cta {
  margin-left: 0.35rem;
  color: #fff !important;
}

.studio-nav .nav-cta:hover {
  opacity: 1;
  color: #fff !important;
}
.studio-nav .nav-util { padding: 0.45rem; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: inline; }
[data-theme="light"] .theme-icon-dark { display: inline; }
[data-theme="light"] .theme-icon-light { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-dark { display: none; }
  :root:not([data-theme="light"]) .theme-icon-light { display: inline; }
}

/* —— 按钮 —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-accent) 60%, var(--color-primary)));
  color: #fff;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--color-primary) 35%, transparent);
}
.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-lg { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; }

/* —— 卡片表面 —— */
.studio-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.studio-surface-bordered .studio-card {
  border: 1px solid var(--color-border);
}

body.studio-surface-flat .studio-card {
  border: none;
  box-shadow: none;
}

body.studio-surface-glass .studio-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--color-border);
}

.studio-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
  box-shadow: var(--shadow-md);
}

/* —— 区块标题 —— */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--color-muted);
  max-width: 42rem;
}

.section-header { margin-bottom: 2rem; }
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-more {
  color: var(--color-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.section-more:hover { color: var(--color-primary); opacity: 1; }

/* —— Hero 通用 —— */
.studio-hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.studio-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.studio-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.studio-hero-statement .studio-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--color-bg) 100%);
}

.studio-hero-statement .studio-hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  color: var(--hero-fg);
}

.hero-slogan {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--hero-fg-muted);
  margin-bottom: 0.5rem;
}

.hero-typewriter {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-accent);
  min-height: 1.5em;
  margin-bottom: 1rem;
}

.typewriter-cursor {
  animation: studio-blink 1s step-end infinite;
}

@keyframes studio-blink {
  50% { opacity: 0; }
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Hero: statement */
.studio-hero-statement .studio-hero-inner {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
}

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

/* Hero: split */
.studio-hero-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-visual-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  background: var(--color-surface-elevated);
}

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

.hero-visual-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 15%, transparent), color-mix(in srgb, var(--color-accent) 12%, transparent));
}

.hero-visual-glow {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 40%, transparent);
  filter: blur(40px);
}

.hero-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* Hero: cinematic */
.studio-hero-cinematic {
  min-height: 72vh;
  display: flex;
  align-items: center;
}

.studio-hero-cinematic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.studio-hero-cinematic-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 100%);
}

.studio-hero-cinematic-inner {
  position: relative;
  z-index: 1;
}

.studio-hero-cinematic .hero-title,
.studio-hero-cinematic .hero-slogan,
.studio-hero-cinematic .hero-lead {
  --hero-fg: #ffffff;
  --hero-fg-muted: rgba(255, 255, 255, 0.82);
}

/* Hero: minimal */
.studio-hero-minimal {
  padding: clamp(5rem, 12vw, 8rem) 0;
}

.hero-title-minimal {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-lead-minimal {
  font-size: 1.1rem;
  max-width: 32rem;
}

.hero-actions-minimal {
  gap: 1rem;
}

.hero-divider {
  width: 1px;
  height: 1.25rem;
  background: var(--color-border);
}

.hero-text-link {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.hero-text-link:hover { color: var(--color-primary); opacity: 1; }

/* —— 数据条 —— */
.studio-stats {
  padding: 2rem 0;
  border-block: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* —— 服务 —— */
.studio-services,
.studio-team,
.studio-work,
.studio-news,
.studio-partners {
  padding: var(--section-gap) 0;
}

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

.service-card {
  padding: 1.75rem;
}

.service-card-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* —— 案例 / 团队 —— */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.case-card { overflow: hidden; }
.case-cover {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.case-card:hover .case-cover img { transform: scale(1.04); }

.case-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
  color: #fff;
  font-size: 1.5rem;
}

.case-card:hover .case-cover-overlay { opacity: 1; }

.case-body { padding: 1.25rem; }
.case-client {
  display: block;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.case-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.case-body p { color: var(--color-muted); font-size: 0.9rem; }
.case-result { margin-top: 0.5rem; color: var(--color-accent) !important; }

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

.team-card { padding: 1.5rem; text-align: center; }
.team-avatar {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-elevated);
}

.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar.lg { width: 6rem; height: 6rem; }
.team-name { font-size: 1rem; margin-bottom: 0.25rem; }
.team-name a { color: var(--color-text); }
.team-role { font-size: 0.82rem; color: var(--color-accent); margin-bottom: 0.5rem; }
.team-bio { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 0.75rem; }
.team-more { font-size: 0.82rem; color: var(--color-primary); }

/* —— 合作伙伴 —— */
.partners-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: border-color 0.2s, transform 0.2s;
}

.partner-item:hover {
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
  transform: translateY(-2px);
  opacity: 1;
}

.partner-mark {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-name { font-size: 0.82rem; color: var(--color-muted); text-align: center; }

/* —— 资讯 —— */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

body.layout-list .news-grid {
  grid-template-columns: 1fr;
}

.post-card { overflow: hidden; position: relative; }
.post-card-cover {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-cover img { transform: scale(1.04); }

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.25s;
  color: #fff;
  font-size: 1.5rem;
}

.post-card:hover .card-overlay { opacity: 1; }

.post-card-body { padding: 1.25rem; }
.post-card-body h2 { font-size: 1.05rem; margin: 0.35rem 0 0.5rem; line-height: 1.35; }
.post-card-body h2 a { color: var(--color-text); }
.post-card-body .excerpt { color: var(--color-muted); font-size: 0.88rem; margin-bottom: 0.75rem; }
.post-card-body .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.pin-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-muted);
}

.tag-pill.sm { font-size: 0.7rem; }

/* —— CTA —— */
.studio-cta-band {
  padding: var(--section-gap) 0 calc(var(--section-gap) * 0.6);
}

.cta-band-card { padding: 2.5rem; }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: 0.35rem 0 0.5rem;
}

.cta-band-text p { color: var(--color-muted); max-width: 36rem; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* —— 页脚 —— */
.studio-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer-grid:has(.footer-newsletter-col) { grid-template-columns: 1.2fr 1fr 1fr 1.1fr; }
}

@media (min-width: 1024px) {
  .footer-grid:has(.footer-widgets-col) { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; }
  .footer-grid:has(.footer-newsletter-col):has(.footer-widgets-col) {
    grid-template-columns: 1.1fr 0.9fr 0.9fr 1.1fr 1fr;
  }
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}

.footer-slogan {
  margin-top: 0.5rem;
  color: var(--color-accent);
  font-size: 0.9rem;
}

.footer-desc {
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: 0.88rem;
  max-width: 22rem;
}

.footer-contact-mini {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer-col h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-nav a { color: var(--color-muted); font-size: 0.88rem; }
.footer-nav a:hover { color: var(--color-text); opacity: 1; }

.footer-bottom-bar {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.82rem; color: var(--color-muted); }

.studio-back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  color: var(--color-text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.studio-back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* —— 布局 —— */
.studio-home { max-width: none; padding: 0; }
.studio-home > .content { max-width: none; padding: 0; }

.container.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: var(--layout-gap);
  padding-block: 2.5rem;
  align-items: start;
}

.container.layout:not(:has(.sidebar)) {
  grid-template-columns: 1fr;
  max-width: var(--page-max-width);
}

/* —— 入场动画 —— */
.studio-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.studio-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— 空状态 / 分页 / 面包屑 —— */
.studio-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-muted);
}

.studio-empty i { font-size: 2rem; display: block; margin-bottom: 0.75rem; opacity: 0.5; }

.studio-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.page-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.88rem;
}

.page-info { font-size: 0.85rem; color: var(--color-muted); }

.breadcrumb {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--color-muted); }
.breadcrumb .sep { margin: 0 0.35rem; opacity: 0.5; }

.page-header-block { margin-bottom: 2rem; }
.page-title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0.35rem 0; }

.studio-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 200;
  transition: transform 0.3s ease;
}

.studio-toast.show { transform: translateX(-50%) translateY(0); }

/* —— 响应式 —— */
@media (max-width: 1024px) {
  .services-grid,
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-hero-split-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { position: relative; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  body.studio-header-floating .studio-header { margin: 0; border-radius: 0; }

  .studio-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .studio-nav.open { display: flex; }
  .studio-nav .nav-cta { margin-left: 0; margin-top: 0.5rem; justify-content: center; }
  .studio-header { position: sticky; }

  .news-grid,
  .services-grid,
  .work-grid,
  .team-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }

  body.has-grid-bg .studio-grid-bg { opacity: 0.5; }
  body.has-glow-orbs .studio-glow-layer { display: none; }

  .container.layout {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-reveal { opacity: 1; transform: none; transition: none; }
  .studio-card:hover { transform: none; }
}
