/* === LOC: RESPONSIVE === */
@media (max-width: 1160px) {
  .sidebar {
    width: 212px;
    padding-inline: 8px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .market-head-main h2 {
    font-size: 24px;
  }
}

@media (max-width: 992px) {
  .app-shell {
    display: block;
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  .sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    height: auto;
    overflow: visible;
  }

  .content {
    height: auto;
    overflow: visible;
  }

  .menu-main,
  .menu-library,
  .menu-biz,
  .menu-foot {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .sidebar-foot {
    margin-top: 8px;
    padding-top: 8px;
  }

  .hero-nav-grid {
    grid-template-columns: 1fr;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-highlights {
    flex-wrap: wrap;
  }

  .special-grid {
    grid-template-columns: 1fr 1fr;
  }

  .special-card {
    grid-template-columns: minmax(0, 1fr) 52px;
    min-height: 84px;
    padding: 10px 12px;
  }

  .special-card h4 {
    font-size: 20px;
  }

  .special-icon-wrap {
    width: 52px;
    height: 52px;
  }

  .special-icon-wrap img {
    width: 52px;
    height: 52px;
  }

  .topbar {
    height: auto;
    min-height: 54px;
    padding: 8px 12px;
  }

  .topbar-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 8px;
  }

  .member-actions {
    flex-wrap: wrap;
  }

  .user-center-dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
    padding: 16px;
    width: min(900px, calc(100vw - 20px));
  }

  .user-feedback-dialog {
    max-height: calc(100vh - 28px);
    padding: 16px;
    width: min(960px, calc(100vw - 20px));
  }

  .user-feedback-layout {
    grid-template-columns: 1fr;
  }

  .user-center-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px;
  }

  .user-center-sidebar-title {
    width: 100%;
    margin-bottom: 4px;
  }

  .user-center-nav {
    border-left: 0;
    border-radius: 999px;
    padding: 0 14px;
  }

  .user-center-nav:hover,
  .user-center-nav.is-active {
    background: #eff6ff;
    border-left-color: transparent;
  }

  .user-center-summary-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .user-center-summary-actions {
    width: 100%;
    justify-content: space-between;
  }

  .user-center-primary,
  .user-center-secondary {
    width: 100%;
  }

  .user-balance-popover {
    right: 0;
    top: calc(100% + 8px);
  }

  .user-menu-popover {
    right: 0;
    top: calc(100% + 8px);
  }

  .site-footer {
    margin-top: 18px;
    padding: 10px 12px;
  }

  .site-footer-inner {
    justify-content: flex-start;
  }

  .login-modal {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .payment-modal {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .payment-modal-main {
    padding: 22px 18px 16px;
  }

  .payment-modal-side {
    border-left: 0;
    border-top: 1px solid #dce6f8;
    padding: 16px 18px 14px;
  }

  .payment-channel-list {
    grid-template-columns: 1fr;
  }

  .login-modal-aside {
    display: none;
  }

  .login-modal-main {
    padding: 22px 18px 14px;
  }

  .login-aside-block h4 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .login-modal-list li {
    font-size: 14px;
  }

  .aside-item-icon {
    margin-top: 4px;
  }

  .login-panel {
    min-height: 0;
  }

  .login-panel-wechat,
  .login-panel-phone {
    padding: 10px;
  }

  .wechat-qr-art {
    width: 160px;
    height: 160px;
  }

  .market-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-dashboard {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .main {
    padding-inline: 12px;
  }

  .site-footer {
    border-radius: 10px;
    padding: 9px 10px;
  }

  .site-footer-inner {
    font-size: 12px;
    gap: 4px;
  }

  .hero {
    margin-top: 24px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 42px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-top: 10px;
  }

  .hero-highlights {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .highlight-chip {
    flex-shrink: 0;
  }

  .special-grid {
    grid-template-columns: 1fr;
  }

  .special-card {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .special-card h4 {
    font-size: 18px;
  }

  .special-icon-wrap {
    width: 48px;
    height: 48px;
  }

  .special-icon-wrap img {
    width: 48px;
    height: 48px;
  }

  .special-meta {
    display: none;
  }

  .market-head-main h2 {
    font-size: 22px;
  }

  .market-dashboard {
    grid-template-columns: 1fr;
  }

  .dash-card {
    min-height: 72px;
  }

  .dash-value {
    font-size: 22px;
  }

  .tip-row {
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .topbar-right {
    font-size: 14px;
  }

  .member-actions {
    width: 100%;
  }

  .user-hub {
    width: 100%;
    justify-content: space-between;
  }

  .user-balance-combo {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
  }

  .user-balance-topup {
    min-width: 76px;
    padding: 5px 10px;
  }

  .user-balance-popover {
    left: auto;
    right: 0;
    transform: none;
    width: min(438px, calc(100vw - 12px));
  }

  .user-menu-popover {
    right: 0;
    width: min(220px, calc(100vw - 24px));
  }

  .user-center-grid {
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .user-center-card {
    height: 130px;
    padding: 10px 8px;
  }

  .user-center-card-value {
    font-size: 28px;
  }

  .user-center-dialog {
    border-radius: 18px;
    max-height: calc(100vh - 16px);
    padding: 12px;
    width: calc(100vw - 12px);
  }

  .user-center-overlay {
    padding: 8px;
  }

  .user-feedback-overlay {
    padding: 8px;
  }

  .user-center-sidebar {
    border-radius: 16px;
    padding: 14px 12px;
  }

  .user-center-main {
    gap: 12px;
  }

  .user-center-toolbar {
    padding-inline: 2px;
  }

  .user-center-section-title {
    font-size: 20px;
  }

  .user-center-block-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-center-list,
  .user-center-feedback-card,
  .user-center-detail-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .user-center-summary-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .user-feedback-form-card,
  .user-feedback-history-card {
    padding: 18px 16px;
  }

  .user-center-list-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-center-list-item-action {
    min-width: 0;
  }

  .user-center-feedback-submit {
    min-width: 0;
    width: 100%;
  }

  .user-feedback-history-list {
    min-height: 220px;
  }

  .book-btn-server,
  .book-btn-invoice {
    width: auto;
    min-width: 96px;
    padding: 0 10px;
  }

  .vipinfo-btn {
    padding-right: 10px;
  }

  .login-btn {
    min-width: 68px;
    padding: 6px 14px;
  }

  .login-modal-overlay {
    padding: 14px;
  }

  .payment-modal-overlay {
    padding: 14px;
  }

  .login-modal {
    width: 100%;
    border-radius: 14px;
  }

  .payment-modal {
    width: 100%;
    border-radius: 14px;
  }

  .payment-modal-main {
    padding: 18px 12px 12px;
  }

  .payment-modal-header h2 {
    font-size: 24px;
  }

  .login-modal-main {
    padding: 18px 12px 12px;
  }

  .login-modal-main h2 {
    font-size: 24px;
  }

  .login-modal-head {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding-right: 0;
  }

  .login-dev-btn {
    height: 34px;
    min-width: 0;
    width: 100%;
  }

  .login-dev-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .login-main-dev-actions {
    position: static;
    margin-top: 2px;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .login-main-dev-actions .login-dev-btn {
    min-width: 0;
    width: auto;
    height: 32px;
    font-size: 12px;
  }

  .login-tabs {
    gap: 6px;
  }

  .login-tab {
    font-size: 13px;
  }

  .login-panel {
    min-height: 0;
  }

  .login-panel-wechat,
  .login-panel-phone {
    padding: 10px 8px;
  }

  .wechat-qr-art {
    width: 148px;
    height: 148px;
  }

  .payment-plan-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .payment-plan-price {
    font-size: 22px;
  }

  .payment-qr-wrap {
    height: 160px;
    width: 160px;
  }

  .wechat-qr-expired-text {
    font-size: 14px;
  }

  .wechat-qr-refresh-btn {
    font-size: 13px;
    height: 32px;
    min-width: 96px;
  }

  .wechat-qr-expired-card {
    gap: 6px;
    padding: 8px 10px;
  }

  .login-code-row {
    flex-direction: column;
    align-items: stretch;
  }

  .send-code-btn {
    width: 100%;
  }

  .auth-toast {
    left: 12px;
    right: 12px;
    top: 14px;
    transform: translateY(-16px);
  }

  .auth-toast.is-visible {
    transform: translateY(0);
  }

  .collect-popover,
  .service-popover {
    left: 0;
    min-width: 220px;
    transform: translate(0, 6px);
  }

  .hover-wrap:hover .collect-popover,
.hover-wrap:hover .service-popover {
    transform: translate(0, 0);
  }
}

.model-platform-section {
  margin-top: 26px;
  padding: 20px 18px;
  border-radius: 16px;
  border: 1px solid #d7e4f4;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.model-platform-head h2 {
  margin: 0;
  font-size: 26px;
  color: #16314f;
}

.model-platform-head p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
}

.model-platform-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.model-platform-card {
  border: 1px solid #d6e4f7;
  border-radius: 12px;
  padding: 12px;
  background: #f6fbff;
}

.model-platform-card h3 {
  margin: 0;
  font-size: 18px;
  color: #123255;
}

.model-platform-type {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

.model-platform-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-platform-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #cde0f8;
  background: #ffffff;
  color: #1e3a5f;
  font-size: 12px;
  font-weight: 600;
}

.model-platform-empty {
  margin-top: 12px;
  border: 1px dashed #cedcf0;
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  color: #64748b;
  background: #f8fbff;
}

@media (max-width: 900px) {
  .model-platform-head h2 {
    font-size: 22px;
  }

  .model-platform-grid {
    grid-template-columns: 1fr;
  }
}
