/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 全局链接样式 */
a {
    text-decoration: none;  /* 移除下划线 */
    color: inherit;         /* 继承父元素颜色，不使用浏览器默认蓝色 */
    outline: none;          /* 移除点击时的轮廓线 */
}

/* 链接形式的卡片样式 */
a.app-card,
a.ad-card-large, 
a.ad-card-small, 
a.sidebar-ad, 
a.sticky-ad-item,
a.floating-ad {
    text-decoration: none;
    color: var(--text-color);
    display: flex;  /* 保持flex布局 */
}

/* 确保链接形式的卡片hover状态也没有下划线 */
a.app-card:hover,
a.ad-card-large:hover, 
a.ad-card-small:hover, 
a.sidebar-ad:hover, 
a.sticky-ad-item:hover,
a.floating-ad:hover {
    text-decoration: none;
    color: var(--text-color);
}

:root {
    /* 浅色模式颜色 */
    --primary-color: #ff80ab;  /* 主粉色 */
    --primary-light: #ffb2c1;  /* 浅粉色 */
    --primary-dark: #c94f7c;   /* 深粉色 */
    --white: #ffffff;          /* 白色 */
    --light-gray: #f5f5f5;     /* 浅灰色 */
    --dark-gray: #333333;      /* 深灰色 */
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);  /* 阴影 */
    --gradient: linear-gradient(135deg, #ff80ab 0%, #fda7df 100%); /* 渐变色 */
    --bg-overlay: rgba(255, 255, 255, 0.85);  /* 背景遮罩 */
    --text-color: #333333;     /* 文字颜色 */
    --card-bg: #ffffff;        /* 卡片背景 */
    --border-color: #eeeeee;   /* 边框颜色 */
    --modal-overlay: rgba(0, 0, 0, 0.5);      /* 模态框遮罩 */
}

/* 暗色模式颜色变量 */
[data-theme="dark"] {
    --primary-color: #ff80ab;  /* 保持主色调 */
    --primary-light: #c94f7c;  /* 暗模式下的浅色调整 */
    --primary-dark: #ff9bb9;   /* 暗模式下的深色调整 */
    --white: #1a1a1a;          /* 暗背景 */
    --light-gray: #121212;     /* 暗模式浅灰 */
    --dark-gray: #f0f0f0;      /* 暗模式深灰 */
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);  /* 暗模式阴影 */
    --gradient: linear-gradient(135deg, #ff80ab 0%, #c94f7c 100%); /* 暗模式渐变 */
    --bg-overlay: rgba(0, 0, 0, 0.85);        /* 暗模式背景遮罩 */
    --text-color: #f0f0f0;     /* 暗模式文字颜色 */
    --card-bg: #2a2a2a;        /* 暗模式卡片背景 */
    --border-color: #3a3a3a;   /* 暗模式边框颜色 */
    --modal-overlay: rgba(0, 0, 0, 0.75);     /* 暗模式模态框遮罩 */
}

body {
    background-color: var(--light-gray);
    background-image: url('https://picsum.photos/1920/1080?blur=5');
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    transition: all 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-overlay);
    z-index: -1;
    transition: background-color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
}

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 25px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    transition: background 0.3s ease;
}

header h1 {
    color: var(--primary-color);
    font-size: 2.2em;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    transition: color 0.3s ease;
}

header h1::after {
    content: '✨';
    font-size: 0.5em;
    position: absolute;
    top: 0;
    margin-left: 5px;
    animation: sparkle 2s infinite;
}

