/* 通用样式 */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.app-container {
    min-height: 100vh;
    background-color: #f7f8fa;
    position: relative;
}

.content {
    padding-top: 60px; /* 状态栏 + 标题栏高度 */
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
    margin-bottom: 16px;
}

/* 天气图标动效 */
.weather-icon {
    transition: all 0.3s;
}

.weather-icon:hover {
    transform: scale(1.1);
}

/* 天气情况动画 */
@keyframes sunny {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rainy {
    0% { transform: translateY(0px); }
    50% { transform: translateY(4px); }
    100% { transform: translateY(0px); }
}

@keyframes cloudy {
    0% { transform: translateX(0px); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(0px); }
}

.animate-sunny {
    animation: sunny 10s linear infinite;
}

.animate-rainy {
    animation: rainy 1.5s ease-in-out infinite;
}

.animate-cloudy {
    animation: cloudy 5s ease-in-out infinite;
}

/* 身心状况选择样式 */
.health-status-chip {
    background-color: #f3f4f6;
    border-radius: 20px;
    padding: 6px 12px;
    margin: 4px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.health-status-chip.selected {
    background-color: #3b82f6;
    color: white;
}

/* Popup样式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: flex;
    align-items: flex-end;
}

.popup-content {
    background-color: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    transform: translateY(0);
    animation: slideUp 0.3s ease-out;
}

.popup-close {
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.popup-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

@keyframes slideUp {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}

/* 轮播图样式 */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 100%;
}

.carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicator.active {
    background-color: white;
} 