/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 95%;
}

.header {
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 减肥赌约倒计时区域 */
.countdown-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 倒计时文字 */
.deadline-text {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: bold;
}

/* 倒计时数字 - 横向居中排布 */
.countdown-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px 15px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.countdown-box span:first-child {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    line-height: 1;
}

.countdown-box .label {
    font-size: 1rem;
    margin-top: 8px;
    opacity: 0.9;
    font-weight: normal;
}

/* 签约图片 - 修复显示问题 */
.signature-image-container {
    text-align: center;
    margin: 30px auto;
    padding: 0 15px;
    max-width: 100%;
}

.signature-image {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 赌约详情 */
.bet-details {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bet-details h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bet-details p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.bet-details ul {
    list-style: none;
    text-align: left;
    margin: 0 auto;
    max-width: 500px;
}

.bet-details li {
    padding: 10px 15px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bet-details strong {
    color: #ffeb3b;
    font-weight: bold;
}

/* 减肥进度区域 */
.progress-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.person-progress {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.person-progress h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #ffeb3b;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.progress-item {
    margin-bottom: 20px;
    text-align: left;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-label {
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.progress-label span:first-child {
    font-weight: bold;
}

.target-value {
    color: #4caf50;
    font-weight: bold;
}

.progress-bar-container {
    height: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 12px;
    position: relative;
}

.weight-bar {
    background: linear-gradient(90deg, #2196F3, #21CBF3);
}

.bodyfat-bar {
    background: linear-gradient(90deg, #9C27B0, #E040FB);
}

.progress-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
}

.progress-percent {
    margin-left: 10px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 学习内容区域 */
.content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section {
    margin-bottom: 25px;
}

.section:last-child {
    margin-bottom: 0;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.section ul {
    list-style: none;
    text-align: left;
}

.section li {
    padding: 8px 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.section p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        width: 95%;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .countdown-section, .bet-details, .progress-section, .content {
        padding: 20px;
    }
    
    .countdown-box {
        min-width: 70px;
        padding: 15px 10px;
    }
    
    .countdown-box span:first-child {
        font-size: 2rem;
    }
    
    .countdown-box .label {
        font-size: 0.9rem;
    }
    
    .signature-image {
        max-height: 250px;
    }
    
    .person-progress {
        padding: 20px;
    }
    
    .bet-details h3, .section h2, .progress-section h2, .person-progress h3 {
        font-size: 1.3rem;
    }
    
    .bet-details p, .section p, .section li, .progress-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .countdown-section h2 {
        font-size: 1.6rem;
    }
    
    .countdown-box {
        min-width: 60px;
        padding: 12px 8px;
    }
    
    .countdown-box span:first-child {
        font-size: 1.8rem;
    }
    
    .signature-image {
        max-height: 220px;
    }
    
    .person-progress {
        padding: 15px;
    }
}