:root {
  --maya-green: #009e5c;
  --maya-green-dark: #007d48;
  --maya-green-soft: #ecfdf5;
  --maya-green-tint: #d1fae5;
  --maya-green-border: #a7f3d0;
  --obsidian: #1d1d1f;
  --obsidian-soft: #2c2c2e;
  --bg-page: #f5f5f7;
  --bg-card: #ffffff;
  --bg-prose: #f9f9fb;
  --text-primary: #1d1d1f;
  --text-heading: #1d1d1f;
  --text-secondary: #515154;
  --text-muted: #6e6e73;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-text: #92400e;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #991b1b;
  --info-bg: #f5f5f7;
  --info-border: #d2d2d7;
  --info-text: #1d1d1f;
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.035);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.075);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --header-height: 54px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #00b86b, #34d399, #38bdf8);
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ================= HERO BANNER (DYNAMIC ANIMATED FINTECH COLLAGE) ================= */
@keyframes heroDriftDesktop {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-1600px, 0, 0); }
}

@keyframes heroDriftMobile {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-720px, 0, 0); }
}

@keyframes heroAuroraBreath {
  0%, 100% { opacity: 0.42; transform: translate3d(-4%, 0, 0) scale(1); }
  50%      { opacity: 0.72; transform: translate3d(4%, -4%, 0) scale(1.08); }
}

.hero {
  background: linear-gradient(105deg, #073d66 0%, #0a5f85 50%, #0b7574 100%);
  color: #ffffff;
  min-height: 268px;
  padding: 46px 36px 40px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

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

.hero-bg-motion::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(105deg, rgba(6, 26, 46, 0.60) 0%, rgba(7, 38, 56, 0.44) 55%, rgba(6, 44, 58, 0.30) 100%);
}

.hero-bg-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 4800px;
  height: 100%;
  background-image: url('images/hero-bg.svg');
  background-repeat: repeat-x;
  background-position: left center;
  background-size: 1600px 320px;
  will-change: transform;
  animation: heroDriftDesktop 48s linear infinite;
}

.hero.subpage .hero-bg-track {
  background-image: url('../images/hero-bg.svg');
}

.hero-aurora {
  position: absolute;
  inset: -30% -10%;
  z-index: 1;
  background:
    radial-gradient(circle at 22% 35%, rgba(56, 189, 248, 0.30) 0%, transparent 46%),
    radial-gradient(circle at 78% 68%, rgba(16, 185, 129, 0.28) 0%, transparent 48%);
  mix-blend-mode: screen;
  will-change: transform, opacity;
  animation: heroAuroraBreath 10s ease-in-out infinite;
}

.hero-inner {
  max-width: 1520px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.hero-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  text-decoration: none;
  color: #ffffff;
  width: fit-content;
}

.hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
  flex-shrink: 0;
  background: #0f172a;
}

.hero-author-name {
  font-size: 25px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.hero-author-domain {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

/* Hero 4 Services Strip */
.hero-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-service-item {
  background: rgba(15, 23, 42, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-service-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  line-height: 1.35;
}

.hero-service-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
}

/* Hero Single-Row 5 Contact Pills */
.hero-contacts {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 35px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.hero-contact-pill:hover {
  background: rgba(15, 23, 42, 0.74);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.pill-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
}

.hero-contact-pill .copy-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 184, 107, 0.36);
  border: 1px solid rgba(110, 231, 183, 0.4);
  color: #ecfdf5;
}

/* ================= PORTAL CATEGORY NAVIGATION BAR ================= */
.portal-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(11, 23, 41, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-nav-inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  transition: all 0.15s ease;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  color: #ffffff;
  background: var(--maya-green);
}

.nav-search {
  position: relative;
  flex-shrink: 0;
}

.nav-search input {
  width: 210px;
  height: 34px;
  padding: 0 12px 0 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.15s ease;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.nav-search input:focus {
  width: 250px;
  border-color: var(--maya-green);
  background: rgba(15, 23, 42, 0.85);
}

.nav-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

/* ================= HOMEPAGE PORTAL LAYOUT ================= */
.portal-main {
  max-width: 1312px;
  margin: 0 auto;
  padding: 28px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* Top Split: Left Featured Tutorial + Right Beginner Roadmap */
.home-split {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.featured-card:hover {
  box-shadow: var(--shadow-md);
}

.featured-cover {
  position: relative;
  min-height: 285px;
  padding: 32px 30px;
  background: linear-gradient(135deg, #043e2d 0%, #057a55 52%, #00b86b 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.featured-cover::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.featured-cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.cover-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 12.5px;
  font-weight: 700;
}

.featured-cover-title {
  margin: 18px 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.featured-cover-sub {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.featured-body {
  padding: 22px 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 14px;
}

.featured-meta {
  font-size: 13px;
  color: var(--maya-green-dark);
  font-weight: 700;
}

.featured-body h2 {
  margin: 4px 0 8px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text-heading);
}

.featured-body p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.soft-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
}

.soft-tag.green {
  background: var(--maya-green-soft);
  color: var(--maya-green-dark);
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--maya-green);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--maya-green-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text-heading);
  border: 1px solid var(--border-light);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--maya-green);
  color: var(--maya-green-dark);
}

/* Right Card: 新手从这里开始 */
.roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.roadmap-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-heading);
}

.roadmap-head p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.roadmap-item:hover {
  background: var(--maya-green-soft);
  border-color: var(--maya-green-border);
  transform: translateX(2px);
}

.roadmap-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0ea5e9;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.roadmap-item.is-live .roadmap-num {
  background: var(--maya-green);
}

.roadmap-text {
  min-width: 0;
  flex: 1;
}

.roadmap-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.35;
}

.roadmap-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roadmap-arrow {
  color: #94a3b8;
  font-weight: 700;
  font-size: 15px;
}

.roadmap-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.roadmap-cta:hover {
  transform: translateY(-1px);
}

.roadmap-cta-title {
  font-size: 14px;
  font-weight: 700;
}

.roadmap-cta-sub {
  font-size: 12px;
  color: #cbd5e1;
}

.roadmap-cta-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--maya-green);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ================= TUTORIAL & RESOURCE GRID ================= */
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.section-bar h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--text-heading);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--maya-green);
  color: var(--maya-green-dark);
}

.filter-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--maya-green-border);
}

