/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SimSun', serif;
    background-color: #f9f3e9;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23d4a373" fill-opacity="0.08" fill-rule="evenodd"/></svg>');
    color: #5c4033;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* 返回按钮 */
.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #8b4513 0%, #5c4033 100%);
    color: #f9f3e9;
    border: 2px solid #d4a373;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-family: 'SimSun', serif;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(92, 64, 51, 0.3);
}

.back-btn:hover {
    background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(92, 64, 51, 0.4);
}

.back-btn::before {
    content: '「';
    font-size: 1.2rem;
}

.back-btn::after {
    content: '」';
    font-size: 1.2rem;
}

/* 左侧背景图 */
.left-background {
    position: fixed;
    left: 0;
    top: 0;
    width: 70%;
    height: 100%;
    background-image: url('图/860eb39ad3e2d088dd722dc9dd62d7a.jpg');
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;
    transform: translateX(0);
}

/* 右侧背景图 */
.right-background {
    position: fixed;
    right: 0;
    top: 0;
    width: 70%;
    height: 100%;
    background-image: url('图/842ff4467f2b9c1c30920aeb0ab954a.jpg');
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;
    transform: translateX(0);
}

/* 古风装饰元素 - 飘动的云纹 */
.cloud-decoration {
    position: absolute;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="50" viewBox="0 0 100 50" xmlns="http://www.w3.org/2000/svg"><path d="M10,30 C20,20 30,40 40,30 C50,20 60,40 70,30 C80,20 90,35 100,25" stroke="%23d4a373" stroke-width="1" fill="none" opacity="0.3"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    width: 200px;
    height: 100px;
    opacity: 0.6;
    z-index: -1;
}

.cloud-1 {
    top: 10%;
    left: -100px;
    animation: floatCloud 60s linear infinite;
}

.cloud-2 {
    top: 30%;
    right: -100px;
    animation: floatCloud 80s linear infinite reverse;
}

@keyframes floatCloud {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

/* 古风装饰 - 竹简边框效果 */
.bamboo-border {
    position: relative;
    padding: 20px;
    border: 1px solid #d4a373;
    border-radius: 8px;
    background-color: #fff8e7;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bamboo-border::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(212, 163, 115, 0.3);
    border-radius: 4px;
    pointer-events: none;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff8e7;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #d4a373;
}

/* 头部样式 */
.header {
    background-color: #8b4513;
    background-image: linear-gradient(to bottom, #8b4513, #a0522d);
    color: #f5deb3;
    text-align: center;
    padding: 30px 20px;
    position: relative;
    border-bottom: 2px solid #d4a373;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header::before,
.header::after {
    content: "⚔️";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    opacity: 0.8;
    animation: swordShake 5s infinite alternate;
}

@keyframes swordShake {
    0% { transform: translateY(-50%) rotate(-5deg); }
    100% { transform: translateY(-50%) rotate(5deg); }
}

.header::before {
    left: 40px;
}

.header::after {
    right: 40px;
}

.header h1 {
    font-size: 42px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 5px;
    font-weight: bold;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
    100% { text-shadow: 0 0 10px rgba(245, 222, 179, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.3); }
}

.subtitle {
    font-size: 20px;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 15px;
}

/* 幸运句子样式 */
.lucky-sentence {
    font-size: 16px;
    color: #ffd700;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: sentenceFloat 4s ease-in-out infinite;
}

@keyframes sentenceFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 日历样式 */
.calendar-container {
    padding: 30px;
    border-bottom: 1px solid #d4a373;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    font-size: 24px;
    color: #8b4513;
    text-align: center;
    flex: 1;
}

.month-btn {
    background-color: #cd5c5c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.month-btn:hover {
    background-color: #a83232;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4a373;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background-color: #fff;
}

.calendar-day:hover {
    background-color: #f0e6d2;
    transform: scale(1.05);
}

.calendar-day.has-hatred {
    background-color: #ffe4e1;
    border-color: #cd5c5c;
    font-weight: bold;
    color: #8b0000;
}

.calendar-day.has-hatred::after {
    content: "⚔️";
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 12px;
}

.calendar-day.has-hatred:hover {
    transform: scale(1.1);
    background-color: #ffcccc;
    box-shadow: 0 0 15px rgba(205, 92, 92, 0.5);
    z-index: 10;
}

/* 记仇数量标记样式 */
.hatred-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #c93a3a;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.calendar-day.other-month {
    opacity: 0.4;
    color: #999;
}

.calendar-weekday {
    text-align: center;
    font-weight: bold;
    color: #8b4513;
    padding: 10px 0;
}

/* 统计区域样式 */
.stats-container {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: #f5deb3;
    background-image: linear-gradient(to right, #f5deb3, #fffacd);
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 16px;
    color: #8b4513;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #cd5c5c;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 模态框样式 */
.record-modal,
.add-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff8e7;
    border: 2px solid #8b4513;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    background-color: #8b4513;
    color: #f5deb3;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d4a373;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.close-btn {
    background: none;
    border: none;
    color: #f5deb3;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: white;
}

.modal-body {
    padding: 20px;
}

.record-date {
    font-size: 18px;
    color: #8b4513;
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: 1px solid #d4a373;
    padding-bottom: 10px;
}

.record-content {
    background-color: rgba(212, 163, 115, 0.1);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #d4a373;
    min-height: 100px;
    line-height: 1.6;
    font-size: 16px;
    color: #5c4033;
    white-space: pre-wrap;
    margin-bottom: 15px;
}

.hatred-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #ffe4e1;
    border-radius: 6px;
    font-size: 14px;
}

.emotion-level,
.hatred-category,
.hatred-enemy {
    margin-bottom: 5px;
    color: #8b0000;
}

/* 一笔勾销动画已移除 */

/* 仇人管理样式 */
.analysis-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.add-enemy-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff8e7;
    border-radius: 8px;
    border: 1px dashed #d4a373;
}

.add-enemy-section input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d4a373;
    border-radius: 4px;
    background-color: #fff;
    font-family: 'SimSun', serif;
    color: #5c4033;
}