/* 头部控制容器 */
.header-controls {
    display: flex;
    align-items: center;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.search-box {
    display: flex;
    border: 2px solid var(--primary-light);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-right: 8px; /* 减小右侧间距，使主题切换按钮更靠近 */
}

.search-box.focused {
    box-shadow: 0 0 0 3px rgba(255, 128, 171, 0.3);
    transform: translateY(-2px);
}

.search-box input {
    border: none;
    outline: none;
    padding: 12px 20px;
    width: 300px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.search-box button {
    background: var(--gradient);
    border: none;
    color: var(--white);
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: linear-gradient(135deg, #c94f7c 0%, #e97ab7 100%);
}

/* 主题切换按钮 */
.theme-switch {
    position: relative;
    width: 50px;
    height: 26px;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 0; /* 去掉左边距 */
}

.theme-switch-track {
    width: 100%;
    height: 100%;
    background-color: var(--border-color);
    border-radius: 13px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-switch-thumb {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-switch-thumb {
    left: calc(100% - 25px);
}

/* 标签页样式 */
.tabs {
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

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

.tab-btn {
    padding: 15px 20px;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-top: 3px solid transparent;
    position: relative;
}

.tab-btn:hover {
    opacity: 1;
    background-color: rgba(255, 128, 171, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    opacity: 1;
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

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

/* 应用卡片网格 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 修改为固定3列 */
    gap: 20px;
}

/* 应用卡片 */
.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 20px 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    opacity: 0;
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.app-card:hover::before {
    opacity: 1;
}

.app-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 128, 171, 0.3);
    overflow: hidden; /* 确保圆形裁剪图片 */
    margin: 0 auto 15px; /* 修改：移除右侧margin，添加下方margin */
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片覆盖整个区域并保持比例 */
    transition: all 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(5deg);
}

.app-card:hover .app-icon img {
    transform: scale(1.05); /* 图片略微放大但不旋转，避免失真 */
}

.app-info {
    flex-grow: 1;
    width: 100%; /* 添加：确保信息区域宽度为100% */
    text-align: center; /* 添加：确保文本居中 */
}

.app-info h3 {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.app-card:hover .app-info h3 {
    color: var(--primary-color);
}

.app-info p {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

/* 移除打开按钮 */
.app-card::after {
    display: none;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transition: background 0.3s ease;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

.footer-links a:hover::after {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr); /* 大屏幕显示3列 */
    }
}

@media (max-width: 992px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板屏幕显示2列 */
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }
    
    header h1 {
        margin-bottom: 15px;
        font-size: 1.8em;
    }
    
    .header-controls {
        width: 100%;
        justify-content: center;
    }
    
    .search-box {
        width: 100%;
        margin-right: 8px;
    }
    
    .tab-header {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        padding: 15px 20px;
        font-size: 0.9em;
    }
    
    .app-grid {
        grid-template-columns: repeat(2, 1fr); /* 移动端显示2列 */
        gap: 15px; /* 缩小间距 */
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .app-card {
        padding: 15px;
    }
    
    .app-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4em;
        margin: 0 auto 10px; /* 更新：确保在移动端也居中，减小下边距 */
    }
    
    .app-card::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-controls {
        flex-direction: row;
    }
    
    .search-box {
        width: calc(100% - 58px);
    }
    
    .theme-switch {
        margin-left: 8px;
    }
    
    .app-card {
        padding: 12px 3px;
    }
    
    .app-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
        margin: 0 auto 8px; /* 更新：确保在小屏幕上也居中，进一步减小下边距 */
    }
    
    .app-info h3 {
        font-size: 1em;
        margin-bottom: 3px;
    }
    
    .app-info p {
        font-size: 0.8em;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 页面加载动画 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-light);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

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

/* 滚动到顶部按钮 */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* 新增分类标签颜色 */
.tab-btn[data-tab="entertainment"] {
    border-top: 3px solid #ff4081;
}

.tab-btn[data-tab="tools"] {
    border-top: 3px solid #2196f3;
}

.tab-btn[data-tab="social"] {
    border-top: 3px solid #4caf50;
}

.tab-btn[data-tab="games"] {
    border-top: 3px solid #ff9800;
}

.tab-btn[data-tab="welfare"] {
    border-top: 3px solid #9c27b0;
}

/* 模态框样式 */
.app-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    transition: background-color 0.3s ease;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.5s ease;
    transition: all 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
    opacity: 1;
}

.modal-content .app-icon {
    margin: 0 auto 20px;
    transform: scale(1.3);
}

.modal-content h2 {
    color: var(--text-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.modal-content p {
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.download-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 128, 171, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 128, 171, 0.4);
}

/* 搜索结果样式 */
.highlight {
    background-color: rgba(255, 128, 171, 0.3);
    border-radius: 3px;
    padding: 0 2px;
    font-weight: bold;
}

[data-theme="dark"] .highlight {
    background-color: rgba(255, 128, 171, 0.2);
}

.search-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 25px;
    color: var(--text-color);
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px dashed var(--border-color);
}

.search-message i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.1em;
}

.search-message span {
    font-weight: bold;
    color: var(--primary-color);
}

.tab-btn[data-tab="search-results"] {
    background-color: rgba(255, 128, 171, 0.1);
    opacity: 1;
}

.badge-category {
    background: linear-gradient(135deg, #3f51b5 0%, #7986cb 100%);
}

/* 滚动公告样式 */
.announcement-bar {
    background: var(--gradient);
    color: white;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.announcement-icon {
    margin-right: 15px;
    font-size: 1.2em;
    animation: pulse 2s infinite;
}

.announcement-content {
    flex: 1;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.announcement-list {
    position: absolute;
    width: 100%;
    animation: scrollText 12s infinite;
    margin: 0;
    padding: 0;
    list-style: none;
}

.announcement-list li {
    height: 24px;
    line-height: 24px;
    font-weight: 500;
}

@keyframes scrollText {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-24px); }
    50%, 70% { transform: translateY(-48px); }
    75%, 95% { transform: translateY(-72px); }
    100% { transform: translateY(0); }
}

/* 功能按钮区域 */
.feature-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: var(--card-bg);
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.feature-btn i {
    margin-right: 8px;
    font-size: 1.1em;
}

.feature-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 128, 171, 0.3);
}

/* 模态框样式扩展 */
.feature-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    transition: background-color 0.3s ease;
}

.feature-modal-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.5s ease;
    transition: all 0.3s ease;
}

