/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 容器样式 */
.container {
    width: 100%;
    min-height: 100vh;
    background-color: #f5f5f5;
}

#main-container {
    width: 100%;
    min-height: 100vh;
}

/* 头部样式 */
.header {
    background: #ffffff;
    color: #333;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.header-left {
    flex: 1;
}

.header-center {
    flex: 2;
    text-align: center;
}

.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* 高级质感标题样式 */
.app-title {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    font-size: 84px;
    font-weight: 900;
    letter-spacing: 8px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, 
        #d4af37 0%, 
        #f4e5b0 20%, 
        #d4af37 40%, 
        #b8942f 60%, 
        #f4e5b0 80%, 
        #d4af37 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
    text-shadow: 
        0 0 30px rgba(212, 175, 55, 0.3),
        0 0 60px rgba(212, 175, 55, 0.2);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.app-title::before {
    content: '神兽阁';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.4) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: titleGloss 4s ease-in-out infinite;
    z-index: -1;
}

.app-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #d4af37 20%, 
        #f4e5b0 50%, 
        #d4af37 80%, 
        transparent 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

@keyframes titleShimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 200% center;
    }
}

@keyframes titleGloss {
    0%, 100% {
        background-position: -200% center;
    }
    50% {
        background-position: 200% center;
    }
}

