/*
Theme Name: HelloWorld Landing
Theme URI: https://example.com/
Author: HelloWorld
Author URI: https://example.com/
Description: 一个用于展示 HelloWorld 智能翻译产品的落地页主题。
Version: 1.0.0
Text Domain: helloworld
*/

:root {
  --primary: #0f766e;
  --primary-dark: #0a5c56;
  --accent: #f59e0b;
  --text: #0f172a;
  --muted: #64748b;
  --bg: #f1f5f9;
  --card: #ffffff;
  --shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.2px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 34px;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-light {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.section-title {
  text-align: center;
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 40px;
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  max-height: 44px;
  width: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.site-logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
}

.site-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
}

.site-nav a {
  font-weight: 600;
  color: #1c2a3a;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #0c5bdd;
}

.page-hero {
  background: linear-gradient(135deg, #eef4ff 0%, #ffffff 60%);
}

.page-hero-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.page-hero-inner h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 44px);
  color: #0f1d2e;
}

.page-hero-inner p {
  color: var(--muted);
  margin-bottom: 24px;
}

.product-hero {
  background: linear-gradient(135deg, #eef4ff 0%, #ffffff 60%);
}

.product-hero-alt {
  background: url("assets/img/product-hero.jpg") center/cover no-repeat;
  padding: 80px 0;
  color: #ffffff;
  position: relative;
}

.product-hero-alt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15));
}

.product-hero-inner-alt {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.product-hero-text h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 16px;
}

.product-hero-text p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.9);
}

.product-hero-device img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.6);
  padding: 8px;
}

.product-feature {
  background: #ffffff;
}

.product-feature.alt {
  background: #f7f9fc;
}

.product-feature-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.product-feature-text h3 {
  margin: 10px 0 12px;
  font-size: 24px;
  color: #0f1d2e;
}

.product-feature-text p {
  color: var(--muted);
  margin: 0;
}