.post-cover {
  padding: 20px 20px 18px;
  min-height: 148px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.post-cover.theme-maya    { background: linear-gradient(135deg, #043e2d, #00b86b); }
.post-cover.theme-apple   { background: linear-gradient(135deg, #0f172a, #2563eb); }
.post-cover.theme-esim    { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.post-cover.theme-vcard   { background: linear-gradient(135deg, #1e1b4b, #4f46e5); }
.post-cover.theme-ai      { background: linear-gradient(135deg, #064e3b, #0d9488); }
.post-cover.theme-broker1 { background: linear-gradient(135deg, #172554, #0284c7); }
.post-cover.theme-broker2 { background: linear-gradient(135deg, #9a3412, #f97316); }
.post-cover.theme-hkbank  { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.post-cover.theme-visa    { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }

.post-cover-top {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.88;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-status-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
}

.post-status-pill.live {
  background: #00b86b;
  color: #ffffff;
}

.post-cover-main {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.28;
  margin: 10px 0 4px;
}

.post-cover-sub {
  font-size: 12px;
  opacity: 0.88;
}

.post-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.post-cat-tag {
  padding: 2px 8px;
  border-radius: 5px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.post-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-heading);
  font-weight: 700;
}

.post-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.68;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: #ffffff;
  border: 1px dashed var(--border-light);
  border-radius: 16px;
  color: var(--text-muted);
}

/* ================= TUTORIAL DETAIL PAGE LAYOUT ================= */
.layout {
  max-width: 1360px;
  margin: 0 auto;
  padding: 26px 24px 80px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
}

.layout.no-right {
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 74px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 94px);
  overflow-y: auto;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  transition: all 0.15s ease;
}

.toc-link:hover {
  background: #f1f5f9;
  color: var(--text-heading);
}

.toc-link.active {
  background: var(--maya-green-soft);
  color: var(--maya-green-dark);
  font-weight: 700;
}

.toc-num {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toc-link.active .toc-num {
  background: var(--maya-green);
  color: #ffffff;
}

.sidebar-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.reset-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.reset-btn:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

/* Right Sticky Quick Links Sidebar on Detail Page */
.right-rail {
  position: sticky;
  top: 74px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.rail-title {
  margin: 0 0 12px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rail-link-box {
  display: block;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  margin-bottom: 9px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.55;
  transition: all 0.15s ease;
}

.rail-link-box:last-child {
  margin-bottom: 0;
}

.rail-link-box:hover {
  border-color: var(--maya-green);
  background: var(--maya-green-soft);
}

.rail-link-box strong {
  display: block;
  color: var(--text-heading);
  font-size: 13.5px;
  margin-bottom: 2px;
}

/* Breadcrumb & Article Title */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--maya-green-dark);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-title-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}

.article-title-card h1 {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.38;
  font-weight: 800;
  color: var(--text-heading);
}

/* Content Stream & Step Cards */
.content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.chapter {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chapter-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: linear-gradient(90deg, #ffffff 0%, #f8fdfb 100%);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--maya-green);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.chapter-num {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--maya-green-soft);
  color: var(--maya-green-dark);
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chapter-header h2 {
  margin: 0;
  font-size: 19.5px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text-heading);
}

.editorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  font-size: 15.5px;
  line-height: 1.9;
}

.editorial-card p {
  margin: 0 0 14px;
}

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

.editorial-card strong {
  color: var(--text-heading);
  font-weight: 700;
}

.point-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 18px;
}

.point-item {
  background: var(--bg-prose);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--maya-green);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 14.5px;
  line-height: 1.8;
}

.point-item > strong:first-child {
  display: block;
  color: var(--maya-green-dark);
  font-size: 15px;
  margin-bottom: 6px;
}

/* Step Cards */
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  box-shadow: var(--shadow-md);
}

.step-card.is-done {
  border-color: var(--maya-green-border);
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: #fafcfb;
}

.step-card.is-done .step-head {
  background: var(--maya-green-soft);
}

.step-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--maya-green);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.4;
}

.done-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.done-btn:hover {
  border-color: var(--maya-green);
  color: var(--maya-green-dark);
}

.step-card.is-done .done-btn {
  background: var(--maya-green);
  border-color: var(--maya-green);
  color: #ffffff;
}

.step-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Equal-size aligned screenshot gallery */
.img-grid {
  display: grid;
  gap: 14px;
  justify-items: center;
  align-items: stretch;
}

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

.shot-frame {
  margin: 0;
  width: 100%;
  max-width: 340px;
  height: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.img-grid.cols-3 .shot-frame,
.img-grid.cols-4 .shot-frame {
  max-width: 100%;
}

.shot-frame:hover {
  transform: translateY(-2px);
  border-color: var(--maya-green);
  box-shadow: var(--shadow-md);
}

.shot-frame.wide {
  max-width: 100%;
}

.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 9px;
  background: #ffffff;
}

.shot-frame:not(.wide) img {
  aspect-ratio: 9 / 19.2;
  object-fit: contain;
  background: #f8fafc;
}

.shot-caption {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.zoom-hint {
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #eef2f6;
  color: #475569;
}

.step-text {
  background: var(--bg-prose);
  border: 1px solid var(--border-subtle);
  border-left: 3.5px solid var(--maya-green);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.88;
  color: var(--text-primary);
}

.step-text p { margin: 0 0 9px; }
.step-text p:last-child { margin-bottom: 0; }
.step-text strong { color: var(--text-heading); font-weight: 700; }
.step-text ul, .step-text ol { margin: 7px 0; padding-left: 20px; }
.step-text li { margin-bottom: 5px; }

.action-pill {
  display: inline-block;
  padding: 1px 8px;
  margin: 0 2px;
  border-radius: 6px;
  background: var(--maya-green-soft);
  border: 1px solid var(--maya-green-border);
  color: var(--maya-green-dark);
  font-size: 13.5px;
  font-weight: 700;
}

.callout {
  border-radius: var(--radius-md);
  padding: 14px 17px;
  font-size: 14.5px;
  line-height: 1.82;
  border: 1px solid;
  margin-top: 12px;
}

.callout-title {
  font-weight: 700;
  font-size: 14.8px;
  margin-bottom: 4px;
}

.callout.warn   { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.callout.danger { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger-text); }
.callout.info   { background: var(--info-bg); border-color: var(--info-border); color: var(--info-text); }
.callout.tip    { background: var(--maya-green-soft); border-color: var(--maya-green-border); color: #065f46; }

/* Contact Cards Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.contact-item {
  background: var(--bg-prose);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-item:hover {
  border-color: var(--maya-green);
  box-shadow: var(--shadow-sm);
}

.contact-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.contact-icon.wx  { background: #07c160; }
.contact-icon.qq  { background: #12b7f5; }
.contact-icon.x   { background: #0f172a; }
.contact-icon.tg  { background: #229ed9; }
.contact-icon.tgc { background: #0088cc; }

.contact-label { font-size: 12.5px; color: var(--text-muted); line-height: 1.3; }
.contact-val   { font-size: 15px; font-weight: 700; color: var(--text-heading); word-break: break-all; }

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--maya-green-border);
  background: var(--maya-green-soft);
  color: var(--maya-green-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.contact-action:hover {
  background: var(--maya-green);
  border-color: var(--maya-green);
  color: #ffffff;
}

/* Modal for Coming-Soon / Quick Consultation */
.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.consult-modal.open {
  display: flex;
}

.consult-box {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  position: relative;
}

.consult-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 16px;
  cursor: pointer;
}

.consult-box h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--text-heading);
}

.consult-box p {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.consult-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Footer (Portal Unified Dark Footer) */
.site-footer {
  background: #0b1729;
  color: #cbd5e1;
  padding: 40px 24px 32px;
  font-size: 13.5px;
}

.footer-inner {
  max-width: 1312px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.footer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--maya-green);
}

.footer-risk {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.7;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #64748b;
}

/* Lightbox, Toast, Mobile FAB */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(6px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open { display: flex; }
.lightbox-stage { max-width: 92vw; max-height: 82vh; display: flex; align-items: center; justify-content: center; }
.lightbox-img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); background: #ffffff; }
.lightbox-bar { margin-top: 14px; color: #f8fafc; font-size: 14px; text-align: center; display: flex; align-items: center; gap: 14px; }
.lightbox-close, .lightbox-nav { position: fixed; border: none; background: rgba(255, 255, 255, 0.16); color: #ffffff; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3000;
}

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

.mobile-toc-fab {
  display: none;
  position: fixed;
  left: 18px;
  bottom: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-heading);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  z-index: 820;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--maya-green);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 184, 107, 0.36);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 800;
}

.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); background: var(--maya-green-dark); }

.drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 950; }
.drawer-backdrop.open { display: block; }

/* Shared Top Scrolling Announcement Ticker (Desktop & Mobile, Hover to Pause) */
@keyframes marqueeSlide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.3333%); }
}

