/* =========================================
   首页 · 财神棋牌免费注册送999
   作用域：.page-home
   ========================================= */
.page-home {
  background: var(--clr-cream);
  color: var(--clr-dark);
  overflow-x: hidden;
}

/* ---------- 首屏主视觉 ---------- */
.ph-hero {
  position: relative;
  min-height: clamp(600px, 88vh, 920px);
  display: flex;
  align-items: center;
  background: linear-gradient(115deg, rgba(178, 34, 52, 0.92) 0%, rgba(27, 42, 74, 0.85) 55%, rgba(212, 175, 55, 0.72) 100%);
  color: var(--clr-white);
  isolation: isolate;
  padding: var(--space-6) 0;
}
.ph-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.ph-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.26;
  filter: saturate(0.9) contrast(1.05);
}
.ph-hero-bg-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(178, 34, 52, 0.92) 0%, rgba(27, 42, 74, 0.82) 55%, rgba(212, 175, 55, 0.5) 100%);
}
.ph-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(46%, 560px);
  height: 14px;
  background: linear-gradient(90deg, var(--clr-gold), rgba(212, 175, 55, 0.2));
  z-index: 3;
}
.ph-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 220px;
  height: 220px;
  border-right: 2px solid rgba(245, 235, 221, 0.3);
  border-bottom: 2px solid rgba(245, 235, 221, 0.3);
  z-index: 3;
  pointer-events: none;
}
.ph-hero-inner {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
}
.ph-hero-overline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: rgba(245, 235, 221, 0.86);
  margin-bottom: var(--space-3);
}
.ph-hero-overline span {
  color: var(--clr-gold);
  font-size: 1rem;
  letter-spacing: 0.4em;
  border: 1px solid rgba(212, 175, 55, 0.55);
  padding: 0.2em 0.7em;
  border-radius: 999px;
}
.ph-hero-title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-serif);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.ph-hero-brand {
  display: block;
  font-size: clamp(2.9rem, 9vw, 6.6rem);
  text-shadow: 0 2px 0 rgba(43, 30, 22, 0.25), 0 10px 26px rgba(43, 30, 22, 0.2);
}
.ph-hero-offer {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--clr-gold);
  background: linear-gradient(120deg, #ffffff, var(--clr-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.15em;
}
.ph-hero-desc {
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(245, 235, 221, 0.88);
  margin-bottom: var(--space-4);
}
.ph-hero-desc strong {
  color: var(--clr-gold);
  font-weight: 600;
}
.ph-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.page-home .btn-primary {
  font-size: 1rem;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(178, 34, 52, 0.35);
}
.page-home .btn-outline {
  font-size: 1rem;
  padding: 0.8em 1.6em;
  border-radius: 999px;
}
.ph-hero-aside {
  justify-self: center;
  width: 100%;
  max-width: 320px;
}
.ph-hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  box-shadow: 0 18px 40px rgba(43, 30, 22, 0.28);
}
.ph-hero-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}
.ph-hero-card-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-gold);
  color: var(--clr-deep-blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  padding: 0.3em 1em;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.ph-hero-card-label {
  margin: var(--space-3) 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  color: rgba(245, 235, 221, 0.8);
}
.ph-hero-card-num {
  margin: var(--space-1) 0;
  font-family: var(--font-mono);
  font-size: clamp(3.6rem, 8vw, 5rem);
  line-height: 1;
  color: var(--clr-gold);
}
.ph-hero-card-unit {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--clr-white);
  letter-spacing: 0.2em;
}
.ph-hero-card-note {
  margin: var(--space-3) 0 0;
  font-size: 0.86rem;
  color: rgba(245, 235, 221, 0.74);
}

