/* 官方像素级对齐层。
   所有数值取自 https://groww.in 的 computed style 实测（viewport 1084×655）：
   h1 88px/535/#353839/Soehne lh1.1 · h2 44px/500 · 主绿 #04b488
   header 70px · logo 122×33 · 导航 16px/535/#7f8283 · Login 118×40/r8
   搜索 320×40 · ticker 14px/#babbbc。
   本文件必须最后加载，用于覆盖 groww.css 里早期为窄屏做的响应式压缩。 */

@font-face {
  font-family: 'GrowwSans';
  src: url('/assets/fonts/GrowwSans-Variable.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Soehne';
  src: url('/assets/fonts/Soehne.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ── 设计令牌 ───────────────────────────────────────────── */
.groww-header,
.groww-home,
.groww-footer {
  --groww-green: #04b488;
  --groww-green-hover: #03a077;
  --groww-dark: #353839;
  --groww-nav: #7f8283;
  --groww-ticker: #babbbc;
  --groww-border: #e9edf0;
  font-family: GrowwSans, 'Groww Sans', Inter, Arial, Helvetica, sans-serif;
  color: #353839;
}

/* ── Header ─────────────────────────────────────────────── */
.groww-header .groww-header-inner {
  max-width: 1084px;
  min-height: 70px;
  padding: 0 32px;
  gap: 32px;
  align-items: center;
}
.groww-header .groww-brand {
  display: block;
  width: 122px;
  height: 33px;
  flex: 0 0 122px;
  overflow: visible;
}
.groww-header .groww-brand img {
  width: 122px !important;
  height: 33px !important;
  max-width: none !important;
  object-fit: contain;
}
.groww-header .groww-primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 16px;
  font-weight: 535;
  line-height: 22px;
  color: #7f8283;
}
.groww-header .groww-primary-nav > a,
.groww-header .groww-more > summary {
  padding: 24px 20px;
  color: #7f8283;
  font-size: 16px;
  font-weight: 535;
  line-height: 22px;
  white-space: nowrap;
}
.groww-header .groww-primary-nav > a:hover,
.groww-header .groww-more > summary:hover {
  color: #353839;
}
.groww-header .groww-nav-mf {
  display: flex;
  align-items: center;
  border-right: 1px solid #e9edf0;
  margin-right: 4px;
}
.groww-header .groww-search {
  height: 40px;
  min-width: 320px;
  max-width: 320px;
  margin-left: auto;
  border: 1px solid #e7e8ea;
  border-radius: 8px;
  padding: 0 12px;
  gap: 10px;
  font-size: 16px !important;
  font-weight: 435;
  color: #353839;
  background: #fff;
}
.groww-header .groww-search .groww-icon {
  width: 20px;
  height: 20px;
  color: #353839;
}
.groww-header .groww-search span {
  color: #353839;
}
.groww-header .groww-search kbd {
  border: 0;
  background: transparent;
  color: #9a9c9d;
  font-size: 13px;
  padding: 0;
  margin-left: auto;
}
/* 官方匿名态只有一个 118×40 的绿色按钮，没有多余的圆形图标 */
.groww-header .groww-header-utility,
.groww-header .groww-header-bell {
  display: none !important;
}
.groww-header .groww-account-anonymous {
  width: 118px !important;
  height: 40px !important;
  flex: 0 0 118px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #04b488 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 535 !important;
  line-height: 20px !important;
  padding: 12px 16px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap !important;
  gap: 0;
}
.groww-header .groww-account-anonymous .groww-icon {
  display: none !important;
}
.groww-header .groww-account-anonymous:hover {
  background: #03a077 !important;
}
.groww-header .groww-login {
  height: 40px;
  border-radius: 8px;
  font-size: 14px !important;
  font-weight: 535 !important;
  padding: 0 16px;
}

/* ── 标题体系（Soehne，官方字重 535/500）─────────────────── */
.groww-home .groww-hero :is(h1,h2),
.groww-home .groww-section h2,
.groww-home .groww-fno-inner h2,
.groww-home .groww-start-section h2 {
  font-family: Soehne, GrowwSans, sans-serif;
  letter-spacing: normal;
  color: #353839;
}
.groww-home .groww-hero :is(h1,h2) {
  font-size: 88px;
  font-weight: 535;
  line-height: 1.1;
  margin: 0 24px 22px;
}
.groww-home .groww-section h2,
.groww-home .groww-fno-inner h2 {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
}
.groww-home .groww-start-section h2 {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
}
.groww-home .groww-section-heading p,
.groww-home .groww-mf-copy p {
  font-family: GrowwSans, sans-serif;
  color: #7f8283;
}
.groww-home .groww-eyebrow {
  font-family: GrowwSans, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: #9a9c9d;
  font-weight: 535;
}
.groww-home .groww-green-button {
  font-family: GrowwSans, sans-serif;
  border-radius: 8px;
  background: #04b488;
  font-weight: 535;
  font-size: 15px;
  min-height: 48px;
  padding: 0 20px;
  height: 48px;
}
.groww-home .groww-green-button:hover {
  background: #03a077;
}

/* ── 行情条：官方是连续滚动的指数带 ─────────────────────── */
.groww-home .groww-ticker {
  display: block;
  min-height: 20px;
  max-width: none;
  margin: 0;
  padding: 44px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: #babbbc;
  overflow: hidden;
  position: relative;
  justify-content: flex-start;
  gap: 0;
  border-bottom: 0;
}
.groww-home .groww-ticker-track {
  display: flex;
  /* 必须显式锁定横向排列：groww.css 移动端有一条 .groww-ticker div{flex-direction:column}，
     会把这个 track（本身就是 div）也排成竖列，导致整条行情带堆成几千像素高。 */
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 44px;
  width: max-content;
  padding-left: 20px;
  animation: groww-ticker-scroll 90s linear infinite;
}
.groww-home .groww-ticker:hover .groww-ticker-track {
  animation-play-state: paused;
}
.groww-home .groww-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.groww-home .groww-ticker-item > span {
  color: #babbbc;
  font-weight: 535;
}
.groww-home .groww-ticker-item > strong {
  color: #353839;
  font-weight: 435;
}
.groww-home .groww-ticker-item > em {
  font-style: normal;
  font-weight: 535;
  color: #04b488;
}
.groww-home .groww-ticker-item > em.groww-ticker-down {
  color: #eb5b3c;
}
@keyframes groww-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media(prefers-reduced-motion: reduce){
  .groww-home .groww-ticker-track { animation: none; }
}

/* ── 侧边留白：官方容器 1084 ─────────────────────────────── */
.groww-home .groww-section {
  max-width: 1084px;
  padding-left: 0;
  padding-right: 0;
}
.groww-footer .groww-footer-inner,
.groww-footer .groww-footer-bottom {
  max-width: 1084px;
}

/* ── 官方导航含 More，且搜索框与登录按钮间距 12px ──────────── */
.groww-header .groww-more {
  display: block !important;
}
.groww-header .groww-more > summary {
  color: #7f8283;
}
.groww-header .groww-search {
  margin-right: -20px;
}
/* 官方 h1 顶边 y=134（header 70 + 行情带 44px 上间距 + 20px 文字）。 */
.groww-home .groww-hero {
  padding-top: 0;
}
.groww-home .groww-ticker {
  padding: 44px 0 0;
}
.groww-home .groww-hero :is(h1,h2) {
  margin: 0 24px 22px;
}
/* 官方像素级对齐层 · 补充区块（信任条 / 深色区 / 评价墙 / family / 视频 / SEBI / 页脚）
   数值取自 groww.in 实测：深色 #060809、浅字 #f2f5f7、h2 44/500、
   信任条 y1024 h152 pad-top60、评价卡 248×139 r22 pad16 14px、
   family 卡 324×486 r12 gap24、视频区 h708 pad80、页脚四栏 1.55fr 1fr 1fr 1fr。 */

/* ── 信任条 ─────────────────────────────────────────────── */
.groww-home .groww-trust {
  padding: 60px 0 0;
  text-align: center;
}
.groww-home .groww-trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.groww-home .groww-trust-union {
  width: 10px;
  height: 28px;
  flex: 0 0 10px;
  background: linear-gradient(180deg, #e4e6e8 0%, #c0c2c4 100%);
  border-radius: 5px;
  display: block;
  opacity: 0.85;
}
.groww-home .groww-trust-union-right {
  transform: scaleX(-1);
}
.groww-home .groww-trust-copy {
  display: flex;
  flex-direction: column;
  font-family: GrowwSans, sans-serif;
  font-size: 16px;
  font-weight: 435;
  line-height: 1.25;
  color: #353839;
}
.groww-home .groww-trust-note {
  font-family: GrowwSans, sans-serif;
  font-size: 13px;
  color: #8b8e90;
  margin: 10px 0 0;
}

/* ── 深色区块（F&O + Stock trading，官方 y3068→6751）───────── */
.groww-home .groww-dark-block {
  background: #060809;
  color: #f2f5f7;
}
.groww-home .groww-dark-block .groww-fno-section {
  background: transparent;
  padding: 0;
}
.groww-home .groww-dark-block .groww-fno-inner {
  padding-top: 80px;
  padding-bottom: 160px;
  text-align: center;
}
.groww-home .groww-dark-block h2,
.groww-home .groww-dark-block h3 {
  color: #f2f5f7;
}
.groww-home .groww-dark-block .groww-fno-links {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.groww-home .groww-dark-block .groww-fno-links a {
  border-top: 1px solid #2a2d2f;
  padding-top: 20px;
}
.groww-home .groww-dark-block .groww-fno-links b {
  color: #f2f5f7;
  font-weight: 435;
  font-size: 14px;
  line-height: 1.5;
  display: block;
}
.groww-home .groww-dark-block .groww-fno-links a > span {
  color: #04b488;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.groww-home .groww-dark-block .groww-fno-links a > span > span {
  font-size: 16px;
}
/* ── F&O：左文字 + 右大图的横向长条，四块连成滚动叙事 ──────
   官方实测：每块 flex-direction:row、文字垂直居中、图从右侧溢出，
   区块总高约 2065px，不是四张等高卡片堆叠。 */
.groww-home .groww-dark-block .groww-fno-rows {
  display: flex;
  flex-direction: column;
  gap: 96px;
  margin-top: 64px;
  padding-bottom: 72px;
}
.groww-home .groww-dark-block .groww-fno-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  min-height: 380px;
}
.groww-home .groww-dark-block .groww-fno-row-copy {
  flex: 0 0 34%;
  max-width: 420px;
}
.groww-home .groww-dark-block .groww-fno-row-copy b {
  color: #ffffff;
  font-weight: 600;
  font-size: 27px;
  line-height: 1.35;
  letter-spacing: -0.3px;
  display: block;
}
/* 官方 CTA 是白色药丸按钮，不是绿色文字链接 */
.groww-home .groww-dark-block .groww-fno-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  background: #ffffff;
  color: #1b1e20 !important;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
}
.groww-home .groww-dark-block .groww-fno-row-art {
  flex: 1 1 auto;
  min-width: 0;
  /* 图宽出右边缘，制造官方那种溢出感 */
  margin-right: -120px;
}
.groww-home .groww-dark-block .groww-fno-row-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}
@container groww-app (max-width: 900px){
  .groww-home .groww-dark-block .groww-fno-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .groww-home .groww-dark-block .groww-fno-row-copy { flex: none; max-width: none; }
  .groww-home .groww-dark-block .groww-fno-row-art { margin-right: 0; width: 100%; }
  .groww-home .groww-dark-block .groww-fno-row-copy b { font-size: 21px; }
}
.groww-home .groww-dark-block .groww-terminal-art img {
  max-height: 492px;
  object-fit: contain;
}
.groww-home .groww-dark-block .groww-trading-cards {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.groww-home .groww-dark-block .groww-feature-card {
  min-height: 400px;
}
.groww-home .groww-dark-block .groww-trading-section {
  padding-top: 0;
  padding-bottom: 120px;
}
.groww-home .groww-dark-block .groww-section-heading p {
  color: #9ea3a7;
}
.groww-home .groww-dark-block .groww-feature-card {
  background: #101315;
  color: #f2f5f7;
}
.groww-home .groww-dark-block .groww-feature-card p {
  color: #9ea3a7;
}
.groww-home .groww-dark-block .groww-feature-card > div > span {
  color: #04b488;
}

/* ── 评价墙（官方 y6751，卡 248×139 r22）────────────────────── */
.groww-home .groww-testimonials {
  padding: 80px 0 100px;
  background: #fff;
}
.groww-home .groww-testimonial-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.groww-home .groww-testimonial-hero h2 {
  font-family: Soehne, GrowwSans, sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  color: #353839;
  margin: 0 0 18px;
}
.groww-home .groww-testimonial-hero p {
  font-family: GrowwSans, sans-serif;
  font-size: 16px;
  color: #7f8283;
  margin: 0 0 28px;
}
.groww-home .groww-testimonial-wall {
  columns: 4;
  column-gap: 24px;
  max-width: 1084px;
  margin: 0 auto;
  padding: 0 32px;
}
.groww-home .groww-testimonial-card {
  break-inside: avoid;
  background: #fff;
  border: 1px solid #e9edf0;
  border-radius: 22px;
  padding: 16px;
  margin: 0 0 24px;
  font-family: GrowwSans, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #353839;
  box-shadow: 0 1px 2px #35383908;
}
.groww-home .groww-testimonial-card p {
  margin: 0 0 14px;
}
.groww-home .groww-testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.groww-home .groww-testimonial-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #04b48814;
  color: #04b488;
  font-weight: 535;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.groww-home .groww-testimonial-card footer b {
  display: block;
  font-size: 13px;
  font-weight: 535;
}
.groww-home .groww-testimonial-card footer span:not(.groww-testimonial-avatar) {
  display: block;
  font-size: 11px;
  color: #8b8e90;
  margin-top: 2px;
}

/* ── More from the Groww family（324×486 r12）─────────────── */
.groww-home .groww-family {
  padding: 40px 32px 100px;
  max-width: 1084px;
  margin: 0 auto;
  text-align: center;
}
.groww-home .groww-family h2 {
  font-family: Soehne, GrowwSans, sans-serif;
  font-size: 44px;
  font-weight: 500;
  color: #353839;
  margin: 0 0 40px;
}
.groww-home .groww-family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.groww-home .groww-family-card {
  border-radius: 12px;
  min-height: 486px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #353839;
  position: relative;
  overflow: hidden;
  font-family: GrowwSans, sans-serif;
}
.groww-home .groww-family-card > span {
  font-family: Soehne, GrowwSans, sans-serif;
  font-size: 56px;
  font-weight: 535;
  line-height: 1;
  margin-bottom: auto;
}
.groww-home .groww-family-card > b {
  font-size: 24px;
  font-weight: 535;
  margin-bottom: 10px;
}
.groww-home .groww-family-card > small {
  font-size: 14px;
  color: #5c6062;
  line-height: 1.5;
}
.groww-home .groww-family-card > em {
  position: absolute;
  right: 28px;
  bottom: 28px;
  font-size: 20px;
  font-style: normal;
  color: #04b488;
}
.groww-home .groww-family-915 { background: #f0fbf7; }
.groww-home .groww-family-w { background: #f4f6ff; }
.groww-home .groww-family-credit { background: #fff8f0; }

/* ── 视频区（官方 h708 pad80）─────────────────────────────── */
.groww-home .groww-channel {
  max-width: 1084px;
  margin: 0 auto;
  padding: 80px 32px;
  text-align: center;
}
.groww-home .groww-channel h2 {
  font-family: Soehne, GrowwSans, sans-serif;
  font-size: 44px;
  font-weight: 500;
  color: #353839;
  margin: 0 0 40px;
}
.groww-home .groww-channel-art {
  height: 360px;
  border-radius: 16px;
  background: linear-gradient(135deg, #04b488 0%, #07c493 45%, #0a7a5f 100%);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}
.groww-home .groww-channel-play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ffffff26;
  border: 2px solid #ffffffcc;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  padding-left: 4px;
}
.groww-home .groww-channel-link {
  text-decoration: none;
}

/* ── SEBI 提示条 ─────────────────────────────────────────── */
.groww-home .groww-awareness {
  border-top: 1px solid #e9edf0;
  padding: 28px 0 36px;
  overflow: hidden;
}
.groww-home .groww-awareness-label {
  display: block;
  text-align: center;
  font-family: GrowwSans, sans-serif;
  font-size: 11px;
  font-weight: 535;
  letter-spacing: 1.4px;
  color: #9a9c9d;
  margin-bottom: 16px;
}
.groww-home .groww-awareness-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: groww-awareness-scroll 60s linear infinite;
}
.groww-home .groww-awareness-track a {
  font-family: GrowwSans, sans-serif;
  font-size: 12px;
  color: #7f8283;
  white-space: nowrap;
  text-decoration: none;
}
.groww-home .groww-awareness-track span {
  color: #c9cbcc;
  font-size: 10px;
}
@keyframes groww-awareness-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media(prefers-reduced-motion: reduce){
  .groww-home .groww-awareness-track { animation: none; }
}

/* ── 响应式 ─────────────────────────────────────────────── */
@container groww-app (max-width: 900px){
  .groww-home .groww-testimonial-wall { columns: 2; padding: 0 24px; }
  .groww-home .groww-family-grid { grid-template-columns: 1fr; }
  .groww-home .groww-family-card { min-height: 280px; }
  .groww-home .groww-dark-block .groww-fno-links { grid-template-columns: 1fr 1fr; }
  .groww-home .groww-testimonial-hero h2,
  .groww-home .groww-family h2,
  .groww-home .groww-channel h2 { font-size: 32px; }
}
@container groww-app (max-width: 600px){
  .groww-home .groww-testimonial-wall { columns: 1; padding: 0 20px; }
  .groww-home .groww-dark-block .groww-fno-links { grid-template-columns: 1fr; }
  .groww-home .groww-channel-art { height: 220px; }
}

/* ── 页脚四栏补齐 ─────────────────────────────────────────── */
.groww-footer .groww-footer-inner {
  grid-template-columns: 1.55fr 1fr 1fr 1fr;
  gap: 32px;
}
.groww-footer .groww-footer-column:last-child p {
  font-family: GrowwSans, sans-serif;
  font-size: 12px;
  line-height: 1.8;
  color: #9497a4;
  margin: 0 0 14px;
}


/* ── 窄屏：收起产品导航，只留汉堡菜单 ────────────────────────
   上面 .groww-header .groww-primary-nav 是双类名，
   groww.css 里媒体查询的单类名压不过它，这里用同等特异性覆盖。 */
@container groww-app (max-width: 600px){
  .groww-header .groww-primary-nav { display: none; }
  .groww-header .groww-mobile-menu { display: block; }
}
