
  :root {
    --kf-primary: #4A90E2;
    --kf-primary-dark: #357ABD;
    --kf-bg: #ffffff;
    --kf-text: #333333;
    --kf-border: #E8ECEF;
    --kf-hover: #F5F9FF;
    --kf-shadow: 0 8px 24px rgba(74, 144, 226, 0.2);
  }

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

  .kf-container {
    position: fixed;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    background: var(--kf-bg);
    border-radius: 12px;
    box-shadow: var(--kf-shadow);
    z-index: 9999;
    transition: all 0.3s;
    overflow: visible;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    border: 1px solid var(--kf-border);
  }

  .kf-container.kf-open {
    width: 120px;
  }

  .kf-header {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
        background: linear-gradient(135deg, #198754 0%, #198754 100%);
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
  }

  .kf-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s;
    white-space: nowrap;
  }

  .kf-container.kf-open .kf-title {
    opacity: 1;
  }

  .kf-close-btn {
    width: 20px;
    height: 20px;
    cursor: pointer;
    fill: rgba(255,255,255,0.9);
    flex-shrink: 0;
  }
  .kf-close-btn:hover {
    fill: #fff;
  }

  .kf-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
  }

  .kf-item {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--kf-text);
    white-space: nowrap;
    font-size: 13px;
  }

  .kf-item:hover {
    background: var(--kf-hover);
  }

  .kf-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-right: 10px;
  }
  
  .kf-text {
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.25s;
    flex-shrink: 0;
  }
  .kf-container.kf-open .kf-text {
    opacity: 1;
  }

  /* ================= QQ 美化样式 ================= */
  .kf-qq-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }

  .kf-qq-item {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--kf-text);
    white-space: nowrap;
    font-size: 13px;
    text-decoration: none;
    width: 100%;
  }

  .kf-qq-item:hover {
    background: var(--kf-hover);
  }

  .kf-qq-pop {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(18, 183, 245, 0.15);
    border: 1px solid #e3f2fd;
    text-align: center;
    min-width: 180px;
    z-index: 10000;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  .kf-qq-wrapper:hover .kf-qq-pop,
  .kf-qq-pop:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(-2px);
  }

  .kf-qq-pop .qq-label {
    font-size: 11px;
    color: #12B7F5;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
  }

  .kf-qq-pop .qq-number {
    font-size: 18px;
    color: #333;
    font-weight: 700;
    margin: 8px 0 14px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-radius: 8px;
    font-family: Consolas, Monaco, monospace;
    border: 2px dashed #198754;
    letter-spacing: 1px;
    transition: all 0.2s;
    cursor: pointer;
  }

  .kf-qq-pop .qq-number:hover {
    background: linear-gradient(135deg, #e6f3ff 0%, #d9edff 100%);
    transform: scale(1.02);
  }

  .kf-qq-pop .copy-qq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #198754 0%, #198754 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.25);
    letter-spacing: 0.5px;
  }

  .kf-qq-pop .copy-qq-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18, 183, 245, 0.4);
    background: linear-gradient(135deg, #0CA5E0 0%, #0896c7 100%);
  }

  .kf-qq-pop .copy-qq-btn:active {
    transform: translateY(0);
  }

  .kf-qq-pop .qr-tip {
    font-size: 10px;
    color: #999;
    margin-top: 12px;
    font-weight: 500;
  }
  /* ================= QQ 美化样式 END ================= */


  /* ================= 微信样式（保持原样）================= */
  .kf-wechat-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }

  .kf-wechat-item {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--kf-text);
    white-space: nowrap;
    font-size: 13px;
    width: 100%;
  }

  .kf-wechat-item:hover {
    background: var(--kf-hover);
  }

  .kf-wechat-pop {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--kf-border);
    text-align: center;
    min-width: 185px;
    z-index: 10000;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
  }

  .kf-wechat-wrapper:hover .kf-wechat-pop,
  .kf-wechat-pop:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .kf-wechat-pop .wechat-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
    line-height: 1.5;
  }

  .kf-wechat-pop .wechat-id {
    font-size: 13px;
    color: #333;
    margin: 8px 0;
    padding: 8px 10px;
    background: #F8F9FA;
    border-radius: 6px;
    font-family: Consolas, Monaco, monospace;
    word-break: break-all;
    border: 1px dashed #ddd;
  }
  
  .kf-wechat-pop .copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #07C160 0%, #06AD56 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 10px;
    transition: all 0.2s;
  }
  .kf-wechat-pop .copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
  }
  
  .kf-wechat-pop .qr-img {
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto;
    background: #F8F9FA;
    border: 1px solid var(--kf-border);
    border-radius: 8px;
  }

  .kf-wechat-pop .qr-tip {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
  }
  /* ================= 微信样式 END ================= */


  .kf-copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 10001;
    display: none;
    font-weight: 500;
  }

  .kf-reopen-btn {
    position: fixed;
    right: 15px;
    bottom: 25px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--kf-primary) 0%, var(--kf-primary-dark) 100%);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.35);
    cursor: pointer;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    border: 2px solid #fff;
  }
  .kf-reopen-btn:hover {
    transform: scale(1.08);
  }
  .kf-reopen-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
  }

  .kf-qq-item .kf-icon { fill: #198754; }
  .kf-wechat-item .kf-icon { fill: #07C160; }
  .kf-phone .kf-icon { fill: #FF9500; }

  .kf-divider {
    height: 1px;
    background: var(--kf-border);
    margin: 6px 12px;
  }

  @media (max-width: 768px) {
    .kf-container {
      right: 10px;
      bottom: 80px;
      top: auto;
      transform: none;
      width: 48px;
    }
    .kf-container.kf-open {
      width: 120px;
    }
    .kf-reopen-btn {
      right: 10px;
      bottom: 12px;
      width: 46px;
      height: 46px;
    }
    .kf-qq-pop,
    .kf-wechat-pop {
      min-width: 170px;
    }
    .kf-wechat-pop .qr-img {
      width: 110px;
      height: 110px;
    }
  }