/* ---------- 常用入口 ---------- */
.ph-quicklinks {
  position: relative;
  padding: var(--space-6) 0;
}
.ph-quicklinks::before {
  content: "";
  position: absolute;
  top: 40px;
  left: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 70%);
  pointer-events: none;
}
.ph-section-head {
  margin-bottom: var(--space-4);
}
.ph-section-head .section-label,
.ph-steps-intro .section-label,
.ph-brand-copy .section-label,
.ph-news-head .section-label {
  display: inline-block;
  margin-bottom: var(--space-2);
}
.ph-section-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--clr-dark);
}
.ph-section-desc {
  margin: 0;
  color: rgba(43, 30, 22, 0.72);
  max-width: 680px;
  line-height: 1.8;
}
.ph-quicklinks-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .ph-quicklinks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ph-quicklinks-grid .ph-quicklink-card:last-child {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1024px) {
  .ph-quicklinks-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ph-quicklinks-grid .ph-quicklink-card:last-child {
    grid-column: auto;
  }
}
.ph-quicklink-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-white);
  border: 1px solid rgba(43, 30, 22, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}
.ph-quicklink-card:hover,
.ph-quicklink-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.ph-quicklink-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--clr-deep-blue);
}
.ph-quicklink-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.ph-quicklink-card:hover .ph-quicklink-img img {
  transform: scale(1.045);
}
.ph-quicklink-icon {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 26% 24%, rgba(212, 175, 55, 0.24), transparent 44%),
    linear-gradient(135deg, var(--clr-deep-blue) 0%, #2b1e16 100%);
  color: var(--clr-gold);
}
.ph-quicklink-icon svg {
  width: 88px;
  height: 88px;
}
.ph-quicklink-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-4);
}
.ph-quicklink-title {
  margin: var(--space-2) 0 var(--space-2);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--clr-dark);
}
.ph-quicklink-desc {
  margin: 0 0 var(--space-3);
  color: rgba(43, 30, 22, 0.72);
  font-size: 0.95rem;
  line-height: 1.7;
}
.ph-quicklink-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: auto;
  color: var(--clr-primary);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.22s ease;
}
.ph-quicklink-link:hover,
.ph-quicklink-link:focus-visible {
  gap: 0.7em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 新手三步启程 ---------- */
.ph-steps {
  position: relative;
  padding: var(--space-6) 0;
  background: linear-gradient(140deg, var(--clr-deep-blue) 0%, #2b1e16 100%);
  color: var(--clr-white);
  overflow: hidden;
}
.ph-steps::before {
  content: "";
  position: absolute;
  top: 60px;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px dashed rgba(212, 175, 55, 0.2);
}
.ph-steps::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 68%);
}
.ph-steps .ph-section-title {
  color: var(--clr-white);
}
.ph-steps .ph-section-desc {
  color: rgba(245, 235, 221, 0.78);
}
.ph-steps-intro {
  margin-bottom: var(--space-4);
}
.ph-steps-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}
.ph-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ph-step-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}
.ph-step-item:first-child {
  padding-top: 0;
}
.ph-step-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.ph-step-num {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 0.2em;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--clr-gold);
}
.ph-step-body h3 {
  margin: 0 0 var(--space-1);
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.35;
}
.ph-step-body p {
  margin: 0;
  color: rgba(245, 235, 221, 0.76);
  line-height: 1.7;
  font-size: 0.96rem;
}
.ph-step-body p strong {
  color: var(--clr-gold);
}
.ph-steps-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-lg);
}
.ph-gift-img {
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
}
.ph-gift-img img {
  display: block;
  width: 100%;
  height: auto;
}
.ph-steps-aside-text {
  margin: 0;
  color: rgba(245, 235, 221, 0.82);
  font-size: 0.95rem;
  line-height: 1.7;
}
.ph-steps-aside-text strong {
  font-family: var(--font-mono);
  font-size: 1.04rem;
  color: var(--clr-gold);
}
.page-home .ph-steps-aside .btn-outline {
  color: var(--clr-white);
  border-color: rgba(245, 235, 221, 0.55);
}
.ph-steps-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--clr-gold);
  font-size: 0.92rem;
  text-decoration: none;
}
.ph-steps-contact:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 品牌漫游 ---------- */
.ph-brand {
  position: relative;
  padding: var(--space-6) 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 175, 55, 0.1), transparent 34%),
    var(--clr-cream);
}
.ph-brand-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 820px) {
  .ph-brand-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}
