/* 登录/注册弹窗样式 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-modal-header {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.login-modal-close {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.login-modal-close:hover {
    opacity: 1;
}

/* 登录/注册标签 */
.login-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.login-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-tab.active {
    background: #fff;
    color: #FF6B35;
    border-bottom: 2px solid #FF6B35;
}

/* 表单样式 */
.login-form {
    display: none;
    padding: 20px;
}

.login-form.active {
    display: block;
}

.form-group {
    margin-bottom: 16px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.captcha-group {
    display: flex;
    gap: 8px;
}

.captcha-input {
    flex: 1;
}

.captcha-img {
    width: 80px;
    height: 44px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #E55A2B, #E68A1A);
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 错误弹窗样式 */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.error-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 85%;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: errorModalSlideIn 0.3s ease-out;
}

@keyframes errorModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.error-modal-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-icon {
    font-size: 20px;
}

.error-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.error-modal-close {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.error-modal-close:hover {
    opacity: 1;
}

.error-modal-body {
    padding: 24px 20px;
    text-align: center;
}

.error-modal-body p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.error-modal-footer {
    padding: 0 20px 20px;
    text-align: center;
}

.error-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-btn:hover {
    background: linear-gradient(135deg, #ee5a52, #d63031);
    transform: translateY(-1px);
}

/* 重复订单弹窗样式 */
.existing-order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.existing-order-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: existingOrderModalSlideIn 0.3s ease-out;
}

@keyframes existingOrderModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.existing-order-modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.existing-order-icon {
    font-size: 20px;
}

.existing-order-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.existing-order-modal-close {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.existing-order-modal-close:hover {
    opacity: 1;
}

.existing-order-modal-body {
    padding: 20px;
}

.order-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.order-item:last-child {
    margin-bottom: 0;
}

.order-label {
    color: #666;
    font-weight: 500;
}

.order-value {
    color: #333;
    font-weight: 600;
}

.order-tip {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
}

.order-tip p {
    margin: 0;
    color: #856404;
    font-size: 13px;
    line-height: 1.4;
}

.existing-order-modal-footer {
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
}

.existing-order-btn {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

.cancel-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.close-btn {
    background: #6c757d;
    color: #fff;
}

.close-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-modal-content {
        width: 95%;
        margin: 0 10px;
        max-width: 320px;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 16px;
    }

    .captcha-img {
        width: 70px;
        height: 40px;
    }
}

@media (max-width: 991.98px) {
    .search-box {
        flex-grow: 1;
        margin: 0 0.5rem;
    }
}

/* 新增图片展示样式 */
.resource-images {
    margin: 20px 0;
}

.resource-images .image-container {
    margin-bottom: 15px;
}

.resource-images .image-wrapper {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
}

.resource-images .image-wrapper img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* PC端图片并排显示 */
@media (min-width: 768px) {
    .resource-images .row-cols-md-2 > * {
        flex: 0 0 auto;
        width: 50%;
    }

    .resource-images .image-wrapper {
        min-height: 300px;
    }
}

/* 移动端图片单独显示 */
@media (max-width: 767px) {
    .resource-images .image-wrapper {
        min-height: 250px;
    }
}

/* 原有样式保持不变 */
.auth-modal .modal-dialog {
    max-width: 400px;
}

.auth-modal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.auth-modal .modal-title {
    font-weight: bold;
    color: #3498db;
}

.auth-modal .form-control {
    padding: 12px 15px;
}

.auth-modal .btn-submit {
    background-color: #3498db;
    border-color: #3498db;
    padding: 10px;
    font-weight: bold;
}

.auth-modal .form-footer {
    text-align: center;
    margin-top: 15px;
}

.auth-modal .form-footer a {
    color: #3498db;
    text-decoration: none;
}

.auth-modal .tab-content {
    padding: 20px 0;
}

.auth-modal .nav-tabs {
    border-bottom: none;
    justify-content: center;
}

.auth-modal .nav-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 500;
    padding: 10px 20px;
}

.auth-modal .nav-tabs .nav-link.active {
    color: #3498db;
    background-color: transparent;
    border-bottom: 2px solid #3498db;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* 温馨提示弹窗样式 */
.download-limit-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 9999 !important;
}

.download-limit-modal .modal-body {
    padding: 2.5rem;
    background: linear-gradient(135deg, #fff9f9 0%, #fff 100%);
}

.download-limit-modal .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #ffebee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-limit-modal .icon {
    font-size: 3rem;
    color: #e57373;
    animation: pulse 1.5s infinite;
}

.download-limit-modal h5 {
    color: #d32f2f;
    font-weight: 600;
    margin-bottom: 1rem;
}

.download-limit-modal .message {
    color: #5f5f5f;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.download-limit-modal .btn {
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
}

.download-limit-modal .btn-primary {
    background: #e57373;
    border-color: #e57373;
}

.download-limit-modal .btn-outline-primary {
    color: #e57373;
    border-color: #e57373;
}

.download-limit-modal .btn-outline-primary:hover {
    background: #ffebee;
}

/* 打赏弹窗特殊样式 */
#donateModal .icon-wrapper {
    background: #fff5f5;
}

#donateModal .icon {
    color: #e74c3c !important;
    animation: heartbeat 1.5s infinite;
}