.top-marquee {
  display: block;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  color: #1d1d1f;
  overflow: hidden;
}

.top-marquee[hidden] {
  display: none;
}

.top-marquee-inner {
  max-width: 1520px;
  margin: 0 auto;
  height: 36px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.marquee-badge {
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 999px;
  background: #1d1d1f;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.marquee-viewport {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  animation: marqueeSlide 28s linear infinite;
}

.top-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-size: 13px;
  font-weight: 600;
  padding-right: 72px;
  color: #1d1d1f;
}

.mob-colon {
  display: none;
}

/* ================= APPLE BENTO FUSION — SCHEME F (AIRY WHITE CARDS + PURE TITLES) ================= */
.apple-bar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(245, 245, 247, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.045);
}

.apple-bar-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 14px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.apple-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.apple-tabs::-webkit-scrollbar { display: none; }

.nav-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: rgba(0, 0, 0, 0.14);
  margin: 0 5px;
  flex-shrink: 0;
}

.apple-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.065);
  background: #ffffff;
  color: #1d1d1f;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.apple-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.16);
}

.apple-tab.active {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.apple-search {
  position: relative;
  flex-shrink: 0;
}

.apple-search input {
  width: 185px;
  height: 38px;
  padding: 0 12px 0 34px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: #ffffff;
  color: #1d1d1f;
  font-size: 13px;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  outline: none;
  transition: all 0.18s ease;
}

.apple-search input:focus {
  width: 215px;
  background: #ffffff;
  border-color: #1d1d1f;
}

.apple-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #6e6e73;
  pointer-events: none;
}

.bento-main {
  max-width: 1520px;
  margin: 0 auto;
  padding: 24px 36px 40px;
  min-height: calc(100vh - 332px);
  display: flex;
  flex-direction: column;
}

/* Desktop notice card hidden globally since top scrolling marquee handles both Desktop & Mobile */
.notice-bar {
  display: none;
}

.notice-bar[hidden] {
  display: none;
}

.notice-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.notice-badge {
  flex-shrink: 0;
  padding: 3px 11px;
  border-radius: 999px;
  background: #1d1d1f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.notice-text {
  font-size: 14px;
  color: #1d1d1f;
  line-height: 1.55;
  font-weight: 500;
}

.notice-date {
  flex-shrink: 0;
  font-size: 12.5px;
  color: #6e6e73;
  font-weight: 600;
}

/* Two-Row Section Layout: Row 1 实测教程 (2 Equal Wide Cards) + Row 2 精选商品 (4 Equal Cards) */
.bento-sections {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.bento-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bento-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bento-section-title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.bento-section-count {
  font-size: 13px;
  font-weight: 600;
  color: #86868b;
  white-space: nowrap;
}

.bento-row {
  display: grid;
  gap: 20px;
}

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

.bento-row-shop {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bento-tile {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.065);
  border-radius: 28px;
  padding: 30px 32px;
  min-height: 224px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: #1d1d1f;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.032);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.bento-row-tutorial .bento-tile {
  min-height: 256px;
  padding: 34px 36px;
}

.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.14);
}

.bento-tile.featured,
.bento-tile.has-cover {
  background: #101417;
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.bento-tile.featured:hover,
.bento-tile.has-cover:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.22);
}

.bento-tile.featured:hover {
  border-color: rgba(0, 229, 139, 0.42);
}

.bento-tile-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-tile.has-cover:hover .bento-tile-cover {
  transform: scale(1.045);
}

.bento-tile-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(10, 14, 18, 0.90) 0%,
    rgba(10, 14, 18, 0.64) 42%,
    rgba(10, 14, 18, 0.14) 72%,
    rgba(10, 14, 18, 0.06) 100%
  );
  pointer-events: none;
}

.bento-top,
.bento-bottom {
  position: relative;
  z-index: 2;
}

.bento-tile.has-cover .bento-tag {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
}

.bento-tile.featured .bento-tag {
  background: rgba(0, 184, 107, 0.28);
  border-color: rgba(110, 231, 183, 0.42);
  color: #a7f3d0;
}

.bento-tile.has-cover .bento-arrow {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
}

.bento-tile.has-cover .bento-title {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.bento-tile.has-cover .bento-sub {
  color: rgba(255, 255, 255, 0.80);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.bento-row-shop .bento-title {
  font-size: 20px;
}

.bento-row-shop .bento-sub {
  font-size: 13px;
}

.bento-tile.live-tile {
  border-color: rgba(0, 158, 92, 0.35);
}

.bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bento-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #515154;
}

.bento-tile.featured .bento-tag {
  background: rgba(0, 158, 92, 0.24);
  color: #6ee7b7;
}

.bento-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f5f5f7;
  color: #1d1d1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease;
}

.bento-tile:hover .bento-arrow {
  transform: translate(2px, -2px);
}

