/**
 * 首页 LINE 品牌区（与 line.me 风格一致：白底、品牌绿、清晰区块）
 * 仅作用于 .line-page
 */
:root {
  --line-green: #06c755;
  --line-green-dk: #05a84a;
  --line-green-soft: rgba(6, 199, 85, 0.08);
  --line-text: #1f1f1f;
  --line-muted: #5c5c5c;
  --line-border: #e8e8e8;
  --line-bg-alt: #f7f7f7;
  --line-radius: 16px;
  --line-font: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --line-sky: #0ea5e9;
  --line-sky-soft: #e0f2fe;
  --line-navy: #1e3a5f;
  --line-btn-blue: #2563eb;
  --line-btn-blue-hover: #1d4ed8;
  /* 与 line.me 官网接近的版心宽度 */
  --line-content-max: 1600px;
}

body.home {
  background: #fff;
  color: var(--line-text);
}

.home .content-wrap {
  background: #fff;
}

/* 首页顶栏与内容区同宽 */
body.home .oc-header-inner {
  max-width: var(--line-content-max);
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 1280px) {
  body.home .oc-header-inner {
    padding-left: 48px;
    padding-right: 48px;
  }
}

body.home .oc-site-footer .oc-container {
  max-width: var(--line-content-max);
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 1280px) {
  body.home .oc-site-footer .oc-container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* 顶栏主导航：默认黑色；悬停与当前项为 LINE 绿 */
body.home .oc-header-nav a,
body.home .oc-header-link {
  color: var(--line-text);
}

body.home .oc-header-nav a:hover,
body.home .oc-header-link:hover {
  color: var(--line-green);
}

body.home .oc-header-menu .current-menu-item > a,
body.home .oc-header-menu .current_page_item > a {
  color: var(--line-green);
  font-weight: 700;
}

.line-page {
  font-family: var(--line-font);
  color: var(--line-text);
  line-height: 1.6;
}

/* 顶栏为 sticky 时，页内锚点不被遮挡 */
.line-page section[id] {
  scroll-margin-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .line-page .line-btn,
  .line-page .line-card {
    transition: none;
  }
}

.line-container {
  width: 100%;
  max-width: var(--line-content-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .line-container {
    padding: 0 40px;
  }
}

@media (min-width: 1280px) {
  .line-container {
    padding: 0 48px;
  }
}

/* Hero */
.line-hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 55%);
}

.line-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 10%;
  width: 45%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--line-green-soft) 0%, transparent 70%);
  pointer-events: none;
}

.line-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .line-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.line-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--line-green-dk);
  background: #fff;
  border: 1px solid rgba(6, 199, 85, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
}

.line-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.line-hero h1 span {
  color: var(--line-green);
}

.line-hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--line-muted);
  max-width: 34em;
}

@media (max-width: 900px) {
  .line-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

.line-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .line-hero-actions {
    justify-content: center;
  }
}

.line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.line-btn--primary {
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 4px 18px rgba(6, 199, 85, 0.35);
}

.line-btn--primary:hover {
  background: var(--line-green-dk);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(6, 199, 85, 0.4);
}

.line-btn--ghost {
  background: #fff;
  color: var(--line-text);
  border: 2px solid var(--line-border);
}

.line-btn--ghost:hover {
  border-color: var(--line-green);
  color: var(--line-green-dk);
}

.line-hero-meta {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: #888;
}

.line-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.line-hero-img {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  border: none;
  box-shadow: none;
  border-radius: 0;
  vertical-align: top;
}

/* Stats */
.line-stats {
  border-top: 1px solid var(--line-border);
  border-bottom: 1px solid var(--line-border);
  background: #fff;
  padding: 2rem 0;
}

.line-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

@media (max-width: 700px) {
  .line-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.line-stat-num {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--line-green);
}

.line-stat-label {
  font-size: 0.82rem;
  color: var(--line-muted);
  margin-top: 0.25rem;
}