/* 推广分享弹窗特殊样式 */
#promotionShareModal .icon-wrapper {
    background: #fff8f0;
}

#promotionShareModal .icon {
    color: #e67e22 !important;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* 强制文件信息四宫格一行显示 */
@media (min-width: 768px) {
    .file-info-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 1rem !important;
    }
    .file-info-grid > div {
        flex: 1 !important;
        width: 25% !important;
        min-width: 0 !important;
        max-width: 25% !important;
    }
}

/* 简洁列表样式 */
.simple-list {
    display: flex;
    flex-direction: column;
}

.simple-list-item {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.simple-list-item > div {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.simple-list-item:last-child {
    border-bottom: none;
}

.simple-list-item:hover {
    color: #007bff;
    background-color: #f8f9fa;
    padding-left: 0.5rem;
    border-radius: 6px;
}

.simple-list-item .title {
    font-size: 14px;
    line-height: 1.4;
    color: inherit;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1;
    min-width: 0;
}

.simple-list-item i {
    transition: transform 0.2s ease;
}

.simple-list-item:hover i {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 下载信息提示条 */
.download-info.limit-reached {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #d32f2f;
    animation: gentleShake 0.5s ease;
}

.download-info.limit-reached i {
    color: #d32f2f;
}

@keyframes gentleShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-3px); }
    40%, 80% { transform: translateX(3px); }
}

.progress-wrapper {
    min-width: 180px;
}

.progress-text {
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-size: 0.85rem;
}

.progress-bar {
    transition: width 0.6s ease, background-color 0.3s ease;
    position: relative;
    overflow: visible;
}

.progress-bar.bg-danger {
    background-color: #e74c3c !important;
    animation: pulse-alert 1.5s infinite;
}

@keyframes pulse-alert {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.download-info-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
}

/* 确保弹窗在最顶层 */
.modal {
    z-index: 9999 !important;
}

.modal-backdrop {
    z-index: 9998 !important;
}

/* 强制显示弹窗 */
.modal.show {
    display: block !important;
}

.modal.show .modal-dialog {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
}

/* 确保弹窗内容可见 */
.modal-dialog {
    margin: 1.75rem auto !important;
}

.modal-content {
    position: relative !important;
    background-color: #fff !important;
    border: 1px solid rgba(0,0,0,.2) !important;
    border-radius: 0.3rem !important;
    outline: 0 !important;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 10001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.open {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.sidebar-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.sidebar-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255,255,255,0.2);
}

.sidebar-content {
    padding: 0;
}

