/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

#app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 品牌色定义 - 儿童友好配色 */
:root {
    --primary-color: #ff6b6b; /* 活泼的珊瑚红 - 主色调 */
    --secondary-color: #4ecdc4; /* 清新的青绿色 - 辅助色 */
    --accent-color: #ffd166; /* 明亮的黄色 - 强调色 */
    --success-color: #06d6a0; /* 健康的绿色 - 成功色 */
    --warning-color: #ff9f1c; /* 温暖的橙色 - 警告色 */
    --danger-color: #ef476f; /* 鲜艳的粉色 - 危险色 */
    --error-color: #ef476f; /* 错误提示颜色 */
    --light-bg: #fef9f3; /* 温暖的浅背景 */
    --card-bg: #ffffff; /* 卡片背景 */
    --text-primary: #2d3748; /* 主要文字色 */
    --text-secondary: #718096; /* 次要文字色 */
    --border-color: #e2e8f0; /* 边框色 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05); /* 小阴影 */
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1); /* 中阴影 */
    --radius-sm: 6px; /* 小圆角 */
    --radius-md: 12px; /* 中圆角 */
    --radius-lg: 20px; /* 大圆角 */
}

/* 输入框错误样式 */
.input-error {
    border: 1px solid var(--error-color) !important;
    box-shadow: 0 0 0 2px rgba(239, 71, 111, 0.2) !important;
}

/* 错误提示文字样式 */
.error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 8px;
    text-align: left;
    padding-left: 4px;
    font-weight: 500;
}

/* 浏览器兼容性回退 */
body {
    /* 为不支持CSS变量的浏览器提供回退 */
    background-color: #fef9f3;
    color: #2d3748;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-bg);
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 40% 80%, rgba(255, 209, 102, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

/* 按钮样式 - 扁平化设计 */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-left: 8px;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    min-width: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #ff5252;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover::after {
    width: 100%;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #26a69a;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover::after {
    width: 100%;
}

.btn-secondary.active {
    background-color: var(--success-color);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover::after {
    width: 100%;
}

/* 表单样式 - 扁平化设计 */
.form-group {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    background-color: var(--card-bg);
    transition: all 0.2s ease;
    color: var(--text-primary);
    box-sizing: border-box;
    min-height: 44px;
    touch-action: manipulation;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    transform: translateY(-1px);
}

/* 统一自定义下拉列表样式 */
select {
    /* 移除默认样式 */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* 自定义基础样式 */
    padding: 10px 40px 10px 16px !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    background-color: var(--card-bg) !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    position: relative;
    /* 添加自定义箭头 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
    box-shadow: var(--shadow-sm) !important;
}

/* 悬停效果 */
select:hover {
    border-color: var(--primary-color) !important;
    background-color: var(--light-bg) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-1px) !important;
}

/* 聚焦效果 */
select:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1), var(--shadow-md) !important;
    transform: translateY(-1px) !important;
    /* 聚焦时改变箭头颜色 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ff6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* 禁用状态 */
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--light-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* 自定义选项样式 */
select option {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: var(--radius-sm) !important;
    margin: 4px 8px !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
}

select option:hover {
    background-color: var(--light-bg) !important;
    color: var(--primary-color) !important;
    border-color: rgba(255, 107, 107, 0.2) !important;
    transform: translateX(4px) !important;
}

select option:checked {
    background-color: rgba(255, 107, 107, 0.15) !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    border-color: rgba(255, 107, 107, 0.3) !important;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.1) !important;
}

/* 移除IE默认箭头 */
select::-ms-expand {
    display: none;
}

/* 自定义下拉列表容器样式 */
select {
    /* 确保下拉列表与网站风格一致 */
    font-family: inherit !important;
    line-height: inherit !important;
    text-transform: none !important;
    letter-spacing: inherit !important;
}

/* 优化下拉列表的滚动条样式 */
select::-webkit-scrollbar {
    width: 8px !important;
}

select::-webkit-scrollbar-track {
    background: var(--light-bg) !important;
    border-radius: var(--radius-sm) !important;
}

select::-webkit-scrollbar-thumb {
    background: var(--primary-color) !important;
    border-radius: var(--radius-sm) !important;
    transition: background 0.2s ease !important;
}

select::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color) !important;
}