/* Sections */
.line-section {
  padding: 4.5rem 0;
}

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

.line-section-head {
  text-align: center;
  max-width: min(100%, 920px);
  margin: 0 auto clamp(2.25rem, 4vw, 3.25rem);
}

.line-section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--line-text);
}

.line-section-head p {
  margin: 0 auto;
  max-width: 52rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--line-muted);
}

.line-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .line-grid-3 {
    grid-template-columns: 1fr;
  }
}

.line-card {
  background: #fff;
  border: 1px solid var(--line-border);
  border-radius: var(--line-radius);
  padding: 1.75rem 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.line-section--alt .line-card {
  background: #fff;
}

.line-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(6, 199, 85, 0.35);
}

.line-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--line-green-soft);
  color: var(--line-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.line-card-icon svg {
  width: 26px;
  height: 26px;
}

.line-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.line-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--line-muted);
  line-height: 1.65;
}

.line-kw {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--line-green-dk);
  background: var(--line-green-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

/* Services row */
.line-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .line-services {
    grid-template-columns: 1fr;
  }
}

.line-service {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line-border);
  border-radius: var(--line-radius);
}

.line-service-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--line-green);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.line-service h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.line-service p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--line-muted);
}

/* Download — 单块分区，避免多卡片堆砌 */
.line-dl-board {
  max-width: min(100%, 1100px);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line-border);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.line-dl-board__primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 1.1rem 1.25rem;
  background: var(--line-green);
  color: #fff;
  text-decoration: none;
  border: none;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.15s;
}

.line-dl-board__primary:hover {
  background: var(--line-green-dk);
  color: #fff;
}

.line-dl-board__primary-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.line-dl-board__primary-url {
  font-size: 0.8rem;
  opacity: 0.92;
  font-weight: 400;
}

.line-dl-board__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 520px) {
  .line-dl-board__cols {
    grid-template-columns: 1fr;
  }
}

.line-dl-board__col {
  padding: 1rem 1.25rem 1.15rem;
  border-top: 1px solid var(--line-border);
}

@media (min-width: 521px) {
  .line-dl-board__col:first-child {
    border-right: 1px solid var(--line-border);
  }
}

.line-dl-board__label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}

.line-dl-board__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.line-dl-board__list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #f0f0f0;
}

.line-dl-board__list li:last-child {
  border-bottom: none;
}

.line-dl-board__list a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.93rem;
  color: var(--line-text);
  text-decoration: none;
}

.line-dl-board__list a:hover {
  color: var(--line-green);
}

.line-dl-note {
  margin-top: 1.25rem;
  font-size: 0.84rem;
  color: var(--line-muted);
  text-align: left;
  max-width: min(100%, 1100px);
  margin-left: auto;
  margin-right: auto;
}

.line-dl-note a {
  color: var(--line-green-dk);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.line-dl-note a:hover {
  color: var(--line-green);
}

/* Steps */
.line-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

@media (max-width: 800px) {
  .line-steps {
    grid-template-columns: 1fr;
  }
}

.line-step {
  position: relative;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line-border);
  border-radius: var(--line-radius);
}

.line-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--line-green);
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
}

.line-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.line-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--line-muted);
}

/* FAQ */
.line-faq {
  max-width: 800px;
  margin: 0 auto;
}

.line-faq-item {
  border: 1px solid var(--line-border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: #fff;
}

.line-faq-item.is-open {
  border-color: var(--line-green);
}

.line-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--line-text);
}

.line-faq-q:hover {
  background: var(--line-bg-alt);
}

.line-faq-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--line-green-soft);
  color: var(--line-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.25s;
}

.line-faq-item.is-open .line-faq-arrow {
  transform: rotate(45deg);
  background: var(--line-green);
  color: #fff;
}

.line-faq-a {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.88rem;
  color: var(--line-muted);
  line-height: 1.7;
}

.line-faq-a[hidden] {
  display: none !important;
}