.sidebar-section {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section-title {
    padding: 15px 20px 10px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.sidebar-section-title:hover {
    background: #e9ecef;
}

.category-toggle {
    transition: transform 0.3s ease;
}

.category-toggle.rotated {
    transform: rotate(180deg);
}

.category-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-submenu.expanded {
    max-height: 500px;
}

.sidebar-menu {
    padding: 0;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
}

.sidebar-menu-item:hover {
    background: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

.sidebar-menu-item:last-child {
    border-bottom: none;
}

.sidebar-menu-item i:first-child {
    width: 20px;
    text-align: center;
}

.sidebar-menu-item span {
    flex: 1;
    margin-left: 8px;
}

.sidebar-menu-item-primary {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

.sidebar-menu-item-primary:hover {
    background: #bbdefb;
}

/* 内容展示区域样式 */
.sidebar-content-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.sidebar-content-area.show {
    transform: translateX(0);
}

.content-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.content-back-btn {
    background: none;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    margin-right: 15px;
}

.content-back-btn:hover {
    background: rgba(255,255,255,0.2);
}

.content-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.content-body {
    padding: 20px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.category-content {
    display: none;
}

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

.category-resource-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-resource-item:hover {
    background: #f8f9fa;
}

.category-resource-item:last-child {
    border-bottom: none;
}

.category-resource-icon {
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #1976d2;
}

.category-resource-info {
    flex: 1;
}

.category-resource-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-resource-meta {
    font-size: 12px;
    color: #666;
}

/* 分类文件夹样式 */
.category-folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    min-height: 60px;
    background: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.category-folder-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #f8f9fa;
}

.category-folder-item .folder-icon {
    font-size: 20px;
    margin-bottom: 4px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.category-folder-item .folder-name {
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
    color: #495057;
}

/* 按钮组样式 */
.btn-group-sm .btn {
    font-size: 11px;
    padding: 4px 8px;
}

/* VIP用户卡片样式 */
.vip-user-card {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 15px;
    border-radius: 10px;
    color: #333;
    position: relative;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.vip-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vip-user-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #FFD700;
}

.vip-user-details {
    flex: 1;
}

.vip-user-id {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.vip-user-status {
    font-size: 12px;
    color: #666;
}

/* VIP导航标签 */
.vip-nav-tabs {
    display: flex;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vip-nav-tab {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    background: #fff;
    color: #666;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
}

.vip-nav-tab.active {
    background: #fff;
    color: #FF6B35;
    border-bottom: 2px solid #FF6B35;
}

/* VIP标签内容 */
.vip-tab-content {
    display: none;
}

.vip-tab-content.active {
    display: block;
}

/* VIP列表样式 */
.vip-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vip-item {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

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

.vip-item.selected {
    border-color: #3498db;
    box-shadow: 0 4px 16px rgba(52,152,219,0.18);
    transform: translateY(-2px);
    position: relative;
}

.vip-item.selected::after {
    content: '已选中';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #3498db;
    color: #fff;
    font-size: 10px;
    border-radius: 8px;
    padding: 2px 6px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(52,152,219,0.10);
}

.vip-item.disabled {
    opacity: 0.6;
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.vip-item.disabled .vip-btn {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none !important;
}

.vip-item.disabled .vip-btn:hover {
    background: #ccc !important;
    transform: none !important;
    box-shadow: none !important;
}

.vip-info {
    flex: 1;
}

.vip-price {
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 2px;
}

.vip-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.vip-valid {
    font-size: 11px;
    color: #27ae60;
    margin-bottom: 2px;
}

.vip-desc {
    font-size: 10px;
    color: #666;
}

.vip-btn {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #fff;
    border: none;
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.vip-btn:hover {
    background: linear-gradient(135deg, #E55A2B, #E68A1A);
    transform: scale(1.05);
}

.vip-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.vip-status-tip {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 学期网格 */
.term-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 10px;
}

.term-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    color: #666;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    line-height: 1.2;
}

.term-btn.selected {
    border-color: #3498db;
    background: #f0f8ff;
    color: #3498db;
    font-weight: bold;
}

.term-btn.disabled {
    background: #f2f2f2;
    color: #27ae60;
    border: 1px dashed #ccc;
    cursor: not-allowed;
    font-weight: bold;
}

/* 选中提示 */
.selected-tip {
    background: #ffeaea;
    color: #e74c3c;
    border-radius: 4px;
    padding: 8px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.selected-tip .countdown {
    color: #e74c3c;
    font-weight: bold;
}

/* VIP信息卡片 */
.vip-info-card {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    margin: 8px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.vip-info-price {
    color: #e74c3c;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.vip-info-valid {
    color: #27ae60;
    margin-bottom: 4px;
    font-size: 11px;
}

.vip-info-desc {
    color: #666;
    font-size: 10px;
}

/* 激活按钮 */
.activate-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #fff;
    border: none;
    border-radius: 15px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 2px 6px rgba(255,107,53,0.3);
}

.activate-btn:hover {
    background: linear-gradient(135deg, #E55A2B, #E68A1A);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255,107,53,0.4);
}

/* 响应式文件夹布局 */
@media (max-width: 480px) {
    .category-folder-item {
        padding: 8px 4px;
        min-height: 50px;
    }

    .category-folder-item .folder-icon {
        font-size: 18px;
        margin-bottom: 3px;
    }

    .category-folder-item .folder-name {
        font-size: 10px;
    }

    .btn-group-sm .btn {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .category-folder-item {
        padding: 9px 5px;
        min-height: 55px;
    }

    .category-folder-item .folder-icon {
        font-size: 19px;
        margin-bottom: 4px;
    }

    .category-folder-item .folder-name {
        font-size: 11px;
    }
}

/* 分类选项按钮样式 - 统一字体和颜色 */
.btn-xs {
    padding: 4px 8px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    border-radius: 4px !important;
    min-height: 28px !important;
    font-weight: 500 !important;
}

.category-options {
    gap: 6px !important;
}

/* 按类型按钮 - 统一蓝色 */
.btn-type {
    color: #007bff !important;
    border-color: #007bff !important;
    background-color: transparent !important;
}

.btn-type:hover {
    color: #fff !important;
    background-color: #007bff !important;
    border-color: #007bff !important;
}

.btn-type.active {
    color: #fff !important;
    background-color: #007bff !important;
    border-color: #007bff !important;
}

/* 按版本按钮 - 统一绿色 */
.btn-version {
    color: #28a745 !important;
    border-color: #28a745 !important;
    background-color: transparent !important;
}

.btn-version:hover {
    color: #fff !important;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-version.active {
    color: #fff !important;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .btn-xs {
        padding: 3px 6px !important;
        font-size: 11px !important;
        min-height: 26px !important;
    }

    .category-options {
        gap: 4px !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .btn-xs {
        padding: 4px 7px !important;
        font-size: 12px !important;
        min-height: 28px !important;
    }

    .category-options {
        gap: 5px !important;
    }
}

/* 学期标签样式 */
.semester-tabs {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    gap: 2px;
}

.semester-tabs .btn {
    flex: 1;
    border-radius: 0;
    border: none;
    background: #f8f9fa;
    color: #666;
    font-size: 12px;
    padding: 6px 8px;
    transition: all 0.3s ease;
}

.semester-tabs .btn.active {
    background: #007bff;
    color: #fff;
}

.semester-tabs .btn:hover:not(.active) {
    background: #e9ecef;
}

/* 移动端侧边栏优化 */
@media (max-width: 480px) {
    .sidebar {
        width: 260px;
        left: -260px;
    }

    .sidebar-header {
        padding: 15px;
    }

    .sidebar-section-title {
        padding: 12px 15px 8px;
    }

    .sidebar-menu-item {
        padding: 10px 15px;
    }

    .existing-order-modal-content {
        width: 95%;
        margin: 0 10px;
        max-width: 320px;
    }

    .existing-order-modal-body {
        padding: 15px;
    }

    .order-info {
        padding: 12px;
    }

    .order-item {
        font-size: 13px;
    }

    .existing-order-modal-footer {
        padding: 0 15px 15px;
        gap: 8px;
    }

    .existing-order-btn {
        padding: 10px;
        font-size: 13px;
    }
}

/* 加载状态样式 */
.loading-state,
.empty-state,
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

.loading-state {
    color: #FF6B35;
}

.loading-state::before {
    content: '⏳';
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state {
    color: #999;
}

.empty-state::before {
    content: '📚';
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

.error-state {
    color: #e74c3c;
}

.error-state::before {
    content: '⚠️';
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

/* 移动端样式 - 内联样式提取 */
@media (max-width: 700px) {
    /* 确保导航栏在移动端正确显示 */
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    /* 移动端导航栏优化 */
    @media (max-width: 991.98px) {
        .navbar {
            padding: 12px 0;
        }

        .navbar .container-fluid {
            padding: 0 12px;
        }

        /* 搜索框高度调整 */
        .navbar .input-group-sm {
            height: 44px;
        }

        .navbar .input-group-sm .form-control {
            height: 44px;
            font-size: 16px;
            padding: 12px 16px;
            border-radius: 8px 0 0 8px;
            border: 1px solid #dee2e6;
        }

        .navbar .input-group-sm .btn {
            height: 44px;
            padding: 12px 16px;
            border-radius: 0 8px 8px 0;
            border: 1px solid #dee2e6;
            border-left: none;
        }

        /* 会员中心图标调整 */
        .navbar .btn[href="/members/me"],
        .navbar .btn[onclick*="showLoginModal"] {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: none;
            border: none;
            transition: all 0.3s ease;
            padding: 0;
        }

        .navbar .btn[href="/members/me"]:hover,
        .navbar .btn[onclick*="showLoginModal"]:hover {
            background: none;
            transform: scale(1.1);
        }

        .navbar .btn[href="/members/me"] i,
        .navbar .btn[onclick*="showLoginModal"] i {
            font-size: 28px;
            color: #007bff;
        }

        .navbar .btn[href="/members/me"]:hover i,
        .navbar .btn[onclick*="showLoginModal"]:hover i {
            color: #0056b3;
        }

        /* 首页图标调整 */
        .navbar .navbar-brand {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: none;
            border: none;
            transition: all 0.3s ease;
            padding: 0;
        }

        .navbar .navbar-brand:hover {
            background: none;
            transform: scale(1.1);
        }

        .navbar .navbar-brand i {
            font-size: 24px;
            color: #007bff;
        }
    }

    /* 移动端底部栏样式 */
    .mobile-bottom-bar-icons {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        background: #fff;
        border-top: 1px solid #eee;
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        height: 62px;
        z-index: 100;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding: 8px 0;
    }

    /* 普通按钮样式 */
    .mobile-bar-btn {
        flex: 1;
        text-align: center;
        background: none;
        border: none;
        outline: none;
        font-size: 12px;
        color: #666;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 0 1px;
        margin: 0;
        cursor: pointer;
        text-decoration: none;
        min-width: 0;
    }

    /* 主按钮样式（立即下载/开通会员） */
    .mobile-bar-btn-main {
        color: #fff;
        background: #e74c3c;
        border-radius: 18px;
        margin: 0 1px;
        font-weight: bold;
        height: 36px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 70px;
        box-shadow: 0 2px 8px rgba(231,76,60,0.08);
        border: none;
        font-size: 13px;
        letter-spacing: 1px;
        padding: 0 6px;
        transition: all 0.3s ease;
    }

    /* 立即下载按钮特殊样式 */
    .mobile-bar-btn-main:hover {
        background: #c0392b;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(231,76,60,0.2);
    }

    /* 按钮文字样式 */
    .mobile-bar-btn div {
        font-size: 12px;
        font-weight: 500;
        margin-top: 4px;
        text-decoration: none;
        display: block !important;
        color: #666 !important;
    }

    /* 图标样式 */
    .nav-icon {
        font-size: 20px;
        margin-bottom: 4px;
        color: #666;
    }

    /* 紧凑模式 */
    .mobile-bottom-bar-icons.compact {
        height: 54px;
        min-height: 0;
        padding: 8px 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
}