/* 模态框样式 - 圆角卡片设计 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1; 
        backdrop-filter: blur(8px);
    }
}

.modal-content {
    background-color: var(--card-bg);
    padding: 36px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
    border: 2px solid rgba(255, 107, 107, 0.1);
    transition: all 0.3s ease;
    transform: scale(0.95);
}

.modal.show .modal-content {
    transform: scale(1);
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1); 
    }
}

/* 关闭按钮样式 */
.modal-content .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-bg);
    transition: all 0.3s ease;
    z-index: 100;
    line-height: 1.5; /* 加大行间距 */
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transform-origin: 50% 50%;
    padding: 0;
    margin: 0;
}

.modal-content .close:hover {
    color: var(--primary-color);
    background-color: rgba(255, 107, 107, 0.15);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 107, 107, 0.3);
    box-shadow: var(--shadow-md);
}

/* 模态框头部样式 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--light-bg);
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

/* 模态框内容区样式 */
.modal-body {
    margin-bottom: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 2px solid var(--light-bg);
}

/* 统一滚动条样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-bg);
    -ms-overflow-style: auto;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: background 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 模态框内滚动条样式优化 */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    border: 2px solid var(--light-bg);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 记录筛选按钮样式 */
.record-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    overflow: visible;
    min-width: max-content;
    background-color: var(--card-bg);
    padding: 8px;
    border-radius: var(--radius-md);
}

.record-filters .filter-group {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    flex: 1;
}

.record-filters .btn-secondary {
    margin-left: auto;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
    min-width: 70px;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    min-height: 36px;
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    flex: 1;
    max-width: 80px;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 0 0 4px 4px;
}

.filter-btn:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

.filter-btn:hover::after {
    width: 100%;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-btn.active::after {
    width: 100%;
}

.record-filters .btn-secondary {
    margin-left: auto;
    height: 32px;
    padding: 6px 12px;
    font-size: 14px;
    flex-shrink: 0;
}

/* 记录列表样式 */
.records-list {
    max-height: 820px;
    overflow-y: auto;
    padding-right: 5px;
}

/* 查询筛选区域样式 */
.query-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 20px;
}

.query-filters .form-group {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.query-filters label {
    margin: 0;
    white-space: nowrap;
}

.query-filters select,
.query-filters input {
    height: 36px;
    min-width: 120px;
}

.query-filters button {
    height: 36px;
    padding: 0 16px;
    font-size: 14px;
}

/* 记录查询表格样式 */
.record-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.record-table th,
.record-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.record-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #495057;
}

.record-table tr:hover {
    background-color: #f5f5f5;
}

.point-value.add {
    color: #28a745;
    font-weight: bold;
}

.point-value.subtract {
    color: #dc3545;
    font-weight: bold;
}



/* 模态框头部固定样式 */
.modal-header {
    position: sticky;
    top: 0;
    background-color: var(--card-bg);
    padding: 10px 0;
    margin: -10px 0 20px 0;
    z-index: 10;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px); 
    }
    to { 
        opacity: 1;
        transform: translateY(0); 
    }
}



.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

/* 头部导航栏 - 活泼的渐变设计 */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
    gap: 16px;
}

/* 个人资料区域样式 */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.user-profile:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    overflow: hidden;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 默认头像样式 */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    overflow: hidden;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background-image: url('images/default-avatar.png');
    background-size: cover;
    background-position: center;
}

/* 当头像有图片时，确保图片正常显示 */
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.user-profile:hover .user-avatar {
    transform: scale(1.1);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-nickname {
    font-size: 14px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* 汉堡按钮样式 */
.hamburger-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius-lg);
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    position: relative;
}

.hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

.hamburger-btn.active .hamburger-icon {
    background-color: transparent;
}

.hamburger-btn.active .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.hamburger-btn.active .hamburger-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* 模态框菜单样式 */
.modal-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
}

/* 汉堡菜单模态框内容区域样式 */

/* 支付记录页面样式 */
.payment-records-modal-content h2 {
    line-height: 1.5; /* 加大行间距 */
}

/* 支付记录标题栏下移 */
.payment-records-modal-content > div:first-of-type {
    margin-top: 40px; /* 往下移动40px */
}

/* 奖品管理标题栏下移 */
.modal-content > div:first-of-type {
    margin-top: 40px; /* 往下移动40px */
}

