/* iPhone 15 样式 */
.phone-container {
    width: 100%;
    margin-bottom: 2rem;
    background-color: #f8f8f8;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.phone-header {
    height: 30px;
    background-color: #000;
    position: relative;
}

.phone-notch {
    width: 50%;
    height: 20px;
    background-color: #000;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.phone-frame {
    height: 600px;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

.phone-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
    overflow: auto;            /* 保持内容可滚动 */
}

/* 滚动条隐藏 */
.phone-frame::-webkit-scrollbar,
.phone-frame iframe::-webkit-scrollbar,
body::-webkit-scrollbar,
div::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

html, body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* 通用样式 */
:root {
    --primary-color: #52C873;       /* 主题色：花伴绿 */
    --primary-light: #E8F6ED;       /* 浅绿色背景 */
    --primary-dark: #3AA655;        /* 深绿色 */
    --secondary-color: #8BC34A;     /* 次要绿色 */
    --accent-color: #4CAF50;        /* 强调色 */
    --text-primary: #333333;        /* 主要文字颜色 */
    --text-secondary: #666666;      /* 次要文字颜色 */
    --text-light: #999999;          /* 浅色文字 */
    --bg-color: #F5F7F9;            /* 背景色 */
    --card-bg: #FFFFFF;             /* 卡片背景色 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;     /* Firefox */
    overflow-y: auto;                    /* 保持可以滚动 */
}

/* 底部导航栏 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: white;
    padding: 0.75rem 0.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 50;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
}

.tab-item.active {
    color: var(--primary-color);
}

.tab-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* 卡片样式 */
.card {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(82, 200, 115, 0.1);
}

/* 进度条样式 */
.progress-bar {
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-value {
    height: 100%;
    border-radius: 9999px;
}

/* 主题颜色 - 花伴绿色系 */
.health-theme {
    color: var(--primary-color);
}

.health-bg {
    background-color: var(--primary-color);
}

.health-light-bg {
    background-color: var(--primary-light);
}

/* 理财模块颜色 */
.finance-theme {
    color: var(--secondary-color);
}

.finance-bg {
    background-color: var(--secondary-color);
}

.finance-light-bg {
    background-color: rgba(139, 195, 74, 0.1);
}

/* 社区模块颜色 */
.community-theme {
    color: var(--accent-color);
}

.community-bg {
    background-color: var(--accent-color);
}

.community-light-bg {
    background-color: rgba(76, 175, 80, 0.1);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    border: 1px solid #d1d5db;
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, 
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    font-weight: 500;
    color: var(--text-secondary);
}

/* 活动卡片 */
.activity-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: white;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(82, 200, 115, 0.1);
}

.activity-image {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* 头像样式 */
.avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.avatar-sm {
    width: 2rem;
    height: 2rem;
}

.avatar-lg {
    width: 4rem;
    height: 4rem;
}

/* 适合中老年人的更大字体 */
.text-base {
    font-size: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
}

/* 轮播指示器 */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #d1d5db;
    margin: 0 0.25rem;
}

.indicator.active {
    background-color: var(--primary-color);
}

/* 扁平化设计风格的阴影效果 */
.shadow-soft {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 图标背景样式 */
.icon-bg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    margin-right: 12px;
}

/* 功能卡片样式 */
.feature-card {
    border-radius: 12px;
    background-color: white;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    border: 1px solid rgba(82, 200, 115, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 植物卡片样式 */
.plant-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    border: 1px solid rgba(82, 200, 115, 0.1);
    transition: transform 0.2s ease;
}

.plant-card:hover {
    transform: translateY(-2px);
}

.plant-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.plant-info {
    padding: 12px;
}

.plant-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.plant-desc {
    color: var(--text-secondary);
    font-size: 12px;
}

/* 底部导航样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

/* 顶部导航栏样式 */
.top-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 功能入口样式 */
.feature-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 20px;
}

.feature-label {
    font-size: 12px;
    color: var(--text-primary);
}

/* 提示卡片样式 */
.tip-card {
    background-color: var(--primary-light);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary-color);
}

.tip-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.tip-content {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 数据指标样式 */
.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.metric-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 标签样式 */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 4px;
}

.tag-green {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.tag-blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

/* 用户等级标识 */
.user-level {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
} 