/* ===========================
   喝水计算器专用样式
   =========================== */

/* 基本信息输入区域 */
.input-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.input-section .section-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

/* 表单网格布局 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    color: #2d3748;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    background: #fff;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.form-input::placeholder {
    color: #a0aec0;
}

/* 计算按钮区域 */
.calculate-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* 计算结果区域 */
.result-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.2);
}

.result-section .section-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 水分摄入汇总卡片 */
.water-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
}

.summary-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-content {
    flex: 1;
    min-width: 0;
}

.summary-content h4 {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 5px;
    font-weight: 500;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
    margin-bottom: 5px;
}

.summary-unit {
    font-size: 0.85rem;
    color: #a0aec0;
}

.summary-detail {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 5px;
}

/* 饮水时间表 */
.drinking-schedule {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
}

.drinking-schedule h4 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.schedule-item {
    background: linear-gradient(135deg, #e0f2fe 0%, #bfdbfe 100%);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.schedule-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 8px;
}

.schedule-amount {
    font-size: 1rem;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 8px;
}

.schedule-note {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* 知识网格布局 */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.knowledge-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
}

.knowledge-item h4 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 12px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.knowledge-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.knowledge-item li {
    padding: 8px 0;
    padding-left: 20px;
    color: #4a5568;
    line-height: 1.6;
    position: relative;
}

.knowledge-item li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===========================
   响应式设计
   =========================== */

/* 平板设备 */
@media (max-width: 768px) {
    .input-section,
    .result-section {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .water-summary {
        grid-template-columns: 1fr;
    }

    .summary-card {
        padding: 15px;
    }

    .summary-value {
        font-size: 1.5rem;
    }

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .knowledge-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .calculate-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        padding: 12px 30px;
    }
}

/* 手机设备 */
@media (max-width: 480px) {
    .input-section .section-title,
    .result-section .section-title {
        font-size: 1.2rem;
    }

    .summary-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .knowledge-item {
        padding: 15px;
    }
}