/* 订阅计划样式 */
.subscription-plan {
    width: 280px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.subscription-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.subscription-plan.selected {
    border-color: var(--primary-color);
    background-color: rgba(255, 107, 107, 0.05);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.2);
}

.plan-header {
    text-align: center;
    margin-bottom: 20px;
}

.plan-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.plan-price .price {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
}

.plan-price .unit {
    font-size: 16px;
    color: var(--text-secondary);
}

.plan-discount {
    background-color: #ff6b6b;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 8px;
}

.plan-features {
    margin-bottom: 24px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

.plan-select-btn {
    width: 100%;
    margin-top: 16px;
}

/* 支付记录表格样式 */
.payment-records-table-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background-color: #fff;
}

.payment-records-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.payment-records-table-body-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.payment-records-table-body-container::-webkit-scrollbar {
    width: 8px;
}

.payment-records-table-body-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.payment-records-table-body-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.payment-records-table-body-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.payment-records-table-body-container table {
    margin-top: -1px;
}

.payment-records-table th,
.payment-records-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.payment-records-table th {
    background-color: var(--light-bg);
    font-weight: bold;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-records-table td {
    color: var(--text-primary);
    font-size: 14px;
}

.payment-records-table tr:last-child td {
    border-bottom: none;
}

.payment-records-table tr:hover {
    background-color: rgba(255, 107, 107, 0.05);
}

.payment-amount {
    font-weight: bold;
    color: var(--primary-color);
}

.payment-status {
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .subscription-plan {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .renewal-modal-content .plan-container {
        flex-direction: column;
        align-items: center;
    }
    
    .payment-records-table {
        font-size: 12px;
    }
    
    .payment-records-table th,
    .payment-records-table td {
        padding: 12px 8px;
    }
}
#hamburgerModalBody {
    margin-top: 60px;
}

/* 导航按钮样式 */
.nav-btn {
    background-color: #fef9f3;
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-lg);
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 44px;
    min-width: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    box-shadow: var(--shadow-sm);
}

/* 导航按钮底部线动画 */
.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-btn:hover::after {
    width: 100%;
}

.menu-btn {
    margin-left: 0 !important;
    width: 100%;
    justify-content: flex-start;
    padding: 16px 24px !important;
    font-size: 16px !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.3s ease !important;
    background-color: #fef9f3 !important;
    color: var(--primary-color) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* 菜单按钮底部线动画 */
.menu-btn::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) !important;
    transition: width 0.3s ease !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
    display: block !important;
}

.menu-btn:hover {
    transform: translateX(8px) !important;
    box-shadow: var(--shadow-md) !important;
}