.bento-tile.featured .bento-arrow {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.bento-title {
  margin: 24px 0 8px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.bento-sub {
  margin: 0;
  font-size: 15.5px;
  color: #6e6e73;
  line-height: 1.55;
}

.bento-tile.featured .bento-sub {
  color: rgba(255, 255, 255, 0.78);
}

/* Level-2 Category Subheader & Compact Sub-Cards ("小框架列表") */
.bento-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.bento-subheader[hidden] {
  display: none;
}

.subhead-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.subhead-back {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.subhead-back:hover {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #ffffff;
}

.subhead-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #1d1d1f;
  letter-spacing: -0.015em;
}

.subhead-count {
  font-size: 13px;
  font-weight: 600;
  color: #6e6e73;
  white-space: nowrap;
}

.bento-grid.sub-grid {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.sub-tile {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.065);
  border-radius: 28px;
  padding: 32px 34px;
  min-height: 256px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: #1d1d1f;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.032);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sub-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.085);
  border-color: rgba(0, 0, 0, 0.15);
}

.sub-tile.is-live {
  background: #111518;
  border-color: #111518;
  color: #ffffff;
}

.sub-tile.is-live:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  border-color: rgba(0, 229, 139, 0.45);
}

.sub-tile-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sub-tile.has-cover:hover .sub-tile-cover {
  transform: scale(1.045);
}

.sub-tile-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(9, 14, 18, 0.14) 0%,
    rgba(9, 14, 18, 0.08) 42%,
    rgba(9, 14, 18, 0.72) 82%,
    rgba(9, 14, 18, 0.90) 100%
  );
  pointer-events: none;
}

.sub-tile-top,
.sub-tile-body {
  position: relative;
  z-index: 2;
}

.sub-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sub-tile-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #515154;
}

.sub-tile.is-live .sub-tile-tag {
  background: rgba(0, 184, 107, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(110, 231, 183, 0.45);
  color: #ecfdf5;
}

.sub-tile-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f7;
  color: #1d1d1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.18s ease;
}

.sub-tile:hover .sub-tile-arrow {
  transform: translate(2px, -2px);
}

.sub-tile.is-live .sub-tile-arrow {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
}

.sub-tile-title {
  margin: 20px 0 6px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.sub-tile.has-cover .sub-tile-title {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.sub-tile-sub {
  margin: 0;
  font-size: 14.5px;
  color: #6e6e73;
  line-height: 1.5;
}

.sub-tile.is-live .sub-tile-sub {
  color: rgba(255, 255, 255, 0.86);
}

.bento-grid.sub-grid .empty-state {
  grid-column: 1 / -1;
}

.btn-obsidian {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  background: #1d1d1f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease;
}

.btn-obsidian:hover { opacity: 0.88; }

.apple-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: #ffffff;
  padding: 26px 24px;
}

.apple-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.apple-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #1d1d1f;
}

.apple-footer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.apple-footer-meta {
  font-size: 12.5px;
  color: #6e6e73;
}

@media (max-width: 1220px) {
  .bento-row-shop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .bento-row-shop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .bento-row-tutorial,
  .bento-row-shop,
  .bento-grid.sub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    min-height: 230px;
    padding: 32px 20px 28px;
  }
  .apple-bar-inner { padding: 12px 20px; }
  .bento-main { padding: 20px 20px 36px; }
}

@media (max-width: 640px) {
  .apple-bar-inner { padding: 10px 14px; }
  .apple-search { display: none; }
  .bento-main { padding: 16px 14px 36px; }
  .notice-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }
  .bento-row-tutorial,
  .bento-row-shop,
  .bento-grid.sub-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .bento-tile,
  .bento-row-tutorial .bento-tile {
    padding: 24px;
    min-height: 168px;
    border-radius: 22px;
  }
}
.simple-cat-bar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #ffffff;
  border-bottom: 2px solid #dbeafe;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.simple-cat-inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cat-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1.5px solid #bfdbfe;
  background: #f8fbff;
  color: #1e3a8a;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cat-tab:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.cat-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.cat-tab-num {
  font-size: 11.5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.cat-tab.active .cat-tab-num {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.simple-search {
  position: relative;
  flex-shrink: 0;
}

.simple-search input {
  width: 190px;
  height: 36px;
  padding: 0 12px 0 32px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: var(--text-heading);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.15s ease;
}

.simple-search input:focus {
  width: 225px;
  border-color: #2563eb;
  background: #ffffff;
}

.simple-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #64748b;
  pointer-events: none;
}

.simple-main {
  max-width: 1312px;
  margin: 0 auto;
  padding: 26px 24px 72px;
  min-height: 50vh;
}

.dir-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dir-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-heading);
}

.dir-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.dir-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dir-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all 0.16s ease;
}

.dir-row:hover {
  border-color: #2563eb;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.dir-row.is-live {
  border-left: 4.5px solid var(--maya-green);
}

.dir-row-main {
  min-width: 0;
  flex: 1;
}

.dir-row-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.dir-cat {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.dir-row.is-live .dir-cat {
  background: var(--maya-green-soft);
  color: var(--maya-green-dark);
  border-color: var(--maya-green-border);
}

.dir-date {
  font-size: 12.5px;
  color: var(--text-muted);
}

.dir-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.45;
  margin-bottom: 4px;
}

