/* 肥猫云 - 动漫肥猫 × 深蓝暖橙 响应式样式表 */
:root {
  --hero-bg: #1C2C42;
  --navy-sub: #253A54;
  --primary: #F4A340;
  --primary-hover: #E89128;
  --bg-page: #FFF8ED;
  --bg-surface: #FFFDF8;
  --bg-subtle: #F7EFE2;
  --text-heading: #202B3C;
  --text-body: #58616F;
  --text-hero: #FFFDF8;
  --text-hero-sub: #DCE6F2;
  --accent-link: #1C2C42;
  --border: #E8DCCB;
  --border-strong: #D7C6AE;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-width: 1120px;
  --shadow-sm: 0 2px 8px rgba(28, 44, 66, 0.06);
  --shadow-md: 0 10px 26px rgba(28, 44, 66, 0.09);
  --space-xl: 4rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

section[id],
h2[id],
h3[id],
article[id] {
  scroll-margin-top: 88px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--hero-bg);
  color: var(--text-hero);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 165px;
  height: auto;
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  color: var(--text-heading);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--bg-subtle);
  color: var(--hero-bg);
}

.site-nav a.nav-cta {
  background: var(--primary);
  color: var(--hero-bg);
  font-weight: 700;
  padding: 0.5rem 1.05rem;
}

.site-nav a.nav-cta:hover {
  background: var(--primary-hover);
  color: var(--hero-bg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.pricing-table .btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--hero-bg);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--hero-bg);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--hero-bg);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  color: var(--hero-bg);
}

.btn-dark {
  background: var(--hero-bg);
  color: var(--text-hero);
}

.btn-dark:hover {
  background: var(--navy-sub);
  color: var(--text-hero);
}

/* Hero Section - Full-width Blended Background */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--text-hero);
  padding: 4.25rem 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 63%;
  z-index: 1;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, #1C2C42 0%, rgba(28, 44, 66, 0.92) 14%, rgba(28, 44, 66, 0.52) 38%, rgba(28, 44, 66, 0) 68%),
    linear-gradient(180deg, rgba(28, 44, 66, 0.25) 0%, rgba(28, 44, 66, 0) 18%, rgba(28, 44, 66, 0) 84%, rgba(28, 44, 66, 0.28) 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  display: block;
}

.hero-inner {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 550px;
}

.hero-tag {
  display: inline-block;
  background: rgba(244, 163, 64, 0.16);
  color: #FFD196;
  border: 1px solid rgba(244, 163, 64, 0.45);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  line-height: 1.25;
  color: var(--text-hero);
}

.hero-subtitle {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: #FCD092;
  font-weight: 600;
}

.hero-desc {
  margin: 0 0 1.75rem;
  color: var(--text-hero-sub);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--text-hero-sub);
  font-size: 0.92rem;
}

.hero-visual {
  background: rgba(255, 253, 248, 0.05);
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: 0 14px 32px rgba(12, 20, 32, 0.25);
}

.hero-visual img,
.hero-visual svg {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 6px);
  object-fit: contain;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--text-heading);
}

.section-header p {
  margin: 0;
  color: var(--text-body);
}

/* Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(28, 44, 66, 0.05);
}

.card-img svg,
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card h3 {
  margin: 0;
  font-size: 1.16rem;
  color: var(--text-heading);
}

.card p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.96rem;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--navy-sub);
  font-weight: 700;
}

.card-link {
  margin-top: auto;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Streaming & AI Showcase */
.media-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.media-showcase h2 {
  color: var(--text-heading);
  margin-top: 0;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.35rem;
  padding: 0;
  list-style: none;
}

.badge-list li {
  background: var(--bg-subtle);
  color: var(--hero-bg);
  border: 1px solid var(--border-strong);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Pricing Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  text-align: left;
}

.pricing-table caption {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-heading);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-body);
}

.pricing-table thead th {
  background: var(--bg-surface);
  color: var(--text-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.pricing-table tbody th {
  color: var(--text-heading);
  font-weight: 700;
}

.pricing-table tbody tr:hover {
  background: var(--bg-page);
}

.price-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--hero-bg);
  white-space: nowrap;
}

.table-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-body);
}

/* Reviews */
.review-quote {
  margin: 0;
  color: var(--text-heading);
  font-size: 0.96rem;
}