.menu-btn:hover::after {
    width: 100% !important;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.child-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.child-selector select {
    /* 保持头部导航栏的特殊样式 */
    padding: 10px 40px 10px 16px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: var(--radius-md) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.2s ease !important;
    /* 自定义箭头 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
}

.child-selector select:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.child-selector select:focus {
    outline: none !important;
    border-color: white !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
    /* 聚焦时改变箭头颜色 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.child-selector select option {
    color: var(--text-primary) !important;
    background-color: white !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-radius: var(--radius-sm) !important;
}

.child-selector select option:hover {
    background-color: var(--light-bg) !important;
    color: var(--primary-color) !important;
}

.child-selector select option:checked {
    background-color: rgba(255, 107, 107, 0.1) !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.theme-switch {
    display: flex;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

/* 主内容区 */
.main-content {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 24px;
    gap: 24px;
    background-color: var(--light-bg);
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.mode-content {
    display: none;
    width: 100%;
    height: 100%;
}

.mode-content.active {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 24px;
    height: 100%;
    width: 100%;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* 家长模式样式 */
#parentMode {
    background-color: var(--light-bg);
}

/* 左侧边栏 - 卡片式设计 */
.left-sidebar {
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

/* 卡片通用样式 */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card:hover::after {
    width: 100%;
}

/* 积分余额卡片 */
.point-balance {
    text-align: center;
    background: linear-gradient(135deg, var(--accent-color), var(--warning-color));
    color: white;
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    box-shadow: 0 10px 30px rgba(255, 209, 102, 0.35);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.point-balance:hover {
    /* 移除悬停效果 */
}

/* 儿童信息样式 */
.child-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-direction: row;
}

/* 儿童头像样式 */
.child-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    overflow: hidden;
    position: relative;
}

/* 儿童详细信息样式 */
.child-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* 儿童姓名样式 */
#currentChildName {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-size: 30px;
}

/* 儿童年龄样式 */
.child-age {
    font-size: 20px;
    font-weight: 600;
    color: white;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* 儿童生日倒计时样式 */
.child-birthday-countdown {
    font-size: 16px;
    font-weight: 500;
    color: white;
    opacity: 0.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.child-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.child-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    transition: all 0.3s ease;
    opacity: 0;
}

.child-avatar:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.child-avatar:hover::before {
    opacity: 1;
    transform: scale(1.05);
}

/* 儿童模式头像样式 */
.child-mode-header .child-avatar {
    width: 80px;
    height: 80px;
    font-size: 48px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.child-mode-header .child-info {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.point-balance::before {
    content: '🎉';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 48px;
    opacity: 0.3;
    transform: rotate(15deg);
}

.point-balance h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.balance-amount {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

/* 积分增加动画 */
.balance-amount.add-animation {
    animation: addPoint 0.5s ease;
    color: var(--success-color);
    text-shadow: 0 0 20px rgba(6, 214, 160, 0.5);
}

/* 积分减少动画 */
.balance-amount.subtract-animation {
    animation: subtractPoint 0.5s ease;
    color: var(--danger-color);
    text-shadow: 0 0 20px rgba(239, 71, 111, 0.5);
}

@keyframes addPoint {
    0% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes subtractPoint {
    0% { transform: scale(1); }
    50% { transform: scale(0.9) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}



.behavior-analysis {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.behavior-analysis:hover {
    /* 移除悬停效果 */
}

.behavior-analysis h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.behavior-analysis h3::before {
    content: '';
    width: 8px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* 行为分析统计样式 */
.behavior-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card:hover::after {
    width: 100%;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
}

.stat-value.positive {
    color: var(--success-color);
}

.stat-value.negative {
    color: var(--danger-color);
}

/* 行为趋势样式 */
.behavior-trend {
    margin-bottom: 24px;
}

.behavior-trend h4,
.top-rule h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.behavior-trend h4::before,
.top-rule h4::before {
    content: '';
    width: 6px;
    height: 18px;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.trend-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 220px;
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 40px 20px 20px;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    width: 100%;
}

.trend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 60px;
}

.trend-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.trend-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 100%;
    width: 100%;
    justify-content: center;
}

.trend-bar {
    width: 12px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.trend-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: white;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.trend-bar:hover {
    opacity: 0.8;
}

.trend-bar:hover::after {
    width: 100%;
}

.trend-bar.add {
    background-color: var(--success-color);
}

.trend-bar.subtract {
    background-color: var(--danger-color);
}

.trend-total {
    font-size: 14px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.trend-total.positive {
    color: var(--success-color);
}

.trend-total.negative {
    color: var(--danger-color);
}

/* 趋势分数样式 */
.trend-score {
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: -20px;
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.trend-score.add {
    color: var(--success-color);
}

.trend-score.subtract {
    color: var(--danger-color);
}

/* 最常触发规则样式 */
.top-rule {
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 20px;
}

.rule-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rule-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.rule-stats {
    font-size: 14px;
    color: var(--text-secondary);
}

.rule-points {
    font-size: 18px;
    font-weight: bold;
}

.rule-points.positive {
    color: var(--success-color);
}

.rule-points.negative {
    color: var(--danger-color);
}



/* 中间积分操作区 - 卡片式设计 */
.middle-section {
    flex: 2;
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    min-width: 300px;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.middle-section:hover {
    /* 移除悬停效果 */
}

.point-operation h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.point-operation h2::before {
    content: '🎯';
    font-size: 32px;
}

/* 操作标签 - 活泼的设计 */
.operation-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    background-color: var(--light-bg);
    padding: 8px;
    border-radius: var(--radius-lg);
}

.tab-btn {
    flex: 1;
    padding: 14px 24px;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0;
    transition: all 0.2s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 1.5px;
    z-index: 2;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn:hover::before {
    opacity: 1;
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover::after {
    width: 80%;
}

.tab-btn.active {
    color: white;
    z-index: 1;
}

.tab-btn.active::before {
    opacity: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow-md);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 右侧边栏 - 卡片式设计 */
.right-sidebar {
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

/* 奖品推荐和记录卡片 */
.prize-recommendation,
.recent-records {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px 28px 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prize-recommendation:hover,
.recent-records:hover {
    /* 移除悬停效果 */
}

.prize-recommendation h3,
.recent-records h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prize-recommendation h3::before,
.recent-records h3::before {
    content: '';
    width: 8px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* 奖品网格 - 活泼的卡片设计 */
.prize-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.prize-item {
    background-color: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.prize-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.prize-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.prize-item:hover::after {
    width: 100%;
}

.prize-item .prize-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-color), var(--warning-color));
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 209, 102, 0.3);
    transition: all 0.2s ease;
}

.prize-item:hover .prize-image {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 209, 102, 0.4);
}

.prize-item .prize-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.prize-item .prize-points {
    font-size: 20px;
    font-weight: bold;
    color: var(--danger-color);
    margin-bottom: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.prize-item .prize-stock {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.prize-item .btn {
    margin: 0;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
}

/* 记录列表 - 卡片式设计 */
.records-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 8px;
    min-height: 0;
    max-height: 800px;
    box-sizing: border-box;
}

/* 优化记录项样式，确保高度自适应 */
.record-item {
    background-color: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: auto;
    height: auto;
}

.record-item {
    background-color: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.record-item:last-child {
    margin-bottom: 0;
}

.record-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.record-item:hover {
    box-shadow: var(--shadow-md);
}

.record-item:hover::after {
    width: 100%;
}

.record-item .record-time {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.record-item .record-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.record-item .record-rule {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.record-item .record-points {
    font-weight: bold;
    font-size: 16px;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.record-item .record-points.add {
    color: var(--success-color);
    background-color: rgba(6, 214, 160, 0.1);
}

.record-item .record-points.subtract {
    color: var(--danger-color);
    background-color: rgba(239, 71, 111, 0.1);
}

.record-item .record-remark {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
    font-style: italic;
}

/* 儿童模式样式 - 活泼的卡通设计 */
#childMode {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    flex-direction: column;
    align-items: center;
    padding: 24px;
    min-height: calc(100vh - 100px);
    position: relative;
    overflow: hidden;
}

#childMode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* 儿童模式头部 - 彩虹设计 */
.child-mode-header {
    text-align: center;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    color: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
    width: 100%;
    max-width: 800px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.child-mode-header::before {
    content: '🌈';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 64px;
    opacity: 0.3;
    transform: rotate(15deg);
}

.child-mode-header h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.child-balance {
    font-size: 28px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.child-balance .balance-value {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent-color);
    margin-left: 12px;
    text-shadow: 0 0 20px rgba(255, 209, 102, 0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* 儿童模式奖品区域 */
.child-prizes {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.child-prizes h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 32px;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.child-prizes h3::before {
    content: '🎁';
    font-size: 48px;
    animation: rotate 3s infinite linear;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 儿童模式奖品网格 - 活泼的卡片设计 */
.child-prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.child-prize-item {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--border-color);
}

.child-prize-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.child-prize-item:hover {
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.2);
    border-color: var(--primary-color);
}

.child-prize-item:hover::after {
    width: 100%;
}

.child-prize-item .prize-image {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--accent-color), var(--warning-color));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: white;
    box-shadow: 0 6px 20px rgba(255, 209, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.child-prize-item:hover .prize-image {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 8px 28px rgba(255, 209, 102, 0.5);
}

.child-prize-item .prize-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.child-prize-item .prize-points {
    font-size: 24px;
    font-weight: bold;
    color: var(--danger-color);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.child-prize-item .btn {
    margin: 0;
    background: linear-gradient(135deg, var(--success-color), var(--secondary-color));
    font-size: 16px;
    font-weight: 700;
    padding: 12px 24px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.child-prize-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 214, 160, 0.3);
}

.child-prize-item .btn:disabled {
    background-color: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 儿童模式记录区域 */
.child-records {
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.child-records h3 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 24px;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.child-records h3::before {
    content: '📋';
    font-size: 48px;
    animation: bounce 2s infinite;
}

.child-records-list {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    max-height: 350px;
    overflow-y: auto;
    border: 3px solid var(--border-color);
}

.child-record-item {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border-left: 6px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.child-record-item:last-child {
    margin-bottom: 0;
}

.child-record-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.child-record-item:hover {
    box-shadow: var(--shadow-md);
}

.child-record-item:hover::after {
    width: 100%;
}

.child-record-item.add {
    border-left-color: var(--success-color);
    background-color: rgba(6, 214, 160, 0.05);
}

.child-record-item.subtract {
    border-left-color: var(--danger-color);
    background-color: rgba(239, 71, 111, 0.05);
}

.child-record-item .record-time {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}

.child-record-item .record-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.child-record-item .record-rule {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.child-record-item .record-points {
    font-weight: bold;
    font-size: 20px;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.child-record-item .record-points.add {
    color: var(--success-color);
    background-color: rgba(6, 214, 160, 0.1);
    text-shadow: 0 0 10px rgba(6, 214, 160, 0.3);
}

.child-record-item .record-points.subtract {
    color: var(--danger-color);
    background-color: rgba(239, 71, 111, 0.1);
    text-shadow: 0 0 10px rgba(239, 71, 111, 0.3);
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .main-content {
        padding: 20px;
        gap: 20px;
    }
    
    .left-sidebar,
    .right-sidebar {
        width: 350px;
    }
}

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .left-sidebar,
    .right-sidebar {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .middle-section {
        margin: 16px 0;
        padding: 24px;
    }

    .header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 16px 20px;
    }

    .header-left {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .child-selector {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        width: 100%;
    }
    
    .child-selector select {
        min-width: 150px;
        flex: 1;
        max-width: 200px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .prize-waterfall {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .header h1 {
        font-size: 24px;
    }
    
    .point-balance {
        padding: 24px 20px;
    }
    
    .balance-amount {
        font-size: 48px;
    }
    
    .child-details h2 {
        font-size: 24px;
    }
    
    .child-age,
    .child-birthday-countdown {
        font-size: 16px;
    }
    
    .behavior-analysis {
        padding: 20px;
    }
    
    .behavior-analysis h3 {
        font-size: 16px;
    }
    
    .behavior-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .trend-chart {
        height: 180px;
        padding: 30px 10px 20px;
    }
    
    .trend-bars {
        gap: 8px;
    }
    
    .trend-bar {
        width: 10px;
    }
    
    .trend-date {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .header-right {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .child-selector {
        width: 100%;
        justify-content: flex-start;
    }
    
    .child-selector select {
        flex: 1;
        min-width: 0;
    }

    .theme-switch {
        width: 100%;
        justify-content: space-between;
    }

    .child-prize-grid {
        grid-template-columns: 1fr;
    }
    
    .point-operation h2 {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .operation-tabs {
        margin-bottom: 24px;
        gap: 8px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .prize-waterfall {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .exchange-container {
        padding: 20px;
    }
    
    .exchange-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .exchange-header h2 {
        font-size: 24px;
    }
    
    .copyright {
        font-size: 12px;
        bottom: 16px;
    }
    
    .balance-amount {
        font-size: 40px;
    }
    
    .child-avatar {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
    
    .child-details h2 {
        font-size: 20px;
    }
    
    .child-age,
    .child-birthday-countdown {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .header {
        padding: 12px 16px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .child-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .child-selector select {
        width: 100%;
    }
    
    .child-selector .btn {
        margin-left: 0;
        width: 100%;
    }
    
    .main-content {
        padding: 12px;
        gap: 12px;
    }
    
    .mode-content.active {
        gap: 12px;
    }
    
    .point-balance {
        padding: 20px 16px;
    }
    
    .child-info {
        gap: 12px;
    }
    
    .child-avatar {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .child-details h2 {
        font-size: 18px;
    }
    
    .child-age,
    .child-birthday-countdown {
        font-size: 13px;
    }
    
    .balance-amount {
        font-size: 36px;
    }
    
    .middle-section {
        padding: 20px 16px;
    }
    
    .point-operation h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .prize-recommendation,
    .recent-records {
        padding: 20px 16px;
    }
    
    .prize-recommendation h3,
    .recent-records h3 {
        font-size: 15px;
    }
    
    .record-filters {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .filter-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .modal-content {
        padding: 24px;
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
    
    .notification {
        max-width: calc(100% - 32px);
        margin: 0 16px;
    }
    
    /* 行为分析卡片样式调整 */
    .behavior-analysis {
        padding: 16px;
    }
    
    .behavior-analysis h3 {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    .behavior-stats-grid {
        gap: 10px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .trend-chart {
        height: 160px;
        padding: 20px 8px 16px;
    }
    
    .trend-date {
        font-size: 9px;
    }
}

/* 列表样式 */
.list-container {
    margin: 24px 0;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.list-header h3 {
    font-size: 18px;
    color: #303133;
}

.list-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.list-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.list-table th,
.list-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
}

.list-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: #303133;
}

.list-table tr:hover {
    background-color: #f5f7fa;
}

.list-actions {
    display: flex;
    gap: 8px;
}

.list-actions .btn {
    margin: 0;
    padding: 4px 8px;
    font-size: 12px;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #67c23a;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* 成功提示样式 */
.success-message {
    background-color: #f0f9eb;
    color: #67c23a;
    padding: 12px;
    border-radius: 4px;
    margin: 16px 0;
    text-align: center;
    border: 1px solid #e1f3d8;
}

/* 兑换确认样式 */
.exchange-confirm {
    background-color: var(--light-bg);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border-left: 6px solid var(--primary-color);
}

.exchange-confirm p {
    margin: 12px 0;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exchange-confirm p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.exchange-confirm p:last-child {
    margin-bottom: 0;
}

/* 错误提示样式 */
.error-message {
    background-color: #fef0f0;
    color: #f56c6c;
    padding: 12px;
    border-radius: 4px;
    margin: 16px 0;
    text-align: center;
    border: 1px solid #fbc4c4;
}

/* 兑奖系统样式 */
.exchange-container {
    width: 100%;
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.exchange-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.exchange-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.exchange-header h2::before {
    content: '🎁';
    font-size: 32px;
}

.exchange-actions {
    margin-bottom: 24px;
    text-align: right;
}

.exchange-content {
    width: 100%;
}

/* 瀑布流布局（行布局，从左往右、从上往下排列） */
.prize-waterfall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.prize-waterfall .prize-item {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 响应式瀑布流 */
@media (max-width: 1200px) {
    .prize-waterfall {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 900px) {
    .prize-waterfall {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 600px) {
    .prize-waterfall {
        grid-template-columns: 1fr;
    }
}

/* 版权信息样式 */
.copyright {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #606266;
    font-size: 14px;
    z-index: 1000;
    margin: 16px 0;
    text-align: center;
    width: 100%;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

/* 加载状态 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    padding: 20px;
}

.loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-bg);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 全屏加载状态 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.loading-overlay::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-bg);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 局部加载状态 */
.loading-container {
    position: relative;
}

.loading-container.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--light-bg);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 按钮加载状态 */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0;
}

/* 文件上传按钮样式 */
input[type="file"] {
    display: inline-block;
    cursor: pointer;
}

/* WebKit浏览器文件上传按钮样式 */
input[type="file"]::-webkit-file-upload-button {
    background-color: #ef476f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-left: 8px;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Firefox浏览器文件上传按钮样式 */
input[type="file"]::file-selector-button {
    background-color: #ef476f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-left: 8px;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 生日输入框样式 */
.form-group input[type="date"] {
    /* 移除默认样式 */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* 自定义基础样式 */
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.2s ease;
    position: relative;
    /* 添加生日图标 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

/* 生日输入框悬停效果 */
.form-group input[type="date"]:hover {
    border-color: var(--primary-color);
    background-color: var(--light-bg);
    /* 悬停时改变图标颜色 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
}

/* 生日输入框聚焦效果 */
.form-group input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    transform: translateY(-1px);
    /* 聚焦时改变图标颜色 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
}

/* 生日输入框禁用状态 */
.form-group input[type="date"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--light-bg);
    border-color: var(--border-color);
}

/* 美化日历选择器（WebKit浏览器） */
::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    z-index: 1;
}

/* Firefox浏览器日历选择器样式 */
input[type="date"]::-moz-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    z-index: 1;
}

/* 自定义日历选择器样式 */
.custom-datepicker {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.custom-datepicker input[type="text"] {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.custom-datepicker input[type="text"]:hover {
    border-color: var(--primary-color);
    background-color: var(--light-bg);
}

.custom-datepicker input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    transform: translateY(-1px);
}

.calendar-icon {
    position: absolute;
    right: 16px;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    z-index: 2;
}

.calendar-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* 自定义日历容器 */
.custom-calendar {
    position: fixed;
    width: 280px;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 16px;
    z-index: 9999;
    display: none;
    margin-top: 8px;
    max-height: 320px;
    overflow: hidden;
    box-sizing: border-box;
}

.custom-calendar.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 日历头部 */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.calendar-nav:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    transform: scale(1.1);
}

.calendar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    flex: 1;
}

/* 日历网格 */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* 星期标题 */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}

.weekday {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 4px;
    border-radius: var(--radius-sm);
    background-color: var(--light-bg);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    box-sizing: border-box;
    overflow: hidden;
}

/* 日期单元格 */
.calendar-day {
    text-align: center;
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
    background-color: var(--card-bg);
    border: 2px solid transparent;
    min-height: 28px;
    max-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.calendar-day:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 700;
}

.calendar-day.other-month {
    color: var(--text-secondary);
    opacity: 0.5;
}

.calendar-day.today {
    background-color: rgba(255, 107, 107, 0.1);
    border-color: var(--primary-color);
    font-weight: 700;
}

/* 日历底部 */
.calendar-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 2px solid var(--light-bg);
    width: 100%;
    box-sizing: border-box;
}

.calendar-footer button {
    margin-left: 4px;
    padding: 4px 10px;
    font-size: 10px;
    box-sizing: border-box;
    width: auto;
    max-width: 80px;
}

/* 为生日输入框添加活泼的儿童主题样式 */
.form-group:has(.custom-datepicker) label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group:has(.custom-datepicker) label::before {
    content: '🎂';
    font-size: 18px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* 通知系统样式 */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    max-width: 350px;
    border-left: 4px solid var(--primary-color);
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification.error {
    border-left-color: var(--danger-color);
}

.notification.info {
    border-left-color: var(--secondary-color);
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* 自定义下拉列表样式 */
.custom-select {
    position: relative;
    display: inline-block;
}

/* 自定义下拉触发器样式 */
.custom-select-trigger {
    padding: 10px 40px 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background-color: var(--card-bg);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 150px;
}

/* 头部导航栏中的自定义下拉触发器特殊样式 */
.child-selector .custom-select-trigger {
    padding: 10px 40px 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

/* 自定义下拉箭头样式 */
.custom-select-arrow {
    font-size: 12px;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

/* 头部导航栏中的自定义下拉箭头特殊样式 */
.child-selector .custom-select-arrow {
    color: white;
}

/* 悬停效果 */
.custom-select-trigger:hover {
    border-color: #ef476f;
    background-color: var(--light-bg);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* 头部导航栏中的自定义下拉触发器悬停效果 */
.child-selector .custom-select-trigger:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.3);
}

/* 激活效果 */
.custom-select-trigger.active {
    border-color: #ef476f;
    box-shadow: 0 0 0 3px rgba(239, 71, 111, 0.1);
}

/* 头部导航栏中的自定义下拉触发器激活效果 */
.child-selector .custom-select-trigger.active {
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* 激活时箭头旋转 */
.custom-select-trigger.active .custom-select-arrow {
    transform: rotate(180deg);
    color: #ef476f;
}

/* 头部导航栏中的自定义下拉触发器激活时箭头样式 */
.child-selector .custom-select-trigger.active .custom-select-arrow {
    color: white;
}

/* 自定义下拉列表模态框样式 */
.custom-select-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease;
}

.custom-select-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-select-modal-content {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    border: 2px solid rgba(239, 71, 111, 0.2);
}

.custom-select-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background-color: #ef476f;
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.custom-select-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.custom-select-modal-close {
    font-size: 20px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    line-height: 1;
    transform-origin: 50% 50%;
    padding: 0;
    margin: 0;
}

.custom-select-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.custom-select-modal-body {
    padding: 20px 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.custom-select-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-select-option {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--card-bg);
    border: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.custom-select-option:hover {
    background-color: var(--light-bg);
    border-color: #ef476f;
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.custom-select-option.selected {
    background-color: rgba(239, 71, 111, 0.15);
    border-color: #ef476f;
    color: #ef476f;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(239, 71, 111, 0.1);
}

/* 自定义下拉列表模态框内滚动条样式 */
.custom-select-modal-body::-webkit-scrollbar {
    width: 10px;
}

.custom-select-modal-body::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.custom-select-modal-body::-webkit-scrollbar-thumb {
    background: #ef476f;
    border-radius: var(--radius-sm);
    border: 2px solid var(--light-bg);
}

.custom-select-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 功能锁定样式 */
.feature-locked {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* 按钮禁用样式增强 */
button:disabled, input:disabled, select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}