.feature-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.feature-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-modal-close:hover {
    opacity: 1;
    color: var(--primary-color);
    background-color: rgba(255, 128, 171, 0.1);
}

.feature-modal-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 1.5em;
}

.feature-modal-title {
    font-size: 1.5em;
    color: var(--text-color);
    margin: 0;
}

.feature-modal-body {
    margin-bottom: 25px;
    color: var(--text-color);
    line-height: 1.6;
}

.feature-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.feature-modal-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-modal-btn.primary {
    background: var(--gradient);
    color: white;
    border: none;
}

.feature-modal-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.feature-modal-form {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 128, 171, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .feature-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .feature-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .announcement-bar {
        padding: 10px 15px;
    }
    
    .announcement-icon {
        margin-right: 10px;
    }
    
    .announcement-content {
        height: 20px; /* 减小高度 */
    }
    
    .announcement-list li {
        height: 20px; /* 减小高度 */
        line-height: 20px; /* 调整行高 */
        font-size: 0.9em; /* 减小字体大小 */
    }
    
    @keyframes scrollText {
        0%, 20% { transform: translateY(0); }
        25%, 45% { transform: translateY(-20px); } /* 调整移动距离 */
        50%, 70% { transform: translateY(-40px); } /* 调整移动距离 */
        75%, 95% { transform: translateY(-60px); } /* 调整移动距离 */
        100% { transform: translateY(0); }
    }
    
    /* 随机推荐弹窗样式 - 移动端调整 */
    .feature-modal-content {
        padding: 20px 15px;
    }
    
    .feature-modal-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .feature-modal-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3em;
        margin-right: 10px;
    }
    
    .feature-modal-title {
        font-size: 1.3em;
    }
    
    .feature-modal-body {
        margin-bottom: 15px;
    }
    
    .feature-modal-body p {
        margin-bottom: 10px;
    }
    
    #randomAppContainer {
        margin-top: 10px;
    }
    
    .random-app-card {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .random-app-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
        margin-right: 10px;
    }
    
    .random-app-info h3 {
        font-size: 0.95em;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .random-app-info p {
        font-size: 0.85em;
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .random-app-tags {
        margin-bottom: 5px;
    }
    
    .random-app-tag {
        font-size: 0.7em;
        padding: 2px 6px;
    }
    
    .random-app-action {
        margin-left: 8px;
    }
    
    .random-app-btn {
        padding: 4px 10px;
        font-size: 0.8em;
    }
    
    .feature-modal-footer {
        gap: 8px;
    }
    
    .feature-modal-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

/* 随机推荐卡片样式 */
.random-app-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.random-app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.random-app-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8em;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.random-app-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.random-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.random-app-info {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

.random-app-info h3 {
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 1.1em;
}

.random-app-info p {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.random-app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.random-app-tag {
    background-color: rgba(255, 128, 171, 0.1);
    color: var(--primary-color);
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 10px;
}

.random-app-action {
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
}

.random-app-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.random-app-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.random-app-card {
    animation: fadeInUp 0.5s forwards;
}

.random-app-card:nth-child(1) {
    animation-delay: 0.1s;
}

.random-app-card:nth-child(2) {
    animation-delay: 0.2s;
}

.random-app-card:nth-child(3) {
    animation-delay: 0.3s;
}

#randomAppContainer {
    margin-top: 20px;
}

/* 广告相关样式 */
/* 广告标签通用样式 */
/* 广告卡片样式 */
.ad-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 128, 171, 0.1) 0%, rgba(253, 167, 223, 0.1) 100%);
    border: 1px dashed var(--primary-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.ad-card:hover {
    background: linear-gradient(135deg, rgba(255, 128, 171, 0.2) 0%, rgba(253, 167, 223, 0.2) 100%);
}

.ad-card .app-icon {
    background: linear-gradient(135deg, #fda7df 0%, #ff80ab 100%);
}

/* 广告横幅样式 */
.ad-banner {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.ad-content {
    position: relative;
    padding: 15px;
}

.ad-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
}

.ad-banner-text {
    flex: 1;
}

.ad-banner-text h3 {
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 1.2em;
}

.ad-banner-text p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9em;
}

.ad-banner-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.ad-banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 128, 171, 0.3);
}

