* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a0633 0%, #3c1053 100%);
    color: #f0e6ff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景和遮罩 */
.jacaranda-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://jac8.s3.ap-southeast-1.amazonaws.com/bg1.webp') no-repeat center center;
    background-size: cover;
    opacity: 1;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(58, 12, 83, 0.1) 0%, rgba(26, 6, 51, 0.9) 100%);
    z-index: -1;
}

/* 顶部导航栏 */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(58, 12, 83, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(199, 125, 255, 0.3);
    padding: 10px 20px;
    z-index: 1001;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0aaff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    position: absolute;
    left: 20px;
}

.navbar-logo i {
    color: #c77dff;
    font-size: 1.4rem;
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 搜索功能样式 */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(199, 125, 255, 0.3);
    border-radius: 20px;
    padding: 8px 45px 8px 15px;
    color: #f0e6ff;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: #c77dff;
    box-shadow: 0 0 10px rgba(199, 125, 255, 0.3);
    width: 250px;
}

.search-input::placeholder {
    color: rgba(240, 230, 255, 0.6);
}

.search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #c77dff;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(199, 125, 255, 0.2);
    color: #e0aaff;
}

.search-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(199, 125, 255, 0.3);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: #c77dff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-toggle:hover {
    background: rgba(199, 125, 255, 0.2);
    color: #e0aaff;
}

.search-toggle i {
    font-size: 1.1rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    right: 10px;
}

.nav-link {
    color: #d0b3ff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff;
    background: rgba(199, 125, 255, 0.2);
}

.nav-link.active {
    color: #fff;
    background: rgba(199, 125, 255, 0.3);
}

/* 侧边菜单 */
.menu-toggle {
    display: none;
    position: absolute;
    top:5px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(199, 125, 255, 0.3);
    border: 1px solid rgba(199, 125, 255, 0.5);
    color: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(199, 125, 255, 0.5);
}

.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100vh;
    background: rgba(58, 12, 83, 0.98);
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(199, 125, 255, 0.3);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
}

.side-menu.open {
    right: 0;
}

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.side-nav-link {
    display: block;
    color: #d0b3ff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.side-nav-link:hover {
    color: #fff;
    background: rgba(199, 125, 255, 0.2);
}

.side-nav-link i {
    margin-right: 10px;
    width: 20px;
}

