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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1890ff;
    cursor: pointer;
}

.nav-brand img {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-item {
    padding: 8px 16px;
    text-decoration: none;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-item:hover {
    background-color: #f0f0f0;
    color: #1890ff;
}

.nav-item.active {
    color: #1890ff;
    background-color: #e6f7ff;
}

.nav-item-hidden {
    display: none !important;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-primary {
    background-color: #1890ff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #40a9ff;
}

.btn-text {
    background: transparent;
    color: #1890ff;
    text-decoration: none;
}

.btn-text:hover {
    background-color: #e6f7ff;
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
}

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

/* 首页英雄区域 */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 20px;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #1890ff;
}

.hero-section p {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
}

/* 捷径页面 */
.shortcuts-page {
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-header h1 {
    font-size: 36px;
    margin-bottom: 12px;
    color: #1890ff;
}

.page-header p {
    font-size: 16px;
    color: #666;
}

/* 搜索区域 */
.search-section {
    margin-bottom: 32px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #1890ff;
}

.search-btn {
    position: absolute;
    right: 8px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: #40a9ff;
}

/* 捷径网格 */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* 捷径卡片 */
.shortcut-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.shortcut-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.shortcut-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
}

.shortcut-info {
    flex: 1;
}

.shortcut-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.shortcut-id {
    font-size: 12px;
    color: #999;
    font-family: monospace;
}

.shortcut-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.view-btn {
    width: 100%;
    justify-content: center;
}

/* 加载状态 */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    border-color: #1890ff;
    color: #1890ff;
}

.pagination button.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 32px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s;
}

.close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 联系我们按钮 */
.contact-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.contact-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1890ff;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-btn:hover {
    background: #40a9ff;
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.5);
    transform: scale(1.1);
}

.contact-label {
    font-size: 12px;
    color: #666;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* VIP标签 */
.vip-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.shortcut-category {
    display: inline-block;
    padding: 2px 8px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 4px;
}

.status-badge.vip {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.status-badge.free {
    background: #e6f7ff;
    color: #1890ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 20px;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        margin-top: 12px;
        flex-wrap: wrap;
    }

    .shortcuts-grid {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .page-header h1 {
        font-size: 28px;
    }
}
/* 管理后台链接样式 */
.nav-item.admin-link {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white !important;
    border-radius: 6px;
    padding: 8px 16px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

.nav-item.admin-link:hover {
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.4);
}

.nav-item.admin-link:active {
    transform: translateY(0);
}
/* 用户菜单样式 */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.user-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.user-name {
    font-weight: 600;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    margin-top: 8px;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item.logout-btn {
    color: #ff4d4f;
}

.dropdown-item.logout-btn:hover {
    background: #fff2f0;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
}

.vip-badge {
    background: #fff7e6 !important;
    color: #fa8c16 !important;
    font-weight: 600;
}

.vip-badge:hover {
    background: #fff7e6 !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .user-dropdown {
        right: -20px;
        min-width: 140px;
    }
    
    .user-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .dropdown-item {
        padding: 10px 12px;
        font-size: 13px;
    }
}