/* 人机验证样式 */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.captcha-image {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 3px;
    user-select: none;
    position: relative;
    overflow: hidden;
    min-width: 100px;
    text-align: center;
}

.captcha-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.1) 2px,
        rgba(255, 255, 255, 0.1) 4px
    );
    pointer-events: none;
}

.refresh-captcha {
    background: var(--ancient-gold);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-captcha:hover {
    background: var(--ancient-red);
    transform: rotate(180deg);
}

/* 滑动验证 */
.slider-captcha {
    margin-bottom: 1rem;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 50px;
    background: #f0f0f0;
    border: 2px solid var(--ancient-gold);
    border-radius: 25px;
    overflow: hidden;
}

.slider-thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 46px;
    background: linear-gradient(45deg, var(--ancient-gold), #f1c40f);
    border-radius: 23px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    user-select: none;
}

.slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.slider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.slider-thumb.success {
    background: var(--ancient-green);
    left: calc(100% - 50px);
}

.slider-track.success {
    background: rgba(34, 139, 34, 0.1);
    border-color: var(--ancient-green);
}

.slider-track.success .slider-text {
    color: var(--ancient-green);
}

/* 票种选择紧凑样式 */
.ticket-types.compact {
    gap: 1rem;
}

.ticket-type.compact {
    padding: 1rem;
}

.ticket-type.compact .ticket-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticket-type.compact .ticket-info p {
    font-size: 0.8rem;
    margin-bottom: 0;
}

.ticket-type.compact .ticket-price {
    font-size: 1.2rem;
}

.total-info.compact {
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.total-info.compact p {
    font-size: 1.1rem;
}

/* 验证码通知弹窗 */
.code-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--ancient-gold);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
    border: 2px solid var(--ancient-red);
}

.code-notification.show {
    display: block;
}

.code-notification .notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.code-notification .notification-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.code-notification .close-notification {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-notification .verification-code {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 5px;
    margin: 0.5rem 0;
}

.code-notification .notification-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 恶搞验证码样式 */
.fake-captcha {
    background: #f8f9fa;
    border: 2px dashed #ccc;
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
    border-radius: 8px;
}

.captcha-puzzle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.puzzle-piece {
    width: 60px;
    height: 60px;
    background: var(--ancient-gold);
    border: 2px solid var(--ancient-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.puzzle-piece:hover {
    background: var(--ancient-red);
    color: white;
    transform: scale(1.1);
}

.puzzle-piece.selected {
    background: var(--ancient-green);
    color: white;
    transform: scale(0.9);
}

/* 数学验证码 */
.math-captcha {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--ancient-gold);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin: 1rem 0;
}

.math-question {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--ancient-red);
    margin-bottom: 1rem;
    font-family: 'Ma Shan Zheng', cursive;
}

.math-input {
    width: 100px;
    padding: 0.5rem;
    border: 2px solid var(--ancient-gold);
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-image {
        text-align: center;
    }
    
    .code-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .puzzle-piece {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}