.ad-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8em;
    z-index: 10;
    transition: all 0.3s ease;
}

.ad-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* 大型广告卡片 */
.ad-card-large {
    grid-column: 1 / -1;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
    border: 1px solid var(--border-color);
}

.ad-card-content {
    display: flex;
    align-items: center;
}

.ad-img {
    width: 40%;
    height: auto;
    object-fit: cover;
}

.ad-card-info {
    padding: 20px;
    flex: 1;
}

.ad-card-info h3 {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 10px;
}

.ad-card-info p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 15px;
}

.ad-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 128, 171, 0.3);
}

/* 小型广告卡片 */
.ad-card-small {
    display: flex;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-color);
    height: 100px;
    animation: fadeIn 0.5s ease;
}

.ad-card-small-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    width: 100%;
}

.ad-card-small-text {
    flex: 1;
    padding-right: 10px;
}

.ad-card-small-text h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 1em;
}

.ad-card-small-text p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.8em;
}

.ad-small-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

/* 游戏推广卡片 */
.game-ad {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 1px dashed #ff9800;
}

.game-ad .app-icon {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
}

.game-ad:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 193, 7, 0.2) 100%);
}

/* 主要内容与侧边栏布局 */
.main-content-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.main-content {
    flex: 1;
}

/* 侧边栏广告 */
.sidebar-ads {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-ad {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.5s ease;
}

.sidebar-ad-content {
    padding: 15px;
    text-align: center;
}

.sidebar-ad-content h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.sidebar-ad-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.sidebar-ad-content p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.sidebar-ad-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.sidebar-ad-btn.small {
    padding: 5px 10px;
    font-size: 0.85em;
}

.sidebar-ad-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 128, 171, 0.3);
}

/* 浮动广告 */
.sticky-ad {
    position: sticky;
    top: 100px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.sticky-ad h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.sticky-ad h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.sticky-ad-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.sticky-ad-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    background-color: var(--card-bg);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.sticky-ad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 128, 171, 0.2);
    border-color: var(--primary-light);
}

.sticky-ad-item img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sticky-ad-item:hover img {
    transform: scale(1.1) rotate(5deg);
}

.sticky-ad-item span {
    color: var(--text-color);
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sticky-ad-item:hover span {
    color: var(--primary-color);
}

/* 底部横幅广告 */
.bottom-banner {
    margin-top: 20px;
}

.bottom-banner-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 悬浮广告 */
.floating-ad {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 250px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow: hidden;
    animation: slideInUp 0.5s ease;
    border: 1px solid var(--border-color);
}

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

.floating-ad-content {
    display: flex;
    align-items: center;
    padding: 10px;
}

.floating-ad-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 10px;
}

.floating-ad-text {
    flex: 1;
}

.floating-ad-text h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 1em;
}

.floating-ad-text p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.85em;
}

