:root {
  --hip9-pri: #1c9b6d;
  --hip9-pri-hov: #157955;
  --hip9-acc: #cb3979;
  --hip9-bg: #f4f7f6;
  --hip9-surf: #ffffff;
  --hip9-text: #1a202c;
  --hip9-text-dim: #4a5568;
  --hip9-text-light: #718096;
  --hip9-bord: #e2e8f0;
  --hip9-rad: 8px;
  --hip9-rad-lg: 12px;
  --hip9-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --hip9-trans: all 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--hip9-text);
  background-color: var(--hip9-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  color: var(--hip9-text);
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 700;
}

a {
  color: var(--hip9-pri);
  text-decoration: none;
  transition: var(--hip9-trans);
}

a:hover {
  color: var(--hip9-pri-hov);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* LAYOUT */
.hip9-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hip9-rail {
  background: var(--hip9-surf);
  border-bottom: 1px solid var(--hip9-bord);
  padding: 20px;
  display: none; /* Hidden on mobile by default */
}

.hip9-main {
  flex: 1;
  padding: 16px;
  min-width: 0;
  overflow-x: hidden;
  max-width: 100%;
}

/* HEADER MOBILE */
.hip9-header-mobile {
  background: var(--hip9-surf);
  padding: 16px;
  border-radius: var(--hip9-rad);
  margin-bottom: 20px;
  box-shadow: var(--hip9-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hip9-logo {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--hip9-pri);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hip9-logo-box-mobile, .hip9-logo-box, .hip9-logo-box-footer {
  display: flex;
  align-items: center;
}

.hip9-nav-mobile {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hip9-nav-mobile::-webkit-scrollbar {
  display: none;
}

.hip9-nav-link {
  display: block;
  padding: 10px 14px;
  background: var(--hip9-bg);
  color: var(--hip9-text);
  border-radius: var(--hip9-rad);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.hip9-nav-link:hover {
  background: var(--hip9-pri);
  color: #fff;
}

/* TABLET & DESKTOP BREAKPOINTS */
@media (min-width: 768px) {
  .hip9-layout {
    flex-direction: row;
  }
  .hip9-header-mobile {
    display: none;
  }
  .hip9-rail {
    display: flex;
    flex-direction: column;
    width: 260px;
    flex-shrink: 0;
    height: 100vh;
    position: sticky;
    top: 0;
    border-right: 1px solid var(--hip9-bord);
    border-bottom: none;
    overflow-y: auto;
  }
  .hip9-main {
    padding: 32px;
  }
  .hip9-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 32px;
    flex-grow: 1;
  }
  .hip9-nav-title {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    color: var(--hip9-text-light);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
  }
  .hip9-rail-footer {
    margin-top: 32px;
    font-size: 13px;
    color: var(--hip9-text-light);
    border-top: 1px solid var(--hip9-bord);
    padding-top: 16px;
  }
}

/* TICKER */
.hip9-ticker-wrap {
  background: var(--hip9-surf);
  border: 1px solid var(--hip9-bord);
  border-radius: var(--hip9-rad);
  padding: 12px 16px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--hip9-shadow);
  display: flex;
}

.hip9-ticker-track {
  display: flex;
  gap: 40px;
  animation: hip9-ticker-anim 20s linear infinite;
  white-space: nowrap;
}

@keyframes hip9-ticker-anim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hip9-ticker-item {
  display: inline-block;
}

.hip9-ticker-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--hip9-text);
}

.hip9-ticker-link:hover {
  color: var(--hip9-acc);
}

/* HERO */
.hip9-hero {
  position: relative;
  border-radius: var(--hip9-rad-lg);
  overflow: hidden;
  margin-bottom: 32px;
  background: #000;
}

.hip9-hero-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  opacity: 0.6;
}

