.header-logo {
  width: 176px;
  min-width: 176px;
  height: 52px;
  background: url("/ceshi/Uploads/logo/lanhai-logo.svg") left center / contain no-repeat;
}

.header-logo .logo-icon,
.header-logo .logo-text {
  display: none !important;
}

.footer-logo {
  width: 190px;
  height: 58px;
  background: url("/ceshi/Uploads/logo/lanhai-logo-header.svg") left center / contain no-repeat;
}

.footer-logo .logo-icon,
.footer-logo .logo-text {
  display: none !important;
}

.tg-text:after {
  content: "Telegram: @lanhaikf" !important;
}

.tg-link .contact-icon,
.tg-card .info-icon span,
.tg-official-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
  color: transparent !important;
  background: url("/ceshi/assets/telegram.svg") center / contain no-repeat !important;
}

.tg-link .contact-icon {
  width: 18px;
  height: 18px;
}

.tg-card .info-icon span,
.tg-official-icon {
  width: 28px;
  height: 28px;
}

.btn-primary,
.btn-gradient,
.header-cta .btn,
.hero-cta .btn-primary,
.hero-cta .btn-gradient,
.submit-btn {
  color: #fff !important;
  border: 0 !important;
  background: var(--gradient-brand) !important;
  background-image: var(--gradient-brand) !important;
  box-shadow: 0 18px 34px rgba(139, 92, 246, .26), 0 8px 18px rgba(59, 130, 246, .18) !important;
}

.btn-primary:hover,
.btn-gradient:hover,
.header-cta .btn:hover,
.hero-cta .btn-primary:hover,
.hero-cta .btn-gradient:hover,
.submit-btn:hover {
  background: var(--gradient-brand-hover) !important;
  background-image: var(--gradient-brand-hover) !important;
  transform: translateY(-1px);
}

.header-cta .btn {
  min-width: 116px;
  padding: .78rem 1.45rem;
  font-size: .95rem;
  font-weight: 700;
}

.header-cta,
.mobile-cta {
  position: relative;
}

@media (min-width: 1024px) {
  .header-cta {
    display: flex !important;
    align-items: center;
    gap: 12px;
  }
}

.lh-subscribe-channel {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(59, 130, 246, .22);
  border-radius: 999px;
  background: #fff;
  color: #2563eb !important;
  padding: 0 18px;
  font-size: .92rem;
  line-height: 1.1;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .1);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.lh-subscribe-channel:hover {
  border-color: rgba(139, 92, 246, .42);
  background: #f8fbff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(99, 102, 241, .14);
}

.lh-subscribe-channel.is-disabled {
  opacity: .78;
}

.lh-mobile-subscribe-trigger {
  display: none;
}

@media (max-width: 1023px) {
  .header-nav > .lh-mobile-subscribe-trigger {
    position: fixed;
    top: 16px;
    right: 64px;
    z-index: 60;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 130, 246, .22);
    border-radius: 999px;
    background: #fff;
    color: #2563eb !important;
    padding: 0 14px;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .1);
  }

  .header-nav > .lh-mobile-subscribe-trigger.is-disabled {
    opacity: .78;
  }
}

@media (max-width: 360px) {
  .header-nav > .lh-mobile-subscribe-trigger {
    right: 58px;
    padding: 0 11px;
    font-size: 12px;
  }
}

.mobile-cta {
  display: grid;
  gap: 12px;
}

.mobile-cta .lh-subscribe-channel {
  width: 100%;
  min-height: 52px;
}

