/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* =========================
   GT Social Dock (Grouped)
   ========================= */

.gt-social-dock{
  position: fixed;
  right: 10px;           /* 更贴右侧 */
  top: 50%;
  transform: translateY(-50%);
  z-index: 99999;
}

/* 整体圆角框（把所有按钮包起来） */
.gt-social-panel{
  padding: 10px;
  border-radius: 18px;
  background: rgba(8, 22, 44, .58);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(2, 8, 23, .22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 单个按钮 */
.gt-social-item{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(15, 23, 42, .55);
  border: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  position: relative;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent; /* 移动端点击高亮 */
}

.gt-social-item:hover{
  transform: translateX(-2px);
  background: rgba(0, 103, 255, .75);
  border-color: rgba(255,255,255,.22);
}

/* 移动端点击打开时的状态（和 hover 一致） */
.gt-social-item.is-open{
  transform: translateX(-2px);
  background: rgba(0, 103, 255, .75);
  border-color: rgba(255,255,255,.22);
}

.gt-social-ico{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gt-social-tip{
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, .92);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.gt-social-item:hover .gt-social-tip{
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}

/* 悬停/点击弹卡片（二维码/文本共用） */
.gt-social-card{
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  width: 170px;

  padding: 14px;
  border-radius: 18px;
  background: rgba(8, 22, 44, .92);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 45px rgba(2,8,23,.35);

  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.gt-social-card img{
  width: 100%;
  display: block;
  border-radius: 14px;
  background: #fff; /* QR 更清晰 */
  padding: 10px;
  box-sizing: border-box;
}

.gt-social-card em{
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 13px;
  color: rgba(255,255,255,.88);
  text-align: center;
  letter-spacing: .2px;
}

/* 桌面 hover 显示卡片 */
.gt-social-item:hover .gt-social-card{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(-2px);
}

/* 移动端点击打开显示卡片 */
.gt-social-item.is-open .gt-social-card{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(-2px);
}

/* 无二维码：文本卡片（内容在上，名称在下，居中） */
.gt-social-card.is-text{
  width: auto;
  min-width: 190px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gt-social-card.is-text .gt-text-value{
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  text-align: center;
  letter-spacing: .2px;
}

.gt-social-card.is-text .gt-text-title{
  display: block;
  font-style: normal;
  font-size: 12px;
  color: rgba(255,255,255,.70);
  text-align: center;
}

/* 移动端位置优化 */
@media (max-width: 768px){
  .gt-social-dock{
    right: 6px;     /* 更贴边 */
    top: auto;
    bottom: 90px;
    transform: none;
  }

  .gt-social-card{
    right: calc(100% + 10px);
    top: auto;
    bottom: 0;
    transform: translateX(-2px);
  }
}
/* ===== Fix: 点击后图标变色/消失（:active/:visited/:focus）===== */
.gt-social-item,
.gt-social-item:visited,
.gt-social-item:active,
.gt-social-item:focus,
.gt-social-item:focus-visible{
  color: rgba(255,255,255,.92) !important;
  outline: none !important;
}

.gt-social-item svg{
  fill: currentColor !important;
}

/* 让按钮背景在各种状态下也一致 */
.gt-social-item:visited{
  background: rgba(15, 23, 42, .55) !important;
  border-color: rgba(255,255,255,.10) !important;
}

/* 打开态仍保持高亮（但会按你的 2 秒自动收回恢复） */
.gt-social-item.is-open{
  background: rgba(0, 103, 255, .75) !important;
  border-color: rgba(255,255,255,.22) !important;
  color: rgba(255,255,255,.95) !important;
}