.add-enemy-section input:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.2);
}

.enemies-list {
    max-height: 400px;
    overflow-y: auto;
}

.enemy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background-color: #fff8e7;
    border: 1px solid #d4a373;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.enemy-item:hover {
    background-color: #ffe4e1;
    border-color: #8b4513;
    transform: translateX(5px);
}

.enemy-info {
    flex: 1;
}

.enemy-name {
    font-weight: bold;
    color: #8b0000;
    font-size: 16px;
    margin-bottom: 5px;
}

.enemy-stats {
    font-size: 12px;
    color: #8b4513;
    opacity: 0.8;
}

.enemy-actions {
    display: flex;
    gap: 5px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    border: 1px solid #d4a373;
    border-radius: 4px;
    background-color: #8b4513;
    color: #f5deb3;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'SimSun', serif;
}

.btn-small:hover {
    background-color: #a0522d;
    transform: scale(1.05);
}

.btn-delete {
    background: linear-gradient(135deg, #990000, #660000);
    border-color: #e57373;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.btn-delete::before {
    content: '✖';
    position: relative;
    display: inline-block;
    margin-right: 5px;
    font-size: 14px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #b22222, #800000);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px) scale(1.02);
    border-color: #ff6b6b;
}

.btn-delete:hover::before {
    transform: scale(1.2) rotate(90deg);
    opacity: 1;
}

.btn-delete:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 额外的闪光效果 */
.btn-delete::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.8s ease;
    opacity: 0;
}

.btn-delete:hover::after {
    opacity: 1;
    left: 100%;
}

/* 删除按钮点击时的波纹效果 */
.btn-delete { cursor: pointer; }

.btn-forgive {
    background: linear-gradient(135deg, 
        #4CAF50 0%, 
        #66BB6A 50%, 
        #4CAF50 100%);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #81C784, #388E3C) 1;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 2px 5px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 边框发光效果 */
.btn-forgive::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #66BB6A, #4CAF50, #388E3C, #66BB6A);
    z-index: -1;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: borderRotate 4s linear infinite;
}

/* 内部发光效果 */
.btn-forgive::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease-out;
    opacity: 0;
}

/* 悬停效果 */
.btn-forgive:hover {
    background: linear-gradient(135deg, 
        #66BB6A 0%, 
        #81C784 50%, 
        #66BB6A 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 4px 12px rgba(76, 175, 80, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-forgive:hover::before {
    opacity: 1;
}

.btn-forgive:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* 点击效果 */
.btn-forgive:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 2px 6px rgba(76, 175, 80, 0.4),
        inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 边框旋转动画 */
@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 文字呼吸效果 */
.btn-forgive:hover span {
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.btn-forgive { 
    cursor: pointer;
    letter-spacing: 0.5px;
}

/* 额外的粒子效果容器 */
.btn-forgive .particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    animation: particleAnimation 1s ease-out forwards;
}

.btn-delete:hover {
    animation: deletePulse 1.5s infinite alternate;
}

@keyframes deletePulse {
    0% { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 99, 71, 0.4); }
    70% { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(255, 99, 71, 0); }
    100% { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 99, 71, 0); }
}

.enemy-item.animate-in {
    animation: enemySlideIn 0.3s ease-out;
}

@keyframes enemySlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 无仇人提示 */
.no-enemies {
    text-align: center;
    padding: 40px 20px;
    color: #8b4513;
    font-style: italic;
}

#hatred-content {
    width: 100%;
    padding: 12px;
    border: 1px solid #d4a373;
    border-radius: 4px;
    font-family: 'SimSun', serif;
    font-size: 16px;
    resize: vertical;
    background-color: #fff8e7;
    color: #5c4033;
    min-height: 150px;
    transition: border-color 0.3s ease;
}