.hip9-hero-overlay {
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.hip9-hero-title {
  color: #fff;
  font-size: 28px;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hip9-hero-sub {
  color: #e2e8f0;
  font-size: 16px;
  max-width: 600px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
  .hip9-hero-img { height: 400px; }
  .hip9-hero-title { font-size: 42px; }
  .hip9-hero-overlay { padding: 48px; }
}

/* STATS */
.hip9-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.hip9-stat-box {
  background: var(--hip9-surf);
  padding: 20px;
  border-radius: var(--hip9-rad);
  text-align: center;
  box-shadow: var(--hip9-shadow);
  border: 1px solid var(--hip9-bord);
  transition: var(--hip9-trans);
}

.hip9-stat-box:hover {
  transform: translateY(-4px);
  border-color: var(--hip9-pri);
}

.hip9-stat-num {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--hip9-pri);
}

.hip9-stat-label {
  display: block;
  font-size: 13px;
  color: var(--hip9-text-dim);
  margin-top: 4px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .hip9-stats { grid-template-columns: repeat(4, 1fr); }
}

/* CHIPS */
.hip9-chips-section {
  margin-bottom: 24px;
}

.hip9-chips-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hip9-chips-row::-webkit-scrollbar {
  display: none;
}

.hip9-chip {
  padding: 8px 16px;
  background: var(--hip9-surf);
  border: 1px solid var(--hip9-bord);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--hip9-text-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--hip9-trans);
}

.hip9-chip:hover, .hip9-chip-active {
  background: var(--hip9-pri);
  color: #fff;
  border-color: var(--hip9-pri);
}

/* CARDS */
.hip9-section-title {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--hip9-text);
  border-left: 4px solid var(--hip9-acc);
  padding-left: 12px;
}

.hip9-cards-grid, .hip9-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .hip9-cards-grid, .hip9-related-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
  }
}

.hip9-card {
  background: var(--hip9-surf);
  border-radius: var(--hip9-rad);
  overflow: hidden;
  box-shadow: var(--hip9-shadow);
  border: 1px solid var(--hip9-bord);
  display: flex;
  flex-direction: column;
  transition: var(--hip9-trans);
}

.hip9-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--hip9-pri);
}

.hip9-card-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--hip9-bg);
}

.hip9-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--hip9-trans);
}

.hip9-card:hover .hip9-card-img-wrap img {
  transform: scale(1.05);
}

.hip9-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hip9-card-title {
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.hip9-card-sub {
  font-size: 13px;
  color: var(--hip9-text-dim);
  margin-bottom: 12px;
  flex: 1;
}

.hip9-card-badge {
  align-self: flex-start;
  background: var(--hip9-bg);
  color: var(--hip9-acc);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

/* BENEFITS */
.hip9-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .hip9-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hip9-benefit-card {
  background: var(--hip9-surf);
  padding: 24px;
  border-radius: var(--hip9-rad);
  border: 1px solid var(--hip9-bord);
  box-shadow: var(--hip9-shadow);
}

.hip9-benefit-title {
  font-size: 18px;
  color: var(--hip9-pri);
  margin-bottom: 10px;
}

.hip9-benefit-desc {
  font-size: 14px;
  color: var(--hip9-text-dim);
  margin: 0;
}

/* STEPS */
.hip9-steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.hip9-step-item {
  display: flex;
  gap: 16px;
  background: var(--hip9-surf);
  padding: 20px;
  border-radius: var(--hip9-rad);
  border: 1px solid var(--hip9-bord);
  align-items: center;
}

.hip9-step-num {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--hip9-acc);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.hip9-step-text h4 {
  margin-bottom: 4px;
  font-size: 16px;
}

.hip9-step-text p {
  margin: 0;
  font-size: 14px;
  color: var(--hip9-text-dim);
}

/* PAYMENTS */
.hip9-payments {
  background: var(--hip9-surf);
  padding: 24px;
  border-radius: var(--hip9-rad);
  border: 1px solid var(--hip9-bord);
  margin-bottom: 40px;
}

.hip9-payments-sub {
  font-size: 14px;
  color: var(--hip9-text-dim);
  margin-bottom: 16px;
}

.hip9-payment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hip9-pay-chip {
  background: var(--hip9-bg);
  border: 1px solid var(--hip9-bord);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hip9-text-dim);
}

/* ARTICLE */
.hip9-article {
  background: var(--hip9-surf);
  padding: 24px;
  border-radius: var(--hip9-rad);
  border: 1px solid var(--hip9-bord);
  margin-bottom: 40px;
  font-size: 16px;
  color: var(--hip9-text-dim);
}

@media (min-width: 768px) {
  .hip9-article {
    padding: 32px;
  }
}

.hip9-article h2, .hip9-article h3 {
  color: var(--hip9-text);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.hip9-article p {
  margin-bottom: 1.25em;
}

.hip9-article ul, .hip9-article ol {
  margin-bottom: 1.25em;
  padding-left: 20px;
}

.hip9-article li {
  margin-bottom: 0.5em;
}

.hip9-article img {
  border-radius: var(--hip9-rad);
  margin: 1.5em 0;
}

.hip9-article table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}

.hip9-article th, .hip9-article td {
  border: 1px solid var(--hip9-bord);
  padding: 12px;
  text-align: left;
  font-size: 15px;
}

.hip9-article th {
  background: var(--hip9-bg);
  font-weight: 600;
  color: var(--hip9-text);
}

/* BREADCRUMBS & PAGE HEADER */
.hip9-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.hip9-crumb {
  color: var(--hip9-text-dim);
}

.hip9-crumb:hover {
  color: var(--hip9-pri);
}

.hip9-crumb:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--hip9-bord);
}

