/* Tangxin Vlog Official - tlog.mom */
:root {
  --bg: #0b0b0f;
  --bg-soft: #14141c;
  --bg-card: #1a1a24;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f7;
  --muted: #a8a8b8;
  --accent: #ff3b4a;
  --accent-soft: rgba(255, 59, 74, 0.14);
  --gold: #f0c35a;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Trebuchet MS", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 59, 74, 0.18), transparent 55%),
    radial-gradient(900px 500px at 95% 5%, rgba(240, 195, 90, 0.1), transparent 50%),
    linear-gradient(180deg, #101018 0%, var(--bg) 40%, #09090c 100%);
  background-attachment: fixed;
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ff6672;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(11, 11, 15, 0.92);
  border-bottom: 1px solid var(--line);
}

#tx-top-fixed .site-header {
  position: relative;
  top: auto;
  z-index: 2;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  font-size: 1.15rem;
}

.brand em {
  color: var(--accent);
  font-style: normal;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #c9182b);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(255, 59, 74, 0.35);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ff8a94;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero h1 .brand-name {
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #c9182b);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 59, 74, 0.35);
}

.btn-primary:hover {
  color: #fff;
  opacity: 0.92;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-keywords span {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.hero-float {
  position: absolute;
  left: -1rem;
  bottom: 1.5rem;
  width: 42%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: floatY 4.5s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
section {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--line);
}

/* Feature / category grid */
.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 1.1rem;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 74, 0.35);
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  background: var(--bg-card);
}

.card-body {
  padding: 1rem 1.05rem 1.2rem;
}

.card-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-item {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.feature-item .num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.feature-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Prose content */
.prose {
  max-width: 760px;
}

.prose h2,
.prose h3 {
  font-family: var(--display);
  line-height: 1.35;
  margin: 1.8rem 0 0.7rem;
}

.prose p {
  color: #d6d6e0;
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  color: #d6d6e0;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.seo-block {
  margin-top: 1.5rem;
}

.seo-block h2 {
  margin: 2rem 0 0.8rem;
  font-size: 1.45rem;
}

.seo-block p {
  color: #d6d6e0;
  margin: 0 0 1rem;
}

.seo-block a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.highlight-box {
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 59, 74, 0.25);
  background: var(--accent-soft);
}

.highlight-box p {
  margin: 0;
  color: #ffd6da;
}

/* App showcase strip */
.phone-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.phone-rail::-webkit-scrollbar {
  height: 6px;
}

.phone-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.phone-rail figure {
  margin: 0;
  scroll-snap-align: start;
}

.phone-rail img {
  border-radius: 16px;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  box-shadow: var(--shadow);
}

.phone-rail figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* CTA band */
.cta-band {
  margin: 2rem 0 1rem;
  padding: 2rem;
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(255, 59, 74, 0.2), rgba(240, 195, 90, 0.08)),
    var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

/* Page hero (inner) */
.page-hero {
  padding: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  margin: 0;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  margin: 0.6rem 0;
  font-size: 1.6rem;
}

.error-page p {
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  color: var(--text);
  font-weight: 700;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-footer h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    animation: fadeUp 0.7s ease both;
  }

  .delay-1 { animation-delay: 0.12s; }
  .delay-2 { animation-delay: 0.24s; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .footer-grid,
  .grid-4,
  .grid-3,
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }

  .hero-float {
    width: 38%;
    left: -0.4rem;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1rem 1rem;
    background: rgba(12, 12, 18, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.5rem;
    justify-content: center;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .feature-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 320px;
    margin-inline: auto;
  }

  .hero-float {
    display: none;
  }

  .cta-band {
    padding: 1.4rem;
  }

  section {
    padding: 2.2rem 0;
  }
}