.ph-brand-visual {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-brand-color-block {
  position: absolute;
  inset: 8% 4% 8% 8%;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-gold) 100%);
  transform: rotate(-3deg);
  box-shadow: var(--shadow-lg);
}
.ph-brand-color-block::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(245, 235, 221, 0.55);
  border-radius: calc(var(--radius-md) - 4px);
}
.ph-brand-knot {
  position: relative;
  z-index: 2;
  width: 160px;
  height: 160px;
  color: var(--clr-cream);
  filter: drop-shadow(0 8px 18px rgba(43, 30, 22, 0.2));
}
.ph-brand-stamp {
  position: absolute;
  right: 4%;
  bottom: 9%;
  z-index: 2;
  padding: 0.35em 0.8em;
  border: 2px solid var(--clr-primary);
  background: var(--clr-cream);
  color: var(--clr-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  transform: rotate(-5deg);
  box-shadow: var(--shadow-sm);
}
.ph-brand-copy .ph-section-title {
  margin-bottom: var(--space-2);
}
.ph-brand-subtitle {
  margin: 0 0 var(--space-3);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--clr-primary);
}
.ph-brand-copy p {
  margin: 0 0 var(--space-3);
  color: rgba(43, 30, 22, 0.76);
  line-height: 1.8;
}
.ph-brand-copy blockquote {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  border-left: 4px solid var(--clr-gold);
  background: rgba(212, 175, 55, 0.1);
  font-family: var(--font-serif);
  font-size: 1.06rem;
  color: var(--clr-primary);
}
.ph-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: var(--space-2);
  color: var(--clr-primary);
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.22s ease;
}
.ph-brand-link:hover {
  gap: 0.7em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 最新动态 ---------- */
.ph-news {
  padding: var(--space-6) 0;
}
.ph-news-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.ph-news-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--clr-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.ph-news-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ph-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .ph-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ph-news-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  background: var(--clr-white);
  border: 1px solid rgba(43, 30, 22, 0.08);
  border-top: 4px solid var(--clr-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}
.ph-news-card:hover {
  box-shadow: var(--shadow-md);
}
.ph-news-card h3 {
  margin: var(--space-2) 0 var(--space-2);
  font-family: var(--font-serif);
  font-size: 1.16rem;
  line-height: 1.5;
  color: var(--clr-dark);
}
.ph-news-card p {
  margin: 0;
  color: rgba(43, 30, 22, 0.72);
  font-size: 0.95rem;
  line-height: 1.75;
}
.ph-news-card > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-top: var(--space-3);
  color: var(--clr-primary);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.22s ease;
}
.ph-news-card > a:hover {
  gap: 0.6em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 桌面增强 ---------- */
@media (min-width: 1024px) {
  .ph-hero-inner {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
    gap: var(--space-6);
  }
  .ph-hero-aside {
    justify-self: end;
    max-width: 360px;
  }
  .ph-steps-wrap {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: var(--space-6);
  }
}

/* ---------- 动效减弱 ---------- */
@media (prefers-reduced-motion: reduce) {
  .ph-quicklink-card,
  .ph-news-card,
  .ph-quicklink-card:hover,
  .ph-quicklink-card:focus-within,
  .ph-news-card:hover {
    transform: none;
    transition: none;
    box-shadow: var(--shadow-sm);
  }
  .ph-hero-brand {
    text-shadow: 0 2px 0 rgba(43, 30, 22, 0.25);
  }
  .ph-quicklink-link,
  .ph-brand-link,
  .ph-news-card > a,
  .ph-news-more,
  .ph-steps-contact {
    transition: none;
  }
}
