/*
Theme Name: 老龄大市场
Theme URI: https://www.laolingwang.com/
Description: A brief description of your theme
Author: wk
Author URI: https://www.laolingwang.com/
Version: 1.0
*/

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}



/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(74, 108, 247, 0.2);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 悬浮动画效果 */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* 几何图形装饰 */
.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

img.fa-logo{


  mix-blend-mode: multiply;
  width: 80px; /* 设置您需要的图标宽度 */
  height: 80px; /* 设置您需要的图标高度 */
}

.shape {
    position: absolute;
    opacity: 0.1;
}

.shape.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid var(--secondary);
}

.shape.square {
    width: 80px;
    height: 80px;
    background: var(--accent);
    transform: rotate(45deg);
}

.shape:nth-child(1) { top: 10%; left: 5%; width: 60px; height: 60px; }
.shape:nth-child(2) { top: 20%; right: 10%; width: 80px; height: 80px; }
.shape:nth-child(3) { bottom: 15%; left: 15%; width: 50px; height: 50px; }
.shape:nth-child(4) { bottom: 25%; right: 20%; width: 70px; height: 70px; }

/* AI元素图标样式 */
.ai-element {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin: 0 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 108, 247, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(74, 108, 247, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 108, 247, 0); }
}

/* 卡片翻转效果 */
.flip-card {
    perspective: 1000px;
    margin: 20px 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 200px;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.flip-card-front {
    background: var(--gradient);
    color: white;
}

.flip-card-back {
    background: white;
    color: var(--dark);
    transform: rotateY(180deg);
}

/* 渐变按钮 */
.btn-gradient {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 108, 247, 0.4);
}

/* 统计数据展示 */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 50px 0;
    text-align: center;
}

.stat-item {
    padding: 20px;
    margin: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: white;
    margin-top: 10px;
}

/* 响应式优化 */
@media (max-width: 992px) {
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

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

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

.delay-1 {
    animation-delay: 0.1s;
}

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

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

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

/* 背景渐变动画 */
.bg-gradient-animation {
    background: linear-gradient(-45deg, #4a6cf7, #6c5ce7, #00cec9, #ff7675);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.1;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 微交互效果 */
.interactive-element {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* 智能设备适配 */
@media (hover: hover) {
    .feature-card:hover,
    .scenario-card:hover,
    .advantage-item:hover {
        transform: translateY(-10px);
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hamburger {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* 无障碍访问优化 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 焦点样式 */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
    
    .btn {
        border: 2px solid var(--dark);
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}