/* ============================================================
   www.91 - 官方企业网站核心样式表
   主题：淡黑金（Subtle Black & Gold）
   配色：炭黑 #0e1013 / 墨灰 #161920 / 香槟金 #d4af37 / 暖白 #f8f9fa
   ============================================================ */

:root {
  --bg-main: #0c0d10;
  --bg-card: #13161c;
  --bg-card-hover: #191c24;
  --bg-card-elevated: #1f232d;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.25);
  --border-gold-hover: rgba(212, 175, 55, 0.55);
  
  --gold-primary: #d4af37;
  --gold-light: #f5df95;
  --gold-dark: #a37c22;
  --gold-gradient: linear-gradient(135deg, #fae59e 0%, #d4af37 50%, #99731e 100%);
  --gold-glow: 0 4px 20px rgba(212, 175, 55, 0.22);
  
  --text-main: #f8f9fa;
  --text-secondary: #9da3af;
  --text-muted: #6b7280;
  --text-gold: #e5c56c;
  
  --header-height: 72px;
  --max-width: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* 基础版心容器 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 渐变金色文本 */
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gold {
  color: var(--gold-light);
}

.text-muted {
  color: var(--text-secondary);
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0c0d10;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.42);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 13px 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* 统一徽章与标签 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.tag:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* 通用区块间距与标题 */
.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background-color: #0f1116;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 统一卡片样式 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* 顶部导航栏 */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(12, 13, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c0d10;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-main-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.brand-sub-title {
  font-size: 11px;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

/* 导航链接 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
}

.nav-link.active {
  font-weight: 600;
  border-bottom: 2px solid var(--gold-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 移动端汉堡按钮 */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* 移动端侧边菜单抽屉 */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #11141a;
  border-left: 1px solid var(--border-gold);
  z-index: 10001;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
}

.mobile-nav-overlay.open {
  display: block;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-links .nav-link {
  display: block;
  padding: 12px 14px;
  font-size: 15px;
}

/* 页脚 */
.site-footer {
  background: #090a0d;
  border-top: 1px solid var(--border-gold);
  padding: 64px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-left: 10px;
  border-left: 3px solid var(--gold-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

.footer-brand-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-top: 14px;
  max-width: 360px;
}

.footer-keywords-box {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-keywords-box span {
  color: var(--gold-light);
  margin: 0 4px;
  font-weight: 500;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-disclaimer {
  width: 100%;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  text-align: center;
}

/* 全站常驻悬浮交互按钮组 */
.floating-widget-group {
  position: fixed;
  right: 20px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.float-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  position: relative;
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--gold-gradient);
  color: #0c0d10;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
}

.float-btn .float-tooltip {
  position: absolute;
  right: 58px;
  background: #11141a;
  border: 1px solid var(--border-gold);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.float-btn:hover .float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.float-btn-app {
  background: var(--gold-gradient);
  color: #0c0d10;
  font-weight: 700;
}

/* 在线客服弹窗面板 */
.cs-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cs-panel-overlay.active {
  display: flex;
}

.cs-modal-card {
  background: #13171f;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cs-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.cs-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-modal-btn {
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

.cs-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 12px;
}

.cs-item-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.cs-item-val {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* Toast 微提示 */
.toast-msg {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #181c24;
  border: 1px solid var(--gold-primary);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  z-index: 10005;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 面包屑导航 */
.breadcrumb-wrap {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 30px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb-item a:hover {
  color: var(--gold-light);
}

.breadcrumb-sep {
  color: var(--text-muted);
}

/* 图片预加载与后备容错 */
.img-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #171a22;
  border-radius: var(--radius-md);
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .img-wrapper img {
  transform: scale(1.04);
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  
  .nav-menu, .header-cta {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .section {
    padding: 56px 0;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .floating-widget-group {
    right: 14px;
    bottom: 20px;
  }
  
  .float-btn {
    width: 42px;
    height: 42px;
  }
}

/* 尊重减少动态效果设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