/* 学习统计控制面板 */
.control-panel {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    background: rgba(58, 12, 83, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(199, 125, 255, 0.3);
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin: 0 20px;
    border-radius: 0 0 15px 15px;
}



.stats-container {
    background: rgba(70, 20, 100, 0.6);
    border-radius: 15px;
    padding: 0;
}

.stats-data-section {
    /* 统计数据显示区域 */
    display: block;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-display {
    background: rgba(157, 78, 221, 0.8);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.user-display:hover {
    background: rgba(157, 78, 221, 1);
    transform: translateY(-2px);
}

.user-display i {
    font-size: 14px;
    opacity: 0.8;
}

.user-display span {
    font-size: 14px;
}

.control-btn {
    background: linear-gradient(90deg, #9d4edd, #7b2cbf);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(157, 78, 221, 0.4);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.6);
}

.icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(199, 125, 255, 0.3);
    border: 1px solid rgba(199, 125, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(199, 125, 255, 0.5);
    transform: scale(1.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    font-size: 1rem;
}

.stat-item {
    background: linear-gradient(135deg, rgba(199, 125, 255, 0.15), rgba(157, 78, 221, 0.1));
    padding: 8px 4px;
    border-radius: 12px;
    border: 2px solid rgba(199, 125, 255, 0.3);
    color: #e0aaff;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(199, 125, 255, 0.2);
    min-width: 0;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(199, 125, 255, 0.6);
    box-shadow: 0 10px 25px rgba(199, 125, 255, 0.4);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-label {
    font-size: 0.8rem;
    color: #d0b3ff;
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #c77dff;
    text-shadow: 0 2px 4px rgba(199, 125, 255, 0.3);
}

.stat-progress {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(45deg, #c77dff, #e0aaff, #9d4edd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 3px 6px rgba(199, 125, 255, 0.4);
}

.stat-completed {
    font-size: 1rem;
    font-weight: 700;
    color: #4CAF50;
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.4);
}

.stat-total-times {
    font-size: 1rem;
    font-weight: 700;
    color: #FF9800;
    text-shadow: 0 2px 4px rgba(255, 152, 0, 0.4);
}

@keyframes statPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes progressGlow {
    0%, 100% {
        text-shadow: 0 3px 6px rgba(199, 125, 255, 0.4);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 5px 15px rgba(199, 125, 255, 0.8);
        transform: scale(1.1);
    }
}

@keyframes completedBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes timesFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.achievement-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fff;
    animation: badgeRotate 3s linear infinite;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.5);
}

@keyframes badgeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



/* 主要内容区域 */
.main-content {
    margin-top: 80px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.main-content.with-stats {
    margin-top: 220px;
}

.word-list {
    display: grid;
    gap: 15px;
}

.word-card {
    background: rgba(58, 12, 83, 0.2);
    border: 1px solid rgba(199, 125, 255, 0.3);
    border-radius: 15px;
    padding-top: 0;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.word-card:hover {
    backdrop-filter: blur(10px);
}

.word-card:hover .action-btn {
    opacity: 0.8;
}
.word-card:hover .progress-slider {
    opacity: 0.8;
}


.word-card.active {
    backdrop-filter: blur(10px);
}

.word-card.active .action-btn {
    opacity: 0.8;
}

/* 图片展示区域 */
.word-images {
    margin-top: 10px;
    padding: 10px;
    background: rgba(199, 125, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(199, 125, 255, 0.2);
    display: none; /* 默认隐藏 */
}

.word-images.show {
    display: block;
}

.word-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.word-image {
    max-width: 400px;
    max-height: 400px;
    border-radius: 8px;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
}

.word-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(199, 125, 255, 0.3);
}

.word-image.loading {
    background: rgba(199, 125, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c77dff;
    font-size: 12px;
}

.word-image.error {
    background: rgba(255, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b6b;
    font-size: 12px;
}

.word-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.action-btn {
    background: rgba(199, 125, 255, 0.3);
    border: 1px solid rgba(199, 125, 255, 0.4);
    color: rgba(255, 255, 255, 0.6);
    opacity: 0.4;
}

.action-btn:hover {
    background: linear-gradient(135deg, #c77dff, #9d4edd);
    color: white;
    box-shadow: 0 3px 10px rgba(199, 125, 255, 0.4);
    opacity: 1;
    border: none;
}

.word-content {
    flex: 1;
}

.word-english {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e0aaff;
    margin-bottom: 5px;
}

.word-phonetic {
    font-size: 1.3rem;
    color: #b8a9ff;
    font-style: italic;
    margin-bottom: 3px;
    line-height: 1.2;
    font-weight: 500;
}

.word-chinese {
    font-size: 1.0rem;
    color: #d0b3ff;
    line-height: 1.2;
}

.word-actions {
    display: flex;
    align-items: center;
    gap: 15px;

}

.progress-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: rgba(199, 125, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    opacity: 0.4;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c77dff, #9d4edd);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(199, 125, 255, 0.5);
}

.progress-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c77dff, #9d4edd);
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 10px rgba(199, 125, 255, 0.5);
}

.word-score-box {
    font-size: 0.8rem;
    border: 0;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 2px 2px 2px 2px;
    backdrop-filter: blur(2px);
}

.word-score-box i {
    margin-right: 4px;
    opacity: 0.5;
}

.word-score-box span {
    font-weight: 600;
    color: #d0b3ff;
    opacity: 0.7;
}

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(199, 125, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(199, 125, 255, 0.6);
}

.collect-btn {
    opacity: 0.45;
}

.collect-btn.collected {
    opacity: 0.85;
}

.collect-btn i {
    color: #c77dff;
    font-size: 18px;
}

.complete-btn {
    background: rgba(199, 125, 255, 0.3);
}

.complete-btn:hover {
    background: rgba(199, 125, 255, 0.3);
}

.delete-btn {
    background: rgba(199, 125, 255, 0.3);
}

.delete-btn:hover {
    background: rgba(199, 125, 255, 0.3);
}

.remove-btn {
    background: rgba(199, 125, 255, 0.3);
}

.remove-btn:hover {
    background: rgba(199, 125, 255, 0.6);
}

.add-btn {
    background: rgba(199, 125, 255, 0.3);
}

.add-btn:hover {
    background: rgba(199, 125, 255, 0.6);
}

/* 配置弹窗 */
.config-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.config-content {
    background: rgba(58, 12, 83, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(199, 125, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(199, 125, 255, 0.3);
    position: relative;
}

.config-save-status {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: rgba(76, 175, 80, 0.2);
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid rgba(76, 175, 80, 0.5);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(-50%) translateY(-10px);
}

.config-save-status.show-save-status {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.config-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e0aaff;
}

.close-btn {
    background: rgba(199, 125, 255, 0.3);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.config-section {
    margin-bottom: 20px;
}

.config-label {
    color: #d0b3ff;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.config-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.config-category-row {
    margin-bottom: 10px;
    align-items: center;
}

.config-checkbox-inline {
    margin-right: 15px;
}

.config-combined-label {
    margin-left: 10px;
    color: #d0b3ff;
    font-size: 0.9rem;
}

.config-combined-select {
    width: 60px;
    margin-left: 5px;
}

.config-slider {
    flex: 1;
    min-width: 100px;
}

.config-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d0b3ff;
}

.config-select {
    background: rgba(157, 78, 221, 0.8);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #d0b3ff;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .top-navbar {
        flex-direction: column;
        padding: 8px 20px;
        gap: 10px;
    }

    .navbar-logo {
        position: static;
        margin-bottom: 5px;
    }

    .navbar-controls {
        gap: 15px;
    }

    .control-panel {
        top: 90px;
        padding: 10px 15px;
        margin: 0 10px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        max-width: none;
    }

    .main-content {
        margin-top: 110px;
    }

    .main-content.with-stats {
        margin-top: 250px;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }


    .stats-data-section {
        /* 统计数据显示区域 */
        display: block;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .stat-item {
        padding: 5px 3px;
    }

    .stat-label {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .stat-value,
    .stat-progress,
    .stat-completed,
    .stat-total-times {
        font-size: 0.8rem;
    }

    .main-content {
        margin-top: 80px;
        padding: 15px;
    }

    .main-content.with-stats {
        margin-top: 200px;
    }

    .word-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 0px;
    }

    .word-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .config-content {
        padding: 20px;
        width: 95%;
    }

    .config-row {
        flex-direction: column;
        align-items: stretch;
    }

    .checkbox-group,
    .radio-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .top-navbar {
        padding: 6px 15px;
        gap: 8px;
    }

    .navbar-logo {
        font-size: 1.1rem;
    }

    .navbar-logo i {
        font-size: 1.2rem;
    }

    .navbar-controls {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* 小屏幕时隐藏搜索输入框，显示搜索按钮 */
    .search-input {
        display: none;
    }

    .search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-container.expanded .search-input {
        display: block;
        width: 150px;
    }

    .search-container.expanded .search-toggle {
        display: none;
    }

    .user-display {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .control-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .icon-btn {
        width: 28px;
        height: 28px;
    }

    .control-panel {
        top: 80px;
        padding: 8px 12px;
        margin: 0 5px;
        width: calc(100% - 10px);
    }

    .main-content {
        margin-top: 120px;
    }

    .main-content.with-stats {
        margin-top: 240px;
    }
    .word-card {
        padding-bottom: 3px;
    }
    .word-list {
        gap: 5px;
    }
    .word-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    /* 隐藏进度条 */
    .progress-slider {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }

    .stat-item {
        padding: 3px 2px;
    }

    .stat-label {
        font-size: 0.65rem;
        margin-bottom: 3px;
    }

    .stat-value,
    .stat-progress,
    .stat-completed,
    .stat-total-times {
        font-size: 0.8rem;
    }

    .main-content {
        margin-top: 80px;
    }

    .main-content.with-stats {
        margin-top: 180px;
    }

    .word-english {
        font-size: 1.4rem;
    }

    .word-chinese {
        font-size: 1rem;
    }

    /* 小屏幕时限制单词图片尺寸 */
    .word-image {
        max-width: 260px;
        max-height: 260px;
    }

}

/* 登录弹窗样式 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.login-modal.show {
    display: flex;
}

.login-content {
    background: rgba(58, 12, 83, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(199, 125, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: loginAppear 0.3s ease-out;
}

@keyframes loginAppear {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #e0aaff;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #d0b3ff;
    opacity: 0.8;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-label {
    font-size: 14px;
    font-weight: 600;
    color: #d0b3ff;
}

.login-input {
    background: rgba(157, 78, 221, 0.2);
    border: 1px solid rgba(199, 125, 255, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: #f0e6ff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-input:focus {
    outline: none;
    border-color: rgba(199, 125, 255, 0.6);
    background: rgba(157, 78, 221, 0.3);
    box-shadow: 0 0 10px rgba(199, 125, 255, 0.2);
}

.login-input::placeholder {
    color: rgba(240, 230, 255, 0.5);
}

.login-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.login-btn {
    flex: 1;
    background: linear-gradient(135deg, #c77dff, #9d4edd);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(199, 125, 255, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, #9d4edd, #7b2cbf);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 125, 255, 0.4);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-btn.secondary {
    background: rgba(157, 78, 221, 0.3);
    border: 1px solid rgba(199, 125, 255, 0.4);
}

.login-btn.secondary:hover {
    background: rgba(157, 78, 221, 0.5);
}

.login-error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.login-error.show {
    display: block;
}

.login-loading {
    display: none;
    text-align: center;
    color: #d0b3ff;
    font-size: 14px;
}

.login-loading.show {
    display: block;
}

.login-loading i {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 图片模态框样式 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.image-modal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: -30px;
    right: 0;
    background: rgba(199, 125, 255, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 添加图片模态框样式 */
.add-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.add-image-modal-content {
    background: rgba(58, 12, 83, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(199, 125, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.add-image-title {
    color: #e0aaff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.add-image-tab-container {
    margin-bottom: 20px;
}

.add-image-tab-buttons {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(199, 125, 255, 0.3);
}

.add-image-tab-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #d0b3ff;
    border: 1px solid rgba(199, 125, 255, 0.3);
    padding: 10px 20px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-image-tab-btn.active {
    background: linear-gradient(135deg, #c77dff, #9d4edd);
    color: white;
}

.add-image-tab-btn:first-child {
    margin-right: 5px;
}

.add-image-content-area {
    min-height: 200px;
}

.add-image-url-area {
    display: block;
}

.add-image-file-area {
    display: none;
}

.add-image-instruction {
    color: #d0b3ff;
    margin-bottom: 15px;
    font-size: 14px;
}

.add-image-textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 1px solid rgba(199, 125, 255, 0.3);
    border-radius: 10px;
    background: rgba(199, 125, 255, 0.1);
    color: #fff;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 20px;
}

.add-image-file-input {
    width: 100%;
    padding: 15px;
    border: 2px dashed rgba(199, 125, 255, 0.3);
    border-radius: 10px;
    background: rgba(199, 125, 255, 0.1);
    color: #fff;
    font-size: 14px;
    margin-bottom: 15px;
    cursor: pointer;
}

.add-image-preview-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.add-image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(199, 125, 255, 0.1);
    border: 1px solid rgba(199, 125, 255, 0.3);
}

.add-image-preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.add-image-preview-filename {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-image-button-container {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.add-image-submit-btn {
    background: linear-gradient(135deg, #c77dff, #9d4edd);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-image-cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #d0b3ff;
    border: 1px solid rgba(199, 125, 255, 0.3);
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* 动态样式类 */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex-visible {
    display: flex !important;
}

.inline-flex-visible {
    display: inline-flex !important;
}

.animated-glow {
    transition: all 0.2s ease;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.config-panel-visible {
    display: flex !important;
}

.config-panel-hidden {
    display: none !important;
}

.stats-panel-visible {
    display: block !important;
}

.stats-panel-hidden {
    display: none !important;
}

.images-container-visible {
    display: block !important;
}

.images-container-hidden {
    display: none !important;
}

.word-images-visible {
    display: block !important;
}

.word-images-hidden {
    display: none !important;
}

.search-exit-visible {
    display: inline-flex !important;
}

.search-exit-hidden {
    display: none !important;
}

/* 个人中心菜单样式 */
.personal-center-menu {
    position: fixed;
    top: 60px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 200px;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.personal-center-content {
    padding: 16px;
}

.personal-center-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
    color: #333;
    font-weight: 500;
}

.personal-center-user-info i {
    font-size: 18px;
    color: #007bff;
}

.personal-center-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.personal-center-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.personal-center-logout-btn:hover {
    background: #c82333;
}

.personal-center-logout-btn i {
    font-size: 14px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(58, 12, 83, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #c77dff, #9d4edd);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9d4edd, #7b2cbf);
}