/* ===== 全局动画 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes resultReveal {
  0% { opacity: 0; transform: scale(0.8) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: var(--target-width); }
}

/* ===== 全局基础样式 ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
}

/* ===== 导航栏 ===== */
.navbar-custom {
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
  animation: float 3s ease-in-out infinite;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #d4af37, #f5d76e, #d4af37);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  letter-spacing: 2px;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: rgba(212, 175, 55, 0.7);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: -4px;
}

/* ===== Hero 区域 ===== */
.hero-section {
  min-height: calc(100vh - 65px);
  background: linear-gradient(135deg, #0a0a14 0%, #0d0d1a 30%, #12101e 60%, #0a0a14 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 星空背景粒子 */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(212, 175, 55, 0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(212, 175, 55, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 40%, rgba(212, 175, 55, 0.7) 0%, transparent 100%),
    radial-gradient(2px 2px at 20% 90%, rgba(212, 175, 55, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 50%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 15%, rgba(212, 175, 55, 0.6) 0%, transparent 100%),
    radial-gradient(2px 2px at 40% 35%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 75%, rgba(212, 175, 55, 0.5) 0%, transparent 100%);
  pointer-events: none;
}

/* 光晕效果 */
.hero-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1rem;
  animation: fadeInUp 0.8s ease-out;
  width: 100%;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50px;
  padding: 6px 16px;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: rgba(212, 175, 55, 0.9);
  letter-spacing: 1px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #d4af37;
  border-radius: 50%;
  animation: starTwinkle 1.5s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

.hero-title .highlight {
  background: linear-gradient(135deg, #d4af37, #f5d76e, #c9a227);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 查询卡片 ===== */
.query-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 175, 55, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
}

.input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.card-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.25) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 1.1rem !important;
  padding: 14px 20px 14px 50px !important;
  transition: all 0.3s ease !important;
  letter-spacing: 2px;
}

.card-input::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
  letter-spacing: 1px;
}

.card-input:focus {
  border-color: rgba(212, 175, 55, 0.6) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1), 0 0 20px rgba(212, 175, 55, 0.1) !important;
  outline: none !important;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(212, 175, 55, 0.6);
  font-size: 1.1rem;
  pointer-events: none;
}

.query-btn {
  width: 100%;
  background: linear-gradient(135deg, #d4af37, #c9a227, #b8941f) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #0a0a14 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  padding: 14px !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.query-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.query-btn:hover::before {
  left: 100%;
}

.query-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4) !important;
}

.query-btn:active {
  transform: translateY(0) !important;
}

.query-btn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* 错误提示 */
.error-alert {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 10px 16px;
  color: #fca5a5;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.75rem;
  animation: fadeInUp 0.3s ease;
}

/* 示例卡号提示 */
.sample-hint {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

.sample-hint span {
  color: rgba(212, 175, 55, 0.6);
  cursor: pointer;
  transition: color 0.2s;
}

.sample-hint span:hover {
  color: rgba(212, 175, 55, 0.9);
}

/* ===== 功能特性区域 ===== */
.features-section {
  background: #0d0d1a;
  padding: 5rem 1rem;
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

.section-title .gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #f5d76e);
  border-radius: 2px;
  margin: 1rem auto 0;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.05);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.1));
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

/* ===== 统计数据区域 ===== */
.stats-section {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.03));
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding: 3rem 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #d4af37, #f5d76e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