.dir-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.dir-btn {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.dir-btn.live {
  background: var(--maya-green);
  color: #ffffff;
}

.dir-btn.soon {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

@media (max-width: 760px) {
  .simple-cat-inner {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .simple-search input,
  .simple-search input:focus {
    width: 100%;
  }
  .simple-main {
    padding: 20px 14px 56px;
  }
  .dir-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
    gap: 12px;
  }
  .dir-btn {
    width: 100%;
    text-align: center;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .right-rail {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero-contacts { flex-wrap: wrap; }
}

@media (max-width: 980px) {
  .home-split { grid-template-columns: minmax(0, 1fr); }
  .hero-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: minmax(0, 1fr); padding: 18px 16px 68px; }
  .mobile-toc-fab { display: inline-flex; align-items: center; gap: 6px; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 280px; max-height: 100vh;
    border-radius: 0; z-index: 980; transform: translateX(-100%); transition: transform 0.25s ease;
  }
  .sidebar.open { transform: translateX(0); }
}

@media (max-width: 720px) {
  .nav-search { display: none; }
  .posts-grid { grid-template-columns: minmax(0, 1fr); }
  .point-list { grid-template-columns: minmax(0, 1fr); }
  .img-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  /* 1. Slim Scrolling Announcement Bar at Very Top (Above Avatar) */
  .top-marquee-inner {
    height: 32px;
    padding: 0 12px;
    gap: 8px;
  }
  .marquee-badge {
    padding: 2px 7px;
    font-size: 10.5px;
  }
  .marquee-track {
    animation-duration: 24s;
  }
  .marquee-track span {
    font-size: 12px;
    padding-right: 48px;
  }

  /* 2. Compact Scaled Mobile Hero + Symmetrical 2-Row Equal-Width Translucent Contacts */
  .hero {
    min-height: 148px;
    padding: 14px 12px 13px;
  }
  .hero-bg-track {
    width: 2160px;
    background-size: 720px 144px;
    background-repeat: repeat;
    background-position: left top;
    animation: heroDriftMobile 34s linear infinite;
  }
  .hero-author {
    gap: 10px;
    margin-bottom: 10px;
  }
  .hero-avatar {
    width: 44px;
    height: 44px;
    border-width: 2.5px;
  }
  .hero-author-name {
    font-size: 19px;
  }
  .mob-hide {
    display: none;
  }
  .mob-colon {
    display: inline;
  }
  .hero-contacts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
  }
  .hero-contact-pill {
    grid-column: span 2;
    justify-content: center;
    height: 30px;
    padding: 0 5px;
    font-size: 10.8px;
    font-weight: 600;
    gap: 4px;
    border-radius: 9px;
    background: rgba(10, 18, 30, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-contact-pill:nth-child(4),
  .hero-contact-pill:nth-child(5) {
    grid-column: span 3;
    font-size: 11.5px;
  }
  .pill-svg {
    width: 13px;
    height: 13px;
  }
  .hero-contact-pill .copy-tag {
    display: none;
  }

  /* 3. Mobile 2-Row Wrapped Scheme F White Card Tabs (Zero Clipped Tabs!) */
  .apple-bar {
    position: relative;
    top: auto;
    border-bottom: none;
  }
  .apple-bar-inner {
    padding: 12px 12px 4px;
    min-height: auto;
  }
  .apple-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    height: auto;
    gap: 6px;
    padding: 0;
    width: 100%;
  }
  .nav-sep {
    display: none;
  }
  .apple-tab {
    padding: 6px 11px;
    border-radius: 10px;
    font-size: 12.5px;
    flex: 0 1 auto;
  }
  .apple-search { display: none; }

  /* 4. Tighter Mobile Main Bento Spacing */
  .bento-main { padding: 12px 12px 32px; }
  .bento-sections { gap: 18px; }
  .bento-section { gap: 10px; }
  .bento-section-title { font-size: 18px; }
  .bento-section-count { font-size: 12px; }
  .bento-row-tutorial,
  .bento-row-shop,
  .bento-grid.sub-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .bento-tile,
  .bento-row-tutorial .bento-tile {
    padding: 20px 22px;
    min-height: 158px;
    border-radius: 20px;
  }
  .bento-title {
    font-size: 20px;
    margin: 14px 0 4px;
  }
  .bento-sub {
    font-size: 13px;
  }
  .hero-services { grid-template-columns: minmax(0, 1fr); }
  .portal-main { padding: 20px 14px 60px; }
  .img-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consult-actions { grid-template-columns: minmax(0, 1fr); }
}

/* ================= INTERACTIVE 3D-STYLE 米瓜 DESK PET + COFFEE COUNTER ================= */
@keyframes armTypeL {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-5px) rotate(8deg); }
}

@keyframes armTypeR {
  0%, 100% { transform: translateY(-4px) rotate(-7deg); }
  50%      { transform: translateY(1px) rotate(2deg); }
}

@keyframes headBobIdle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(1.8px) rotate(-1.2deg); }
}

@keyframes headBobTurbo {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50%      { transform: translateY(3.5px) rotate(3deg); }
}

@keyframes headDrinkNod {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  35%, 65% { transform: translateY(-2px) rotate(-10deg); }
}

@keyframes coffeeCupDrink {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(-24px, -30px) rotate(-28deg); }
  75%  { transform: translate(-26px, -32px) rotate(-36deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes steamFloat {
  0%, 100% { opacity: 0.35; transform: translateY(1px); }
  50%      { opacity: 0.95; transform: translateY(-3px); }
}

@keyframes sparkPop {
  0%, 100% { opacity: 0.15; transform: translateY(4px) scale(0.7); }
  50%      { opacity: 1; transform: translateY(-6px) scale(1.15); }
}

@keyframes zzzFloat {
  0%   { opacity: 0; transform: translate(0, 6px) scale(0.8); }
  45%  { opacity: 0.95; transform: translate(3px, -4px) scale(1); }
  100% { opacity: 0; transform: translate(7px, -16px) scale(1.1); }
}

@keyframes petSparklePop {
  0%   { opacity: 0; transform: translate(-50%, 6px) scale(0.7); }
  25%  { opacity: 1; transform: translate(-50%, -14px) scale(1.08); }
  100% { opacity: 0; transform: translate(-50%, -32px) scale(0.96); }
}

.migua-pet-root {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  user-select: none;
}

.pet-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Permanent "联系客服" Floating Pill above the 3D Mascot */
.pet-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  margin-bottom: -4px;
  border-radius: 999px;
  border: 1px solid rgba(0, 158, 92, 0.24);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  z-index: 4;
}

.pet-top-badge:hover {
  transform: translateY(-2px);
  background: #009e5c;
  border-color: #009e5c;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 158, 92, 0.28);
}

.pet-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00c46f;
  box-shadow: 0 0 0 3px rgba(0, 196, 111, 0.24);
  flex-shrink: 0;
}

.pet-top-badge:hover .pet-badge-dot {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.migua-pet-root.is-open .pet-top-badge {
  display: none;
}

.pet-avatar-btn {
  position: relative;
  width: 136px;
  height: 120px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.24));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.pet-avatar-btn:active { cursor: grabbing; }
.pet-avatar-btn:hover { transform: scale(1.04); }

.pet-scene {
  position: relative;
  width: 136px;
  height: 120px;
}

