/* 全局变量 */
:root {
    --glass-bg: rgba(30, 50, 80, 0.15);
    --glass-strong: rgba(13, 25, 45, 0.9);
    --glass-border: rgba(100, 200, 255, 0.15);
    --text-color: #ffffff;
    --accent-color: #7FDBFF;
    --bilibili-pink: #fb7299;
    --bilibili-blue: #23ade5;
    --bomb-color: #ff4757;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #000428, #004e92, #0f2027, #2c5364);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    padding-bottom: 60px;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(10, 20, 35, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.logo span {
    color: var(--bilibili-blue);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.7;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links .points-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-links .points-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

/* 登录按钮 */
.login-btn {
    background: linear-gradient(135deg, var(--bilibili-pink), var(--bilibili-blue));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    box-shadow: 0 2px 10px rgba(251, 114, 153, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 114, 153, 0.5);
}

.user-info-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid var(--glass-border);
}

.user-info-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bilibili-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 用户UID显示控制 */
.user-uid-mobile {
    display: none;
}

.user-uid-desktop {
    display: inline;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 移动端侧边栏菜单 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 25, 45, 0.98) 0%, rgba(10, 20, 35, 0.98) 100%);
    backdrop-filter: blur(20px);
    z-index: 1200;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(35, 173, 229, 0.2);
    background: linear-gradient(135deg, rgba(35, 173, 229, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-menu-close:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.9);
}

.mobile-menu-content {
    padding: 10px 0;
}

/* 移动端登录按钮区域 */
.mobile-login-section {
    padding: 15px;
    border-bottom: 1px solid rgba(35, 173, 229, 0.15);
}

.mobile-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #23ade5 0%, #667eea 100%);
    border: none;
    border-radius: 16px;
    padding: 16px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(35, 173, 229, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.mobile-login-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.mobile-login-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 15px rgba(35, 173, 229, 0.5);
}

/* 移动端用户信息卡片 */
.mobile-user-section {
    padding: 15px;
    border-bottom: 1px solid rgba(35, 173, 229, 0.15);
}

.mobile-user-card {
    background: linear-gradient(135deg, #23ade5 0%, #1e90ff 100%);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(35, 173, 229, 0.4);
    position: relative;
    overflow: hidden;
}

.mobile-user-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.mobile-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-user-details {
    flex: 1;
    overflow: hidden;
    z-index: 1;
}

.mobile-user-label {
    font-size: 11px;
    opacity: 0.85;
    margin-bottom: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.mobile-user-uid {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-logout-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.mobile-logout-btn:active {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0.95);
}

/* 移动端积分卡片 */
.mobile-points-section {
    padding: 15px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
}

.mobile-points-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.mobile-points-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.mobile-points-card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.5);
}

.mobile-points-icon {
    font-size: 32px;
    animation: pulse 2s infinite;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Logo 呼吸灯效 */
@keyframes logoGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 3px rgba(35, 173, 229, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 8px rgba(35, 173, 229, 0.6));
    }
}

.mobile-points-info {
    flex: 1;
    z-index: 1;
}

.mobile-points-label {
    font-size: 11px;
    opacity: 0.85;
    margin-bottom: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.mobile-points-value {
    font-size: 22px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-points-arrow {
    font-size: 26px;
    opacity: 0.8;
    z-index: 1;
    transition: transform 0.3s;
}

.mobile-points-card:active .mobile-points-arrow {
    transform: translateX(3px);
}

/* 移动端菜单分隔线 */
.mobile-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(35, 173, 229, 0.2) 50%, transparent 100%);
    margin: 10px 20px;
}

/* 移动端菜单项 */
.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    font-weight: 500;
}

.mobile-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(35, 173, 229, 0.15) 0%, transparent 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.mobile-menu-item:hover::before,
.mobile-menu-item:active::before {
    width: 100%;
}

.mobile-menu-item:hover,
.mobile-menu-item:active {
    background: rgba(35, 173, 229, 0.08);
    border-left-color: #23ade5;
    padding-left: 25px;
}

.mobile-menu-item span:first-child {
    font-size: 22px;
    width: 28px;
    text-align: center;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

/* 主容器 */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px 20px;
}

.card-glass {
    background: var(--glass-strong);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 10, 30, 0.4);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--bilibili-blue);
    border-radius: 2px;
}

/* 个人信息 */
.profile-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    flex-wrap: wrap;
}

