* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 750px;
    margin: 0 auto;
    padding: 20px;
}

/* 上半部：体重秤动画区域 */
.scale-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.scale {
    position: relative;
    width: 280px;
    height: 280px;
    animation: scaleFloat 3s ease-in-out infinite;
}

@keyframes scaleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* 体重秤主体 */
.scale-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: linear-gradient(145deg, #f5f5f5, #e0e0e0);
    border-radius: 35px;
    border: 3px solid #d0d0d0;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.4),
        0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 3px 15px rgba(255, 255, 255, 0.9),
        inset 0 -3px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: screenGlow 2s ease-in-out infinite;
}

/* 体重秤边框光泽效果 */
.scale-screen::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

/* 体重秤金属质感 */
.scale-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 35px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
}

@keyframes screenGlow {
    0%, 100% {
        box-shadow: 
            0 25px 70px rgba(0, 0, 0, 0.4),
            0 15px 35px rgba(0, 0, 0, 0.2),
            inset 0 3px 15px rgba(255, 255, 255, 0.9),
            inset 0 -3px 15px rgba(0, 0, 0, 0.15),
            inset 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 
            0 30px 80px rgba(0, 0, 0, 0.5),
            0 18px 40px rgba(0, 0, 0, 0.25),
            inset 0 3px 15px rgba(255, 255, 255, 0.95),
            inset 0 -3px 15px rgba(0, 0, 0, 0.15),
            inset 0 1px 3px rgba(0, 0, 0, 0.1);
    }
}

/* 液晶显示屏容器 */
.lcd-container {
    position: relative;
    width: 160px;
    height: 70px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 12px;
    border: 4px solid #2a2a2a;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.8),
        inset 0 -1px 3px rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 液晶屏反光效果 */
.lcd-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 100%
    );
    border-radius: 8px 8px 0 0;
    pointer-events: none;
}

/* 液晶屏像素网格效果 */
.lcd-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.3;
    pointer-events: none;
}

.screen-text {
    font-size: 28px;
    font-weight: 700;
    color: #00ff88;
    letter-spacing: 6px;
    text-shadow: 
        0 0 10px rgba(0, 255, 136, 0.8),
        0 0 20px rgba(0, 255, 136, 0.6),
        0 0 30px rgba(0, 255, 136, 0.4);
    font-family: 'Courier New', monospace;
    z-index: 1;
    position: relative;
}

/* 脚印 - 真实脚底形状 */
.scale-feet {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 35px;
}

/* 脚印 - 简笔画风格 */
.footprint {
    position: relative;
    width: 40px;
    height: 56px;
}

.footprint-svg {
    width: 100%;
    height: 100%;
}

/* 简笔画线条样式 */
.sole-outline {
    fill: none;
    stroke: #e0b8a8;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.heel-outline {
    fill: none;
    stroke: #e0b8a8;
    stroke-width: 2;
    stroke-linecap: round;
}

.arch-outline {
    fill: none;
    stroke: #e0b8a8;
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: 0.7;
}

.toe-outline {
    fill: none;
    stroke: #e0b8a8;
    stroke-width: 2;
    stroke-linecap: round;
}

/* 走动动画 - 左脚 */
@keyframes walkLeft {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0) scale(0.9) rotate(-3deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-8px) scale(1) rotate(3deg);
    }
}

/* 走动动画 - 右脚 */
@keyframes walkRight {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0) scale(0.9) rotate(3deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-8px) scale(1) rotate(-3deg);
    }
}

/* 左脚动画 */
.footprint.left {
    animation: walkLeft 2s ease-in-out infinite;
}

/* 右脚动画（延迟1秒） */
.footprint.right {
    animation: walkRight 2s ease-in-out infinite;
    animation-delay: 1s;
}



/* 左脚印走动动画 */
@keyframes walkLeft {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0) scale(0.9) rotate(-3deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-8px) scale(1) rotate(0deg);
    }
}

/* 右脚印走动动画 */
@keyframes walkRight {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0) scale(0.9) rotate(3deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-8px) scale(1) rotate(0deg);
    }
}

/* 下半部：按钮区域 */
.buttons-section {
    display: flex;
    justify-content: space-between;
    padding: 30px 20px 40px;
    gap: 15px;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-btn:active {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-icon {
    font-size: 36px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.nav-btn:hover .btn-icon {
    transform: scale(1.1);
}

.btn-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .scale {
        width: 240px;
        height: 240px;
    }

    .scale-screen {
        width: 170px;
        height: 170px;
    }

    .lcd-container {
        width: 140px;
        height: 60px;
    }

    .screen-text {
        font-size: 24px;
    }

    .footprint {
        width: 36px;
        height: 48px;
    }

    .footprint .toe-big {
        width: 14px;
        height: 18px;
        top: -10px;
    }

    .footprint .toe-2 {
        width: 10px;
        height: 14px;
        top: -7px;
    }

    .footprint .toe-3 {
        width: 8px;
        height: 12px;
        top: -5px;
    }

    .footprint .toe-4 {
        width: 7px;
        height: 10px;
        top: -5px;
    }

    .footprint .toe-5 {
        width: 6px;
        height: 8px;
        top: -7px;
    }

    .buttons-section {
        padding: 20px 10px 30px;
        gap: 10px;
    }

    .nav-btn {
        padding: 20px 8px;
    }

    .btn-icon {
        font-size: 30px;
    }

    .btn-text {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .scale {
        width: 200px;
        height: 200px;
    }

    .scale-screen {
        width: 140px;
        height: 140px;
    }

    .lcd-container {
        width: 120px;
        height: 50px;
    }

    .screen-text {
        font-size: 20px;
    }

    .footprint {
        width: 32px;
        height: 42px;
    }

    .footprint .toe-big {
        width: 12px;
        height: 16px;
        top: -9px;
    }

    .footprint .toe-2 {
        width: 9px;
        height: 12px;
        top: -6px;
    }

    .footprint .toe-3 {
        width: 7px;
        height: 10px;
        top: -4px;
    }

    .footprint .toe-4 {
        width: 6px;
        height: 9px;
        top: -4px;
    }

    .footprint .toe-5 {
        width: 5px;
        height: 7px;
        top: -6px;
    }

    .nav-btn {
        padding: 15px 6px;
    }

    .btn-icon {
        font-size: 26px;
    }

    .btn-text {
        font-size: 13px;
    }
}