/* 页面过渡统一样式 - 确保所有页面风格一致 */

/* 全局页面过渡容器 */
.page-transition {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 250, 252, 0.95) 20%,
        rgba(240, 248, 255, 0.8) 40%,
        rgba(248, 250, 252, 0.95) 60%,
        rgba(243, 244, 246, 0.9) 80%,
        rgba(255, 255, 255, 1) 100%);
}

.page-transition::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(248, 250, 253, 0.3) 0%, rgba(248, 250, 253, 1) 100%);
    z-index: 1;
}

/* 统一的横幅样式 */
.unified-banner {
    position: relative;
    width: 100%;
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 40px 5%;
    overflow: hidden;
}

.unified-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.85) 0%, 
        rgba(248, 250, 252, 0.75) 50%,
        rgba(255, 255, 255, 0.85) 100%
    );
    z-index: 1;
}

.unified-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom, 
        transparent 0%, 
        rgba(248, 250, 253, 0.8) 50%,
        rgba(248, 250, 253, 1) 100%
    );
    z-index: 2;
}

/* 统一的内容卡片样式 */
.unified-content {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.08);
    transform: translateY(-20px);
}

/* 统一的标题样式 */
.unified-title {
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.unified-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.unified-title.text-left::after {
    left: 0;
    transform: none;
}

/* 统一的卡片网格系统 */
.unified-grid {
    display: grid;
    gap: 25px;
    margin: 35px 0;
}

.unified-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.unified-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.unified-grid.grid-1 {
    grid-template-columns: 1fr;
}

/* 统一的卡片样式 */
.unified-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(102, 126, 234, 0.08);
    position: relative;
    overflow: hidden;
}

.unified-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.unified-card:hover::before {
    transform: scaleX(1);
}

.unified-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(102, 126, 234, 0.12);
}

.unified-card img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.unified-card:hover img {
    transform: scale(1.1);
}

/* 统一的文本样式 */
.unified-text {
    color: #4a5568;
    line-height: 1.8;
    font-weight: 400;
}

.unified-text.primary {
    color: #2c3e50;
    font-weight: 600;
}

.unified-text.secondary {
    color: #667eea;
    font-weight: 500;
}

/* 统一的动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(-20px);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-20px);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-20px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

/* 响应式断点 */
@media (max-width: 768px) {
    .unified-grid.grid-4,
    .unified-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .unified-content {
        margin: 0 20px;
        padding: 40px 30px;
    }
    
    .unified-banner {
        min-height: 80vh;
        padding: 40px 5%;
    }
}

@media (max-width: 480px) {
    .unified-grid.grid-4,
    .unified-grid.grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .unified-content {
        margin: 0 15px;
        padding: 30px 20px;
    }
    
    .unified-card {
        padding: 25px 15px;
    }
}

/* 特殊布局样式 */
.content-left {
    justify-content: flex-start;
    text-align: left;
}

.content-right {
    justify-content: flex-end;
    text-align: right;
}

.content-center {
    justify-content: center;
    text-align: center;
}

/* 分隔线样式 */
.unified-divider {
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 30px 0;
    border-radius: 2px;
    opacity: 0.7;
}

/* 信息行样式 */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-row:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    padding-left: 15px;
    padding-right: 15px;
}

.info-label {
    font-weight: 600;
    color: #667eea;
    flex: 0 0 140px;
    font-size: 1rem;
}

.info-value {
    color: #2c3e50;
    flex: 1;
    text-align: left;
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-label {
        flex: none;
        margin-bottom: 5px;
    }
}

/* SmartChoice官网 - 页面过渡统一样式 */

/* 页面加载动画 */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 页面基础过渡效果 */
.page-wrapper {
    animation: pageEnter 0.6s ease-out;
}

/* 通用区域过渡 */
.page-section {
    position: relative;
    overflow: hidden;
}

/* 区域间的柔和过渡 */
.section-transition::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent 0%, currentColor 100%);
    opacity: 0.02;
    z-index: 1;
}

.section-transition::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, transparent 0%, currentColor 100%);
    opacity: 0.02;
    z-index: 1;
}

/* 统一的卡片入场效果 */
.card-entrance {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.card-entrance:nth-child(1) { animation-delay: 0.1s; }
.card-entrance:nth-child(2) { animation-delay: 0.2s; }
.card-entrance:nth-child(3) { animation-delay: 0.3s; }
.card-entrance:nth-child(4) { animation-delay: 0.4s; }
.card-entrance:nth-child(5) { animation-delay: 0.5s; }
.card-entrance:nth-child(6) { animation-delay: 0.6s; }

/* 标题入场效果 */
.title-entrance {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* 左右交替入场效果 */
.alternate-entrance:nth-child(odd) {
    animation: slideInFromLeft 0.8s ease-out forwards;
    opacity: 0;
}

.alternate-entrance:nth-child(even) {
    animation: slideInFromRight 0.8s ease-out forwards;
    opacity: 0;
}

/* 统一的悬停效果 */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

/* 统一的边框样式 */
.border-gradient {
    position: relative;
    border: 1px solid rgba(102, 126, 234, 0.08);
}

.border-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.border-gradient:hover::before {
    transform: scaleX(1);
}

/* 背景渐变统一 */
.bg-primary-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-light-gradient {
    background: linear-gradient(180deg,
        rgba(248, 250, 253, 0.3) 0%,
        rgba(248, 250, 253, 0.8) 50%,
        rgba(248, 250, 253, 1) 100%);
}

.bg-white-translucent {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
}

/* 统一的圆角 */
.radius-main { border-radius: 25px; }
.radius-card { border-radius: 20px; }
.radius-small { border-radius: 15px; }
.radius-minimal { border-radius: 8px; }

/* 统一的阴影 */
.shadow-soft {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.08);
}

.shadow-medium {
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.12);
}

.shadow-strong {
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

/* 页面间的无缝过渡效果 */
.page-banner-transition {
    position: relative;
}

.page-banner-transition::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(
        to bottom, 
        transparent 0%, 
        rgba(248, 250, 253, 0.6) 50%,
        rgba(248, 250, 253, 1) 100%
    );
    z-index: 2;
}

/* 响应式过渡调整 */
@media (max-width: 768px) {
    .card-entrance {
        animation-duration: 0.6s;
    }
    
    .card-entrance:nth-child(n) {
        animation-delay: 0.1s;
    }
    
    .hover-lift:hover {
        transform: translateY(-4px);
    }
}

/* Logo清晰度优化 */
.new-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .new-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
        -ms-interpolation-mode: bicubic;
        image-rendering: auto;
    }
}

/* 4K和超高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
    .new-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
        image-rendering: auto;
        filter: contrast(1.02) brightness(1.01);
    }
}

/* 禁用动画选项（用户首选项） */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 