/* ==========================================================================
   龙猫云 TotoroCloud — 全站核心样式
   ========================================================================== */

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #60A5FA;
  --heading: #0F172A;
  --background-light: #EFF6FF;
  --border: #DBEAFE;
  --text-gray: #64748B;
  --white: #FFFFFF;

  --success: #16A34A;
  --success-bg: #F0FDF4;
  --success-border: #BBF7D0;
  --warning: #D97706;
  --warning-bg: #FFFBEB;
  --warning-border: #FDE68A;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --danger-border: #FECACA;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(37, 99, 235, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
  --header-height: 72px;
  --container-width: 1160px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--heading);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

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

ul,
ol {
  padding-left: 1.4em;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 40px 0;
}

.section-alt {
  background: var(--background-light);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--background-light);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  color: var(--heading);
}

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

h1,
h2,
h3,
h4 {
  color: var(--heading);
  line-height: 1.35;
  font-weight: 700;
}

/* ---------------- Top notice bar ---------------- */
.notice-bar {
  background: var(--heading);
  color: #E2E8F0;
  font-size: 0.86rem;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.6;
}

.notice-bar strong {
  color: var(--white);
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--heading);
  flex-shrink: 0;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.brand-en {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-gray);
  display: block;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  color: var(--heading);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--background-light);
  color: var(--primary-dark);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--heading);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--white);
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 24px 20px 40px;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer a {
  display: block;
  padding: 14px 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  border-bottom: 1px solid var(--border);
}

.mobile-drawer .btn {
  margin-top: 20px;
}

.drawer-backdrop {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 98;
  display: none;
}

.drawer-backdrop.is-open {
  display: block;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  min-height: 44px;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--background-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--background-light);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.86rem;
  min-height: 38px;
}

.btn-block {
  width: 100%;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 56px 0 64px;
  background: radial-gradient(1100px 480px at 80% -10%, var(--background-light), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero-copy p {
  color: var(--text-gray);
  font-size: 1.08rem;
  margin: 0 0 28px;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--text-gray);
  font-size: 0.88rem;
}

.hero-meta li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  position: relative;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(37, 99, 235, 0.18));
}

/* ---------------- Stat numbers ---------------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: block;
}

.stat-label {
  color: var(--text-gray);
  font-size: 0.86rem;
  margin-top: 4px;
}

/* ---------------- Cards ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--background-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.card p {
  color: var(--text-gray);
  margin: 0 0 14px;
  font-size: 0.94rem;
}

.card .card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--background-light);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
  width: fit-content;
}

/* ---------------- Pricing cards ---------------- */
.price-card {
  padding: 0;
  overflow: hidden;
}

.price-card-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 30px 24px;
  text-align: center;
}

.price-card-amount {
  display: block;
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.price-card-amount span {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.85;
}

.price-card-name {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 16px;
  border-radius: 999px;
}

.price-card-features {
  list-style: none;
  margin: 0;
  padding: 22px 24px 4px;
}

.price-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.price-card-features svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.price-card-features strong {
  color: var(--heading);
  font-weight: 600;
}

.price-card .btn {
  display: flex;
  margin: 8px 24px 24px;
}

.price-card-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-gray);
  margin: 4px 0 28px;
}

/* ---------------- Callouts ---------------- */
.callout {
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: var(--background-light);
  margin: 20px 0;
  display: flex;
  gap: 12px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--primary);
}

.callout-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
}

.callout-warning .callout-icon {
  color: var(--warning);
}

.callout-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
}

.callout-danger .callout-icon {
  color: var(--danger);
}

.callout-success {
  background: var(--success-bg);
  border-color: var(--success-border);
}

.callout-success .callout-icon {
  color: var(--success);
}

.callout h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.callout p {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: var(--text-gray);
}

/* ---------------- FAQ (native details/summary) ---------------- */
.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 4px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--background-light);
  color: var(--primary-dark);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 4px 20px;
  color: var(--text-gray);
  font-size: 0.95rem;
  max-width: 74ch;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--heading);
  color: #CBD5E1;
  padding: 56px 0 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.88rem;
  color: #94A3B8;
  margin: 14px 0 0;
  max-width: 34ch;
}

.footer-col h5 {
  color: var(--white);
  font-size: 0.9rem;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #94A3B8;
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 22px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748B;
}

.footer-bottom p {
  margin: 0;
}

/* ---------------- Back to top ---------------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 90;
}

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

/* ---------------- Breadcrumb ---------------- */
.breadcrumb {
  font-size: 0.84rem;
  color: var(--text-gray);
  padding: 18px 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li::after {
  content: "/";
  margin-left: 6px;
  color: var(--border);
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: var(--text-gray);
}

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

.breadcrumb li:last-child {
  color: var(--heading);
  font-weight: 600;
}

/* ---------------- Fade in on scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* ---------------- Misc utility ---------------- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  background: var(--background-light);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 40px 0;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-gray);
  font-size: 0.95rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--background-light);
  border: 1px solid var(--border);
}

.list-check li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 8px 6px 18px;
  box-shadow: var(--shadow-sm);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  padding: 8px 0;
  font-family: inherit;
  color: var(--heading);
}

.search-empty {
  display: none;
  text-align: center;
  color: var(--text-gray);
  padding: 40px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.search-empty.is-visible {
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}

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