.pet-turbo-glow-bg {
  position: absolute;
  left: 16px;
  top: 22px;
  width: 104px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 139, 0.42) 0%, rgba(0, 229, 139, 0) 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.pet-upper-body {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 96px;
  height: 94px;
  margin-left: -48px;
  transform-origin: 50% 90%;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.pet-3d-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.pet-desk-overlay {
  position: absolute;
  inset: 0;
  width: 136px;
  height: 120px;
  display: block;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}

.pet-arm-l,
.pet-arm-r,
.pet-coffee-cup {
  transform-box: fill-box;
  transform-origin: center;
}

.pet-sparks,
.pet-zzz {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.coffee-steam {
  animation: steamFloat 2s ease-in-out infinite;
}

/* --- STATE 1: Normal Typing (Real 3D Chubby Toy Gently Bobbing + Paws Tapping) --- */
.migua-pet-root.state-typing .pet-3d-img {
  animation: headBobIdle 1.4s ease-in-out infinite;
}
.migua-pet-root.state-typing .pet-arm-l {
  animation: armTypeL 0.54s ease-in-out infinite;
}
.migua-pet-root.state-typing .pet-arm-r {
  animation: armTypeR 0.54s ease-in-out infinite;
}

/* --- STATE 2: Drinking Coffee --- */
.migua-pet-root.state-drinking .pet-3d-img {
  animation: headDrinkNod 1.15s ease-in-out forwards;
}
.migua-pet-root.state-drinking .pet-coffee-cup {
  animation: coffeeCupDrink 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* --- STATE 3: TURBO Frantic Typing after Coffee! --- */
.migua-pet-root.state-turbo .pet-3d-img {
  animation: headBobTurbo 0.2s ease-in-out infinite;
}
.migua-pet-root.state-turbo .pet-arm-l {
  animation: armTypeL 0.11s linear infinite;
}
.migua-pet-root.state-turbo .pet-arm-r {
  animation: armTypeR 0.11s linear infinite;
}
.migua-pet-root.state-turbo .pet-sparks,
.migua-pet-root.state-turbo .pet-turbo-glow-bg { opacity: 1; }
.migua-pet-root.state-turbo .spark-1 { animation: sparkPop 0.52s ease-in-out infinite; }
.migua-pet-root.state-turbo .spark-2 { animation: sparkPop 0.52s ease-in-out 0.16s infinite; }
.migua-pet-root.state-turbo .spark-3 { animation: sparkPop 0.58s ease-in-out 0.08s infinite; }
.migua-pet-root.state-turbo .spark-4 { animation: sparkPop 0.58s ease-in-out 0.28s infinite; }
.migua-pet-root.state-turbo .pet-laptop-dot { fill: #00e58b; }

/* --- STATE 4: Slowing Down --- */
.migua-pet-root.state-slowing .pet-upper-body {
  transform: translateY(7px) rotate(-5deg);
}
.migua-pet-root.state-slowing .pet-3d-img {
  animation: headBobIdle 2.2s ease-in-out infinite;
}
.migua-pet-root.state-slowing .pet-arm-l {
  animation: armTypeL 1.35s ease-in-out infinite;
}
.migua-pet-root.state-slowing .pet-arm-r {
  animation: armTypeR 1.35s ease-in-out infinite;
}

/* --- STATE 5: Exhausted & Slumped Flat on Desk Sleeping! --- */
.migua-pet-root.state-sleeping .pet-upper-body {
  transform: translateY(22px) rotate(-18deg) scaleY(0.86);
  filter: brightness(0.92);
}
.migua-pet-root.state-sleeping .pet-zzz { opacity: 1; }
.migua-pet-root.state-sleeping .zzz-1 { animation: zzzFloat 2.4s ease-out infinite; }
.migua-pet-root.state-sleeping .zzz-2 { animation: zzzFloat 2.4s ease-out 0.7s infinite; }
.migua-pet-root.state-sleeping .zzz-3 { animation: zzzFloat 2.4s ease-out 1.4s infinite; }

/* Coffee Feed Dock Pill + Real Global Count */
.pet-coffee-dock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.pet-coffee-dock:hover {
  transform: translateY(-2px);
  background: #1d1d1f;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.pet-coffee-dock:active {
  transform: scale(0.95);
}

.coffee-dock-svg {
  width: 14px;
  height: 14px;
  color: #d97706;
  flex-shrink: 0;
}

.pet-coffee-dock:hover .coffee-dock-svg {
  color: #fbbf24;
}

.coffee-count-badge {
  padding: 1px 7px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #008a50;
  font-size: 11px;
  font-weight: 800;
}

.pet-coffee-dock:hover .coffee-count-badge {
  background: rgba(0, 229, 139, 0.22);
  color: #6ee7b7;
}

.pet-head-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.pet-head-name {
  font-size: 15px;
  font-weight: 800;
  color: #1d1d1f;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.pet-head-sub {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.2;
}

.pet-head-sub strong {
  color: #6ee7b7;
}

.pet-head-coffee {
  background: rgba(217, 119, 6, 0.28);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fef3c7;
}

.pet-head-coffee:hover {
  background: rgba(217, 119, 6, 0.5);
}

.pet-sparkle {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  background: #d97706;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.pet-sparkle.pop {
  animation: petSparklePop 1.05s ease-out forwards;
}

.pet-speech {
  background: #1d1d1f;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.20);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.pet-speech.show {
  opacity: 1;
  transform: translateY(0);
}

.pet-panel {
  width: 328px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.16), 0 4px 14px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: text;
}

.pet-panel[hidden] {
  display: none;
}

.pet-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px 11px;
  background: #ffffff;
  color: #1d1d1f;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pet-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
}

.pet-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00c46f;
  box-shadow: 0 0 0 3px rgba(0, 196, 111, 0.22);
}

.pet-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pet-head-btn {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.pet-head-btn:hover {
  background: #e5e7eb;
  color: #1d1d1f;
}

.pet-close-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pet-messages {
  padding: 12px 14px;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: #f5f5f7;
}

.pet-msg {
  max-width: 90%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}

.pet-msg-bot {
  align-self: flex-start;
  background: #ffffff;
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom-left-radius: 4px;
}

.pet-msg-user {
  align-self: flex-end;
  background: #1d1d1f;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.pet-link {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #009e5c;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.pet-link:hover {
  background: #007a47;
}

.pet-link-inline {
  color: #009e5c;
  font-weight: 700;
  text-decoration: none;
}

.pet-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px 8px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pet-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.pet-chip:hover {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #ffffff;
}

/* Simple 2-Button Mode Switcher: 问 AI / 问客服 */
.pet-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 10px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pet-mode-btn {
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f5f5f7;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.16s ease;
}

.pet-mode-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.pet-mode-btn:hover {
  color: #1d1d1f;
  background: #eceef2;
}

.pet-mode-btn.is-active {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.pet-mode-btn[data-mode="service"].is-active {
  background: #009e5c;
  border-color: #009e5c;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 158, 92, 0.24);
}

.pet-view {
  display: flex;
  flex-direction: column;
}

.pet-view[hidden] {
  display: none;
}

.pet-service-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: #effaf4;
  border-bottom: 1px solid rgba(0, 158, 92, 0.12);
  font-size: 11.5px;
  font-weight: 600;
  color: #007a47;
}

.pet-service-log {
  max-height: 130px;
  min-height: 0;
  padding: 10px 12px;
}

.pet-service-log:empty {
  display: none;
}

/* Inline Direct Telegram Message Box */
.pet-direct-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
}

.pet-field-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pet-field-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pet-req {
  color: #dc2626;
  font-size: 11px;
  font-weight: 800;
}

.pet-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 10px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.pet-qty-row[hidden] {
  display: none;
}

.pet-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pet-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pet-qty-btn:hover {
  background: #1d1d1f;
  color: #ffffff;
  border-color: #1d1d1f;
}

.pet-qty-input {
  width: 38px;
  height: 24px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 7px;
  background: #ffffff;
  color: #1d1d1f;
  font-size: 12.5px;
  font-weight: 800;
  font-family: inherit;
  outline: none;
}

.pet-direct-input.is-invalid {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
}

.pet-direct-input,
.pet-direct-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pet-direct-textarea {
  resize: none;
  line-height: 1.5;
  min-height: 62px;
}

.pet-direct-input:focus,
.pet-direct-textarea:focus {
  background: #ffffff;
  border-color: #009e5c;
}

.pet-direct-foot {
  display: flex;
  align-items: center;
  justify-content: stretch;
  gap: 8px;
  margin-top: 2px;
}

.pet-direct-tip {
  font-size: 11.5px;
  color: #007a47;
  font-weight: 600;
  line-height: 1.45;
}

.pet-direct-tip[hidden] {
  display: none;
}

.pet-direct-tip.is-error {
  color: #dc2626;
}

.pet-direct-submit {
  width: 100%;
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  border: none;
  background: #009e5c;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 16px rgba(0, 158, 92, 0.22);
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.pet-direct-submit:hover {
  background: #007a47;
  transform: translateY(-1px);
}

.pet-direct-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pet-forward-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 158, 92, 0.25);
  background: #e6f7ef;
  color: #007a47;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pet-forward-btn:hover {
  background: #009e5c;
  border-color: #009e5c;
  color: #ffffff;
}

