﻿/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 阻止双击放大 */
    touch-action: manipulation;
}

:root {
    /* 主题色变量 - 将通过JavaScript从config.js动态设置 */
    --primary-color: #ff9500;
    --primary-light: #ffb347;
    --primary-dark: #e6850e;
    --secondary-color: #667eea;
    --accent-color: #764ba2;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    /* 阻止双击放大 */
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 左侧菜单 */
.left-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    max-width: 380px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    overflow-y: auto;
    will-change: transform;
}

.left-menu.open {
    transform: translateX(0);
}

.menu-header {
    padding: 20px;
    background: white;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.menu-logo {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

.menu-content {
    padding: 20px 0;
}

.menu-items {
    padding: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.menu-item:hover {
    background-color: #f8f8f8;
}

.menu-item-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item-text {
    flex: 1;
    font-size: 16px;
    color: #333;
}

/* 菜单遮罩层 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 150;
    pointer-events: none;
    will-change: opacity;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 主内容容器 */
.main-container {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    position: relative;
}

/* 移除slide-right，不再移动主内容 */

/* 头部导航栏 */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
}

.menu-icon {
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

.logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 150px;
    z-index: 1;
    pointer-events: auto;
}

.logo-img {
    height: 28px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

.right-icon {
    cursor: pointer;
    position: relative;
    z-index: 2;
    font-size: 22px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.right-icon:hover {
    background: rgba(var(--primary-color-rgb, 255, 149, 0), 0.1);
    transform: scale(1.1);
}

.right-icon:active {
    transform: scale(0.95);
}

/* 轮播横幅 */
.banner-section {
    margin: 10px 8px;
    position: relative;
    touch-action: pan-x;  /* 只允许水平滑动 */
    user-select: none;    /* 防止文本选择 */
}

.banner-container {
    position: relative;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;  /* 鼠标手势 */
}

.banner-container:active {
    cursor: grabbing;  /* 拖拽时的手势 */
}

.banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    overflow: hidden;
}

.banner.active {
    opacity: 1;
}

/* 轮播图切换动画 */
.banner.slide-right {
    animation: slideInFromRight 0.5s ease-in-out;
}

.banner.slide-left {
    animation: slideInFromLeft 0.5s ease-in-out;
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.banner a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: fill;  /* 强制填满容器，允许变形 */
    display: block;
}

.banner-content h2 {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.pagination-indicators {
    position: relative;
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 10px auto;
    z-index: 10;
}

.indicator {
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 4px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: var(--primary-color, rgba(255, 149, 0, 0.7));
    box-shadow: 0 4px 12px var(--primary-color, rgba(255, 149, 0, 0.3)), 0 0 8px rgba(255, 255, 255, 0.4);
    transform: scaleY(1.5);
}

.indicator.active {
    background: linear-gradient(135deg, var(--primary-color, rgba(255, 149, 0, 0.9)) 0%, var(--primary-light, rgba(255, 184, 77, 0.9)) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px var(--primary-color, rgba(255, 149, 0, 0.4)), 0 0 12px rgba(255, 255, 255, 0.6);
    width: 24px;
}

.indicator.active:hover {
    background: linear-gradient(135deg, var(--primary-color, rgba(255, 149, 0, 0.9)) 0%, var(--primary-light, rgba(255, 184, 77, 0.9)) 100%);
    box-shadow: 0 6px 20px var(--primary-color, rgba(255, 149, 0, 0.5)), 0 0 16px rgba(255, 255, 255, 0.7);
    transform: scaleY(1.5);
}

/* 公告栏 */
.announcement {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    margin: 10px 8px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    min-height: 32px;  /* 确保最小高度 */
    gap: 8px;  /* 图标和文本之间的间距 */
}

.announcement:hover {
    background: rgba(233, 236, 239, 0.7);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 0 16px rgba(255, 255, 255, 0.6);
}

.announcement-icon {
    font-size: 14px;
    margin-right: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;  /* 固定宽度 */
    height: 20px; /* 固定高度 */
}

.announcement-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding-right: 8px;  /* 右侧留白 */
}

.announcement-text {
    color: #666;
    white-space: nowrap;
    animation: scrollText 15s linear infinite;
    display: inline-block;
}

@keyframes scrollText {
    0% {
        transform: translateX(20%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 分类导航 */
.category-nav {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    margin: 8px 6px;
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth; /* 平滑滚动 */
}

.category-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
    width: 68px;
    flex-basis: 68px;
}

.category-item:hover {
    transform: scale(1.05);
}

.category-icon {
    position: relative;
    width: 32px;
    height: 32px;
    margin-bottom: 2px;
}

.category-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}

/* Tab图标状态切换 */
.category-icon-normal {
    opacity: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.category-icon-active {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease-out, opacity 0.3s ease;
}

.category-item.active .category-icon-normal {
    opacity: 0;
}

.category-item.active .category-icon-active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
}

/* 分类图标选中动画 */
@keyframes iconRotateAndScale {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1.15);
    }
}

.category-icon-active.icon-animate {
    animation: iconRotateAndScale 0.6s ease-out;
}

.category-text {
    font-size: 12px;
    color: #666;
    text-align: center;
    transition: color 0.2s ease;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-item.active .category-text {
    color: var(--primary-color);
    font-weight: bold;
}

/* 内容网格 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px 8px;
}

/* 内容分类容器 */
.content-category {
    display: none;
}

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

.content-item {
    position: relative;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    will-change: transform, box-shadow;
}

.content-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.content-icon {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(135deg, rgba(245,245,245,0.95), rgba(235,235,235,0.9));
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.app-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 4px rgba(255, 255, 255, 0.2);
}

.icon-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.icon-placeholder.soul {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.icon-placeholder.xvideo {
    background: #000;
    color: #ff6b00;
}

.icon-placeholder.kuaishou {
    background: #ff6600;
    color: white;
}

.icon-placeholder.twitter {
    background: #1da1f2;
    color: white;
}

.icon-placeholder.youtube {
    background: #000;
    color: #ff0000;
}

.icon-placeholder.manga {
    background: #ff6b00;
    color: white;
}

.icon-placeholder.douyin {
    background: #000;
    color: #ff0050;
}

.icon-placeholder.porn91 {
    background: #4a148c;
    color: white;
    font-weight: bold;
}

.icon-placeholder.pornhub {
    background: #000;
    color: var(--primary-color);
    font-weight: bold;
}

.icon-placeholder.mask {
    background: #000;
    color: white;
}

.icon-placeholder.paradise {
    background: #000;
    color: #ff0000;
}

/* 角标样式 - 背景和阴影由 JS 动态设置 */
.custom-tag {
    position: absolute;
    top: 4px;
    right: 4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 6px;
    font-weight: normal;
    z-index: 10;
}

.content-title {
    font-size: 11px;
    font-weight: 500;
    margin: 0;
    color: #333;
}



/* 外部页面和项目页面样式 - 参考底部菜单视频游戏页面正常显示效果 */
.external-page,
.project-page {
    position: fixed;
    top: env(safe-area-inset-top, 0);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 540px;
    height: calc(100vh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0) - 64px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 255, 255, 0.5);
    z-index: 150;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.external-page iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    /* 确保iframe内容可以正常滚动 */
    overflow: auto;
}

/* 确保iframe内容也能正确处理安全区域 */
.external-page iframe[src] {
    /* 强制iframe内容使用安全区域 */
    transform: translateY(0);
}

/* 项目页面内容样式 */
.project-page .project-content {
    padding: 20px;
    color: #333;
    text-align: center;
}

.project-page .project-content h2 {
    margin-bottom: 15px;
    color: #333;
}

.project-page .project-content p {
    color: #666;
    line-height: 1.6;
}

/* 项目页面滚动优化 */
.project-page {
    /* 确保滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.project-page::-webkit-scrollbar {
    width: 6px;
}

.project-page::-webkit-scrollbar-track {
    background: transparent;
}

.project-page::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.project-page::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* 确保项目页面内容可以正常显示和滚动 */
.project-page > * {
    min-height: fit-content;
}

/* 优化项目页面内容布局，减少底部空白 */
.project-page .zhenren-container,
.project-page .qutou-container,
.project-page .laohuj-container {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.project-page .zhenren-main-content,
.project-page .qutou-main-content,
.project-page .laohuj-main-content {
    flex: 1;
}

/* 确保嵌入页面内容完全可见 */
.external-page,
.project-page {
    /* 确保内容区域有足够的底部空间，但不影响滚动 */
    padding-bottom: 0;
}

/* 为项目页面添加额外的底部间距 */
.project-page .zhenren-container,
.project-page .qutou-container,
.project-page .laohuj-container,
.project-page .caipiao-container,
.project-page .guaguale-container,
.project-page .tanzhu-container,
.project-page .qipai-container,
.project-page .dianjing-container,
.project-page .buyu-container,
.project-page .tiyu-container,
.project-page .zhibo-container {
    padding-bottom: 0px;
}

/* 确保轮播图嵌入页面底部显示完整 */
.external-page {
    /* 为轮播图嵌入页面添加额外的底部间距 */
    padding-bottom: 5px;
}

/* 优化轮播图嵌入页面的iframe显示 */
.external-page iframe {
    /* 确保iframe内容不会被底部导航栏遮挡 */
    margin-bottom: 0px;
}

/* 外部页面和项目页面加载动画 */
.external-page-loading,
.project-page-loading {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    display: none !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    transition: opacity 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
}

.external-page-loading .loading-spinner,
.project-page-loading .loading-spinner {
    width: 50px !important;
    height: 50px !important;
    border: 4px solid #f0f0f0 !important;
    border-top: 4px solid var(--primary-color, #ff9500) !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin: 0 !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.external-page-loading .loading-text,
.project-page-loading .loading-text {
    margin-top: 20px !important;
    font-size: 16px !important;
    color: #666 !important;
    font-weight: 500 !important;
    text-align: center !important;
}

.external-page-loading .loading-url,
.project-page-loading .loading-url {
    margin-top: 12px !important;
    font-size: 15px !important;
    color: var(--primary-color, #ff9500) !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
    word-break: break-all !important;
}


/* 年龄认证弹窗样式 */
.adult-warning-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    backdrop-filter: blur(8px);
}

.adult-warning-dialog .dialog-content {
    background: white;
    border-radius: 12px;
    max-width: 90%;
    width: 340px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.adult-warning-dialog .warning-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 20px;
    text-align: center;
}

.adult-warning-dialog .warning-icon-large {
    font-size: 40px;
    margin-bottom: 8px;
}

.adult-warning-dialog h3 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.adult-warning-dialog .warning-body {
    padding: 20px;
    text-align: center;
}

.adult-warning-dialog .warning-title {
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.adult-warning-dialog .warning-text {
    color: #666;
    line-height: 1.6;
    font-size: 13px;
}

.adult-warning-dialog .warning-buttons {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px 20px;
}

.adult-warning-dialog .confirm-btn {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb, 255, 149, 0), 0.2);
    transition: all 0.2s ease;
}

.adult-warning-dialog .confirm-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb, 255, 149, 0), 0.3);
}

.adult-warning-dialog .confirm-btn:active {
    transform: translateY(0);
}

.adult-warning-dialog .cancel-btn {
    flex: 1;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.adult-warning-dialog .cancel-btn:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
}

.adult-warning-dialog .cancel-btn:active {
    transform: scale(0.98);
}

.adult-warning-dialog .btn-icon {
    font-size: 14px;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 540px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 200;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s;
    flex: 1;
}

.nav-item.active .nav-text {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    position: relative;
}

.nav-icon-img,
.nav-icon-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    transform-origin: center center;
}

.nav-icon-img {
    object-fit: contain;
}

.nav-icon-svg svg {
    width: 24px;
    height: 24px;
    display: block;
}

.nav-icon-img.normal,
.nav-icon-svg.normal {
    opacity: 1;
}

.nav-icon-img.active,
.nav-icon-svg.active {
    opacity: 0;
}

.nav-item.active .nav-icon-img.normal,
.nav-item.active .nav-icon-svg.normal {
    opacity: 0;
}

.nav-item.active .nav-icon-img.active,
.nav-item.active .nav-icon-svg.active {
    opacity: 1;
}

.nav-item.active .nav-icon-svg.active {
    transform: scale(1.15);
    transition: transform 0.3s ease-out, opacity 0.3s ease;
}

.nav-text {
    font-size: 12px;
    color: #666;
    transition: color 0.3s ease;
}

/* 移除响应式设计，使用固定宽度 */

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 滚动条样式 */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6850e;
}

/* 页面内容容器 */
.page-content {
    padding: 20px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

/* 页面头部 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background: rgba(var(--primary-color-rgb, 255, 149, 0), 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-color-rgb, 255, 149, 0), 0.2);
}

.page-header h2 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

.page-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 动态列表样式 */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-color-rgb, 255, 149, 0), 0.1);
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb, 255, 149, 0), 0.15);
    border-color: rgba(var(--primary-color-rgb, 255, 149, 0), 0.3);
}

.activity-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-color-rgb, 255, 149, 0), 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.activity-content p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

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

/* 个人资料页面样式 */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(var(--primary-color-rgb, 255, 149, 0), 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-color-rgb, 255, 149, 0), 0.2);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb, 255, 149, 0), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-placeholder {
    font-size: 28px;
    color: var(--primary-color);
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.profile-info p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
}

.vip-badge {
    display: inline-block;
    padding: 4px 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* 菜单样式 */
.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-color-rgb, 255, 149, 0), 0.1);
    overflow: hidden;
}

.menu-section h4 {
    margin: 0;
    padding: 16px 20px 8px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: bold;
    background: rgba(var(--primary-color-rgb, 255, 149, 0), 0.05);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(var(--primary-color-rgb, 255, 149, 0), 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.menu-item:hover {
    background: rgba(var(--primary-color-rgb, 255, 149, 0), 0.05);
}

.menu-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.menu-text {
    flex: 1;
    color: #333;
    font-size: 16px;
}

.menu-arrow {
    color: #ccc;
    font-size: 16px;
}


/* 悬浮按钮动画 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


