* {
    font-family:'Microsoft YaHei', cursive, 'PingFang SC', , sans-serif;
}

/* 页面背景 */
.page-background {
    background: linear-gradient(to bottom, #F6D365 0%, #FFFFFF 80%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

body {
    margin: 0;
    background: transparent;
    position: relative;
    min-height: 100vh;
    padding-bottom: 100px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.1;
    z-index: -1;
    background-image: url('data:image/svg+xml;utf8,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><path d="M20 40c0-6 4-12 10-12 6 0 10 6 10 12 0 6-4 12-10 12-6 0-10-6-10-12z" fill="%23FFA500"/><circle cx="25" cy="30" r="3" fill="%23fff"/><circle cx="35" cy="30" r="3" fill="%23fff"/></svg>'),
                    url('data:image/svg+xml;utf8,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><path d="M25 35c0-5 3-8 8-8s8 3 8 8c0 5-3 8-8 8s-8-3-8-8z" fill="%23FFA500"/><circle cx="28" cy="32" r="2" fill="%23fff"/><circle cx="33" cy="32" r="2" fill="%23fff"/></svg>');
    background-size: 80px 80px;
    background-position: 0 0, 40px 40px;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255,182,193,0.1) 1.5px, transparent 2px),
        radial-gradient(circle at 90% 80%, rgba(255,182,193,0.1) 1.5px, transparent 2px);
    background-size: 40px 40px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

h1 {
    color: #ff6b81;
    font-size: 24px;
}

.current-settings {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

/* 宠物信息区域 */
.pet-info-container {
    margin: 5px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.0);
    border-radius: 15px;
}

.profile-wrapper {
    display: flex;
    gap: 5px;
    padding: 15px;
}

.avatar-box, .info-box {
    background: rgba(255, 255, 255, 0.0);
    border-radius: 20px;
    padding: 0px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-top: 20px;
    margin-bottom: -20px;
}

.avatar-box {
    flex: 0 0 120px;
    display: grid;
    place-items: center;
}

.info-box {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pet-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #FFD166;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-avatar img {
    width: 100%;
    height: 100%;
}

.pet-name {
    font-size: 28px;
    margin: 0;
    color: #2c3e50;
    font-family: '黑体', 'SimHei', sans-serif;
}

.gender-display {
    font-size: 16px;
    color: #007BFF;
    background: rgba(0, 123, 255, 0.05);
    padding: 6px 15px;
    border-radius: 20px;
    display: inline-flex;
    width: 150px;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

/* 今日日程区域 */
.today-schedule {
    margin: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.schedule-title {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ff6b81;
}

.schedule-table {
    width: 100%;
    margin-bottom: 20px;
}

.schedule-row {
    display: flex;
    align-items: center;
}

.schedule-row.header {
    font-weight: bold;
    color: #FFA500;
    margin-bottom: 10px;
    padding: 0 15px;
}

.time-col, .task-col, .note-col {
    padding: 12px 15px;
}

.time-col {
    width: 15%;
    min-width: 80px;
}
.task-col {
    width: 50%;
    flex-grow: 1;
}
.note-col {
    width: 35%;
}

.schedule-item {
    position: relative;
    padding: 12px 0;
    background: rgba(255,182,193,0.2);
    border-radius: 20px;
    margin: 8px 0;
    transition: all 0.3s ease;
}

.schedule-item:nth-child(odd) {
    background: rgba(255,230,180,0.2);
}

.schedule-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #FFA500;
    border-radius: 50%;
}

.schedule-item:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.time-box {
    min-width: 60px;
    font-size: 16px;
    font-weight: bold;
    color: #FFA500;
    padding: 6px 12px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 添加按钮样式 */
.add-schedule-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: #FFA500;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    margin-top: 20px;
}

.add-schedule-btn:hover {
    background: #FF8C00;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-group input {
    margin-right: 5px;
}

.confirm-btn {
    width: 100%;
    padding: 12px;
    background: #ff6b81;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.confirm-btn:hover {
    background: #ff4757;
}

.edit-btn {
    background-color: #4a89dc;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.edit-btn:hover {
    background-color: #3b7dd8;
}

.pet-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.pet-selector button {
    padding: 10px 20px;
    border: none;
    background-color: #e0e0e0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    border-radius: 20px;
    margin: 0 5px;
}

.pet-selector button.active {
    background-color: #ff6b81;
    color: white;
}

.notification-btn {
    width: 30px;
    height: 30px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn.checked {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.delete-btn {
    color: #ff4757;
    cursor: pointer;
    margin-left: 10px;
    font-size: 18px;
}

/* 猫咪专属样式 */
.schedule-item.cat-schedule {
    background: rgba(255, 219, 147, 0.3) !important;
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .edit-btn {
        margin-top: 10px;
        align-self: flex-end;
    }
    
    .pet-selector {
        flex-direction: column;
    }
    
    .pet-selector button {
        margin: 5px 0;
    }
    
    .schedule-row {
        flex-wrap: wrap;
    }
    
    .time-col, .task-col, .note-col {
        width: 100%;
        padding: 8px 15px;
    }
    
    .time-col {
        border-bottom: 1px dashed #FFA500;
    }
}

/* 日历容器 */
.calendar-container {
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    padding: 15px;
    margin: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFD700;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.nav-arrow:hover {
    background: #ff6b81;
    transform: scale(1.1);
}

.month-year {
    font-family: '黑体', sans-serif;
    color: #8B4513;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255,211,101,0.3);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.date-cell {
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
    position: relative;
}

.date-cell.previous {
    color: #999;
    background: rgba(245,245,245,0.9);
}

.date-cell.current-day {
    background: #ff6b81;
    color: white;
    font-weight: bold;
}

.date-cell.selected {
    box-shadow: 0 0 0 2px #FFA500;
    transform: scale(1.05);
}

.date-cell .day-number {
    font-size: 16px;
    font-weight: bold;
}

.date-cell .day-name {
    font-size: 12px;
    color: #666;
}

.date-cell.current-day .day-name {
    color: white;
}

/* 添加删除按钮样式 */
.delete-btn {
    color: #ff4757;
    cursor: pointer;
    margin-left: 10px;
    font-size: 18px;
    background: none;
    border: none;
    padding: 5px;
    transition: all 0.3s;
}

.delete-btn:hover {
    transform: scale(1.2);
    color: #ff0000;
}

.action-label {
    font-weight: bold;
    color: #FFA500;
    margin-right: 10px;
}

/* 调整操作列宽度 */
.note-col {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
