/**
 * 授权查询页面样式
 * 左侧：标题 + 查询表单（域名/QQ/授权码）+ 结果区；右侧边栏：登录/注册 + 快捷入口等
 */

/* 左侧主区布局 */
.page-auth-query .content-two-col-left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  /* 右侧边栏：用户登录/注册卡片 */
  .page-auth-query-sidebar-user {
    margin-bottom: 1.25rem;
  }
  
  /* 通用卡片 */
  .page-auth-query-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }
  
  /* ========== 标题区 ========== */
  .auth-query-head {
    margin-bottom: 0.25rem;
  }
  
  .auth-query-head-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 0.35rem;
  }
  
  .auth-query-head-desc {
    font-size: 0.9375rem;
    color: #6c757d;
    margin: 0;
  }
  
  /* ========== 查询表单卡片 ========== */
  .auth-query-form-card.page-auth-query-card {
    flex: 0 0 auto;
    min-height: 0;
  }
  
  .auth-query-form-inner {
    padding: 1.5rem 1.5rem 1.75rem;
  }
  
  .auth-query-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.25rem;
    background: #f1f3f5;
    border-radius: 10px;
  }
  
  .auth-query-tab {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }
  
  .auth-query-tab:hover {
    color: #212529;
    background: rgba(255, 255, 255, 0.8);
  }
  
  .auth-query-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, #1FA2FF 0%, #12D8FA 100%);
    box-shadow: 0 2px 8px rgba(31, 162, 255, 0.35);
  }
  
  .auth-query-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .auth-query-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  
  .auth-query-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #212529;
    margin: 0;
  }
  
  .auth-query-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-size: 0.9375rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  
  .auth-query-input:focus {
    border-color: #1FA2FF;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(31, 162, 255, 0.2);
  }
  
  .auth-query-hint {
    font-size: 0.8125rem;
    color: #868e96;
  }

  .auth-query-error {
    font-size: 0.875rem;
    color: #dc2626;
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.75rem;
    background: rgba(220, 38, 38, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(220, 38, 38, 0.2);
  }

  .auth-query-error[hidden] {
    display: none !important;
  }
  
  .auth-query-submit {
    padding: 0.6rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #1FA2FF 0%, #12D8FA 100%);
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
  }
  
  .auth-query-submit:hover {
    color: #fff;
    opacity: 0.95;
    transform: translateY(-1px);
  }
  
  .auth-query-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
  }
  
  /* ========== 查询结果区（高大上样式） ========== */
  .auth-query-result-wrap {
    margin-top: 0;
  }
  
  .auth-query-result-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
  }
  
  .auth-query-result-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.06) 100%);
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
  }

  .auth-query-result-header--valid-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .auth-query-result-header--valid-centered .auth-query-result-badge {
    font-size: 1.05rem;
    padding: 0.65rem 1.35rem;
    letter-spacing: 0.12em;
  }
  
  .auth-query-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    letter-spacing: 0.02em;
  }
  
  .auth-query-result-badge i {
    font-size: 1.1em;
    opacity: 0.95;
  }
  
  .auth-query-result-badge--valid {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  }
  
  .auth-query-result-badge--expired {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  }
  
  .auth-query-result-badge--soon {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  }

  .auth-query-result-badge--disabled {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(71, 85, 105, 0.35);
  }
  
  .auth-query-result-body {
    padding: 1.5rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  .auth-query-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    margin: 0 -1rem;
    border-radius: 10px;
    transition: background 0.15s ease;
  }
  
  .auth-query-result-item:hover {
    background: #f8f9fa;
  }
  
  .auth-query-result-item[hidden] {
    display: none !important;
  }
  
  .auth-query-result-item-label {
    flex: 0 0 auto;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6c757d;
    letter-spacing: 0.02em;
  }
  
  .auth-query-result-item-value {
    flex: 1;
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #212529;
    text-align: right;
    word-break: break-all;
  }
  
  .auth-query-result-item-value--mono {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
  }

  .auth-query-result-item-value--domain-list {
    align-self: flex-start;
    max-width: 100%;
  }

  .auth-query-domain-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-end;
    text-align: right;
  }

  .auth-query-domain-lines li {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: #212529;
    word-break: break-all;
    line-height: 1.35;
    padding: 0.2rem 0.45rem;
    background: rgba(31, 162, 255, 0.06);
    border-radius: 6px;
    border: 1px solid rgba(31, 162, 255, 0.12);
  }
  
  .auth-query-result-footer {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid #f1f3f5;
  }
  
  .auth-query-requery {
    color: #1FA2FF;
    border: 1px solid rgba(31, 162, 255, 0.4);
    background: rgba(31, 162, 255, 0.06);
    border-radius: 8px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  
  .auth-query-requery:hover {
    background: rgba(31, 162, 255, 0.12);
    border-color: #1FA2FF;
    color: #1FA2FF;
  }
  
  /* ========== 提示与说明 ========== */
  .auth-query-tip {
    font-size: 0.875rem;
    color: #868e96;
    margin: 0;
  }
  
  .auth-query-result-wrap[hidden] + .auth-query-tip {
    display: block;
  }
  
  .auth-query-result-wrap:not([hidden]) ~ .auth-query-tip,
  .auth-query-result-wrap:not([hidden]) + .auth-query-tip {
    display: none;
  }
  
  .auth-query-footer {
    margin-top: 0.5rem;
  }
  
  .auth-query-footer-text {
    font-size: 0.8125rem;
    color: #868e96;
    margin: 0;
  }
  
  .auth-query-footer-text a {
    color: #1FA2FF;
    text-decoration: none;
  }
  
  .auth-query-footer-text a:hover {
    text-decoration: underline;
  }
  
  /* ========== 深色模式 ========== */
  html[data-theme="dark"] .page-auth-query-card {
    background: var(--main-bg-color, #1e1e2e);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  }
  
  html[data-theme="dark"] .auth-query-head-title {
    color: var(--main-color, #e8e8ed);
  }
  
  html[data-theme="dark"] .auth-query-head-desc,
  html[data-theme="dark"] .auth-query-hint,
  html[data-theme="dark"] .auth-query-tip,
  html[data-theme="dark"] .auth-query-footer-text {
    color: var(--muted-1-color, #a0a0b0);
  }

  html[data-theme="dark"] .auth-query-error {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.28);
  }
  
  html[data-theme="dark"] .auth-query-tabs {
    background: var(--muted-4-color, #2d2d3a);
  }
  
  html[data-theme="dark"] .auth-query-tab {
    color: var(--muted-1-color, #a0a0b0);
  }
  
  html[data-theme="dark"] .auth-query-tab:hover {
    color: var(--main-color, #e8e8ed);
    background: rgba(255, 255, 255, 0.08);
  }
  
  html[data-theme="dark"] .auth-query-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, #1FA2FF 0%, #12D8FA 100%);
  }
  
  html[data-theme="dark"] .auth-query-label {
    color: var(--main-color, #e8e8ed);
  }
  
  html[data-theme="dark"] .auth-query-input {
    background: var(--muted-4-color, #2d2d3a);
    color: var(--main-color, #e8e8ed);
  }
  
  html[data-theme="dark"] .auth-query-input::placeholder {
    color: var(--muted-1-color, #a0a0b0);
  }
  
  html[data-theme="dark"] .auth-query-result-card {
    background: var(--main-bg-color, #1e1e2e);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  
  html[data-theme="dark"] .auth-query-result-header {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0.08) 100%);
    border-bottom-color: rgba(34, 197, 94, 0.25);
  }
  
  html[data-theme="dark"] .auth-query-result-item-label {
    color: var(--muted-1-color, #a0a0b0);
  }
  
  html[data-theme="dark"] .auth-query-result-item-value {
    color: var(--main-color, #e8e8ed);
  }
  
  html[data-theme="dark"] .auth-query-result-item:hover {
    background: var(--muted-4-color, #2d2d3a);
  }
  
  html[data-theme="dark"] .auth-query-result-footer {
    border-top-color: var(--muted-3-color, #363645);
  }
  
  html[data-theme="dark"] .auth-query-result-badge--valid {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
  }
  
  html[data-theme="dark"] .auth-query-result-badge--expired {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
  }
  
  html[data-theme="dark"] .auth-query-result-badge--soon {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #fff;
  }

  html[data-theme="dark"] .auth-query-result-badge--disabled {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: #fff;
  }
  
  html[data-theme="dark"] .auth-query-domain-lines li {
    color: var(--main-color, #e8e8ed);
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.22);
  }

  html[data-theme="dark"] .auth-query-requery {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(96, 165, 250, 0.1);
  }
  
  html[data-theme="dark"] .auth-query-requery:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60a5fa;
    color: #60a5fa;
  }
  
  html[data-theme="dark"] .auth-query-footer-text a {
    color: #60a5fa;
  }
  
  /* ========== 移动端 ========== */
  @media (max-width: 991px) {
    .page-auth-query .content-two-col-left {
      gap: 1rem;
    }
  
    .page-auth-query .mobile-float-sidebar .page-auth-query-sidebar-user {
      display: none;
    }
  
    .auth-query-head-title {
      font-size: 1.25rem;
    }
  
    .auth-query-form-inner,
    .auth-query-result-inner {
      padding: 1.25rem 1rem 1.5rem;
    }
  
    .auth-query-tabs {
      margin-bottom: 1rem;
    }
  
    .auth-query-tab {
      font-size: 0.8125rem;
      padding: 0.5rem 0.5rem;
    }
  
    .auth-query-result-header {
      padding: 1rem 1.25rem;
    }
  
    .auth-query-result-body {
      padding: 1.25rem 1rem 1rem;
    }
  
    .auth-query-result-item {
      padding: 0.7rem 0.75rem;
      margin: 0 -0.75rem;
    }
  
    .auth-query-result-item-value {
      font-size: 0.875rem;
    }
  
    .auth-query-result-footer {
      padding: 0.875rem 1rem 1rem;
    }
  }
  