@charset "utf-8";
/* CSS Document - 公用基础样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}
:root {
    --primary-color: #1a7f5c;
    --secondary-color: #2ecc71;
    --accent-color: #f39c12;
    --personal-color: #3498db;
    --business-color: #9b59b6;
    --government-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --shadow-light: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-medium: 0 6px 20px rgba(0,0,0,0.12);
    --tab-bar-height: 70px;
    --safe-area-bottom: env(safe-area-inset-bottom);
}
html, body {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}
body {
    background-color: #f8f9fa;
    color: #333;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.quick-access-section {
    background: white;
    margin: 0 0 18px;   /* 上下边距保留，左右边距移除 */
    border-radius: 15px;
    padding: 20px 6px;  /* 上下20px，左右16px */
    box-shadow: var(--shadow-light);
}
/* 状态栏 */
.status-bar {
    background: linear-gradient(135deg, #1a7f5c, #27ae60, #2ecc71);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    flex-shrink: 0;
    padding-top: max(12px, env(safe-area-inset-top));
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.status-left {
    display: flex;
    align-items: center;
    flex: 1;
}
.logo {
    font-weight: 700;
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}
.page-title {
    font-weight: 600;
    font-size: 15px;
    flex: 1;
    text-align: center;
    margin-right: 15px;
}
.status-icons {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: 0.3s;
}
/* 主内容区 */
.main-content {
    flex: 1;
    overflow-y: auto;
    background-color: #fff;
    position: relative;
    width: 100%;
    -webkit-overflow-scrolling: touch;
	padding-bottom: 70px;  /* 为底部导航留出空间 */
}
.main-content::-webkit-scrollbar {
    width: 0;
    display: none;
}
/* 搜索框 */
.search-container {
    padding: 15px 20px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}
.search-box {
    background: #f5f5f5;
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}
.search-box.active {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(26,127,92,0.3);
}
.search-box i {
    color: #999;
    margin-right: 10px;
    font-size: 16px;
    flex-shrink: 0;
}
.search-box input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 14px;
    outline: none;
    color: #333;
    caret-color: var(--primary-color);
}
.search-box input::placeholder {
    color: #999;
}
.pull-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1a7f5c, #2ecc71);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.search-container.pulling .pull-indicator {
    transform: scaleX(1);
}
.pull-trigger {
    position: relative;
    width: 100%;
}
/* 公用卡片、列表等 */
.portal-header {
    background: linear-gradient(135deg, #1a7f5c, #27ae60, #2ecc71);
    color: white;
    padding: 25px 20px;
    border-radius: 0 0 25px 25px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin-top: 0;
}
.portal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}
.portal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.portal-subtitle {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}
.announcement-section {
    background: white;
    margin: 20px;
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 2;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}
.section-title i {
    margin-right: 8px;
    color: var(--primary-color);
}
.section-more {
    font-size: 14px;
    color: var(--primary-color);
}
.announcement-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}
.announcement-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.announcement-item:last-child {
    border-bottom: none;
}
.announcement-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-size: 16px;
}
.announcement-content {
    flex: 1;
}
.announcement-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark-color);
}
.announcement-time {
    font-size: 12px;
    color: #999;
}
/* 最新商家基础样式（各页面可覆盖） */
.recent-apps-section {
    background: white;
    margin: 0 20px 20px;
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-light);
}
.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.app-item {
    text-align: center;
    cursor: pointer;
}
.app-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 24px;
    box-shadow: var(--shadow-light);
    transition: transform 0.2s;
}
.app-icon:hover {
    transform: scale(1.05);
}
.app-name {
    font-size: 12px;
    color: var(--dark-color);
}
.portal-stats {
    display: flex;
    background: white;
    margin: 20px;
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 2;
}
.stat-item {
    flex: 1;
    text-align: center;
}
.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.stat-label {
    font-size: 12px;
    color: #666;
}
/* 下拉面板 */
.pull-page-container {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    overflow-y: auto;
    display: none;
    border-radius: 20px 20px 0 0;
}
.pull-page-container.show {
    transform: translateY(100%);
    display: block;
}
.pull-page-container.hiding {
    transform: translateY(0);
}
.pull-page-content {
    padding-top: 20px;  /* 首页下拉面板距离顶部留白高度 */
	overflow-x: hidden;  
}
.pull-page-header {
    background: linear-gradient(135deg, #1a7f5c, #27ae60);
    color: white;
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.pull-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}
.pull-page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}
.pull-page-subtitle {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}
.pull-page-apps {
    padding: 0 20px 30px;
}
.pull-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}
.pull-app-item {
    text-align: center;
    cursor: pointer;
}
.pull-app-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 28px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s;
}
.pull-app-icon:hover {
    transform: scale(1.1) rotate(5deg);
}
.pull-app-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-color);
}
.pull-app-desc {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}
/* 探索页、发现页等公用组件 */
.explore-section {
    padding: 20px;
    margin-bottom: 10px;
}
.explore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.explore-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    transition: transform 0.1s;
}
.explore-card:active {
    transform: scale(0.98);
}
.explore-img {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #1a7f5c, #27ae60);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}
.explore-content {
    padding: 15px;
}
.explore-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}
.explore-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
}
.explore-tag {
    display: inline-block;
    background: var(--light-color);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}
.metaverse-scene {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
}
.scene-header {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.scene-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.scene-title i {
    margin-right: 8px;
}
.scene-list {
    padding: 15px;
}
.scene-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.scene-rank {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
}
.scene-info {
    flex: 1;
}
.scene-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--dark-color);
}
.scene-desc {
    font-size: 12px;
    color: #666;
}
.scene-score {
    font-size: 14px;
    font-weight: 600;
    color: #f39c12;
}
.achievement-rank {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
}
.rank-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rank-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.rank-title i {
    margin-right: 8px;
}
.rank-list {
    padding: 15px;
}
.rank-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.rank-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 12px;
}
.rank-info {
    flex: 1;
}
.rank-user {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--dark-color);
}
.rank-achievement {
    font-size: 12px;
    color: #666;
}
.rank-points {
    font-size: 16px;
    font-weight: 700;
    color: #f39c12;
}
/* 加载动画 */
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.loader.active {
    display: flex;
}
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 底部导航标准样式（各页面可覆盖） */
.tab-bar {
    background: white;
    height: var(--tab-bar-height);
    display: flex;
    border-top: 1px solid #eaeaea;
    width: 100%;
    max-width: 450px;
    position: fixed;
    bottom: 0;
    padding-bottom: var(--safe-area-bottom);
    z-index: 1000;
}
.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #888;
    transition: color 0.2s;
    font-size: 11px;
    padding: 8px 0;
    cursor: pointer;
}
.tab-item.active {
    color: var(--primary-color);
}
.tab-item i {
    font-size: 22px;
    margin-bottom: 4px;
}
/* 响应式 */
@media (max-width: 380px) {
    .apps-grid, .pull-apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .explore-grid {
        grid-template-columns: 1fr;
    }
}
@supports (padding: max(0px)) {
    .tab-bar {
        padding-bottom: max(20px, var(--safe-area-bottom));
    }
}
.seo-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}