/* Banner滚动区域样式 */
.banner-container {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100% !important;
    margin: 0 auto !important;
    max-width: 100%;
}

/* 响应式最大宽度设置 - 确保在所有断点下居中 */
@media (max-width: 767px) {
    .banner-container {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}

@media (min-width: 768px) {
    .banner-container {
        max-width: 580px !important;
        margin: 0 auto !important;
    }
}

@media (min-width: 1024px) {
    .banner-container {
        max-width: 700px !important;
        margin: 0 auto !important;
    }
}

@media (min-width: 1280px) {
    .banner-container {
        max-width: 750px !important;
        margin: 0 auto !important;
    }
}

.banner-track {
    display: flex;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
    flex: 0 0 100%;
    width: 100%;
}

.banner-indicator {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.banner-indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.banner-indicator:not(.active) {
    background-color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

.banner-indicator:hover {
    background-color: rgba(58, 134, 255, 0.7);
    transform: scale(1.1);
    border-color: var(--primary-color);
}

/* Banner渐变背景装饰 */
.banner-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(58, 134, 255, 0.03) 0%, 
        rgba(44, 123, 229, 0.05) 50%, 
        rgba(58, 134, 255, 0.03) 100%);
    pointer-events: none;
    z-index: 0;
}

/* 添加动态背景效果 */
.banner-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.02) 0%, transparent 70%);
    animation: bannerGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bannerGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

.banner-slide > div {
    position: relative;
    z-index: 1;
}

/* 添加微妙的悬停效果 */
.banner-slide:hover .w-16 {
    transform: scale(1.05) rotate(2deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide .w-16 {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 响应式banner样式 */
@media (max-width: 768px) {
    .banner-container {
        border-radius: 1rem;
        padding-bottom: 2.5rem !important; /* 移动端增加底部间距 */
        margin: 0 auto;
        max-width: 100%;
    }
    
    .banner-slide > div {
        padding: 1.25rem 1.5rem !important;
        min-height: 100px !important;
    }
    
    .banner-slide h3 {
        font-size: 1.125rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .banner-slide p {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
    
    .banner-slide .w-16 {
        width: 3.5rem !important;
        height: 3.5rem !important;
        margin-right: 1rem !important;
    }
    
    .banner-slide .text-2xl {
        font-size: 1.25rem !important;
    }
    
    /* 移动端指示器调整 */
    .banner-container .absolute.bottom-2 {
        bottom: 0.25rem;
    }
}

/* 中等屏幕设备 (768px - 1023px) 如iPad */
@media (min-width: 768px) and (max-width: 1023px) {
    .banner-slide > div {
        padding: 1.5rem 2rem !important;
        min-height: 120px !important;
        justify-content: center;
        align-items: center;
    }
    
    .banner-slide h3 {
        text-align: left;
    }
    
    .banner-slide p {
        text-align: left;
    }
}

/* 大屏幕设备 (1024px及以上) */
@media (min-width: 1024px) {
    .banner-slide > div {
        padding: 2rem 2.5rem !important;
        min-height: 140px !important;
        justify-content: center;
        align-items: center;
    }
    
    /* 强制确保banner在桌面端居中显示 */
    .banner-container {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 640px) {
    .banner-slide > div {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem 1rem 1rem !important; /* 减少底部内边距留给指示器 */
    }
    
    .banner-slide .w-16 {
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .banner-container {
        padding-bottom: 2rem !important; /* 小屏幕上稍微减少间距 */
    }
}

/* 指示器增强样式 */
.banner-indicator {
    position: relative;
}

.banner-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banner-indicator:hover::after {
    opacity: 1;
}

/* 名字输入区域样式 */
/* 全局样式重置与基础设置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 全局颜色变量 */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #2c7be5;
    --accent-color: #ff6b6b;
    --neutral-dark: #212529;
    --neutral-light: #6c757d;
    --neutral-bg: #f8f9fa;
    --white: #ffffff;
    --transition-custom: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局字体设置 */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--neutral-dark);
    line-height: 1.6;
}

/* 表单元素通用样式 */
input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    font-family: inherit;
    transition: var(--transition-custom);
    border: 2px solid #e5e7eb;
    background-color: var(--white);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 1rem;
}

/* 表单元素聚焦效果 */
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.15);
    transform: translateY(-1px);
    outline: none;
}

/* 表单元素悬停效果 */
input[type="text"]:hover,
input[type="tel"]:hover,
input[type="email"]:hover,
textarea:hover {
    border-color: var(--primary-color);
}

/* 表单标签通用样式 */
label {
    color: var(--neutral-dark);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

/* 表单元素错误状态样式 */
input:invalid,
textarea:invalid {
    border-color: var(--accent-color);
}

input:invalid:focus,
textarea:invalid:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

/* 表单元素成功状态样式 */
input.success,
textarea.success {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.05);
}

input.success:focus,
textarea.success:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* 按钮基础样式 */
button,
a.btn {
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-custom);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* 主按钮样式 */
button.primary,
a.btn-primary,
.bg-primary,
.bg-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(58, 134, 255, 0.3);
}

button.primary:hover,
a.btn-primary:hover,
.bg-primary:hover,
.bg-secondary:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 6px 16px rgba(58, 134, 255, 0.4);
    transform: translateY(-1px);
}

button.primary:active,
a.btn-primary:active,
.bg-primary:active,
.bg-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(58, 134, 255, 0.3);
}

/* 次要按钮样式 */
button.secondary,
a.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

button.secondary:hover,
a.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 卡片通用样式 */
.card {
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: var(--transition-custom);
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-5px);
}

/* 图标容器样式 */
.icon-container {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(58, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* 动画类 */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* 延迟动画类 */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* 响应式导航栏样式增强 */
.nav-menu.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 智能配镜步骤指示器样式 */
.progress-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
    transition: var(--transition-custom);
}

.progress-dot.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.progress-dot.completed {
    background-color: var(--primary-color);
    color: var(--white);
}

.progress-dot.pending {
    background-color: #e5e7eb;
    color: var(--neutral-light);
}

/* 模态框样式增强 */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    max-width: 28rem;
    width: 90%;
    margin: 0 auto;
    transform: scale(0.95);
    opacity: 0;
    transition: var(--transition-custom);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* 服务卡片样式增强 */
.service-card {
    transition: var(--transition-custom);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* 品牌和型号选择样式 */
.brand-option,
.model-option {
    transition: var(--transition-custom);
    cursor: pointer;
}

.brand-option:hover,
.model-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.brand-option.selected,
.model-option.selected {
    border: 2px solid var(--primary-color);
    background-color: rgba(58, 134, 255, 0.05);
}

/* 图片加载状态样式 */
.img-placeholder {
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    border-radius: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* 移动端表单元素调整 */
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    label {
        font-size: 0.9rem;
    }
    
    /* 移动端按钮调整 */
    button,
a.btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* 移动端卡片调整 */
    .card {
        padding: 1.5rem;
    }
    
    /* 移动端图标容器调整 */
    .icon-container {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    /* 小屏幕设备的额外调整 */
    .card {
        padding: 1.25rem;
        border-radius: 0.75rem;
    }
    
    button,
a.btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 加载动画 */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* 文字选择样式 */
::selection {
    background-color: rgba(58, 134, 255, 0.2);
}

/* 无障碍焦点样式 */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
}