* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    background-attachment: fixed;
    min-height: 100vh;
    animation: gradientShift 15s ease infinite;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

/* 头部样式 - 游戏风格 */
.header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(102, 126, 234, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Header 用户登录注册区域 */
.header-auth {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

/* 已登录用户信息 */
.user-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 215, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 50px;
    padding: 8px 18px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.user-info-header:hover {
    background: rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.user-info-header i {
    color: #ffd700;
    font-size: 22px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    animation: pulse 2s ease-in-out infinite;
}

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

.user-info-header .user-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.logout-btn-header {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    margin-left: 5px;
}

.logout-btn-header:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* 未登录按钮组 */
.auth-buttons-header {
    display: flex;
    gap: 10px;
}

.auth-btn-header {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.auth-btn-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.auth-btn-header:hover::before {
    width: 300px;
    height: 300px;
}

.auth-btn-header i {
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.auth-btn-header span {
    position: relative;
    z-index: 1;
}

/* 登录按钮 - 金色主题 */
.login-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 193, 7, 0.3) 100%);
    border-color: rgba(255, 215, 0, 0.5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5) 0%, rgba(255, 193, 7, 0.5) 100%);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.login-btn i {
    color: #ffd700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
}

/* 注册按钮 - 紫色主题 */
.register-btn {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3) 0%, rgba(147, 51, 234, 0.3) 100%);
    border-color: rgba(138, 43, 226, 0.5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.register-btn:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.5) 0%, rgba(147, 51, 234, 0.5) 100%);
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.register-btn i {
    color: #e0b3ff;
    filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.8));
}

.header .logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    animation: float 3s ease-in-out infinite;
}

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

.header h1 {
    font-size: 2.2em;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 2px;
}

.header .description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 个人中心区域 - 游戏风格 */
.user-center-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(102, 126, 234, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.user-center-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 已登录状态 */
.user-center-logged {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.user-avatar {
    flex-shrink: 0;
}

.user-avatar i {
    font-size: 80px;
    color: #ffd700;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    animation: pulse 2s ease-in-out infinite;
}

.user-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

.user-details {
    flex: 1;
}

.user-greeting {
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.user-welcome {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.user-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.user-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 100px;
}

.user-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.user-action-btn i {
    font-size: 24px;
    color: #ffd700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.user-action-btn.logout i {
    color: #ff6b6b;
    filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.6));
}

.user-action-btn.checkin-btn {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(56, 142, 60, 0.3));
    border-color: rgba(76, 175, 80, 0.5);
    cursor: pointer;
}

.user-action-btn.checkin-btn:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.5), rgba(56, 142, 60, 0.5));
    border-color: rgba(76, 175, 80, 0.8);
}

.user-action-btn.checkin-btn i {
    color: #4caf50;
    filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.6));
}

/* 积分商城按钮 */
.user-action-btn.exchange-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 193, 7, 0.3));
    border-color: rgba(255, 215, 0, 0.5);
    animation: glow 2s ease-in-out infinite;
}

.user-action-btn.exchange-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(255, 193, 7, 0.5));
    border-color: rgba(255, 215, 0, 0.8);
    transform: translateY(-3px) scale(1.05);
}

.user-action-btn.exchange-btn i {
    color: #ffd700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

/* 抽奖按钮 - 紫红色主题 */
.user-action-btn.lottery-btn {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.3), rgba(240, 147, 251, 0.3));
    border-color: rgba(245, 87, 108, 0.5);
    animation: lotteryGlow 2s ease-in-out infinite;
}

.user-action-btn.lottery-btn:hover {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.5), rgba(240, 147, 251, 0.5));
    border-color: rgba(245, 87, 108, 0.8);
    transform: translateY(-3px) scale(1.05);
}

.user-action-btn.lottery-btn i {
    color: #f5576c;
    filter: drop-shadow(0 0 8px rgba(245, 87, 108, 0.8));
}