/* ===== 使用步骤区域 ===== */
.steps-section {
  background: #0a0a14;
  padding: 5rem 1rem;
  position: relative;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.step-item:hover {
  border-color: rgba(212, 175, 55, 0.25);
  background: rgba(212, 175, 55, 0.03);
}

.step-number {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, #d4af37, #c9a227);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0a0a14;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.step-content p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* ===== 底部 ===== */
.footer-custom {
  background: #060610;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding: 2rem 1rem;
  text-align: center;
}

.footer-custom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.7;
}

.footer-logo span {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(212, 175, 55, 0.6);
  letter-spacing: 2px;
}

/* ===== 模态弹窗 ===== */
.result-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.result-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.result-modal {
  background: linear-gradient(145deg, #12101e, #0d0d1a);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(212, 175, 55, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.result-modal::-webkit-scrollbar {
  width: 4px;
}

.result-modal::-webkit-scrollbar-track {
  background: transparent;
}

.result-modal::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 2px;
}

.result-modal-overlay.active .result-modal {
  transform: scale(1) translateY(0);
}

/* 弹窗头部 - 真品 */
.modal-header-authentic {
  background: linear-gradient(135deg, #064e3b, #065f46, #047857);
  border-radius: 24px 24px 0 0;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.modal-header-authentic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(52, 211, 153, 0.2), transparent 70%);
}

/* 弹窗头部 - 赝品 */
.modal-header-fake {
  background: linear-gradient(135deg, #7f1d1d, #991b1b, #b91c1c);
  border-radius: 24px 24px 0 0;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.modal-header-fake::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(252, 165, 165, 0.2), transparent 70%);
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  animation: resultReveal 0.5s ease-out 0.2s both;
}

.result-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
  animation: resultReveal 0.5s ease-out 0.3s both;
}

.result-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
  animation: resultReveal 0.5s ease-out 0.4s both;
}

/* 关闭按钮 */
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* 弹窗内容区 */
.modal-body {
  padding: 1.75rem;
}

/* 明星信息卡 */
.star-info-card {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: resultReveal 0.5s ease-out 0.5s both;
}

.star-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.star-info-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.star-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.75rem;
  color: rgba(212, 175, 55, 0.9);
}

/* 鉴定详情列表 */
.detail-list {
  margin-bottom: 1.25rem;
  animation: resultReveal 0.5s ease-out 0.6s both;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-value {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

.cert-no {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: rgba(212, 175, 55, 0.8);
  letter-spacing: 1px;
}

/* 可信度进度条 */
.confidence-section {
  margin-bottom: 1.25rem;
  animation: resultReveal 0.5s ease-out 0.7s both;
}

.confidence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.confidence-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.confidence-value {
  font-size: 1rem;
  font-weight: 700;
  color: #d4af37;
}

.confidence-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.confidence-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #d4af37, #f5d76e);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.confidence-bar-fill.authentic {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.confidence-bar-fill.fake {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* 签名特征标签 */
.features-section-modal {
  margin-bottom: 1.25rem;
  animation: resultReveal 0.5s ease-out 0.8s both;
}

.features-title {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: rgba(212, 175, 55, 0.8);
}

/* 鉴定说明 */
.description-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  animation: resultReveal 0.5s ease-out 0.9s both;
}

.description-section p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* 弹窗操作按钮 */
.modal-actions {
  display: flex;
  gap: 0.75rem;
  animation: resultReveal 0.5s ease-out 1s both;
}

.btn-close-modal {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-print-cert {
  flex: 2;
  background: linear-gradient(135deg, #d4af37, #c9a227);
  border: none;
  border-radius: 12px;
  color: #0a0a14;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-print-cert:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

/* ===== 加载动画 ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(212, 175, 55, 0.1);
  border-top-color: #d4af37;
  border-radius: 50%;
  animation: spin-slow 0.8s linear infinite;
}

.loading-text {
  color: rgba(212, 175, 55, 0.8);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* ===== 打印样式 ===== */
@media print {
  .navbar-custom,
  .hero-section,
  .features-section,
  .stats-section,
  .steps-section,
  .footer-custom,
  .modal-actions,
  .modal-close-btn {
    display: none !important;
  }

  .result-modal-overlay {
    position: static !important;
    background: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 !important;
  }

  .result-modal {
    transform: none !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    max-height: none !important;
  }
}

/* ===== 响应式调整 ===== */
@media (max-width: 640px) {
  .query-card {
    padding: 1.5rem 1.25rem;
  }

  .modal-body {
    padding: 1.25rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .btn-close-modal,
  .btn-print-cert {
    flex: none;
    width: 100%;
  }

  .star-info-card {
    flex-direction: column;
    text-align: center;
  }

  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .detail-value {
    text-align: left;
    max-width: 100%;
  }
}
