/* === 米游IP 品牌主题 === */
:root {
  --primary:        #2563eb;
  --primary-light:  #60a5fa;
  --primary-dark:   #1d4ed8;
  --primary-rgb:    37, 99, 235;
  --primary-bg:     #eff6ff;

  --hero-bg-start:  #07152f;
  --hero-bg-end:    #123c7c;
  --hero-accent:    #38bdf8;

  --accent:         #f97316;
  --accent-dark:    #ea580c;
  --accent-rgb:     249, 115, 22;
}

.hero {
  background:
    radial-gradient(circle at 76% 22%, rgba(var(--primary-rgb), 0.22), transparent 34%),
    linear-gradient(135deg, var(--hero-bg-start), var(--hero-bg-end));
}

.hero-badge {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: #fed7aa;
  background: rgba(var(--accent-rgb), 0.12);
}

.btn-cta-primary,
.btn-register,
.mobile-cta-register,
.article-register-cta a {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
}

.btn-cta-primary:hover,
.btn-register:hover,
.mobile-cta-register:hover,
.article-register-cta a:hover {
  background: linear-gradient(135deg, var(--accent-dark), #c2410c);
}

.logo img {
  width: auto;
  max-width: 172px;
  object-fit: contain;
}

.hero-image img {
  object-fit: contain;
  background: rgba(7, 21, 47, 0.22);
}

.original-price {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 0.92em;
  margin-left: 6px;
}

.discount-price {
  color: var(--accent-dark);
  font-weight: 800;
}

.notice-panel,
.purchase-reminder {
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 28px;
}

.notice-panel h3,
.purchase-reminder h3 {
  color: #9a3412;
  font-size: 22px;
  margin-bottom: 12px;
}

.notice-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.notice-list li,
.scenario-chip {
  background: #fff;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.package-note,
.price-note {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.7;
}

.compare-table-wrap,
.article-table-wrap {
  overflow-x: auto;
}

.compare-table,
.article-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-table th,
.compare-table td,
.article-table th,
.article-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.compare-table th,
.article-table th {
  background: var(--primary-bg);
  color: var(--text-primary);
  font-weight: 700;
}

.compare-table tr:last-child td,
.article-table tr:last-child td {
  border-bottom: 0;
}

.help-search {
  padding: 32px 0 24px;
  background: var(--bg-light);
}

.search-box {
  display: flex;
  max-width: 640px;
  margin: 0 auto 16px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.10);
}

.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 18px;
  font-size: 15px;
}

.search-box button {
  width: 54px;
  border: 0;
  color: #fff;
  background: var(--primary);
}

.hot-search-tags,
.help-sub-nav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hot-search-tags {
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
}

.hot-search-tags button,
.help-sub-nav button {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--text-secondary);
  padding: 7px 14px;
  cursor: pointer;
  font: inherit;
}

.help-sub-nav {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.hot-search-tags button:hover,
.help-sub-nav button:hover,
.help-sub-nav button.active {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-bg);
}

.article-list {
  padding: 42px 0 70px;
}

.help-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.article-card,
.sidebar-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.article-card {
  display: block;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.article-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.article-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.article-read-time,
.article-card-footer {
  color: var(--text-light);
  font-size: 12px;
}

.article-card h3 {
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.article-excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  margin-top: 16px;
  padding-top: 12px;
}

.help-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-box {
  padding: 20px;
  margin-bottom: 18px;
}

.sidebar-box-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.sidebar-hot-list li {
  border-bottom: 1px solid var(--border-color);
  padding: 9px 0;
}

.sidebar-hot-list li:last-child {
  border-bottom: 0;
}

.sidebar-hot-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
}

.sidebar-hot-list a:hover {
  color: var(--primary);
}

.no-results {
  display: none;
  text-align: center;
  padding: 44px;
  color: var(--text-light);
}

.key-points {
  background: var(--primary-bg);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 22px 0 28px;
}

.key-points h2 {
  margin-top: 0 !important;
}

.article-cta-grid,
.recommended-list,
.article-nav {
  display: grid;
  gap: 14px;
}

.recommended-list {
  grid-template-columns: repeat(3, 1fr);
}