@keyframes lotteryGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(245, 87, 108, 0.3), 0 0 20px rgba(240, 147, 251, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(245, 87, 108, 0.5), 0 0 30px rgba(240, 147, 251, 0.3);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.3);
    }
}

.user-action-btn span {
    font-size: 0.9em;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 未登录状态 */
.user-center-guest {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.guest-icon {
    flex-shrink: 0;
}

.guest-icon i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.guest-message {
    flex: 1;
}

.guest-message h3 {
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.guest-message p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.guest-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.guest-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.guest-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.guest-action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.guest-action-btn i {
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.guest-action-btn span {
    position: relative;
    z-index: 1;
}

/* 登录按钮 - 金色主题 */
.login-btn-center {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4) 0%, rgba(255, 193, 7, 0.4) 100%);
    border-color: rgba(255, 215, 0, 0.6);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-btn-center:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.6) 0%, rgba(255, 193, 7, 0.6) 100%);
    border-color: rgba(255, 215, 0, 0.9);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.login-btn-center i {
    color: #ffd700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

/* 注册按钮 - 紫色主题 */
.register-btn-center {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.4) 0%, rgba(147, 51, 234, 0.4) 100%);
    border-color: rgba(138, 43, 226, 0.6);
    color: #fff;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.register-btn-center:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.6) 0%, rgba(147, 51, 234, 0.6) 100%);
    border-color: rgba(138, 43, 226, 0.9);
    box-shadow: 0 6px 25px rgba(138, 43, 226, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.register-btn-center i {
    color: #e0b3ff;
    filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.8));
}

/* 主内容区域 */
.main-content {
    margin-bottom: 30px;
}