#hatred-content:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-group {
    margin-top: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #5c4033;
    font-size: 14px;
    font-weight: bold;
}

.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d4a373;
    border-radius: 4px;
    background-color: #fff8e7;
    color: #5c4033;
    font-size: 16px;
    font-family: 'SimSun', serif;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

#hatred-content:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.2);
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
    border-top: 1px solid #d4a373;
    background-color: #f9f3e9;
}

.btn {
    background-color: #8b4513;
    color: #f5deb3;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'SimSun', serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background-color: #a83232;
}

.btn-primary {
    background-color: #cd5c5c;
}

/* 一笔勾销按钮样式已移除 */

.btn-secondary {
    background-color: #808000;
}

.btn-secondary:hover {
    background-color: #666600;
    transform: scale(1.05);
}

.btn-primary:hover {
    background-color: #6b3412;
}

/* 仇人选择容器样式 */
.enemy-select-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.enemy-select-container select {
    flex: 1;
}

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d4a373;
    border-radius: 4px;
    background-color: #fff8e7;
    color: #5c4033;
    font-size: 16px;
    font-family: 'SimSun', serif;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

#search-results {
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff8e7;
    border: 1px solid #d4a373;
    border-radius: 4px;
    padding: 10px;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #d4a373;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: rgba(212, 163, 115, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-date {
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 5px;
}

.search-result-content {
    font-size: 14px;
    color: #5c4033;
    line-height: 1.4;
}

.stats-analysis-container {
    margin-top: 20px;
    background-color: #fff8e7;
}

.stats-analysis-container h3 {
    text-align: center;
    color: #8b4513;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 1px solid #d4a373;
    padding-bottom: 10px;
}

.analysis-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    justify-items: center;
}

.analysis-item {
    text-align: center;
    padding: 10px;
    background-color: rgba(212, 163, 115, 0.1);
    border-radius: 4px;
    border: 1px dashed #d4a373;
    width: 100%;
}

/* 新增：图表容器样式 */
.charts-container {
    background-color: #fff8e7;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #d4a373;
}

.charts-container h3 {
    color: #8b4513;
    margin-bottom: 20px;
    text-align: center;
    font-size: 22px;
    border-bottom: 1px solid #d4a373;
    padding-bottom: 10px;
}

.chart-item {
    margin-bottom: 30px;
}

.chart-item:last-child {
    margin-bottom: 0;
}

.chart-item h4 {
    color: #a0522d;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.chart-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, #8b4513, transparent);
}

.chart-wrapper {
    position: relative;
    height: 300px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid #d4a373;
    box-shadow: inset 0 0 10px rgba(139, 69, 19, 0.1);
}

.analysis-label {
    display: block;
    font-size: 14px;
    color: #5c4033;
    margin-bottom: 5px;
}

.analysis-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #8b4513;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .calendar-container {
        padding: 20px 15px;
    }
    
    .calendar-grid {
        gap: 5px;
    }
    
    .calendar-day {
        font-size: 14px;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-value {
        font-size: 28px;
    }
}

/* 古风装饰元素 */
.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-image: linear-gradient(to right, #8b4513, #cd5c5c, #8b4513);
    opacity: 0.8;
}

/* 页面滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5deb3;
}

::-webkit-scrollbar-thumb {
    background: #8b4513;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b3412;
}

/* 敌人分类标题样式 */
.category-header {
    background-color: #8b4513;
    color: #f5deb3;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* 详情按钮样式 */
.btn-details {
    background-color: #808000;
    border-color: #d4a373;
}

.btn-details:hover {
    background-color: #666600;
}

/* 敌人备注样式 */
.enemy-notes {
            font-size: 12px;
            color: #664433;
            background-color: #fff9f0;
            padding: 5px 8px;
            border-radius: 4px;
            margin-top: 5px;
            border-left: 3px solid #cd5c5c;
            font-style: italic;
            word-break: break-word;
            max-width: 100%;
        }
        .enemy-notes-detail {
            font-size: 14px;
            color: #5c4033;
            background-color: #fff9f0;
            padding: 10px 12px;
            border-radius: 6px;
            margin-top: 8px;
            border-left: 3px solid #cd5c5c;
            font-style: italic;
            line-height: 1.6;
            word-break: break-word;
}
.dialog-body {
    padding: 15px;
}
.dialog-body textarea {
    resize: vertical;
    font-family: 'SimSun', serif;
    border: 1px solid #d4a373;
    border-radius: 4px;
    background-color: #fff;
    color: #5c4033;
}

/* 确认和取消按钮样式 */
.btn-confirm {
    background-color: #8b4513;
    color: #f5deb3;
    border: none;
}

.btn-confirm:hover {
    background-color: #703618;
}

.btn-cancel {
    background-color: #f5deb3;
    color: #8b4513;
    border: 1px solid #d4a373;
}

.btn-cancel:hover {
    background-color: #e6c086;
}