/* 科技感错误按钮 */
/* 科技感 Outline 错误按钮 */
.btn-tech-error-outline {
    position: relative;
    background: transparent;
    border: 2px solid #dc3545;
    color: #dc3545;
    padding: 6px 12px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(220, 53, 69, 0);
}

.btn-tech-error-outline:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: #fd7e14;
    color: #dc3545;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-tech-error-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-tech-error-outline:hover::before {
    left: 100%;
}

/* 科技感 Outline 主要按钮 */
.btn-tech-primary-outline {
    position: relative;
    background: transparent;
    border: 2px solid #0d6efd;
    color: #0d6efd;
    padding: 6px 12px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(13, 110, 253, 0);
}

.btn-tech-primary-outline:hover {
    background: rgba(13, 110, 253, 0.1);
    border-color: #0b5ed7;
    color: #0d6efd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

.btn-tech-primary-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-tech-primary-outline:hover::before {
    left: 100%;
}

/* 脉冲边框效果 */
.btn-tech-outline-pulse {
    position: relative;
}

.btn-tech-outline-pulse::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid currentColor;
    border-radius: 8px;
    opacity: 0;
    animation: outline-pulse 2s infinite;
}

@keyframes outline-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.2; }
    100% { transform: scale(1.1); opacity: 0; }
}

/* 数据流边框效果 */
.btn-tech-outline-flow {
    position: relative;
    border-image: linear-gradient(45deg, currentColor, transparent, currentColor) 2;
}

.btn-tech-outline-flow:hover {
    animation: border-flow 1s ease-in-out infinite alternate;
}

@keyframes border-flow {
    0% { border-image-source: linear-gradient(45deg, currentColor, transparent, currentColor); }
    100% { border-image-source: linear-gradient(225deg, currentColor, transparent, currentColor); }
}
/* 实心科技感主要按钮 */
.btn-tech-primary {
    position: relative;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    border: 2px solid #0b5ed7;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
    font-weight: 500;
}

.btn-tech-primary:active {
    background: linear-gradient(135deg, #0a58ca, #0a53be);
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(13, 110, 253, 0.5);
    transition: all 0.1s ease;
}

.btn-tech-primary:focus-visible {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25), 0 2px 8px rgba(13, 110, 253, 0.3);
    animation: focus-pulse 2s infinite;
}

@keyframes focus-pulse {
    0% { box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25), 0 2px 8px rgba(13, 110, 253, 0.3); }
    50% { box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.4), 0 2px 8px rgba(13, 110, 253, 0.3); }
    100% { box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25), 0 2px 8px rgba(13, 110, 253, 0.3); }
}

.btn-tech-primary:hover {
    background: linear-gradient(135deg, #0b5ed7, #0d6efd);
    border-color: #0b5ed7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.4);
}

.btn-tech-primary:hover:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(32, 201, 151, 0.3), transparent);
    transform: rotate(45deg);
    animation: glow-sweep 3s infinite;
    opacity: 0;
}

@keyframes glow-sweep {
    0% { transform: translateX(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) rotate(45deg); opacity: 0; }
}

/* 实心科技感成功按钮 */
.btn-tech-success {
    position: relative;
    background: linear-gradient(135deg, #198754, #146c43);
    border: 2px solid #20c997;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3);
    font-weight: 500;
}

/* 科技感 Outline 成功按钮 */
.btn-tech-success-outline {
    position: relative;
    background: transparent;
    border: 2px solid #20c997;
    color: #198754;
    padding: 6px 12px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(25, 135, 84, 0);
}

.btn-tech-success-outline:hover {
    background: rgba(25, 135, 84, 0.1);
    border-color: #20c997;
    color: #198754;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.2);
}

.btn-tech-success-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 135, 84, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-tech-success-outline:hover::before {
    left: 100%;
}

.btn-tech-success:hover {
    background: linear-gradient(135deg, #146c43, #198754);
    border-color: #198754;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(25, 135, 84, 0.4);
}

.btn-tech-success::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(13, 202, 240, 0.3), transparent);
    transform: rotate(45deg);
    animation: glow-sweep-success 3s infinite;
    opacity: 0;
}

.btn-tech-success:hover::before {
    animation-duration: 0.8s;
}

@keyframes glow-sweep-success {
    0% { transform: translateX(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) rotate(45deg); opacity: 0; }
}