.hip9-page-header {
  margin-bottom: 32px;
}

.hip9-page-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.hip9-meta-desc {
  font-size: 16px;
  color: var(--hip9-text-dim);
}

@media (min-width: 768px) {
  .hip9-page-title { font-size: 36px; }
}

/* FAQ */
.hip9-faq-section {
  margin-bottom: 40px;
}

.hip9-faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hip9-faq-item {
  background: var(--hip9-surf);
  border: 1px solid var(--hip9-bord);
  border-radius: var(--hip9-rad);
  overflow: hidden;
}

.hip9-faq-q {
  padding: 16px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  color: var(--hip9-text);
  cursor: pointer;
  background: var(--hip9-surf);
  transition: var(--hip9-trans);
  font-size: 15px;
}

.hip9-faq-q:hover {
  background: var(--hip9-bg);
}

.hip9-faq-a {
  padding: 0 16px 16px 16px;
  color: var(--hip9-text-dim);
  font-size: 15px;
  border-top: 1px solid transparent;
}

.hip9-faq-item[open] .hip9-faq-a {
  border-top-color: var(--hip9-bord);
  padding-top: 16px;
}

/* PAGER */
.hip9-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.hip9-pager-link {
  flex: 1;
  text-align: center;
  background: var(--hip9-surf);
  padding: 12px;
  border: 1px solid var(--hip9-bord);
  border-radius: var(--hip9-rad);
  font-weight: 500;
  font-size: 14px;
}

.hip9-pager-link:hover {
  border-color: var(--hip9-pri);
  background: var(--hip9-bg);
}

/* FOOTER */
.hip9-footer {
  background: var(--hip9-surf);
  border: 1px solid var(--hip9-bord);
  border-radius: var(--hip9-rad);
  padding: 32px;
  margin-top: auto;
}

.hip9-footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hip9-bord);
}

@media (min-width: 768px) {
  .hip9-footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.hip9-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hip9-footer-links a {
  font-size: 14px;
  color: var(--hip9-text-dim);
}

.hip9-footer-links a:hover {
  color: var(--hip9-pri);
}

.hip9-footer-bottom {
  text-align: center;
}

.hip9-legal-text {
  font-size: 13px;
  color: var(--hip9-text-light);
  margin-bottom: 8px;
}

.hip9-copyright {
  font-size: 13px;
  color: var(--hip9-text-light);
  margin: 0;
  font-weight: 500;
}

/* ANIMATIONS UTILS */
.hip9-scroll-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hip9-visible {
  opacity: 1;
  transform: translateY(0);
}

/* v2fix-center: 扫查发现内容列未居中（margin 冲突/缺失）*/
article.hip9-article.hip9-scroll-anim,
footer.hip9-footer,
header.hip9-page-header,
section.hip9-benefits.hip9-scroll-anim,
section.hip9-cards-section.hip9-scroll-anim,
section.hip9-faq-section.hip9-scroll-anim,
section.hip9-hero,
section.hip9-payments.hip9-scroll-anim,
section.hip9-related-section.hip9-scroll-anim,
section.hip9-stats.hip9-scroll-anim,
section.hip9-steps.hip9-scroll-anim
{margin-inline:auto !important;}
