/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #FCF1EF;
    color: #2C3E50;
    line-height: 1.6;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #FCF1EF;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.logo span {
    font-weight: bold;
    color: #5D8B5D;
}

.nav-links {
    display: flex;
    list-style: none;
    font-weight: bold;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #2C3E50;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #5D8B5D;
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-actions img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 15px;
}

.user-actions button {
    background-color: #0F2337;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #E8F0E8;
}

.hero h1 {
    color: #5D8B5D;
    font-size: 36px;
    margin-bottom: 10px;
}

.hero-text {
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    color: #2C3E50;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Health Data Section */
.health-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 80px 0;
    align-items: center;
}

.data-content {
    padding-right: 20px;
    background-color: #E8F0E8;
    border-radius: 10px;
    padding: 30px;
}

.data-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #5D8B5D;
}

.data-content p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.data-form {
    margin-top: 20px;
}

.form-row {
    display: flex;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-right: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #5D8B5D;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.submit-btn, .reset-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.submit-btn {
    background-color: #5D8B5D;
    color: white;
}

.reset-btn {
    background-color: #F5F5F5;
    color: #2C3E50;
}

.thank-you {
    margin-top: 20px;
    color: #5D8B5D;
    font-size: 14px;
}

.data-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Trend Analysis Section */
.trend-analysis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 80px 0;
    align-items: center;
}

.trend-analysis-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background-color: #E8F0E8;
    border-radius: 10px;
    padding: 30px;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.trend-header {
    text-align: center;
    margin-bottom: 30px;
}

.trend-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #5D8B5D;
}

.trend-header p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.trend-chart {
    margin: 20px 0;
}

.trend-chart img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.trend-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.trend-image {
    display: flex;
    align-items: center;
}

.trend-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.trend-details {
    padding-left: 20px;
}

.trend-details h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #5D8B5D;
}

.trend-details ul {
    list-style-type: none;
    margin-left: 20px;
}

.trend-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
}

.trend-details li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #5D8B5D;
}

/* 新增的按钮样式 */
.view-recipe-button {
    text-align: center;
    margin-top: 30px;
}

.view-recipe-link {
    display: inline-block;
    background-color: #5D8B5D;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.view-recipe-link:hover {
    background-color: #4a774a;
}

/* Footer Styles */
footer {
    background-color: #0F2337;
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    header {
        padding: 15px 20px;
    }
    
    .nav-links li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .nav-links {
        margin: 15px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px 10px;
    }
    
    .health-data,
    .trend-analysis {
        grid-template-columns: 1fr;
    }
    
    .data-content,
    .trend-content {
        padding: 0;
        margin-bottom: 30px;
    }
    
    .trend-content {
        grid-template-columns: 1fr;
    }
    
    .trend-image {
        margin-bottom: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}