.pet-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 10px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.pet-input-row input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
}

.pet-input-row input:focus {
  background: #ffffff;
  border-color: #1d1d1f;
}

.pet-send-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: #1d1d1f;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.pet-send-btn:hover {
  background: #009e5c;
}

@media (max-width: 640px) {
  .migua-pet-root {
    right: 10px;
    bottom: 12px;
  }
  .pet-avatar-btn,
  .pet-scene,
  .pet-desk-overlay {
    width: 108px;
    height: 96px;
  }
  .pet-upper-body {
    width: 76px;
    height: 75px;
    margin-left: -38px;
    bottom: 11px;
  }
  .pet-top-badge {
    padding: 3px 9px;
    font-size: 11px;
  }
  .pet-coffee-dock {
    padding: 4px 9px;
    font-size: 11px;
  }
  .pet-speech {
    font-size: 11.5px;
    padding: 5px 10px;
  }
}

/* ================= APPLE-STYLE PRODUCT CARDS & DETAIL MODAL ================= */
.prod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 236px;
  padding: 20px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.prod-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 158, 92, 0.35);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.11);
}

.prod-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.prod-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prod-icon-img {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  background: #ffffff;
}

.prod-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prod-icon svg {
  width: 24px;
  height: 24px;
}

.prod-icon-rocket {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.26);
}

.prod-icon-us {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.prod-icon-hk {
  background: linear-gradient(135deg, #141820 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.24);
}

.prod-icon-gmail {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.24);
}

.prod-icon-gmail-us {
  background: linear-gradient(135deg, #1e3a8a 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(30, 58, 138, 0.26);
}

.prod-icon-ibkr {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.26);
}

.prod-icon-schwab {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.26);
}

.prod-icon-moomoo {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.26);
}

.prod-icon-firstrade {
  background: linear-gradient(135deg, #0f172a 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.26);
}

.prod-icon-esim-ph {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.26);
}

.prod-icon-card-ph {
  background: linear-gradient(135deg, #111827 0%, #009e5c 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 158, 92, 0.24);
}

.prod-icon-gpt {
  background: linear-gradient(135deg, #0f172a 0%, #10a37f 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 163, 127, 0.26);
}

.prod-icon-gemini {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.28);
}

.prod-icon-claude {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.26);
}

.prod-icon-ag {
  background: linear-gradient(135deg, #1d4ed8 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.25);
}

.prod-icon-grok {
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.26);
}

.prod-icon-cursor {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.26);
}

.prod-icon-visa-vu {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(4, 120, 87, 0.28);
}

.prod-icon-us span,
.prod-icon-hk span,
.prod-icon-gmail span,
.prod-icon-gmail-us span,
.prod-icon-ibkr span,
.prod-icon-schwab span,
.prod-icon-moomoo span,
.prod-icon-firstrade span,
.prod-icon-esim-ph span,
.prod-icon-card-ph span,
.prod-icon-gpt span,
.prod-icon-gemini span,
.prod-icon-claude span,
.prod-icon-ag span,
.prod-icon-grok span,
.prod-icon-cursor span,
.prod-icon-visa-vu span {
  position: absolute;
  right: -5px;
  bottom: -5px;
  padding: 1px 5px;
  border-radius: 6px;
  background: #009e5c;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1.5px solid #ffffff;
}

.prod-card-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.prod-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: #e6f7ef;
  color: #007a47;
  font-size: 11.5px;
  font-weight: 800;
}

.prod-warranty {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #4b5563;
  font-size: 11.5px;
  font-weight: 700;
}

.prod-delivery {
  padding: 3px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 700;
}

.prod-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prod-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.38;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

.prod-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6e6e73;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.prod-price-box {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.prod-price {
  font-size: 23px;
  font-weight: 900;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.prod-price-suffix {
  font-size: 12.5px;
  font-weight: 800;
  color: #007a47;
}

.prod-tiers-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.prod-tiers-mini span {
  padding: 3px 8px;
  border-radius: 8px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 11.5px;
  color: #4b5563;
}

.prod-tiers-mini strong {
  color: #1d1d1f;
  font-weight: 800;
}

/* Clickable Service Tier Selector inside Product Modal */
.pm-tiers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pm-tiers-label {
  font-size: 13px;
  font-weight: 800;
  color: #1d1d1f;
}

.pm-tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pm-tier-card {
  text-align: left;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.16s ease;
}

.pm-tier-card:hover {
  border-color: rgba(0, 158, 92, 0.5);
  background: #f9fefb;
}

.pm-tier-card.is-selected {
  border-color: #009e5c;
  background: #effaf4;
  box-shadow: 0 6px 16px rgba(0, 158, 92, 0.14);
}

.pm-tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.pm-tier-name {
  font-size: 13px;
  font-weight: 800;
  color: #1d1d1f;
}

.pm-tier-price {
  font-size: 15px;
  font-weight: 900;
  color: #007a47;
  flex-shrink: 0;
}

.pm-tier-note {
  font-size: 12px;
  line-height: 1.48;
  color: #4b5563;
}

@media (max-width: 640px) {
  .pm-tiers-grid {
    grid-template-columns: 1fr;
  }
}

.prod-currency {
  font-size: 11.5px;
  font-weight: 700;
  color: #86868b;
}

.prod-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prod-detail-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: #1d1d1f;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.prod-detail-btn:hover {
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.24);
}

.prod-buy-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: #1d1d1f;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.prod-buy-btn:hover {
  background: #009e5c;
  transform: translateY(-1px);
}