/* 响应式广告调整 */
@media (max-width: 1200px) {
    .main-content-container {
        flex-direction: column;
    }
    
    .sidebar-ads {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-ad {
        flex: 1;
        min-width: 250px;
    }
    
    .sticky-ad {
        position: static;
    }
}

@media (max-width: 768px) {
    .ad-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ad-banner-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .ad-card-large .ad-card-content {
        flex-direction: column;
    }
    
    .ad-card-large .ad-img {
        width: 100%;
    }
    
    .floating-ad {
        width: 100%;
        left: 0;
        bottom: 0;
        border-radius: 15px 15px 0 0;
    }
    
    .sidebar-ads {
        flex-direction: column;
    }
    
    /* 移动端侧边栏广告优化 */
    .sidebar-ad {
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
    }
    
    .sidebar-ad-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 12px;
    }
    
    .sidebar-ad-content h3 {
        margin-bottom: 5px;
        font-size: 1em;
    }
    
    .sidebar-ad-img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        margin-bottom: 0;
        margin-right: 15px;
        flex-shrink: 0;
    }
    
    .sidebar-ad-content .ad-info {
        flex: 1;
    }
    
    .sidebar-ad-content p {
        margin-bottom: 10px;
        font-size: 0.85em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .sidebar-ad-btn {
        width: auto;
        padding: 5px 12px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .ad-banner {
        padding: 10px;
    }
    
    .ad-card-small-inner {
        padding: 10px;
    }
    
    .ad-small-img {
        width: 50px;
        height: 50px;
    }
}

/* 应用卡片角标样式 */
.app-card {
    position: relative;
}

/* 角标基础样式 */
.card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 6px;
    font-size: 0.65em;
    font-weight: bold;
    color: white;
    z-index: 3;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    line-height: 1.2;
}

/* 推荐角标 */
.badge-recommend {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

/* 置顶角标 */
.badge-top {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

/* VPN角标 */
.badge-vpn {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

/* 新上线角标 */
.badge-new {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* 热门角标 */
.badge-hot {
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
}

/* 限时角标 */
.badge-limited {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* 角标前图标 */
.card-badge i {
    margin-right: 2px;
    font-size: 0.8em;
}

/* 移除缎带角标相关样式 */
.ribbon-badge {
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-badge {
        padding: 1px 4px;
        font-size: 0.6em;
        top: 5px;
        right: 5px;
    }
}

/* 安全提示模态框样式 */
.security-warning-modal .modal-content {
    max-width: 450px;
    text-align: center;
    padding: 20px;
}

.security-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 1.8em;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.security-title {
    color: #ff9800;
    margin-bottom: 12px;
    font-size: 1.5em;
}

.security-message {
    margin-bottom: 20px;
    line-height: 1.4;
}

.security-warning {
    color: #e53935;
    font-size: 1.05em;
    font-weight: bold;
    margin-bottom: 12px;
}

.security-detail {
    color: var(--text-color);
    margin-bottom: 12px;
}

.target-url {
    color: #2196f3;
    font-weight: bold;
    word-break: break-all;
}

.app-name-display {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 8px;
    border-radius: 5px;
    margin-top: 12px;
    color: var(--text-color);
    font-size: 0.9em;
}

.security-button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.security-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.continue-btn {
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    color: white;
}

.continue-btn:hover {
    background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);
    transform: translateY(-2px);
}

.cancel-btn {
    background: #f5f5f5;
    color: #757575;
    border: 1px solid #e0e0e0;
}

.cancel-btn:hover {
    background: #eeeeee;
}

/* 暗色模式适配 */
[data-theme="dark"] .cancel-btn {
    background: #424242;
    color: #e0e0e0;
    border: 1px solid #616161;
}

[data-theme="dark"] .cancel-btn:hover {
    background: #505050;
}

[data-theme="dark"] .app-name-display {
    background-color: rgba(255, 255, 255, 0.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .security-warning-modal .modal-content {
        width: 90%;
        padding: 15px;
    }
    
    .security-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    
    .security-title {
        font-size: 1.3em;
    }
    
    .security-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .scroll-top {
        bottom: 90px; /* 上移至悬浮广告上方 */
        right: 20px; /* 右侧距离稍微减小 */
        width: 45px; /* 稍微缩小尺寸 */
        height: 45px; /* 稍微缩小尺寸 */
        font-size: 0.9em; /* 内部图标稍微缩小 */
    }
}

/* 管理入口链接样式 */
.sidebar-admin-link {
    margin-top: 15px;
    text-align: center;
}

.sidebar-admin-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-admin-link a i {
    margin-right: 6px;
}

.sidebar-admin-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
} 