/* 移动端按钮UI优化 - 完全透明版本 */

/* 基础按钮样式重置 */
.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮基础样式 - 完全透明 */
.hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    min-height: 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    box-shadow: none !important;
}

/* 只针对轮播图区域的按钮 - 强制透明 */
.hero-buttons .btn,
.hero-buttons .btn:hover,
.hero-buttons .btn:focus,
.hero-buttons .btn:active,
.hero-buttons .btn:visited {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: none !important;
    outline: none !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* 悬停效果 - 只改变文字阴影和位置 */
.hero-buttons .btn:hover {
    transform: translateY(-2px);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

/* 确保表单按钮正常显示 */
form .btn-primary,
.contact-form .btn-primary,
.btn-primary:not(.hero-buttons .btn-primary) {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border: 1px solid #007bff !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3) !important;
    text-shadow: none !important;
}

form .btn-primary:hover,
.contact-form .btn-primary:hover,
.btn-primary:not(.hero-buttons .btn-primary):hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
    border-color: #0056b3 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4) !important;
}

/* 响应式设计 - 超小屏幕 (< 576px) */
@media (max-width: 575.98px) {
    .hero-buttons {
        padding: 0 15px;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        max-width: 260px;
        min-height: 48px;
        font-size: 15px;
        padding: 10px 20px;
    }
}

/* 响应式设计 - 小屏幕 (576px - 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .hero-buttons .btn {
        max-width: 200px;
        flex: 0 1 auto;
    }
}

/* 响应式设计 - 中等屏幕 (768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .hero-buttons .btn {
        max-width: 220px;
        min-height: 52px;
        font-size: 16px;
    }
}

/* 响应式设计 - 大屏幕 (≥ 992px) */
@media (min-width: 992px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 25px;
    }
    
    .hero-buttons .btn {
        max-width: 250px;
        min-height: 54px;
        font-size: 17px;
        padding: 14px 28px;
    }
}

/* 特殊处理 - 横屏模式 */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-buttons {
        flex-direction: row;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        max-width: 180px;
        min-height: 40px;
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .hero-buttons .btn {
        min-height: 50px;
        padding: 12px 24px;
    }
    
    .hero-buttons .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* 无障碍支持 - 减少动画 */
@media (prefers-reduced-motion: reduce) {
    .hero-buttons .btn {
        transition: none;
    }
    
    .hero-buttons .btn:hover {
        transform: none;
    }
}

/* 确保按钮在所有设备上都能正常显示 */
.hero-buttons .btn * {
    pointer-events: none;
}

.hero-buttons .btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* 星星按钮特殊处理 */
.hero-buttons .star-btn {
    position: relative;
    overflow: visible;
}

.hero-buttons .star-btn .star-btn-content {
    position: relative;
    z-index: 2;
}

/* 确保星星动画在移动端正常显示 */
@media (max-width: 767.98px) {
    .hero-buttons .star-btn [class*="star-"] {
        transform: scale(0.8);
    }
}

/* 只覆盖轮播图区域的按钮样式 */
.hero-buttons .btn:not(:disabled):not(.disabled) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.hero-buttons .btn:focus,
.hero-buttons .btn.focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 确保所有伪类状态都透明 */
.hero-buttons .btn::before,
.hero-buttons .btn::after {
    display: none !important;
}