/* ================= DARK-OBSIDIAN LUXURY BRAND CARDS (BROKERS & VANUATU FLAG) ================= */
.prod-card.is-dark-brand {
  background: linear-gradient(145deg, #0b1017 0%, #111824 55%, #0c121b 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 34px rgba(10, 16, 26, 0.24);
  overflow: hidden;
  min-height: 256px;
}

.prod-card.is-dark-brand:hover {
  border-color: rgba(0, 229, 139, 0.42);
  box-shadow: 0 22px 44px rgba(10, 16, 26, 0.34);
}

.prod-brand-aura {
  position: absolute;
  top: -36px;
  right: -28px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow, rgba(0, 184, 107, 0.32)) 0%, rgba(11, 16, 23, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.prod-brand-art {
  position: absolute;
  top: 18px;
  right: 18px;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.prod-brand-art.is-square {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: rotate(-7deg);
}

.prod-brand-art.is-flag {
  width: 138px;
  height: 86px;
  top: 15px;
  right: 16px;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.50);
  transform: rotate(-5deg);
}

.prod-brand-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prod-card.is-dark-brand:hover .prod-brand-art.is-square {
  transform: rotate(-3deg) scale(1.06) translateY(-2px);
}

.prod-card.is-dark-brand:hover .prod-brand-art.is-flag {
  transform: rotate(-2deg) scale(1.05) translateY(-2px);
}

.prod-card.is-dark-brand .prod-card-top,
.prod-card.is-dark-brand .prod-card-body,
.prod-card.is-dark-brand .prod-card-foot {
  position: relative;
  z-index: 2;
}

.prod-card.is-dark-brand .prod-card-top {
  padding-right: 112px;
}

.prod-card.is-dark-brand.has-flag-art .prod-card-top,
.prod-card.is-dark-brand.has-flag-art .prod-card-title,
.prod-card.is-dark-brand.has-flag-art .prod-card-desc {
  padding-right: 162px;
}

.prod-card.is-dark-brand .prod-card-pills {
  justify-content: flex-start;
}

.prod-card.is-dark-brand .prod-tag {
  background: rgba(0, 229, 139, 0.16);
  border: 1px solid rgba(0, 229, 139, 0.34);
  color: #6ee7b7;
}

.prod-card.is-dark-brand .prod-warranty {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.prod-card.is-dark-brand .prod-card-title {
  color: #ffffff;
  padding-right: 110px;
}

.prod-card.is-dark-brand .prod-card-desc {
  color: rgba(226, 232, 240, 0.78);
  padding-right: 88px;
}

.prod-card.is-dark-brand .prod-tiers-mini span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(226, 232, 240, 0.86);
}

.prod-card.is-dark-brand .prod-tiers-mini strong {
  color: #ffffff;
}

.prod-card.is-dark-brand .prod-card-foot {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.prod-card.is-dark-brand .prod-price {
  color: #ffffff;
}

.prod-card.is-dark-brand .prod-price-suffix {
  color: #6ee7b7;
}

.prod-card.is-dark-brand .prod-currency {
  color: rgba(203, 213, 225, 0.72);
}

.prod-card.is-dark-brand .prod-detail-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.prod-card.is-dark-brand .prod-detail-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.34);
}

.prod-card.is-dark-brand .prod-buy-btn {
  background: #00c46f;
  color: #062115;
  font-weight: 800;
}

.prod-card.is-dark-brand .prod-buy-btn:hover {
  background: #00e58b;
}

@media (max-width: 640px) {
  .prod-brand-art.is-square {
    width: 76px;
    height: 76px;
    top: 14px;
    right: 14px;
    border-radius: 18px;
  }
  .prod-brand-art.is-flag {
    width: 112px;
    height: 70px;
    top: 14px;
    right: 14px;
    border-radius: 11px;
  }
  .prod-card.is-dark-brand .prod-card-title {
    padding-right: 92px;
  }
  .prod-card.is-dark-brand .prod-card-desc {
    padding-right: 0;
  }
}

/* Product Detail Modal */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.product-modal.open {
  display: flex;
}

.product-modal-card {
  width: 600px;
  max-width: 100%;
  max-height: 86vh;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 28px 68px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: #fbfbfd;
}

.pm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.pm-title {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
  color: #1d1d1f;
}

.pm-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6e6e73;
}

.pm-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.09);
  background: #ffffff;
  color: #4b5563;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pm-close:hover {
  background: #1d1d1f;
  color: #ffffff;
}

.pm-body {
  padding: 16px 22px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pm-section {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pm-section.is-warning {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.22);
}

.pm-sec-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #1d1d1f;
}

.pm-section.is-warning .pm-sec-title {
  color: #b91c1c;
}

.pm-sec-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.62;
  color: #374151;
}

.pm-section.is-warning .pm-sec-list {
  color: #7f1d1d;
}

.pm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.pm-price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.pm-price {
  font-size: 26px;
  font-weight: 900;
  color: #1d1d1f;
}

.pm-currency {
  font-size: 12px;
  font-weight: 700;
  color: #86868b;
}

.pm-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pm-wx-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #ffffff;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.pm-wx-btn:hover {
  background: #f5f5f7;
}

.pm-buy-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  background: #009e5c;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 158, 92, 0.26);
  transition: background 0.15s ease, transform 0.15s ease;
}

.pm-buy-btn:hover {
  background: #007a47;
  transform: translateY(-1px);
}

.tutorial-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.tutorial-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 158, 92, 0.28);
  background: #ffffff;
  color: #007a47;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease;
}

.tutorial-cta-btn:hover {
  background: #e6f7ef;
  border-color: #009e5c;
}

.tutorial-cta-btn.is-primary {
  background: #009e5c;
  border-color: #009e5c;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 158, 92, 0.22);
}

.tutorial-cta-btn.is-primary:hover {
  background: #007a47;
  transform: translateY(-1px);
}

/* Maya Invite Code Step Card */
.step-card.invite-step-card {
  border-color: rgba(0, 158, 92, 0.34);
  box-shadow: 0 12px 30px rgba(0, 158, 92, 0.08);
}

.step-badge.is-bonus {
  background: #009e5c;
  color: #ffffff;
}

.invite-copy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #effaf4;
  border: 1px dashed rgba(0, 158, 92, 0.42);
}

.invite-code-left {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.invite-code-label {
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
}

.invite-code-val {
  padding: 3px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 158, 92, 0.25);
  color: #007a47;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.invite-code-perk {
  font-size: 12px;
  font-weight: 700;
  color: #007a47;
}

.invite-copy-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: #009e5c;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 158, 92, 0.22);
  transition: background 0.15s ease, transform 0.15s ease;
}

.invite-copy-btn:hover {
  background: #007a47;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .product-modal {
    padding: 10px;
  }
  .pm-head,
  .pm-body,
  .pm-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
  .pm-foot {
    flex-wrap: wrap;
  }
  .pm-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
