/* iPhone 15样式模拟 */
.iphone-container {
    position: relative;
    width: 375px;
    height: 812px;
    margin: 0 auto;
}

.iphone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background-color: #000;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.screen {
    position: relative;
    width: 100%;
    height: calc(100% - 70px);
    background-color: #fff;
    overflow: hidden;
}

.screen iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e0e0e0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 25%;
    height: 100%;
    color: #888;
    font-size: 10px;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: #4CAF50;
}

/* 通用样式 */
.app-container {
    padding: 16px;
    height: 100%;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.points-badge {
    background-color: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
}

.points-badge i {
    margin-right: 4px;
}

/* 植物相关样式 */
.plant-container {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.plant-model {
    width: 200px;
    height: 200px;
    position: relative;
}

.plant-status {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #666;
}

/* 签到按钮样式 */
.checkin-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
    transition: all 0.3s;
}

.checkin-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.checkin-btn i {
    margin-right: 8px;
}

/* 商城样式 */
.tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 16px;
}

.tab {
    padding: 8px 16px;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.tab.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.product-info {
    padding: 12px;
}

.product-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.product-price {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.points-price {
    color: #FF6B00;
    font-weight: bold;
    margin-right: 8px;
}

.cash-price {
    color: #999;
}

/* 任务中心样式 */
.task-card {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.task-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.task-reward {
    color: #FF6B00;
    font-size: 14px;
    font-weight: bold;
}

.task-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.task-progress {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 3px;
}

.task-action {
    display: flex;
    justify-content: flex-end;
}

.task-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
}

/* 倒计时组件 */
.countdown {
    background-color: rgba(255, 107, 0, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.countdown-icon {
    color: #FF6B00;
    font-size: 24px;
    margin-right: 12px;
}

.countdown-info {
    flex: 1;
}

.countdown-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.countdown-timer {
    font-size: 12px;
    color: #FF6B00;
}

/* 分享助力样式 */
.share-card {
    background-color: #E8F5E9;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.share-info {
    flex: 1;
}

.share-title {
    font-size: 16px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 8px;
}

.share-desc {
    font-size: 12px;
    color: #666;
}

.share-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.share-btn i {
    margin-right: 4px;
}

/* 成就展示 */
.achievement {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.achievement-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.achievement-title i {
    color: #FFD700;
    margin-right: 8px;
}

.achievement-items {
    display: flex;
    justify-content: space-between;
}

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}

.achievement-icon {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    color: #999;
    font-size: 24px;
}

.achievement-icon.unlocked {
    background-color: #E8F5E9;
    color: #4CAF50;
}

.achievement-name {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* 黄金灌溉期样式 */
.golden-period {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    color: white;
}

.golden-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.golden-title i {
    margin-right: 8px;
}

.golden-desc {
    font-size: 12px;
    margin-bottom: 12px;
}

.golden-timer {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}