/* 全局样式 */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
}

body {
    background: url('images/bg.png') no-repeat center top;
    background-size: 100% auto;
    background-attachment: scroll;
    min-height: 100vh;
}

/* 大屏幕时背景适配 */
@media (min-width: 768px) {
    body {
        background-size: 448px auto; /* max-w-md = 28rem = 448px */
        background-position: center top;
    }
}

/* 确保没有其他元素覆盖背景 */
html {
    background: transparent !important;
}

* {
    box-sizing: border-box;
}

/* 主容器样式 */
.main-container {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0);
    min-height: 100vh;
}

/* 透明主容器样式 */
.main-container-transparent {
    background: transparent !important;
    min-height: 100vh;
    border: none;
}

/* 自定义样式 */
.stroke-white {
    -webkit-text-stroke: 2px white;
    text-shadow: 2px 2px 0px rgba(0, 98, 254, 1);
}

/* 标题样式 */
.tab-header-title h1 {
    color: black !important;
    font-size: 36px;
    -webkit-text-stroke: 2px white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tab-header-title h2 {
    color: orange !important;
    font-size: 36px;
    -webkit-text-stroke: 2px white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 渐变背景动画 */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 手机界面模拟样式 */
.phone-mockup {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 步骤圆圈动画 */
.step-circle {
    transition: all 0.2s ease;
    cursor: pointer;
}

.step-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 98, 254, 0.3);
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}


/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #0062FE 0%, #4880FD 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 98, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 98, 254, 0.4);
}

/* 成功状态样式 */
.success-check {
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        margin: 0;
        border-radius: 0;
    }
    
    .tab-button span {
        font-size: 0.875rem;
    }
    
    .tab-button svg {
        width: 1rem;
        height: 1rem;
    }
}

/* 小屏幕页签优化 */
@media (max-width: 480px) {
    .tab-button {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .tab-button span {
        flex-direction: column;
        space-y: 1px;
    }
    
    .tab-button svg {
        width: 16px;
        height: 16px;
    }
    
    .tab-button span span {
        font-size: 10px;
        margin-top: 2px;
    }
}

/* 页签悬浮效果增强 */
.tab-button {
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    color: #6b7280;
}

.tab-button:hover {
    color: #0062FE;
    background-color: rgba(59, 130, 246, 0.05);
}

.tab-button.active {
    color: #0062FE !important;
    background-color: rgba(59, 130, 246, 0.1) !important;
    border-bottom-color: #0062FE !important;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0062FE;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052d4;
}

/* 加载动画 */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0062FE;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 渐变文字效果 */
.gradient-text {
    background: linear-gradient(135deg, #FFB849 0%, #FF8A00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 毛玻璃效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 脉动动画 */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 页签内容面板 */
.tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* 页签指示器 */
.tab-indicator {
    position: absolute;
    bottom: 0;
    height: 2px;
    background-color: #0062FE;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* 页签切换时的内容过渡 */
.tab-content {
    position: relative;
    overflow: hidden;
}

/* 确保内容从页签下方开始 */
.tab-panel {
    margin-top: 0;
    padding-top: 0;
}

/* 背景图片区域优化 */
.tab-panel .relative.h-48 {
    margin-top: 0;
}

/* 页签头部背景图片样式 */
.tab-header-bg {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 0;
}

.tab-header-bg img {
    transition: transform 0.3s ease;
}

.tab-header-bg:hover img {
    transform: scale(1.05);
}

.tab-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.3) 80%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.tab-header-title {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.tab-header-title h1,
.tab-header-title h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
    line-height: 1.2;
}

/* 响应式背景图片 */
@media (max-width: 768px) {
    .tab-header-bg {
        height: 160px;
    }
    
    .tab-header-title h1 {
        font-size: 1.8rem;
    }
    
    .tab-header-title h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .tab-header-bg {
        height: 140px;
    }
    
    .tab-header-title h1 {
        font-size: 1.5rem;
    }
    
    .tab-header-title h2 {
        font-size: 1.3rem;
    }
}

/* 滑动指示器动画优化 */
#tab-indicator {
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}