/* 竞品UI复制 - 测量主页样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #F5F5F5;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: #F5F5F5;
    min-height: 100vh;
    position: relative;
    padding-bottom: 90px;
}

/* 主内容区域 */
.main-content {
    padding: 20px 20px 20px 20px;
}

/* 头部标题 */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.app-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.discount-badge {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 测量按钮区域 */
.measurement-section {
    text-align: center;
    margin-bottom: 30px;
}

.start-measurement-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF7B7B, #FF5656);
    border: none;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.start-measurement-btn:active {
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-icon {
    margin-bottom: 8px;
}

.btn-text {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.last-measurement {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.principle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EBF4FF;
    color: #4A90E2;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.principle-btn:hover {
    background: #D6E9FF;
}

/* 进度追踪区域 */
.progress-section {
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.progress-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF8FA3, #FF6B9D);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.progress-content {
    flex: 1;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.progress-arrow {
    flex-shrink: 0;
}

.progress-bar-container {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #FFE8E8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF69B4, #FF1493);
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.progress-day {
    color: #999;
    font-weight: 500;
}

.progress-day.active {
    color: #FF1493;
}

/* 健康报告区域 */
.reports-section {
    margin-bottom: 20px;
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reports-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.powered-text {
    color: #999;
}

.ai-model {
    color: #4A90E2;
    font-weight: 600;
}

.report-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.report-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.report-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.card-content {
    margin-bottom: 8px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 12px;
    color: #999;
}

.card-arrow {
    position: absolute;
    bottom: 12px;
    right: 16px;
    color: #999;
    font-size: 20px;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.3s;
    flex: 1;
    color: #999;
}

.nav-item.active {
    color: #9B6FFF;
}

.nav-item:not(.nav-center):hover {
    color: #9B6FFF;
}

.nav-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
}

.nav-center {
    position: relative;
    margin-top: -30px;
}

.center-button-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #FF4081);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
    z-index: 2;
}

.center-button:active {
    transform: scale(0.9);
}

.button-decoration {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid #9B6FFF;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    z-index: 1;
    opacity: 0.9;
}

/* Home Indicator */
.home-indicator {
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .app-title {
        font-size: 20px;
    }

    .start-measurement-btn {
        width: 180px;
        height: 180px;
    }

    .btn-text {
        font-size: 18px;
    }

    .report-cards {
        gap: 10px;
    }

    .report-card {
        padding: 14px;
    }

    .card-title {
        font-size: 14px;
    }
}

@media (min-width: 481px) {
    .bottom-nav {
        max-width: 480px;
    }
}