/* 实心科技感错误按钮 */
.btn-tech-error {
    position: relative;
    background: linear-gradient(135deg, #dc3545, #bd2130);
    border: 2px solid #fd7e14;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    font-weight: 500;
}

.btn-tech-error:hover {
    background: linear-gradient(135deg, #bd2130, #dc3545);
    border-color: #fd7e14;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4);
}

.btn-tech-error::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(253, 126, 20, 0.3), transparent);
    transform: rotate(45deg);
    animation: glow-sweep-error 3s infinite;
    opacity: 0;
}

.btn-tech-error:hover::before {
    animation-duration: 0.8s;
}

@keyframes glow-sweep-error {
    0% { transform: translateX(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) rotate(45deg); opacity: 0; }
}

/* 大号版本，用于重要操作 */
.btn-tech-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 8px;
}

/* 脉冲效果，用于重要提醒 */
.btn-tech-pulse {
    animation: tech-pulse 2s infinite;
}

@keyframes tech-pulse {
    0% { box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(13, 110, 253, 0.6); }
    100% { box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3); }
}
/* 低调科技感 Secondary 按钮 */
.btn-tech-secondary {
    position: relative;
    background: transparent;
    border: 1px solid var(--bs-border-color);
    color: var(--bs-secondary);
    padding: 6px 12px;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
    font-weight: 400;
}

.btn-tech-secondary:hover {
    background: var(--bs-secondary-bg);
    border-color: var(--bs-secondary);
    color: var(--bs-secondary);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-tech-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bs-secondary-bg);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-tech-secondary:hover::before {
    width: 100%;
}

/* 深色模式适配 */
[data-bs-theme="dark"] .btn-tech-secondary {
    border-color: var(--bs-border-color);
    color: var(--bs-secondary);
}

[data-bs-theme="dark"] .btn-tech-secondary:hover {
    background: rgba(108, 117, 125, 0.1);
    border-color: var(--bs-secondary);
    color: var(--bs-light);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .btn-tech-secondary::before {
    background: rgba(108, 117, 125, 0.1);
}

/* Outline 版本（更低调） */
.btn-tech-secondary-outline {
    position: relative;
    background: transparent;
    border: 1px solid var(--bs-border-color-translucent);
    color: var(--bs-secondary);
    padding: 6px 12px;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
    font-weight: 400;
}

.btn-tech-secondary-outline:hover {
    background: var(--bs-secondary-bg-subtle);
    border-color: var(--bs-secondary-border-subtle);
    color: var(--bs-secondary-emphasis);
    transform: translateY(-1px);
}

.btn-tech-secondary-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--bs-secondary-bg-subtle), transparent);
    transition: left 0.4s ease;
}

.btn-tech-secondary-outline:hover::before {
    left: 100%;
}

/* 深色模式 Outline 适配 */
[data-bs-theme="dark"] .btn-tech-secondary-outline {
    border-color: rgba(108, 117, 125, 0.3);
    color: var(--bs-secondary);
}

[data-bs-theme="dark"] .btn-tech-secondary-outline:hover {
    background: rgba(108, 117, 125, 0.05);
    border-color: rgba(108, 117, 125, 0.5);
    color: var(--bs-light);
}

[data-bs-theme="dark"] .btn-tech-secondary-outline::before {
    background: linear-gradient(90deg, transparent, rgba(108, 117, 125, 0.1), transparent);
}

/* 微妙版本（最低调） */
.btn-tech-subtle {
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    color: var(--bs-body-color);
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 400;
}

.btn-tech-subtle:hover {
    background: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color-translucent);
    color: var(--bs-body-color);
    transform: translateY(-1px);
}

.btn-tech-subtle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--bs-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.btn-tech-subtle:hover::after {
    width: 100%;
}

/* 深色模式微妙版本适配 */
[data-bs-theme="dark"] .btn-tech-subtle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}


@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn-ai-animated, .btn-ai-animated:active, .btn-ai-animated:focus-visible {
    background: linear-gradient(270deg, #552baf, #6f42c1, #854ecb, #6f42c1, #552baf);
    background-size: 400% 400%;
    animation: gradient-flow 8s ease infinite;

    color: #fff!important;
    font-weight: 600;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-ai-animated:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(111, 66, 193, 0.5);
    opacity: 0.95;
}