/* ============================================================
   全站共享样式 — Modern Enterprise Tech 统一设计语言
   ============================================================ */

/* Material Symbols 基础设定 */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* 滚动揭示动画 */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 导航栏滚动阴影 */
.header-scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

/* 用户中心侧边栏激活态 */
.nav-item-active {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #e02020;
  color: #ffffff;
}

/* 滚动条隐藏 */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* 渐变遮罩（首页 Hero 图片右侧渐隐） */
.china-desktop-mask {
  mask-image: linear-gradient(to right, transparent, black 20%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
}

/* 支付卡片选中态 */
.payment-card-active {
  border: 2px solid #4c56af !important;
  background-color: #f0f0ff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 86, 175, 0.1);
}
.payment-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 定价卡片高亮 */
.premium-shadow {
  box-shadow: 0 20px 40px rgba(184, 0, 14, 0.12);
}
.pricing-card-active {
  border: 2px solid #b8000e;
}

/* 登录页几何背景 */
.geometric-bg {
  background-color: #f7f9fc;
  background-image:
    radial-gradient(at 0% 0%, rgba(184, 0, 14, 0.03) 0, transparent 50%),
    radial-gradient(at 100% 100%, rgba(76, 86, 175, 0.03) 0, transparent 50%),
    linear-gradient(rgba(224, 227, 230, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 227, 230, 0.1) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* 玻璃卡片效果 */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(146, 111, 106, 0.1);
}
.glass-effect {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.8);
}

/* 动画工具类 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeInUp 0.6s ease-out forwards; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes successPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.animate-success { animation: successPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

/* Tab 滑块动画 */
.sliding-content {
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
}
.slide-left { transform: translateX(-20px); opacity: 0; }
.slide-right { transform: translateX(20px); opacity: 0; }
.slide-center { transform: translateX(0); opacity: 1; }

/* Toast 通知 */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', 'PingFang SC', sans-serif;
  color: #fff;
  background: #191c1e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast-msg.show { opacity: 1; transform: translateY(0); }
.toast-msg.success { background: #2e7d32; }
.toast-msg.error { background: #b8000e; }

/* 输入框聚焦微交互 */
.input-focus-effect {
  transition: all 0.2s ease;
}
.input-focus-effect:focus {
  transform: scale(1.01);
}

/* 表格行 hover */
.order-table-row:hover {
  background-color: #f2f4f7;
}

/* 模态框 */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(48, 48, 49, 0.4);
  backdrop-filter: blur(4px);
}
.modal-overlay.hidden { display: none; }