.review-author {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-body);
  font-weight: 600;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.25rem 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.03rem;
  color: var(--text-heading);
  padding: 0.9rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--navy-sub);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0.85rem 0 1rem;
  color: var(--text-body);
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.faq-body p {
  margin: 0;
}

/* Subpages & Articles */
.page-banner {
  background: linear-gradient(145deg, var(--hero-bg) 0%, var(--navy-sub) 100%);
  color: var(--text-hero);
  padding: 2.5rem 0;
}

.page-banner h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: var(--text-hero);
}

.page-banner p {
  margin: 0;
  color: var(--text-hero-sub);
  max-width: 740px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-hero-sub);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: #FCD092;
}

.article-shell {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.article-shell h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.35rem;
  color: var(--text-heading);
}

.article-shell h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.12rem;
  color: var(--text-heading);
}

.article-shell p,
.article-shell li {
  color: var(--text-body);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-body);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-cta-box {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.center-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Footer - Strictly 4 Links */
.site-footer {
  background: var(--hero-bg);
  color: var(--text-hero-sub);
  padding: 2.25rem 0;
  margin-top: 2rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  background: var(--navy-sub);
  color: var(--text-hero);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 253, 248, 0.14);
}

.footer-links a:hover {
  border-color: var(--primary);
  color: #FCD092;
}

.footer-copy {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-hero-sub);
}

/* Layered Anime Scene Micro-Animations (Paused outside viewport & reduced motion) */
.anim-scene * {
  animation-play-state: paused;
}

.anim-scene.is-in-view * {
  animation-play-state: running;
}

.anim-cloud-slow {
  animation: cloudFloat 7s ease-in-out infinite;
}

.anim-cloud-alt {
  animation: cloudFloat 9s ease-in-out infinite reverse;
}

.anim-tail {
  transform-box: fill-box;
  transform-origin: 15% 80%;
  animation: tailWag 3.6s ease-in-out infinite;
}

.anim-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: catBlink 4.8s ease-in-out infinite;
}

.anim-steam-1 {
  animation: steamRise 3.2s ease-in-out infinite;
}

.anim-steam-2 {
  animation: steamRise 3.2s ease-in-out 1.2s infinite;
}

.anim-screen-glow {
  animation: screenGlow 3.4s ease-in-out infinite;
}

.anim-led {
  animation: robotLed 1.8s ease-in-out infinite;
}

.anim-dot-1 {
  offset-path: path("M 118 278 C 145 200, 175 155, 226 112");
  animation: dotMove 3.2s linear infinite;
}

.anim-dot-2 {
  offset-path: path("M 260 112 C 335 128, 395 162, 434 218");
  animation: dotMove 3.6s linear 0.9s infinite;
}

.anim-dot-3 {
  offset-path: path("M 432 232 C 385 268, 345 282, 298 282");
  animation: dotMove 2.8s linear 0.4s infinite;
}

@keyframes cloudFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes tailWag {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(7deg); }
}

@keyframes catBlink {
  0%, 44%, 48%, 92%, 96%, 100% { transform: scaleY(1); }
  46%, 94% { transform: scaleY(0.1); }
}

@keyframes steamRise {
  0% { transform: translateY(4px); opacity: 0.15; }
  50% { transform: translateY(-4px); opacity: 0.85; }
  100% { transform: translateY(-10px); opacity: 0.1; }
}

@keyframes screenGlow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

@keyframes robotLed {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes dotMove {
  0% { offset-distance: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    padding: 2.5rem 0 0;
  }

  .hero-inner {
    order: 1;
    padding-bottom: 1.5rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-bg {
    order: 2;
    position: relative;
    width: 100%;
    height: auto;
  }

  .hero-bg::before {
    background: linear-gradient(180deg, #1C2C42 0%, rgba(28, 44, 66, 0.72) 18%, rgba(28, 44, 66, 0) 48%);
  }

  .hero-bg img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: 55% center;
  }

  .media-showcase {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 136px;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .grid-3,
  .grid-2,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.25rem 0 0;
  }

  .section {
    padding: 2.5rem 0;
  }

  .article-shell,
  .media-showcase {
    padding: 1.25rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .anim-dot-1,
  .anim-dot-2,
  .anim-dot-3 {
    display: none;
  }
}
