/**
 * 易策卡片样式
 * 支持多种卡片风格
 */

/* 基础卡片样式 */
.yice-card {
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.yice-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.yice-card__content {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.yice-card__content p:last-child {
    margin-bottom: 0;
}

.yice-card__footer {
    margin-top: 16px;
    text-align: right;
}

.yice-card__button {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.yice-card__button:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
}

/* 装饰元素 */
.yice-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

/* ==================== 预设样式 ==================== */

/* CTA 召唤行动 */
.yice-card--cta {
    background: linear-gradient(135deg, #7C2430 0%, #C23333 100%);
    color: #FFFFFF;
    text-align: center;
}

.yice-card--cta .yice-card__title {
    font-size: 1.5rem;
}

.yice-card--cta .yice-card__button {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

/* 名言引用 */
.yice-card--quote {
    background: linear-gradient(135deg, #F5EDE0 0%, #FAF7F2 100%);
    color: #1C1512;
    border-left: 4px solid #7C2430;
}

.yice-card--quote .yice-card__content {
    font-style: italic;
    font-size: 1.1rem;
}

.yice-card--quote .yice-card__content::before {
    content: '"';
    font-size: 3rem;
    color: #7C2430;
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: Georgia, serif;
    line-height: 1;
}

/* 信息提示 */
.yice-card--info {
    background: linear-gradient(135deg, #3D7A78 0%, #5A9E9A 100%);
    color: #FFFFFF;
}

/* 成功/正能量 */
.yice-card--success {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: #FFFFFF;
}

.yice-card--success .yice-card__title::before {
    content: '✓ ';
}

/* 警告/提醒 */
.yice-card--warning {
    background: linear-gradient(135deg, #F57C00 0%, #FF9800 100%);
    color: #FFFFFF;
}

.yice-card--warning .yice-card__title::before {
    content: '! ';
}

/* 优雅古典 */
.yice-card--elegant {
    background: linear-gradient(135deg, #4A1C2A 0%, #7C2430 50%, #B8860B 100%);
    color: #FFFFFF;
    font-family: 'Noto Serif SC', Georgia, serif;
    border: 2px solid #D4AF37;
}

.yice-card--elegant .yice-card__title {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
}

/* 现代简约 */
.yice-card--modern {
    background: #FFFFFF;
    color: #1C1512;
    border: 1px solid #E0E0E0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.yice-card--modern:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.yice-card--modern .yice-card__button {
    background-color: #7C2430;
    color: #FFFFFF;
    border: none;
}

/* 默认样式 */
.yice-card--default {
    background-color: #7C2430;
    color: #FFFFFF;
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 768px) {
    .yice-card {
        padding: 18px;
        margin: 16px 0;
    }
    
    .yice-card__title {
        font-size: 1.1rem;
    }
    
    .yice-card__content {
        font-size: 0.95rem;
    }
    
    .yice-card__button {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

/* ==================== 动画效果 ==================== */

@keyframes yice-card-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yice-card {
    animation: yice-card-fade-in 0.4s ease-out;
}

/* ==================== 特殊效果 ==================== */

/* 脉冲动画 - 用于CTA */
@keyframes yice-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 36, 48, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(124, 36, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(124, 36, 48, 0);
    }
}

.yice-card--cta {
    animation: yice-card-fade-in 0.4s ease-out, yice-pulse 2s infinite;
}

/* 闪光效果 */
.yice-card--elegant::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 20%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: yice-shine 3s infinite;
}

@keyframes yice-shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}