.lh-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lh-user-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 116px;
  min-height: 42px;
  max-width: 210px;
  padding: .68rem 1rem .68rem .72rem;
  border: 0;
  border-radius: 999px;
  background: var(--gradient-brand, linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%));
  background-image: var(--gradient-brand, linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%));
  color: #fff;
  font-size: .95rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(139, 92, 246, .26), 0 8px 18px rgba(59, 130, 246, .18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.lh-user-trigger:hover,
.lh-user-trigger[aria-expanded="true"] {
  background: var(--gradient-brand-hover, linear-gradient(135deg, #2563eb 0%, #7c3aed 48%, #db2777 100%));
  background-image: var(--gradient-brand-hover, linear-gradient(135deg, #2563eb 0%, #7c3aed 48%, #db2777 100%));
  transform: translateY(-1px);
}

.lh-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

.lh-user-name {
  display: inline-block;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lh-user-chevron {
  display: inline-flex;
  transition: transform .18s ease;
}

.lh-user-trigger[aria-expanded="true"] .lh-user-chevron {
  transform: rotate(180deg);
}

.lh-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 220;
  display: grid;
  width: 154px;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 55px rgba(15, 23, 42, .16), 0 8px 20px rgba(59, 130, 246, .08);
  backdrop-filter: blur(16px);
}

.lh-user-dropdown[hidden] {
  display: none !important;
}

.lh-user-dropdown a,
.lh-user-dropdown button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1f2937;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.lh-user-dropdown a:hover,
.lh-user-dropdown button:hover {
  background: #f1f5ff;
  color: #2563eb;
}

.lh-user-dropdown .lh-user-logout {
  color: #db2777;
}

.lh-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.lh-user-menu-mobile {
  width: 100%;
  display: block;
}

.lh-user-menu-mobile .lh-user-trigger {
  width: 100%;
  max-width: none;
  justify-content: center;
}

.lh-user-menu-mobile .lh-user-dropdown {
  position: static;
  width: 100%;
  margin-top: 10px;
  box-shadow: none;
}

.hero-cta .btn-primary,
.hero-cta .btn-gradient {
  min-width: 180px;
  font-weight: 800;
}

.channels-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.domestic-channel-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.35rem !important;
  overflow: hidden;
  border-radius: 18px;
  font-size: 0 !important;
}

.domestic-channel-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-card {
  min-height: 210px;
}

.channel-name {
  font-weight: 800;
}

.lanhai-support-float {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  left: auto;
  top: 50%;
  bottom: auto;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 17px 8px 8px;
  border: 1px solid rgba(59, 130, 246, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: #17315f;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(37, 99, 235, .18);
  backdrop-filter: blur(12px);
  cursor: grab;
  transform: translateY(-50%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lanhai-support-float:hover {
  transform: translateY(calc(-50% - 2px));
  border-color: rgba(59, 130, 246, .36);
  box-shadow: 0 22px 48px rgba(37, 99, 235, .24);
}

.lanhai-support-float[data-lh-support-placed="1"] {
  transform: none;
}

.lanhai-support-float[data-lh-support-placed="1"]:hover {
  transform: translateY(-2px);
}

.lanhai-support-float.is-dragging {
  cursor: grabbing;
  transform: none !important;
  transition: none;
}

.lanhai-support-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2563eb, #06b6d4);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .32);
}

.lanhai-support-icon::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .16);
}

.lanhai-support-float .lanhai-support-icon svg {
  display: block !important;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lanhai-support-float .lanhai-support-icon i {
  display: none !important;
}

.lanhai-support-text {
  color: #17315f;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.contact-hero {
  text-align: center;
  background: linear-gradient(180deg, var(--color-background) 0%, var(--color-background-alt) 100%);
  padding: 5rem 0 4rem;
}

.contact-title {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.contact-description {
  max-width: 600px;
  color: var(--color-muted);
  margin: 0 auto;
  font-size: 1.125rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.contact-info h2 {
  margin-bottom: .75rem;
  font-size: 1.75rem;
}

.contact-intro {
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.info-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-background-alt);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.info-card:hover {
  background: var(--color-background);
  box-shadow: var(--shadow-sm);
}

.tg-card {
  cursor: pointer;
  text-decoration: none;
}

.tg-card:hover {
  border: 1px solid #3b82f6;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: var(--radius-md);
}

.info-card h3 {
  margin-bottom: .25rem;
  font-size: .875rem;
  font-weight: 600;
}

.info-card p {
  color: var(--color-foreground);
  margin-bottom: .125rem;
  font-size: 1rem;
  font-weight: 500;
}

.info-card span {
  color: var(--color-muted-light);
  font-size: .75rem;
}

.quick-links h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.quick-links-grid {
  display: flex;
  gap: 1rem;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  color: var(--color-foreground);
  text-decoration: none;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.quick-link:hover {
  color: #fff;
  background: var(--color-foreground);
  border-color: var(--color-foreground);
}

.form-card {
  padding: 2.5rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
}

.form-card h2 {
  margin-bottom: .5rem;
  font-size: 1.5rem;
}

.form-card > p {
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form-group label {
  color: var(--color-foreground);
  font-size: .875rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: .875rem 1rem;
  color: var(--color-foreground);
  background: var(--color-background-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: .9375rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px #3b82f61a;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-muted-light);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .submit-btn {
  width: 100%;
  margin-top: .5rem;
}

.form-success {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  color: #047857;
  background: #ecfdf5;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
}

.form-success h3 {
  margin-bottom: .75rem;
  font-size: 1.5rem;
}

.form-success p {
  color: var(--color-muted);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

@media (max-width: 520px) {
  .channels-grid {
    grid-template-columns: 1fr !important;
  }

  .domestic-channel-icon {
    width: 56px;
    height: 56px;
  }

  .header-logo {
    width: 148px;
    min-width: 148px;
    height: 46px;
  }

  .footer-logo {
    width: 170px;
    height: 54px;
  }

  .lanhai-support-float {
    right: max(-7px, calc(env(safe-area-inset-right) - 7px));
    top: 56%;
    bottom: auto;
    min-width: 54px;
    width: 54px;
    min-height: 58px;
    padding: 8px 11px 8px 8px;
    justify-content: flex-start;
    border-radius: 999px 0 0 999px;
    border-right: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,248,255,.95));
    box-shadow: 0 14px 28px rgba(23,49,95,.18);
  }

  .lanhai-support-float[data-lh-support-placed="1"] {
    border-radius: 999px;
    border-right: 1px solid rgba(59, 130, 246, .18);
  }

  .lanhai-support-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .lanhai-support-text {
    display: none;
  }
}