.recommended-list a,
.article-nav a {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  text-decoration: none;
  color: var(--text-secondary);
  background: #fff;
}

.recommended-list a:hover,
.article-nav a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.article-nav {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 26px;
}

.article-detail .article-body .article-register-cta {
  background: linear-gradient(135deg, var(--hero-bg-start), var(--hero-bg-end));
}

@media (max-width: 1024px) {
  .notice-list,
  .help-layout,
  .recommended-list {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* Miyou layout repairs */
.header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.logo {
  flex: 0 0 auto;
}

.logo a {
  min-width: 172px;
}

.logo img {
  display: block;
  width: 172px;
  height: auto !important;
  max-width: 172px;
  max-height: 42px;
  object-fit: contain;
}

.hero {
  min-height: 610px;
  padding: 70px 0 58px;
}

.hero-content {
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 70px;
}

.hero-text h1 {
  max-width: 700px;
  font-size: clamp(34px, 3vw, 44px);
  line-height: 1.22;
  letter-spacing: 0;
  word-break: keep-all;
  text-wrap: balance;
}

.hero-text .hero-desc {
  max-width: 680px;
}

.hero-image {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 520 / 380;
  justify-self: end;
  border-radius: 8px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: transparent;
  border-radius: 8px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.22));
}

.page-header {
  padding: 44px 0 42px;
}

.page-header p {
  max-width: 980px;
  margin: 0 auto;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
  background: #fff;
}

.price-anchor-section {
  margin: 0;
  padding: 26px 0 38px;
  border-radius: 0;
  color: var(--text-primary);
  background: #fff;
}

.price-anchor-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: space-between;
  padding: 22px 28px;
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.price-anchor-item {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 18px;
}

.price-anchor-item .label {
  color: var(--text-light);
}

.price-anchor-item .value {
  color: var(--text-primary);
  font-size: 26px;
  line-height: 1.25;
}

.price-anchor-divider {
  flex: 0 0 1px;
  height: 42px;
  align-self: center;
  background: var(--border-color);
  color: transparent;
}

.price-section {
  padding-top: 54px;
}

.footer-grid {
  grid-template-columns: 1.4fr 0.95fr 1.05fr 1.2fr;
  gap: 34px;
}

.footer-nav a {
  line-height: 1.65;
}

.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact li {
  align-items: flex-start;
  line-height: 1.6;
}

.footer-contact li span {
  display: inline-block;
  color: rgba(255, 255, 255, 0.72);
}

.footer-register-link {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(var(--accent-rgb), 0.9);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.footer-register-link:hover {
  color: #fff;
  background: var(--accent-dark);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.contact-list li i {
  width: 18px;
  color: var(--primary);
  line-height: 1.6;
  text-align: center;
}

.contact-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 13px;
}

.contact-qr img {
  display: block;
  width: 92px;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #fff;
}

.sidebar-contact {
  right: 18px;
  gap: 10px;
}

.sidebar-btn.qq-btn {
  background: #2563eb;
}

.sidebar-btn.wechat-btn {
  background: #16a34a;
}

.sidebar-btn.phone-btn {
  background: #0ea5e9;
}

@media (max-width: 1180px) {
  .hero-content {
    gap: 44px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  }

  .hero-text h1 {
    font-size: clamp(31px, 3.2vw, 38px);
  }

  .hero-features {
    gap: 12px;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1,
  .hero-text .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    justify-self: center;
    max-width: 520px;
  }

  .price-anchor-inner {
    flex-wrap: wrap;
    row-gap: 18px;
  }

  .price-anchor-item {
    flex: 1 1 50%;
  }

  .price-anchor-divider {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sidebar-contact {
    display: none;
  }
}

@media (max-width: 640px) {
  .logo a {
    min-width: 146px;
  }

  .logo img {
    width: 146px;
    max-width: 146px;
  }

  .hero-text h1 {
    font-size: 28px;
    line-height: 1.28;
  }

  .price-anchor-inner {
    padding: 20px;
  }

  .price-anchor-item {
    flex-basis: 100%;
    padding: 0;
  }

  .price-anchor-item .value {
    font-size: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
