:root {
  --hf-primary:     #001529;
  --hf-primary-rgb: 0, 21, 41;
  --hf-accent:      #d4a017;
  --hf-accent-light:#f5c842;
  --hf-success:     #27ae60;
  --hf-error:       #e74c3c;
  --hf-warning:     #f39c12;
  --hf-bg:          #f4f6f9;
  --hf-card-bg:     #ffffff;
  --hf-border:      #e8ecf0;
  --hf-text:        #1a1a2e;
  --hf-text-muted:  #6c7a8d;
  --hf-radius:      12px;
  --hf-shadow:      0 4px 24px rgba(0,21,41,.08);
  --hf-shadow-lg:   0 12px 40px rgba(0,21,41,.14);
}

/* 
   AUTH PAGES
    */

.hf-auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #001529 0%, #003366 50%, #001529 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
}

.hf-auth-card {
  background: var(--hf-card-bg);
  border-radius: var(--hf-radius);
  box-shadow: var(--hf-shadow-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 460px;
  animation: hf-fadeUp .4s ease both;
}

.hf-auth-card--wide {
  max-width: 560px;
}

@keyframes hf-fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.hf-auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.hf-auth-logo img {
  max-height: 52px;
  width: auto;
}

.hf-auth-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--hf-text);
  text-align: center;
  margin: 0 0 8px;
}

.hf-auth-subtitle {
  color: var(--hf-text-muted);
  text-align: center;
  font-size: 14px;
  margin: 0 0 28px;
  line-height: 1.5;
}

/* Google 按钮 */
.hf-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid var(--hf-border);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--hf-text);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  margin-bottom: 20px;
  user-select: none;
}

.hf-google-btn:hover {
  border-color: #4285F4;
  background: #fafbff;
  box-shadow: 0 2px 8px rgba(66,133,244,.12);
}

/* 分割线 */
.hf-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--hf-text-muted);
  font-size: 13px;
}

.hf-auth-divider::before,
.hf-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hf-border);
}

/* 表单字段 */
.hf-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hf-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hf-auth-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--hf-text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hf-auth-field input,
.hf-auth-field select,
.hf-auth-field textarea {
  border: 1.5px solid var(--hf-border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--hf-text);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.hf-auth-field input:focus,
.hf-auth-field select:focus {
  border-color: var(--hf-primary);
  box-shadow: 0 0 0 3px rgba(var(--hf-primary-rgb), .08);
}

.hf-auth-field input:disabled {
  background: #f4f6f9;
  color: var(--hf-text-muted);
}

/* 密码输入框包装 */
.hf-pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hf-pass-wrap input {
  padding-right: 44px;
}

.hf-pass-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--hf-text-muted);
  display: flex;
  align-items: center;
  transition: color .2s;
}

.hf-pass-toggle:hover { color: var(--hf-primary); }

/* 密码强度 */
.hf-pass-strength {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}
.hf-str-weak   { color: var(--hf-error); }
.hf-str-fair   { color: var(--hf-warning); }
.hf-str-good   { color: var(--hf-accent); }
.hf-str-strong { color: var(--hf-success); }

/* 两列行 */
.hf-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hf-auth-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--hf-text-muted);
  cursor: pointer;
  user-select: none;
}

.hf-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.hf-auth-link {
  font-size: 13px;
  color: var(--hf-primary);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.hf-auth-link:hover { text-decoration: underline; }

/* 主按钮 */
.hf-auth-btn {
  background: var(--hf-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background .2s, transform .15s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hf-auth-btn:hover:not(:disabled) {
  background: #002a52;
  box-shadow: 0 4px 16px rgba(var(--hf-primary-rgb), .3);
  transform: translateY(-1px);
}

.hf-auth-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}

/* 消息框 */
.hf-auth-msg {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.hf-auth-msg--success {
  background: #eafaf1;
  color: var(--hf-success);
  border: 1px solid #a9dfbf;
}

.hf-auth-msg--error {
  background: #fef0ef;
  color: var(--hf-error);
  border: 1px solid #f5c6c2;
}

/* 切换链接 */
.hf-auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--hf-text-muted);
  margin: 20px 0 0;
}

.hf-auth-switch a {
  color: var(--hf-primary);
  font-weight: 600;
  text-decoration: none;
}

.hf-auth-switch a:hover { text-decoration: underline; }

.hf-req { color: var(--hf-error); }

/* ================================================================
   MY ACCOUNT 页
   ================================================================ */

.hf-account-page {
  max-width: 1100px;
  margin: 100px auto 60px;
  padding: 0 20px;
}

/* 顶部欢迎横幅 */
.hf-account-hero {
  background: linear-gradient(135deg, var(--hf-primary) 0%, #003366 100%);
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 28px;
  color: #fff;
}

.hf-account-hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hf-account-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.3);
}

