/* 店务助手页面专用样式 */

/* 页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 初始隐藏用于动画的元素 */
.feature-card,
.role-card,
.applet-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card.animate-in,
.role-card.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.applet-title.animate-in {
    animation: slideInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.applet-section {
    padding: 80px 0;
    background: #fff;
}

.applet-section:nth-child(even) {
    background: #f8f9fa;
}

.applet-section:nth-of-type(2) {
    background-color: #f7f2f2;
}

.applet-title {
    text-align: center;
    margin-bottom: 40px;
}

.applet-title h2 {
    font-size: 38px;
    color: #333;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.applet-title p {
    font-size: 16px;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102,126,234,.25);
    border-color: #667eea;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(102,126,234,.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(102,126,234,.4);
}

.feature-card h3 {
    font-size: 20px;
    color: #333;
    font-weight: 700;
    margin: 12px 0;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: #667eea;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

.role-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.role-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102,126,234,.05) 0%, rgba(118,75,162,.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    border-color: #667eea;
}

.role-card:hover::after {
    opacity: 1;
}

.role-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.role-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(102,126,234,.3);
    transition: all 0.3s ease;
}

.role-card:hover .role-icon {
    transform: scale(1.1) rotate(5deg);
}

.role-name {
    font-size: 20px;
    color: #333;
    font-weight: 700;
}

.role-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.role-features {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.role-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #555;
    font-size: 15px;
    transition: all 0.3s ease;
    border-bottom: 1px dashed #f0f0f0;
}

.role-features li:last-child {
    border-bottom: none;
}

.role-features li::before {
    content: '✓';
    color: #667eea;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.role-features li:hover {
    color: #667eea;
    transform: translateX(5px);
}

.applet-hero {
    background: url("/static/images/dian-app.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 90px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.applet-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 53, 157, 0.65) 0%, rgba(239, 238, 247, 0.15) 100%);
}

.applet-hero .hero-inner {
    display: flex;
    gap: 40px;
    align-items: center;
    height: 420px;
    position: relative;
    z-index: 1;
}

.applet-hero .hero-left {
    flex: 1;
}

.applet-hero .hero-left h1 {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.applet-hero .hero-left p {
    font-size: 18px;
    opacity: .95;
    margin-bottom: 32px;
    line-height: 1.6;
    color: #fff;
}

.chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0 32px;
}

.chip {
    background: rgba(255,255,255,.25);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.3);
    transition: all 0.3s ease;
}

.chip:hover {
    background: rgba(255,255,255,.4);
    transform: translateY(-2px);
}

.applet-hero .hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.applet-hero .hero-actions .btn-primary {
    background: #fff;
    color: #667eea;
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.applet-hero .hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.3);
}

.applet-hero .hero-actions .btn-secondary {
    background: transparent;
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    border: 2px solid #fff;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.applet-hero .hero-actions .btn-secondary:hover {
    background: #fff;
    color: #667eea;
    transform: translateY(-3px);
}

@media(max-width: 768px) {
    .applet-title h2 {
        font-size: 28px;
    }

    .applet-hero .hero-left h1 {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }
}
