/**
 * 两山·茶管家 - 高级视觉效果CSS库
 * 提供现代化UI效果：毛玻璃、渐变、阴影、动画等
 */

/* ==================== 毛玻璃效果 (Glassmorphism) ==================== */

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-effect-strong {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-effect-light {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ==================== 新拟态效果 (Neumorphism) ==================== */

.neu-flat {
    background: #f0f0f0;
    box-shadow:
        5px 5px 10px rgba(0, 0, 0, 0.1),
        -5px -5px 10px rgba(255, 255, 255, 0.9);
}

.neu-pressed {
    background: #f0f0f0;
    box-shadow:
        inset 5px 5px 10px rgba(0, 0, 0, 0.1),
        inset -5px -5px 10px rgba(255, 255, 255, 0.9);
}

.neu-raised {
    background: #f0f0f0;
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.15),
        -8px -8px 16px rgba(255, 255, 255, 1);
}

/* 茶绿色新拟态 */
.neu-tea-green {
    background: linear-gradient(145deg, #E8F5E9, #C8E6C9);
    box-shadow:
        6px 6px 12px rgba(46, 125, 50, 0.15),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
}

/* ==================== 高级渐变效果 ==================== */

.gradient-mesh {
    background:
        radial-gradient(at 40% 20%, rgba(46, 125, 50, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(56, 142, 60, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(67, 160, 71, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(129, 199, 132, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(165, 214, 167, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 100%, rgba(200, 230, 201, 0.1) 0px, transparent 50%),
        #ffffff;
}

.gradient-aurora {
    background: linear-gradient(
        45deg,
        rgba(46, 125, 50, 0.1) 0%,
        rgba(56, 142, 60, 0.15) 25%,
        rgba(67, 160, 71, 0.1) 50%,
        rgba(129, 199, 132, 0.15) 75%,
        rgba(165, 214, 167, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: aurora 15s ease infinite;
}

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

.gradient-shine {
    position: relative;
    overflow: hidden;
}

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

.gradient-shine:hover::before {
    left: 100%;
}

/* ==================== 高级阴影系统 ==================== */

.shadow-soft {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.06);
}

.shadow-medium {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 8px 16px rgba(0, 0, 0, 0.08);
}

.shadow-strong {
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.12);
}

.shadow-dramatic {
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.1),
        0 24px 48px rgba(0, 0, 0, 0.15);
}

/* 茶绿色主题阴影 */
.shadow-tea-sm {
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.12);
}

.shadow-tea-md {
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.15);
}

.shadow-tea-lg {
    box-shadow: 0 8px 32px rgba(46, 125, 50, 0.2);
}

.shadow-tea-xl {
    box-shadow: 0 12px 48px rgba(46, 125, 50, 0.25);
}

/* 内阴影 */
.shadow-inset {
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 发光效果 */
.glow-tea {
    box-shadow:
        0 0 10px rgba(46, 125, 50, 0.3),
        0 0 20px rgba(46, 125, 50, 0.2),
        0 0 30px rgba(46, 125, 50, 0.1);
}

.glow-tea-strong {
    box-shadow:
        0 0 15px rgba(46, 125, 50, 0.4),
        0 0 30px rgba(46, 125, 50, 0.3),
        0 0 45px rgba(46, 125, 50, 0.2);
}

/* ==================== 微交互动画 ==================== */

/* 悬停抬升 */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.hover-lift-sm {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.hover-lift-lg {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift-lg:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
}

/* 悬停缩放 */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-scale-sm {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale-sm:hover {
    transform: scale(1.02);
}

/* 悬停发光 */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow:
        0 0 20px rgba(46, 125, 50, 0.4),
        0 0 40px rgba(46, 125, 50, 0.2);
}

/* 悬停边框 */
.hover-border {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.hover-border:hover {
    border-color: #2E7D32;
}

/* ==================== 加载动画 ==================== */

@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

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

.animate-bounce-gentle {
    animation: bounce-gentle 2s ease-in-out infinite;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

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

.skeleton-loading {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 2000px 100%;
    animation: shimmer 2s infinite;
}

/* ==================== 渐变按钮效果 ==================== */

.btn-gradient-tea {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient-tea::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-gradient-tea:hover::before {
    left: 100%;
}

.btn-gradient-tea:hover {
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.4);
    transform: translateY(-2px);
}

.btn-gradient-tea:active {
    transform: translateY(0);
}

/* ==================== 卡片效果增强 ==================== */

.card-premium {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.08),
        0 24px 48px rgba(0, 0, 0, 0.12);
    border-color: rgba(46, 125, 50, 0.2);
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    pointer-events: none;
}

.card-premium:hover::before {
    opacity: 1;
}

/* ==================== 分割线装饰 ==================== */

.divider-gradient {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #2E7D32 50%,
        transparent 100%
    );
    margin: 24px 0;
}

.divider-dashed {
    height: 1px;
    background-image: linear-gradient(
        to right,
        #2E7D32 50%,
        transparent 50%
    );
    background-size: 10px 1px;
    background-repeat: repeat-x;
    margin: 24px 0;
}

/* ==================== 标签徽章效果 ==================== */

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.badge-premium.animated {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* ==================== 输入框增强 ==================== */

.input-premium {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.input-premium:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow:
        0 0 0 4px rgba(46, 125, 50, 0.1),
        0 4px 12px rgba(46, 125, 50, 0.08);
}

.input-premium::placeholder {
    color: #BDBDBD;
}

/* ==================== 进度条 ==================== */

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2E7D32 0%, #43A047 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

/* ==================== 响应式工具类 ==================== */

@media (max-width: 768px) {
    .card-premium {
        padding: 24px;
    }

    .btn-gradient-tea {
        padding: 10px 24px;
        font-size: 14px;
    }
}