.product-tag {
  display: inline-flex;
  font-size: 12px;
  color: #0c5bdd;
  background: rgba(12, 91, 221, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.product-feature-media img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(10, 25, 56, 0.12);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.feature-card h4 {
  margin: 0 0 8px;
  color: #0f1d2e;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.blog-section {
  padding-top: 40px;
}

.blog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.blog-toolbar h2 {
  margin: 0 0 6px;
  font-size: 26px;
  color: #0f1d2e;
}

.blog-toolbar p {
  margin: 0;
  color: var(--muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.blog-card {
  background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
  border-radius: 16px;
  padding: 18px 18px 22px;
  box-shadow: 0 14px 30px rgba(10, 25, 56, 0.08);
  border: 1px solid rgba(12, 91, 221, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card-link {
  display: block;
  color: inherit;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(10, 25, 56, 0.12);
}

.blog-card h3 {
  margin: 8px 0 10px;
  font-size: 18px;
  color: #0f1d2e;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.blog-meta {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  color: #6b7a8f;
}

.blog-meta span {
  background: rgba(12, 91, 221, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
}

.blog-thumb {
  border-radius: 12px;
  overflow: hidden;
  background: #e9effa;
  height: 160px;
  margin-bottom: 14px;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-thumb.placeholder {
  background: linear-gradient(135deg, rgba(12, 91, 221, 0.15), rgba(31, 201, 169, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.blog-thumb.placeholder::after {
  content: "HelloWorld 翻译";
  font-weight: 600;
  color: #0c5bdd;
  letter-spacing: 0.02em;
}

.blog-link {
  display: inline-flex;
  margin-top: 14px;
  color: #0c5bdd;
  font-weight: 600;
}

.pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
  margin: 0 6px;
}

.pagination .page-numbers.current {
  background: var(--primary);
  color: #ffffff;
}

.pagination .page-numbers:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.post-content {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
  color: #1c2a3a;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: #6b7a8f;
  font-size: 14px;
}

.post-meta span {
  background: #f2f5fb;
  padding: 4px 10px;
  border-radius: 999px;
}

.post-cover {
  margin: 16px 0 20px;
  border-radius: 16px;
  overflow: hidden;
}

.post-cover img {
  width: 100%;
  display: block;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.post-tags a {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: #0c5bdd;
  font-weight: 600;
}

.related-posts {
  margin-top: 36px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 24px;
  color: #0f1d2e;
}

.post-content p {
  margin: 12px 0;
  color: #475566;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.post-nav-item {
  flex: 1;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  color: #0f1d2e;
}

.post-nav-item a {
  display: block;
  color: inherit;
}

.post-nav-date {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #6b7a8f;
}

.hero {
  background: url("assets/img/hero-bg.jpg") center/cover no-repeat;
  min-height: 100vh;
  padding: 160px 0 140px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.7));
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(36px, 4vw, 52px);
  margin-bottom: 18px;
  color: #0c5bdd;
}

.hero p {
  color: var(--muted);
  margin-bottom: 30px;
}

.social-bar {
  margin-top: 40px;
}

.social-list {
  list-style: none;
  padding: 18px 28px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 16px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 32px;
  box-shadow: 0 18px 30px rgba(15, 20, 45, 0.12);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.social-item {
  text-align: center;
  font-size: 14px;
  color: #445061;
}

.social-item img {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
}

.section {
  padding: 86px 0;
}

.section-muted {
  background: var(--bg);
}

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

.scenario-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 180px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.scenario-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scenario-meta {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 26, 41, 0.1), rgba(11, 26, 41, 0.7));
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.scenario-meta span {
  font-size: 30px;
  font-weight: 700;
}

.scenario-meta p {
  margin: 6px 0 0;
  font-size: 15px;
}

.download-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  text-align: center;
}

.download-card {
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.download-card img {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
}

.btn-download {
  margin-top: 6px;
  padding: 10px 22px;
  font-size: 14px;
  box-shadow: none;
  min-width: 120px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}

.adv-card {
  background: var(--card);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.adv-card img {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
}

.adv-card h3 {
  margin: 8px 0;
  font-size: 18px;
}

.adv-card p {
  color: var(--muted);
  font-size: 14px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.testimonial-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.latest-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.latest-post {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.latest-post h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #0f1d2e;
}

.latest-post p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.latest-empty {
  text-align: center;
  color: var(--muted);
}

.faq-carousel {
  position: relative;
  display: flex;
  align-items: center;
}

.faq-viewport {
  width: 100%;
  overflow: hidden;
  padding: 0 64px;
}

.faq-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 55%, #edf4ff 100%);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 18px 35px rgba(8, 18, 46, 0.08);
  min-height: 200px;
  min-height: 210px;
  border: 1px solid rgba(12, 91, 221, 0.08);
  overflow: hidden;
}

.faq-card.is-hidden {
  display: none;
}

.faq-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(12, 91, 221, 0.35), rgba(31, 201, 169, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.faq-card::after {
  content: "";
  position: absolute;
  inset: -25% 35% 35% -20%;
  background: radial-gradient(circle, rgba(12, 91, 221, 0.12), rgba(12, 91, 221, 0));
  pointer-events: none;
}

.faq-card h3 {
  margin: 10px 0 12px;
  font-size: 16px;
  color: #0f1d2e;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(12, 91, 221, 0.15), rgba(31, 201, 169, 0.15));
  border: 1px solid rgba(12, 91, 221, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0c5bdd;
  position: relative;
  z-index: 1;
}

.faq-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(12, 91, 221, 0.2);
  background: #ffffff;
  color: #0c5bdd;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(12, 91, 221, 0.15);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.faq-nav.prev {
  left: 10px;
}

.faq-nav.next {
  right: 10px;
}

.faq-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .faq-carousel {
    align-items: stretch;
  }
  .faq-nav {
    display: none;
  }
  .faq-viewport {
    padding: 0;
  }
  .faq-track {
    grid-template-columns: 1fr;
  }
  .faq-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .faq-card {
    flex: 0 0 100%;
  }
}


.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.testimonial-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.rating {
  color: #f7b731;
  font-size: 14px;
}

.cta {
  background: url("assets/img/cta-bg.svg") center/cover no-repeat;
  padding: 80px 0;
  color: #ffffff;
  text-align: center;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
}

.footer {
  background: #071325;
  color: #d4d9e2;
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  align-items: start;
}

.footer h4 {
  margin-top: 0;
  color: #ffffff;
  font-size: 16px;
}

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

.footer li {
  margin-bottom: 8px;
  color: #9aa6b5;
  font-size: 14px;
}

.footer .qr {
  width: 120px;
  height: 120px;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
}

.footer small {
  display: block;
  margin-top: 20px;
  text-align: center;
  color: #7f8a99;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(12, 91, 221, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(12, 91, 221, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top span {
  font-size: 20px;
  color: var(--primary);
}

@media (max-width: 900px) {
  .scenario-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 640px) {
  .social-list {
    grid-template-columns: repeat(4, minmax(70px, 1fr));
  }
  .hero {
    padding: 70px 0 60px;
  }
  .site-nav .nav-list {
    gap: 14px;
    font-size: 14px;
  }
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }
}