.hf-account-hero-info {
  flex: 1;
}

.hf-account-hero-info h1 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.hf-account-hero-info p {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  margin: 0;
}

.hf-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}

.hf-logout-btn:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
  text-decoration: none;
}

/* 统计卡片 */
.hf-account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.hf-stat-card {
  background: var(--hf-card-bg);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--hf-text);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.hf-stat-card:not(.hf-stat-card--static):hover {
  box-shadow: var(--hf-shadow);
  transform: translateY(-2px);
  border-color: rgba(var(--hf-primary-rgb), .2);
  color: var(--hf-text);
  text-decoration: none;
}

.hf-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hf-stat-icon svg { width: 22px; height: 22px; }

.hf-stat-icon--blue   { background: #e8f0fe; color: #1a73e8; }
.hf-stat-icon--green  { background: #e6f4ea; color: #34a853; }
.hf-stat-icon--orange { background: #fef3e2; color: #f9a825; }

.hf-stat-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.hf-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--hf-text);
  line-height: 1;
}

.hf-stat-label {
  font-size: 12px;
  color: var(--hf-text-muted);
}

.hf-stat-arrow {
  width: 18px;
  height: 18px;
  color: var(--hf-text-muted);
  flex-shrink: 0;
}

/* 主内容区块 */
.hf-account-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hf-account-section {
  background: var(--hf-card-bg);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius);
  padding: 32px 36px;
}

.hf-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--hf-text);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hf-border);
}

/* 快捷导航 */
.hf-quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.hf-quick-link {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--hf-border);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--hf-text);
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.hf-quick-link:hover {
  border-color: rgba(var(--hf-primary-rgb), .3);
  background: #f8faff;
  box-shadow: var(--hf-shadow);
  color: var(--hf-text);
  text-decoration: none;
}

.hf-quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f0f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--hf-primary);
}

.hf-quick-icon svg { width: 20px; height: 20px; }

.hf-quick-link strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.hf-quick-link p {
  font-size: 12px;
  color: var(--hf-text-muted);
  margin: 0;
}

/* 资料表单 */
.hf-profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hf-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hf-profile-password {
  border-top: 1px solid var(--hf-border);
  padding-top: 20px;
}

.hf-profile-password h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--hf-text);
  margin: 0 0 16px;
}

.hf-profile-password h3 small {
  font-size: 12px;
  font-weight: 400;
  color: var(--hf-text-muted);
  margin-left: 8px;
}

.hf-profile-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hf-profile-save-btn {
  width: auto;
  min-width: 160px;
  padding: 12px 24px;
}

/* ================================================================
   MY QUOTES & ORDER HISTORY 共用
   ================================================================ */

.hf-inquiry-page {
  max-width: 1200px;
  margin: 120px auto 60px;
  padding: 0 20px;
}

.hf-inquiry-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.hf-inquiry-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--hf-text);
  margin: 0 0 4px;
}

.hf-inquiry-subtitle {
  color: var(--hf-text-muted);
  font-size: 14px;
  margin: 0;
}

/* 导出按钮 */
.hf-export-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--hf-border);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hf-text);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.hf-export-btn:hover {
  border-color: var(--hf-primary);
  background: #f0f4ff;
  box-shadow: 0 2px 8px rgba(var(--hf-primary-rgb), .1);
}

/* 提示横幅（未登录） */
.hf-auth-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #5d4037;
  margin-bottom: 16px;
}