.avatar-box {
    position: relative;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid var(--bilibili-blue);
    object-fit: cover;
}

.live-tag {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.profile-info h1 {
    font-size: 26px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    font-size: 12px;
    background: rgba(35, 173, 229, 0.2);
    color: var(--bilibili-blue);
    padding: 2px 8px;
    border-radius: 4px;
}

.desc-text {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 15px;
    color: #e0e6ed;
}

.stats-row {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #aab8c2;
}

/* 直播和视频 */
.media-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
}

.live-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mini-video-card {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
    transition: 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: white;
    align-items: center;
    border: 1px solid transparent;
}

.mini-video-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--bilibili-blue);
    transform: translateX(5px);
}

.mini-cover-box {
    width: 140px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    background: #000;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.mini-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-info {
    font-size: 14px;
    line-height: 1.4;
    font-weight: bold;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mini-tag {
    font-size: 12px;
    color: var(--bilibili-pink);
    margin-top: 6px;
    opacity: 0.8;
}

/* 工具栏 */
.tools-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.tool-btn {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: 0.3s;
    cursor: pointer;
}

.tool-btn:hover {
    border-color: var(--bilibili-blue);
    background: rgba(35, 173, 229, 0.15);
    transform: translateY(-3px);
}

.tool-emoji {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.game-window {
    width: 90%;
    max-width: 500px;
    background: #151923;
    border: 1px solid var(--bilibili-blue);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    box-shadow: 0 0 40px rgba(35, 173, 229, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.game-header {
    text-align: center;
    margin-bottom: 15px;
}

.game-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--bilibili-blue);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* 登录相关 */
.login-qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.login-qrcode-image {
    width: 260px;
    height: 260px;
    border: 4px solid var(--bilibili-blue);
    border-radius: 12px;
    background: white;
    padding: 10px;
}

.login-status-text {
    font-size: 16px;
    color: var(--text-color);
    text-align: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    min-width: 200px;
}

.login-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--bilibili-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 积分商城 */
.shop-container {
    padding: 30px;
}

.shop-header {
    text-align: center;
    margin-bottom: 30px;
}

.shop-header h2 {
    font-size: 28px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.points-display {
    font-size: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 30px;
    border-radius: 12px;
    display: inline-block;
}

.points-num {
    color: #ffd700;
    font-weight: bold;
    font-size: 24px;
    margin: 0 5px;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.reward-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.reward-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--bilibili-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(35, 173, 229, 0.3);
}

.reward-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.reward-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 40px;
}

.reward-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reward-price {
    font-size: 16px;
    color: #ffd700;
    font-weight: bold;
}

.reward-stock {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.exchange-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.exchange-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.my-orders-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 15px;
}

/* 表单 */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.form-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.form-input:focus {
    border-color: var(--bilibili-blue);
    background: rgba(0, 0, 0, 0.5);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.submit-exchange-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.submit-exchange-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5);
}

/* 订单 */
.order-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-no {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.order-status.pending {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.order-details {
    font-size: 14px;
    line-height: 1.8;
}

/* Toast提示 */
#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 3000;
}

#toast.show {
    opacity: 1;
    visibility: visible;
}

/* 响应式优化 */
@media (max-width: 900px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
    .tools-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 全局容器调整 */
    .section-container {
        padding: 70px 15px 20px; /* 减小左右内边距 */
    }

    .card-glass {
        padding: 20px; /* 减小卡片内边距 */
        margin-bottom: 20px;
    }

    /* 个人信息区域优化 */
    .profile-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .profile-info h1 {
        justify-content: center;
        font-size: 24px;
    }
    
    .stats-row {
        justify-content: center;
    }

    .desc-text {
        text-align: center;
        font-size: 13px;
    }

    /* 导航栏优化 */
    .navbar {
        padding: 0 15px;
        justify-content: space-between;
    }

    .navbar .nav-links {
        display: none; /* 确保移动端隐藏桌面导航 */
    }

    .navbar #user-section {
        display: none; /* 移动端隐藏导航栏右侧登录/用户信息，统一在侧边栏显示 */
    }

    .mobile-menu-btn {
        display: flex; /* 显示移动端菜单按钮 */
    }

    /* 歌单调整 */
    .playlist-masonry {
        grid-template-columns: 1fr; /* 强制单列 */
    }
    
    .song-category-group {
        margin-bottom: 10px;
    }

    /* 音乐播放器优化 */
    .player-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .song-info {
        text-align: center;
        margin-bottom: 5px;
    }
    
    .player-controls {
        width: 100%;
        justify-content: center;
        gap: 30px;
    }
    
    .progress-container {
        width: 100%;
    }
    
    /* 工具栏调整 */
    .tools-container {
        gap: 10px;
    }
    
    .tool-btn {
        padding: 15px;
    }

    /* 弹窗适配 */
    .game-window {
        width: 95%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .tools-container {
        grid-template-columns: repeat(2, 1fr); /* 小屏幕保持两列 */
    }
    
    .mobile-user-card {
        flex-direction: column;
        text-align: center;
    }
    
    .mobile-user-details {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .mobile-logout-btn {
        width: 100%;
    }
}

/* 歌单相关样式 */
.search-bar-container {
    margin-bottom: 20px;
    position: relative;
}

.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 50px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.search-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--bilibili-blue);
}

.playlist-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.song-category-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.group-header {
    padding: 12px 15px;
    font-weight: bold;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
}

.group-count {
    opacity: 0.6;
    font-size: 13px;
}

.group-songs {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.song-tag {
    font-size: 13px;
    background: rgba(35, 173, 229, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.song-tag:hover {
    background: var(--bilibili-blue);
    color: #fff;
    transform: translateY(-2px);
}

.song-tag.playing {
    background: var(--bilibili-pink);
    color: #fff;
    border-color: var(--bilibili-pink);
    animation: pulse 1.5s infinite;
}

/* 音乐播放器 */
.music-player {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.song-info {
    text-align: center;
}

.song-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-color);
}

.song-artist {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.control-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.2s;
}

.control-btn:hover {
    transform: scale(1.1);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-display {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: var(--bilibili-blue);
    width: 0%;
    transition: width 0.1s;
}

/* 游戏相关样式 */
.game-status {
    font-size: 14px;
    color: #aaa;
    margin-top: 10px;
}

.bomb-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    margin-top: 10px;
}

.num-btn {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.num-btn.disabled {
    background: #000;
    opacity: 0.3;
    pointer-events: none;
    border-color: transparent;
}

.num-btn.boom {
    background: var(--bomb-color);
    animation: shake 0.5s;
    border-color: red;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.wheel-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

#wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #ff4757;
    z-index: 10;
}

.spin-controls {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.config-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.config-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    outline: none;
}

.btn-action {
    background: var(--bilibili-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.item-list {
    max-height: 100px;
    overflow-y: auto;
    font-size: 12px;
    margin-bottom: 10px;
}

.list-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.del-item {
    color: #ff4757;
    cursor: pointer;
    margin-left: 10px;
}

.spin-btn-big {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(to right, #ff4757, #ff6b81);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    transition: 0.2s;
}

.spin-btn-big:disabled {
    background: #555;
    box-shadow: none;
    cursor: not-allowed;
}

/* ========================================
   📱 移动端适配
   ======================================== */

/* 小屏幕适配 (768px 以下) */
@media (max-width: 768px) {
    /* 导航栏优化 - 增强阴影和固定效果 */
    .navbar {
        padding: 0 15px;
        height: 56px;
        background: linear-gradient(135deg, rgba(10, 20, 35, 0.98) 0%, rgba(13, 25, 45, 0.98) 100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 1px rgba(35, 173, 229, 0.3);
        border-bottom: 1px solid rgba(35, 173, 229, 0.15);
    }
    
    .logo {
        font-size: 17px;
        font-weight: 800;
        background: linear-gradient(135deg, #ffffff 0%, #23ade5 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        animation: logoGlow 3s ease-in-out infinite;
    }
    
    .logo span {
        background: linear-gradient(135deg, #23ade5 0%, #667eea 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex !important;
        position: relative;
        width: 28px;
        height: 28px;
    }
    
    .mobile-menu-btn span {
        width: 100%;
        height: 2.5px;
        background: linear-gradient(90deg, #ffffff 0%, #23ade5 100%);
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.9);
    }
    
    /* 隐藏桌面端导航链接 */
    .nav-links {
        display: none !important;
    }
    
    /* 移动端完全隐藏用户信息区域 */
    #user-section {
        display: none !important;
    }
    
    /* 主容器 - 优化间距 */
    .section-container {
        padding: 62px 12px 30px;
        scroll-behavior: smooth;
    }
    
    /* 卡片 - 增强视觉效果 */
    .card-glass {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 10, 30, 0.6);
        backdrop-filter: blur(25px);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .card-glass:active {
        transform: scale(0.99);
    }
    
    /* 标题 */
    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    /* 个人信息 - 优化布局 */
    .profile-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding-top: 8px;
    }
    
    .avatar-box {
        position: relative;
        animation: float 3s ease-in-out infinite;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }
    
    .avatar {
        width: 96px;
        height: 96px;
        border-width: 4px;
        box-shadow: 0 8px 24px rgba(35, 173, 229, 0.4);
    }
    
    .profile-info {
        align-items: center;
    }
    
    .profile-info h1 {
        font-size: 22px;
    }
    
    .desc-text {
        font-size: 13px;
        line-height: 1.6;
    }
    
    /* 统计数据 - 优化布局 */
    .stats-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
        padding: 12px;
        background: linear-gradient(135deg, rgba(35, 173, 229, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
        border-radius: 12px;
        margin-top: 8px;
    }
    
    .stats-row span {
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        font-size: 13px;
    }
    
    /* 媒体网格 */
    .media-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 直播容器 - 优化比例 */
    .live-container {
        height: auto;
        padding-bottom: 56.25%;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    }
    
    /* 视频列表 - 优化卡片 */
    .video-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .mini-video-card {
        border-radius: 12px;
        padding: 12px;
        transition: all 0.3s ease;
    }
    
    .mini-video-card:active {
        transform: scale(0.98);
        background: rgba(35, 173, 229, 0.15);
    }
    
    .mini-cover-box {
        width: 120px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    
    .mini-info {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .mini-tag {
        font-size: 11px;
        margin-top: 4px;
    }
    
    /* 歌单瀑布流 - 优化显示 */
    .playlist-masonry {
        column-count: 2;
        gap: 10px;
        margin-top: 12px;
    }
    
    .song-category-group {
        break-inside: avoid;
        margin-bottom: 12px;
    }
    
    .group-header {
        font-size: 15px;
        font-weight: 700;
        padding: 10px 12px;
        border-radius: 10px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
        margin-bottom: 8px;
    }
    
    .song-tag {
        padding: 8px 10px;
        font-size: 12px;
        margin: 4px 2px;
        border-radius: 8px;
        transition: all 0.2s ease;
        cursor: pointer;
    }
    
    .song-tag:active {
        transform: scale(0.95);
    }
    
    /* 搜索栏 - 增强交互效果 */
    .search-bar-container {
        margin-bottom: 16px;
    }
    
    .search-input {
        font-size: 15px;
        padding: 12px 16px;
        border-radius: 12px;
        border: 2px solid rgba(35, 173, 229, 0.3);
        transition: all 0.3s ease;
    }
    
    .search-input:focus {
        border-color: var(--bilibili-blue);
        box-shadow: 0 0 0 3px rgba(35, 173, 229, 0.1);
        transform: scale(1.01);
    }
    
    /* 音乐播放器 - 优化布局 */
    .music-player {
        padding: 14px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(35, 173, 229, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
        border: 1px solid rgba(35, 173, 229, 0.2);
        box-shadow: 0 4px 16px rgba(35, 173, 229, 0.15);
    }
    
    .player-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .song-title {
        font-size: 15px;
        font-weight: 700;
    }
    
    .song-artist {
        font-size: 13px;
        opacity: 0.8;
    }
    
    .control-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
        border-radius: 50%;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .control-btn:active {
        transform: scale(0.9);
    }
    
    .player-controls {
        gap: 12px;
        justify-content: center;
    }
    
    .progress-container {
        margin-top: 4px;
    }
    
    .progress-bar {
        height: 6px;
        border-radius: 3px;
    }
    
    /* 工具栏 - 优化布局 */
    .tools-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .tool-btn {
        padding: 18px 12px;
        font-size: 14px;
        border-radius: 14px;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
        border: 1px solid rgba(35, 173, 229, 0.2);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .tool-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(35, 173, 229, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.5s, height 0.5s;
    }
    
    .tool-btn:active::before {
        width: 200px;
        height: 200px;
    }
    
    .tool-emoji {
        font-size: 28px;
        margin-bottom: 6px;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
    
    /* 模态框 - 优化移动端 */
    .modal-overlay {
        padding: 12px;
        backdrop-filter: blur(12px);
    }
    
    .game-window {
        max-width: 95%;
        max-height: 88vh;
        padding: 20px 16px;
        border-radius: 20px;
        animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes modalSlideUp {
        from {
            opacity: 0;
            transform: translateY(50px) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    .game-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    /* 登录二维码 - 优化显示 */
    .login-qrcode-container {
        padding: 20px 16px;
    }
    
    .login-qrcode-image {
        width: 240px;
        height: 240px;
        border-width: 3px;
        box-shadow: 0 8px 24px rgba(35, 173, 229, 0.3);
    }
    
    /* 数字炸弹 */
    .bomb-grid {
        gap: 8px;
    }
    
    .bomb-cell {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    /* 幸运转盘 */
    .wheel-canvas {
        width: 250px !important;
        height: 250px !important;
    }
    
    /* 积分商城 - 优化布局 */
    .shop-container {
        padding: 20px 16px;
    }
    
    .shop-header {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        text-align: center;
    }
    
    .shop-header h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .points-display {
        font-size: 15px;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
        border: 1px solid rgba(102, 126, 234, 0.3);
    }
    
    .points-num {
        font-size: 26px;
        text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    }
    
    .my-orders-btn {
        font-size: 13px;
        padding: 8px 16px;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .my-orders-btn:active {
        transform: scale(0.95);
    }
    
    /* 商品网格 - 优化卡片 */
    .rewards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .reward-card {
        flex-direction: row;
        gap: 14px;
        padding: 14px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reward-card:active {
        transform: scale(0.98);
    }
    
    .reward-image {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .reward-info {
        flex: 1;
        min-width: 0;
    }
    
    .reward-name {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 6px;
    }
    
    .reward-description {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
        opacity: 0.85;
    }
    
    .reward-price {
        font-size: 19px;
        font-weight: 800;
        margin-top: 8px;
    }
    
    .redeem-btn {
        padding: 9px 20px;
        font-size: 13px;
        border-radius: 10px;
        font-weight: 600;
        transition: all 0.2s ease;
    }
    
    .redeem-btn:active {
        transform: scale(0.95);
    }
    
    /* 订单列表 - 优化布局 */
    .order-card {
        padding: 14px;
        margin-bottom: 12px;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
        border: 1px solid rgba(35, 173, 229, 0.2);
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .order-content {
        flex-direction: column;
        gap: 12px;
        padding-top: 10px;
    }
    
    .order-image {
        width: 85px;
        height: 85px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    /* 兑换表单 - 优化样式 */
    .redeem-form {
        padding: 16px;
    }
    
    .form-group label {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 12px;
        border-radius: 10px;
        border: 2px solid rgba(35, 173, 229, 0.3);
        transition: all 0.3s ease;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--bilibili-blue);
        box-shadow: 0 0 0 3px rgba(35, 173, 229, 0.1);
    }
    
    /* 按钮 - 优化交互 */
    .btn-action {
        padding: 11px 20px;
        font-size: 14px;
        border-radius: 10px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .btn-action:active {
        transform: scale(0.95);
    }
    
    .spin-btn-big {
        padding: 14px;
        font-size: 17px;
        border-radius: 12px;
        font-weight: 700;
        transition: all 0.3s ease;
    }
    
    .spin-btn-big:active {
        transform: scale(0.97);
    }
}

/* 超小屏幕适配 (480px 以下) */
@media (max-width: 480px) {
    /* 进一步优化导航栏 */
    .navbar {
        height: 50px;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .nav-links .points-badge {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    /* 歌单瀑布流改为单列 */
    .playlist-masonry {
        column-count: 1;
    }
    
    /* 工具按钮改为单列 */
    .tools-container {
        grid-template-columns: 1fr;
    }
    
    /* 数字炸弹网格调整 */
    .bomb-cell {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    
    /* 转盘再次缩小 */
    .wheel-canvas {
        width: 220px !important;
        height: 220px !important;
    }
}

/* 横屏优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .section-container {
        padding-top: 60px;
    }
    
    .live-container {
        height: 300px;
    }
    
    .modal-overlay {
        overflow-y: auto;
    }
    
    .game-window {
        max-height: 95vh;
        overflow-y: auto;
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #23ade5 0%, #667eea 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(35, 173, 229, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2500;
    display: none;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(35, 173, 229, 0.6);
}

.back-to-top:active {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 70px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}
