/*
 * gny-custom.css
 * gny 主题在 gny.css 设计系统之外的补充样式：
 * 动态导航登录态、侧边浮窗、页脚动态区块、全局消息弹窗。
 * 约定：不修改 gny.css/gny-responsive.css，所有覆盖只写在这里。
 */

/* ---------- 顶部导航 ---------- */
/* 动态导航中文菜单项不换行 */
.main-menu__list > li > a {
  white-space: nowrap;
}

/* ---------- 顶部导航：登录态 ---------- */
.main-header-one__right .gny-auth {
  align-items: center;
}

.main-header-one__right .no-login[style*="display:block"],
.main-header-one__right .no-login[style*="display: block"] {
  display: flex !important;
}

.gny-nav-login {
  color: var(--gnytech-dark, #000932);
  font-size: 16px;
  font-weight: 500;
  margin-right: 20px;
  white-space: nowrap;
  transition: all 500ms ease;
}

.main-header-one__right .thm-btn span {
  white-space: nowrap;
}

.gny-nav-login:hover {
  color: var(--gnytech-base, #ffa065);
}

.main-header-one__right .login-in {
  position: relative;
  align-items: center;
  cursor: pointer;
}

.main-header-one__right .head-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gnytech-secondary, #3852ff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.main-header-one__right .login-in .name {
  color: var(--gnytech-dark, #000932);
  font-size: 15px;
  margin-left: 10px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-header-one__right .login-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 99;
  min-width: 180px;
  padding: 10px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 9, 50, 0.12);
}

.main-header-one__right .login-in:hover .login-menu {
  display: block;
}

.login-menu .login-menu-item {
  padding: 10px 20px;
  font-size: 14px;
  color: var(--gnytech-text, #696e7b);
  transition: all 300ms ease;
}

.login-menu .login-menu-item:hover {
  color: var(--gnytech-secondary, #3852ff);
  background: rgba(56, 82, 255, 0.06);
}

.login-menu .real-name {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 12px;
  border-radius: 10px;
  color: var(--gnytech-secondary, #3852ff);
  background: rgba(56, 82, 255, 0.1);
}

.login-menu .no-real-name {
  color: var(--gnytech-primary, #ff5a74);
  background: rgba(255, 90, 116, 0.1);
}

/* 移动端隐藏登录态文本，保留头像 */
@media (max-width: 767px) {
  .main-header-one__right .gny-nav-login,
  .main-header-one__right .login-in .name {
    display: none;
  }
}

/* ---------- 侧边浮窗 ---------- */
.aside-tools {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 980;
}

.aside-tools .tools-list {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 10px 30px rgba(0, 9, 50, 0.12);
  overflow: visible;
}

.aside-tools .tools-item {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.aside-tools .tools-item + .tools-item {
  border-top: 1px solid rgba(0, 9, 50, 0.06);
}

.aside-tools .tools-item > img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.aside-tools .tools-item > i {
  font-size: 20px;
  color: var(--gnytech-secondary, #3852ff);
}

.aside-tools .tools-box {
  display: none;
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  padding-right: 12px;
}

.aside-tools .tools-item:hover .tools-box {
  display: block;
}

.aside-tools .tools-box-s {
  min-width: 200px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 9, 50, 0.16);
}

.aside-tools .tools-box-s h5 {
  font-size: 16px;
  color: var(--gnytech-dark, #000932);
  margin-bottom: 6px;
}

.aside-tools .tools-box-s p {
  font-size: 13px;
  color: var(--gnytech-text, #696e7b);
  margin: 0 0 4px;
}

.aside-tools .tools-box-s .button {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  font-size: 13px;
  color: #fff;
  background: var(--gnytech-secondary, #3852ff);
  border-radius: 18px;
  transition: all 300ms ease;
}

.aside-tools .tools-box-s .button:hover {
  background: var(--gnytech-base, #ffa065);
}

@media (max-width: 767px) {
  .aside-tools {
    display: none;
  }
}

/* ---------- 页脚：联系信息 / 二维码 / 友情链接 ---------- */
.footer-widget-two__contact {
  margin: 20px 0 0;
}

.footer-widget-two__contact li {
  font-size: 14px;
  color: #9ca3b9;
  margin-bottom: 8px;
}

.footer-widget-two__contact li i {
  color: var(--gnytech-base, #ffa065);
  margin-right: 10px;
  width: 16px;
  text-align: center;
}

.footer-widget-two__qrcode {
  margin-top: 16px;
}

.footer-widget-two__qrcode img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.footer-widget-two__qrcode img[src=""] {
  display: none;
}

.footer-friendly-link {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #9ca3b9;
}

.footer-friendly-link span {
  margin-right: 6px;
}

.footer-friendly-link a {
  color: #9ca3b9;
  margin-right: 16px;
  transition: all 300ms ease;
}

.footer-friendly-link a:hover {
  color: var(--gnytech-base, #ffa065);
}

.footer-bottom__inner p {
  margin: 0;
}

/* ---------- 全局消息弹窗（common.js showMessage） ---------- */
#alert-container {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#alert-container .alert {
  min-width: 280px;
  box-shadow: 0 10px 30px rgba(0, 9, 50, 0.16);
}

/* ---------- 产品页：后台 banner ---------- */
.gny-admin-banner .item img {
  width: 100%;
  display: block;
}

/* ---------- 产品页：套餐分组 tab ---------- */
.gny-pricing {
  padding: 90px 0;
}

.gny-plan-tabs {
  border: none;
  gap: 12px;
  margin-bottom: 30px;
}

.gny-plan-tabs .nav-link {
  border: 1px solid rgba(56, 82, 255, 0.2);
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 16px;
  font-weight: 500;
  color: var(--gnytech-text, #696e7b);
  background: #fff;
  transition: all 300ms ease;
}

.gny-plan-tabs .nav-link.active {
  color: #fff;
  background: var(--gnytech-secondary, #3852ff);
  border-color: var(--gnytech-secondary, #3852ff);
}

/* ---------- 产品页：地区切换（product.js 依赖 .country-item/.hot-list） ---------- */
.gny-region-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.gny-region-tabs .country-item {
  padding: 6px 18px;
  font-size: 14px;
  color: var(--gnytech-text, #696e7b);
  background: rgba(56, 82, 255, 0.06);
  border-radius: 6px;
  cursor: pointer;
  transition: all 300ms ease;
}

.gny-region-tabs .country-item.active {
  color: #fff;
  background: var(--gnytech-base, #ffa065);
}

.gny-pricing .hot-list {
  display: none;
}

.gny-pricing .hot-list.active {
  display: block;
}

/* ---------- 产品页：套餐卡 ---------- */
.gny-product-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 9, 50, 0.08);
  border-radius: 20px;
  padding: 30px 24px 24px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  transition: all 300ms ease;
}

.gny-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 9, 50, 0.1);
  border-color: rgba(56, 82, 255, 0.3);
}

.gny-product-card__badge {
  position: absolute;
  top: 0;
  right: 24px;
  transform: translateY(-50%);
  padding: 2px 12px;
  font-size: 12px;
  color: #fff;
  background: var(--gnytech-primary, #ff5a74);
  border-radius: 999px;
}

.gny-product-card__name {
  font-size: 20px;
  color: var(--gnytech-dark, #000932);
  margin-bottom: 6px;
}

.gny-product-card__desc {
  font-size: 13px;
  color: var(--gnytech-text, #696e7b);
  min-height: 38px;
  margin-bottom: 12px;
}

.gny-product-card__price {
  color: var(--gnytech-secondary, #3852ff);
}

.gny-product-card__price .amount {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--gnytech-title-font, inherit);
}

.gny-product-card__price .unit {
  font-size: 14px;
  color: var(--gnytech-text, #696e7b);
}

.gny-product-card__origin {
  font-size: 12px;
  color: #b0b4c3;
  text-decoration: line-through;
  margin-bottom: 14px;
}

.gny-product-card__config {
  border-top: 1px dashed rgba(0, 9, 50, 0.1);
  padding-top: 14px;
  margin-bottom: 12px;
}

.gny-product-card__config li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  margin-bottom: 8px;
}

.gny-product-card__config li span {
  color: #9ca3b9;
  flex-shrink: 0;
  margin-right: 12px;
}

.gny-product-card__config li em {
  font-style: normal;
  color: var(--gnytech-dark, #000932);
  text-align: right;
}

.gny-product-card__config .durations i {
  font-style: normal;
  display: inline-block;
  padding: 1px 8px;
  margin-left: 4px;
  font-size: 12px;
  border-radius: 4px;
  background: rgba(0, 9, 50, 0.04);
}

.gny-product-card__config .durations i.active {
  color: var(--gnytech-secondary, #3852ff);
  background: rgba(56, 82, 255, 0.1);
}

.gny-product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.gny-product-card__tags span {
  font-size: 12px;
  color: var(--gnytech-base, #ffa065);
  background: rgba(255, 160, 101, 0.1);
  border-radius: 4px;
  padding: 2px 8px;
}

.gny-product-card__btn {
  margin-top: auto;
  text-align: center;
  width: 100%;
}

/* ---------- 产品页：优惠活动卡 ---------- */
.gny-coupon-section {
  padding: 0 0 90px;
}

.gny-coupon-card {
  background: linear-gradient(135deg, rgba(56, 82, 255, 0.05) 0%, rgba(255, 90, 116, 0.05) 100%);
  border: 1px dashed rgba(56, 82, 255, 0.3);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.gny-coupon-card__name {
  font-size: 18px;
  color: var(--gnytech-dark, #000932);
  margin-bottom: 8px;
}

.gny-coupon-card__desc {
  font-size: 13px;
  color: var(--gnytech-text, #696e7b);
  margin-bottom: 16px;
}

/* ---------- 首页：新闻与公告区底部按钮 ---------- */
.blog-two__more {
  margin-top: 40px;
}

.blog-two__more .thm-btn + .thm-btn {
  margin-left: 16px;
}