/* CTA */
.line-cta {
  padding: 4rem 0 5rem;
  text-align: center;
}

.line-cta-box {
  background: linear-gradient(135deg, var(--line-green) 0%, #04a049 100%);
  border-radius: 24px;
  padding: 3rem 1.5rem;
  color: #fff;
}

.line-cta-box h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
}

.line-cta-box p {
  margin: 0 0 1.5rem;
  opacity: 0.95;
  font-size: 1rem;
}

.line-btn--on-green {
  background: #fff;
  color: var(--line-green-dk);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.line-btn--on-green:hover {
  background: #f0fdf4;
  color: #047857;
}

.line-official-note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #999;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ----- 参考官网风：大标题 + 双栏故事 + 三列通讯 ----- */
.line-container--narrow {
  max-width: 960px;
  margin: 0 auto;
}

.line-showcase-intro {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.line-showcase-title {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  text-align: center;
  color: var(--line-text);
  letter-spacing: -0.02em;
}

.line-showcase-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--line-muted);
  text-align: center;
}

.line-split-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.line-section--soft {
  background: linear-gradient(180deg, #fafcff 0%, #f5f9ff 100%);
}

.line-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

@media (min-width: 1100px) {
  .line-split:not(.line-split--reverse) {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .line-split--reverse {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 900px) {
  .line-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.line-split--reverse .line-split__media {
  order: 1;
}

.line-split--reverse .line-split__text {
  order: 2;
}

@media (max-width: 900px) {
  .line-split--reverse .line-split__text {
    order: 1;
  }

  .line-split--reverse .line-split__media {
    order: 2;
  }
}

.line-split__text {
  min-width: 0;
}

.line-split__media {
  min-width: 0;
}

.line-split__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.line-split__brand-dot {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #111 40%, #333 100%);
  box-shadow: inset 0 0 0 3px #06c755;
}

.line-split__brand-heading {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--line-navy);
  letter-spacing: 0.04em;
}

.line-split__heading {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--line-navy);
}

.line-split__eyebrow {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--line-navy);
}

.line-split__eyebrow--muted {
  font-weight: 500;
  color: #64748b;
  font-size: 0.95rem;
}

.line-split__body {
  margin: 0 0 1.25rem;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--line-muted);
}

.line-split__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: var(--line-btn-blue);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.line-split__btn:hover {
  background: var(--line-btn-blue-hover);
  color: #fff !important;
}

.line-split__btn--blue {
  background: var(--line-btn-blue);
}

.line-split__icon-bag {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, #06c755, #0d9488);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.line-split__icon-bag svg {
  width: 26px;
  height: 26px;
}

/* 双栏配图：仅 <img>，无背景、无边框、无阴影 */
.line-split__figure {
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.line-split__figure--today,
.line-split__figure--shop {
  line-height: 0;
}

.line-split__photo-img--single {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* 三列通讯 / 服务展示 */
.line-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 2.8vw, 2.75rem);
  align-items: start;
  margin-top: 0.5rem;
}

@media (min-width: 640px) and (max-width: 900px) {
  .line-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .line-showcase-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 400px;
    justify-self: center;
    width: 100%;
  }
}

@media (max-width: 639px) {
  .line-showcase-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

.line-showcase-card {
  text-align: center;
}

.line-showcase-card__device {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(1rem, 2vw, 1.35rem);
}

.line-showcase-card__img {
  width: 100%;
  max-width: min(100%, 380px);
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border: none;
  box-shadow: none;
  border-radius: 0;
  vertical-align: top;
}

@media (min-width: 1200px) {
  .line-showcase-card__img {
    max-width: 400px;
  }
}

.line-showcase-card__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.02rem, 1.1vw, 1.12rem);
  font-weight: 800;
  color: var(--line-navy);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.line-showcase-card__desc {
  margin: 0 auto;
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--line-muted);
  text-align: center;
}

@media (min-width: 901px) {
  .line-showcase-card__desc {
    max-width: 24rem;
  }
}