/* 分类区域 - 游戏风格 */
.category-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 15px rgba(102, 126, 234, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.category-title {
    font-size: 1.6em;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.category-title:hover {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.category-title i:first-child {
    margin-right: 10px;
    color: #ffd700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.category-section.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.category-section.collapsed .links-container {
    display: none;
}

/* 链接容器 */
.links-container {
    transition: max-height 0.3s ease;
}

/* 链接网格 */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

/* 自定义滚动条 - 游戏风格 */
.links-container::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.links-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.links-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.links-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #f093fb);
}

/* 链接卡片 - 游戏风格 */
.link-card {
    display: flex;
    align-items: center;
    padding: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.link-icon {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.link-icon img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.link-icon i {
    font-size: 28px;
    color: #ffd700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-title {
    font-size: 1.05em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.link-description {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 悬浮按钮 - 游戏风格 */
.float-button {
    position: fixed;
    right: 20px;
    top: 50%;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 3px solid rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
    user-select: none;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.5); }
}

.float-button:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.6);
}

.float-button i {
    font-size: 24px;
    color: #764ba2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 悬浮菜单 - 游戏风格 */
.float-menu {
    position: fixed;
    right: 90px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(102, 126, 234, 0.5);
    display: none;
    z-index: 999;
    min-width: 200px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.float-menu.active {
    display: block;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.float-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.float-menu-item:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 255, 255, 0.2));
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
}

.float-menu-item i {
    margin-right: 10px;
    font-size: 18px;
    color: #ffd700;
    width: 20px;
    text-align: center;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.float-menu-item span {
    font-size: 0.95em;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 底部样式 - 游戏风格 */
.footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 15px rgba(102, 126, 234, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 10px;
    }

    /* 个人中心区域移动端优化 */
    .user-center-section {
        padding: 20px;
        margin-bottom: 15px;
    }

    .user-center-logged {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .user-avatar i {
        font-size: 60px;
    }

    .user-avatar-img {
        width: 60px;
        height: 60px;
    }

    .user-greeting {
        font-size: 1.4em;
    }

    .user-welcome {
        font-size: 0.9em;
    }

    .user-actions {
        width: 100%;
        justify-content: center;
    }

    .user-action-btn {
        min-width: 80px;
        padding: 12px 15px;
    }

    .user-action-btn i {
        font-size: 20px;
    }

    .user-action-btn span {
        font-size: 0.8em;
    }

    .user-center-guest {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .guest-icon i {
        font-size: 60px;
    }

    .guest-message h3 {
        font-size: 1.4em;
    }

    .guest-message p {
        font-size: 0.9em;
    }

    .guest-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .guest-action-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .guest-action-btn i {
        font-size: 18px;
    }

    .header {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .header .logo {
        max-width: 80px;
        margin-bottom: 10px;
    }

    .header h1 {
        font-size: 1.6em;
        letter-spacing: 1px;
    }

    .header .description {
        font-size: 0.9em;
    }

    .category-section {
        padding: 18px;
        margin-bottom: 15px;
    }

    .category-title {
        font-size: 1.3em;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .link-card {
        padding: 15px;
    }

    .link-icon {
        width: 42px;
        height: 42px;
        margin-right: 12px;
    }

    .link-icon i {
        font-size: 24px;
    }

    .link-title {
        font-size: 1em;
    }

    .link-description {
        font-size: 0.8em;
    }

    .float-button {
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .float-button i {
        font-size: 20px;
    }

    .float-menu {
        right: 75px;
        min-width: 180px;
        padding: 12px;
    }

    .float-menu-item {
        padding: 10px 12px;
        font-size: 0.9em;
    }

    .float-menu-item i {
        font-size: 16px;
    }

    .footer {
        padding: 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.4em;
    }

    .category-title {
        font-size: 1.2em;
    }

    /* 小屏幕个人中心优化 */
    .user-center-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .user-center-logged {
        flex-direction: column;
        gap: 15px;
    }

    .user-avatar i,
    .guest-icon i {
        font-size: 40px;
    }

    .user-avatar-img {
        width: 40px;
        height: 40px;
    }

    .user-details {
        text-align: center;
    }

    .user-greeting,
    .guest-message h3 {
        font-size: 1.1em;
    }

    .user-welcome {
        font-size: 0.9em;
    }

    .user-actions,
    .guest-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
    }

    .user-action-btn,
    .guest-action-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        padding: 10px 5px;
        font-size: 11px;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
    }

    .user-action-btn i,
    .guest-action-btn i {
        margin-right: 0;
        font-size: 18px;
    }

    .float-button {
        width: 45px;
        height: 45px;
    }

    .float-menu {
        right: 65px;
        min-width: 160px;
    }
}

/* 横屏适配 */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 15px;
    }

    .header h1 {
        font-size: 1.4em;
    }

    .user-center-section {
        padding: 20px;
    }

    .user-center-logged,
    .user-center-guest {
        flex-direction: row;
    }

    .user-avatar i,
    .guest-icon i {
        font-size: 50px;
    }

    .user-avatar-img {
        width: 50px;
        height: 50px;
    }

    .category-section {
        padding: 15px;
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 聊天室按钮 */
.chat-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
    user-select: none;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.chat-button i {
    color: white;
    font-size: 24px;
}

/* 聊天室窗口 */
.chat-room {
    position: fixed;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transition: none;
}

.chat-room:not([style*="left"]) {
    left: 20px;
    bottom: 90px;
}

.chat-room.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f5f5f5;
}

.chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-avatar i {
    font-size: 36px;
    color: #999;
}

.chat-content {
    flex: 1;
}

.chat-header-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.chat-username {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.chat-time {
    font-size: 12px;
    color: #999;
}

.chat-text {
    background: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    color: #333;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
}

.chat-input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.chat-input-area button {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input-area button:hover {
    opacity: 0.9;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .chat-room {
        left: 10px;
        right: 10px;
        bottom: 80px;
        width: auto;
        height: 400px;
    }

    .chat-button {
        left: 10px;
        bottom: 10px;
    }
}

