/* 苹果风格增强样式 */

/* 全局变量定义 */
:root {
    --glass-bg: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --glass-backdrop: blur(20px);
    
    --primary-gradient: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
    --secondary-gradient: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
    --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    
    --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-intense: 0 24px 48px rgba(0, 0, 0, 0.16);
    
    --animation-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --animation-ease: cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* 苹果风格毛玻璃导航栏 */
.apple-glass-nav {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s var(--animation-ease);
}

.apple-glass-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* 苹果风格卡片 */
.apple-card {
    background: var(--card-gradient);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s var(--animation-spring);
    overflow: hidden;
    position: relative;
}

.apple-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%);
    opacity: 0.6;
}

.apple-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-intense);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 苹果风格按钮 */
.apple-button {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.3s var(--animation-spring);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-light);
}

.apple-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.6s var(--animation-ease);
}

.apple-button:hover::before {
    left: 100%;
}

.apple-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(255, 255, 255, 0.4);
}

.apple-button:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.15s ease;
}

/* 按钮禁用状态 */
.apple-button:disabled {
    opacity: 0.4;
    transform: none !important;
    cursor: not-allowed;
    filter: grayscale(0.8);
    backdrop-filter: blur(5px);
}

.apple-button:disabled:hover {
    box-shadow: var(--shadow-light);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 苹果风格动画 */
@keyframes apple-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes apple-glow {
    0%, 100% {
        box-shadow: var(--shadow-medium);
    }
    50% {
        box-shadow: var(--shadow-intense), 0 0 30px rgba(20, 184, 166, 0.3);
    }
}

@keyframes apple-shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

.apple-float {
    animation: apple-float 6s ease-in-out infinite;
}

.apple-glow {
    animation: apple-glow 4s ease-in-out infinite;
}

/* Logo特效 */
.apple-logo {
    filter: drop-shadow(0 4px 8px rgba(20, 184, 166, 0.3));
    transition: all 0.6s var(--animation-spring);
}

.apple-logo:hover {
    filter: drop-shadow(0 8px 16px rgba(20, 184, 166, 0.5));
    transform: rotate(5deg) scale(1.1);
}

/* 毛玻璃背景 */
.apple-glass-bg {
    background: linear-gradient(135deg, 
        rgba(240, 253, 250, 0.8) 0%, 
        rgba(255, 255, 255, 0.6) 50%,
        rgba(204, 251, 241, 0.4) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

/* 特色卡片增强效果 */
.apple-feature-card {
    background: var(--card-gradient);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: var(--shadow-medium);
    transition: all 0.5s var(--animation-spring);
    position: relative;
    overflow: hidden;
}

.apple-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(20, 184, 166, 0.8) 30%, 
        rgba(13, 148, 136, 0.6) 70%,
        transparent 100%);
}

.apple-feature-card:hover {
    transform: translateY(-12px) rotate(1deg);
    box-shadow: var(--shadow-intense);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 版本标签优化 */
.apple-version-tag {
    background: linear-gradient(135deg, 
        rgba(20, 184, 166, 0.9) 0%, 
        rgba(13, 148, 136, 0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
    transition: all 0.3s var(--animation-ease);
}

.apple-version-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

/* 加载动画 */
.apple-loading {
    background: linear-gradient(-45deg, 
        rgba(20, 184, 166, 0.1),
        rgba(13, 148, 136, 0.2),
        rgba(15, 118, 110, 0.1),
        rgba(20, 184, 166, 0.05));
    background-size: 400% 400%;
    animation: apple-shimmer 2s ease-in-out infinite;
    border-radius: 12px;
}

/* 文本渐变增强 */
.apple-text-gradient {
    background: linear-gradient(135deg, 
        #14b8a6 0%, 
        #0d9488 30%, 
        #0f766e 60%,
        #115e59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    animation: apple-shimmer 3s ease-in-out infinite;
    background-size: 200% 200%;
}

/* 交互反馈增强 */
.apple-interactive {
    transition: all 0.3s var(--animation-spring);
    cursor: pointer;
}

.apple-interactive:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.apple-interactive:active {
    transform: translateY(0) scale(0.98);
    filter: brightness(0.95);
    transition: all 0.15s ease;
}

/* 响应式优化 */
@media (max-width: 768px) {
    :root {
        --glass-backdrop: blur(15px);
    }
    
    .apple-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .apple-feature-card:hover {
        transform: translateY(-6px);
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(240, 253, 250, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, 
        rgba(20, 184, 166, 0.6), 
        rgba(13, 148, 136, 0.8));
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, 
        rgba(20, 184, 166, 0.8), 
        rgba(13, 148, 136, 1));
}

/* 选择文本美化 */
::selection {
    background: rgba(20, 184, 166, 0.2);
    backdrop-filter: blur(5px);
}

::-moz-selection {
    background: rgba(20, 184, 166, 0.2);
}
