* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f5f5f7;
    color: #1d1d1f;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 700px;
}

.calculator-card {
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 32px;
    transition: all 0.3s ease;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    color: #1d1d1f;
}

h2 {
    font-size: 20px;
    font-weight: 500;
    margin: 30px 0 20px;
    color: #1d1d1f;
    position: relative;
    padding-bottom: 10px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #0071e3;
    border-radius: 3px;
}

h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
}

input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.pet-selector {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.pet-btn {
    flex: 1;
    background-color: #f5f5f7;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pet-btn.active {
    background-color: #0071e3;
    color: white;
    border-color: #0071e3;
}

button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background-color: #0071e3;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

button:hover {
    background-color: #0077ed;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px);
}

.result-container {
    display: none;
    margin-bottom: 20px;
}

.result-card {
    background-color: #f5f5f7;
    border-radius: 14px;
    padding: 20px;
    margin-top: 10px;
}

.result-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.result-card p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #1d1d1f;
}

.result-card span {
    font-weight: 500;
    color: #0071e3;
}

/* 宠物图标样式 */
.pet-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.pet-icon {
    fill: #d2d2d7;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pet-icon.active {
    fill: #0071e3;
}

/* 记录部分样式 */
.record-section {
    margin-top: 30px;
    border-top: 1px solid #d2d2d7;
    padding-top: 20px;
}

/* 图表部分样式 */
.chart-section {
    margin-top: 30px;
    border-top: 1px solid #d2d2d7;
    padding-top: 20px;
}

.chart-container {
    width: 100%;
    height: 300px;
    margin: 20px 0;
    background-color: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.record-list-container {
    margin-top: 20px;
    background-color: #f5f5f7;
    border-radius: 14px;
    padding: 20px;
}

.record-list {
    max-height: 300px;
    overflow-y: auto;
}

.record-item {
    padding: 12px;
    border-bottom: 1px solid #e5e5ea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.record-item:last-child {
    border-bottom: none;
}

.record-date {
    font-weight: 500;
}

.record-data {
    color: #666;
}

.delete-btn {
    background: none;
    border: none;
    color: #ff3b30;
    font-size: 14px;
    padding: 5px;
    margin: 0;
    cursor: pointer;
}

.delete-btn:hover {
    text-decoration: underline;
    transform: none;
    background: none;
} 