.hf-auth-notice a {
  color: var(--hf-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* 游客查询 */
.hf-guest-lookup {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hf-guest-lookup input {
  flex: 1;
  border: 1.5px solid var(--hf-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  min-width: 200px;
}

.hf-guest-lookup input:focus {
  border-color: var(--hf-primary);
}

.hf-lookup-btn {
  background: var(--hf-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}

.hf-lookup-btn:hover { background: #002a52; }

/* 搜索/筛选栏 */
.hf-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hf-search-input {
  flex: 1;
  border: 1.5px solid var(--hf-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  min-width: 200px;
  transition: border-color .2s;
}

.hf-search-input:focus { border-color: var(--hf-primary); }

.hf-filter-select {
  border: 1.5px solid var(--hf-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  min-width: 140px;
  background: #fff;
  color: var(--hf-text);
  appearance: none;
  cursor: pointer;
}

/* 表格 */
.hf-inquiry-table-wrap {
  background: var(--hf-card-bg);
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius);
  overflow: hidden;
}

.hf-inquiry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.hf-inquiry-table thead {
  background: #f8fafc;
  border-bottom: 2px solid var(--hf-border);
}

.hf-inquiry-table th {
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--hf-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.hf-inquiry-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--hf-border);
  color: var(--hf-text);
  vertical-align: top;
}

.hf-inquiry-table tr:last-child td { border-bottom: none; }

.hf-inquiry-table tbody tr:hover {
  background: #fafbff;
}

.hf-td-notes {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--hf-text-muted);
  font-size: 13px;
}

/* 状态徽章 */
.hf-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.hf-badge--new         { background: #e3f2fd; color: #1565c0; }
.hf-badge--inprogress  { background: #fff8e1; color: #e65100; }
.hf-badge--completed   { background: #e8f5e9; color: #2e7d32; }
.hf-badge--archived    { background: #f3f3f3; color: #757575; }

/* 加载状态 */
.hf-table-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 20px;
  color: var(--hf-text-muted);
  font-size: 14px;
}

.hf-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--hf-border);
  border-top-color: var(--hf-primary);
  border-radius: 50%;
  animation: hf-spin .8s linear infinite;
}

@keyframes hf-spin { to { transform: rotate(360deg); } }

/* 空状态 */
.hf-no-data {
  text-align: center;
  padding: 60px 20px;
  color: var(--hf-text-muted);
}

.hf-no-data svg { color: #cdd5df; margin-bottom: 16px; }
.hf-no-data h3  { font-size: 18px; color: var(--hf-text); margin: 0 0 8px; }
.hf-no-data p   { font-size: 14px; margin: 0; }

/* 分页 */
.hf-pagination {
  display: flex;
  gap: 6px;
  padding: 16px 20px;
  border-top: 1px solid var(--hf-border);
  justify-content: center;
  flex-wrap: wrap;
}

.hf-page-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--hf-border);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  color: var(--hf-text);
}

.hf-page-btn:hover,
.hf-page-btn.active {
  border-color: var(--hf-primary);
  background: var(--hf-primary);
  color: #fff;
}

/* ================================================================
   响应式
   ================================================================ */

@media (max-width: 900px) {
  .hf-account-stats   { grid-template-columns: 1fr 1fr; }
  .hf-quick-links     { grid-template-columns: 1fr; }
  .hf-profile-grid    { grid-template-columns: 1fr; }
  .hf-account-section { padding: 24px 20px; }
}

@media (max-width: 680px) {
  .hf-auth-card       { padding: 36px 24px; }
  .hf-auth-row-2      { grid-template-columns: 1fr; }
  .hf-account-hero    { padding: 24px 20px; }
  .hf-account-hero-inner { flex-wrap: wrap; }
  .hf-account-stats   { grid-template-columns: 1fr; }
  .hf-account-page    { margin-top: 80px; }
  .hf-inquiry-page    { margin-top: 90px; }
  .hf-inquiry-header  { align-items: flex-start; }

  .hf-inquiry-table th:nth-child(5),
  .hf-inquiry-table td:nth-child(5),
  .hf-inquiry-table th:nth-child(4),
  .hf-inquiry-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 480px) {
  .hf-auth-row        { flex-direction: column; align-items: flex-start; }
  .hf-inquiry-table th:nth-child(6),
  .hf-inquiry-table td:nth-child(6) { display: none; }
}
/* 
   AUTH PAGES
    */