/* 登录页面标题特殊样式 */
.login-header .app-title {
    position: relative;
    z-index: 1;
    text-shadow: 
        0 0 20px rgba(212, 175, 55, 0.4),
        0 0 40px rgba(212, 175, 55, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.login-header .app-title::after {
    box-shadow: 0 0 30px rgba(212, 175, 55, 1);
}

/* 班级选择器 */
.class-selector {
    position: relative;
    display: inline-block;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    color: #333;
    font-weight: bold;
}

.class-selector:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.class-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px;
    margin-top: 5px;
    display: none;
    z-index: 1001;
}

.class-dropdown.show {
    display: block;
}

.class-dropdown-item {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.class-dropdown-item:hover {
    background-color: #f0f0f0;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.sort-selector {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    background: white;
    cursor: pointer;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

/* 主内容区域 */
.main-content {
    padding: 20px;
    min-height: calc(100vh - 100px);
}

.student-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 600px;
}

/* 宠物网格 */
.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pet-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pet-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pet-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.pet-level {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.student-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.student-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.student-id {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.food-info {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.experience-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.experience-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.experience-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 学生详情页 */
#student-pet-page {
    padding: 20px;
    min-height: 100vh;
    background: #f5f5f5;
    width: 100%;
}

#pet-detail-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* 页面切换 */
.page-content {
    display: none;
    width: 100%;
}

.page-content.active {
    display: block;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    color: #333;
    font-size: 20px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.form-group input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.form-group input:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2), 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.form-group label {
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* 登录页面 */
.login-page {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('封面展示/fantasy-pet-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

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

/* 左侧宠物 */
.login-pets-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 40px 0;
    z-index: 2;
}

.login-pets-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 40px 0;
    z-index: 2;
}

.pet-left, .pet-right {
    width: 250px;
    height: 250px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
    animation: petFloat 3s ease-in-out infinite;
}

.pet-1 {
    background-image: url('封面展示/九尾狐8.png');
    animation-delay: 0s;
}

.pet-2 {
    background-image: url('封面展示/凤凰8.png');
    animation-delay: 0.5s;
}

.pet-3 {
    background-image: url('封面展示/毕方8.png');
    animation-delay: 1s;
}

.pet-4 {
    background-image: url('封面展示/精卫8.png');
    animation-delay: 0.2s;
}

.pet-5 {
    background-image: url('封面展示/蛊雕8.png');
    animation-delay: 0.7s;
}

.pet-6 {
    background-image: url('封面展示/青龙8.png');
    animation-delay: 1.2s;
}

@keyframes petFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.login-container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 60px 50px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.2),
        0 0 100px rgba(255, 255, 255, 0.1) inset;
    animation: loginFadeIn 0.8s ease-out;
    max-width: 500px;
    width: 90%;
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-subtitle {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.login-tabs {
    display: flex;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
    border-radius: 15px;
    gap: 5px;
}

.login-tab {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    font-size: 13px;
    white-space: nowrap;
}

.login-tab:hover {
    color: #667eea;
    background: rgba(255, 255, 255, 0.5);
}

.login-tab.active {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login-form {
    width: 100%;
    max-width: 400px;
}

.error-message {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: none;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(238, 90, 90, 0.3);
    animation: errorShake 0.5s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}



/* 学生列表 */
.student-list {
    max-height: 400px;
    overflow-y: auto;
}

.student-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.student-item:hover {
    background-color: #f9f9f9;
}

.student-item-info {
    flex: 1;
}

.student-item-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.student-item-id {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.student-item-actions {
    display: flex;
    gap: 10px;
}

.student-action-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.student-action-btn:hover {
    background-color: #f0f0f0;
}

/* 班级管理 */
.class-management-page {
    padding: 20px;
}

.class-management-content {
    margin-top: 20px;
}

.add-class-section {
    margin-bottom: 30px;
}

.add-class-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.add-class-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.class-list-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.class-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.class-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.class-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.class-item-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.class-item-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

/* 规则设置 */
.rule-setting-content {
    margin-top: 20px;
}

.rule-category {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.rule-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rule-category-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.rule-items {
    margin-top: 15px;
}

.rule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
}

.rule-item-info {
    flex: 1;
}

.rule-item-name {
    font-weight: bold;
    color: #333;
}

.rule-item-points {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .header-left,
    .header-center,
    .header-right {
        flex: none;
        width: 100%;
        text-align: center;
    }
    
    .header-right {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .search-bar {
        margin-right: 0;
        justify-content: center;
    }
    
    .pet-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .login-page {
        padding: 20px;
    }
    
    .login-container {
        padding: 40px 30px;
    }
    
    .login-pets-left,
    .login-pets-right {
        display: none;
    }
    
    .login-page::before {
        background: rgba(0, 0, 0, 0.15);
    }
    
    .modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 20px;
    }
    
    #pet-detail-content {
        padding: 20px;
    }
}

/* 未来功能样式预留 */
.activity-content,
.coupon-content {
    padding: 20px;
    text-align: center;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 宠物选择模态框样式 */
#pet-select-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
}

#pet-select-modal .modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 30px;
    border-radius: 15px;
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

#pet-select-modal .modal-content .modal-header {
    flex-shrink: 0;
}

#pet-select-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
    padding-bottom: 10px;
}

#pet-select-grid .pet-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#pet-select-grid .pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

#pet-select-grid .pet-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#pet-select-grid .pet-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#pet-select-grid .pet-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    flex-shrink: 0;
}

#pet-select-grid .pet-level {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
}

#pet-select-modal .form-actions {
    flex-shrink: 0;
    padding-top: 20px;
}

/* 防止背景页面滚动 */
body.modal-open {
    overflow: hidden;
}

/* 模态框样式优化 */
.modal {
    overflow-y: auto;
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* 宠物特效动画 */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* 火焰特效 */
@keyframes fire-effect {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }
    25% {
        opacity: 1;
        transform: scale(1.1) rotate(5deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) rotate(0deg);
    }
    75% {
        opacity: 1;
        transform: scale(1.1) rotate(-5deg);
    }
}

/* 冰霜特效 */
@keyframes ice-effect {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.08);
    }
}

/* 星光特效 */
@keyframes star-effect {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1) rotate(0deg);
    }
    33% {
        opacity: 1;
        transform: scale(1.15) rotate(120deg);
    }
    66% {
        opacity: 0.7;
        transform: scale(0.95) rotate(240deg);
    }
}

