/* 迪士尼主题库存管理页面样式 */ /* 基础样式 */ body { background-color: #f9f7ff; font-family: 'Arial Rounded MT Bold', 'Helvetica Neue', Arial, sans-serif; color: #3d4c65; } /* 迪士尼风格卡片 */ .disney-inventory-card { border: none; border-radius: 20px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); background-color: #ffffff; margin-bottom: 40px; position: relative; overflow: hidden; transition: all 0.3s ease; padding: 2px; border: 3px solid #f0e6fa; } .disney-inventory-card:hover { box-shadow: 0 15px 30px rgba(110, 125, 249, 0.2); transform: translateY(-5px); } /* 迪士尼装饰元素 */ .disney-decoration { position: absolute; width: 60px; height: 60px; background-size: contain; background-repeat: no-repeat; opacity: 0.8; z-index: 1; } .top-left { top: 10px; left: 10px; background-image: url('https://i.imgur.com/Vyo9IF4.png'); /* 替换为迪士尼星星图标URL */ transform: rotate(-15deg); } .top-right { top: 10px; right: 10px; background-image: url('https://i.imgur.com/pLRUYhb.png'); /* 替换为迪士尼魔法棒图标URL */ transform: rotate(15deg); } .bottom-left { bottom: 10px; left: 10px; background-image: url('https://i.imgur.com/KkMfwWv.png'); /* 替换为迪士尼城堡图标URL */ transform: rotate(-5deg); } .bottom-right { bottom: 10px; right: 10px; background-image: url('https://i.imgur.com/TcA6PL2.png'); /* 替换为迪士尼皇冠图标URL */ transform: rotate(5deg); } /* 米奇耳朵标题装饰 */ .card-header-disney { background: linear-gradient(45deg, #e4c1f9, #d4a5ff); color: #512b81; padding: 1.8rem 1.5rem 1.5rem; font-weight: 600; border-radius: 18px 18px 0 0; text-align: center; position: relative; z-index: 2; } .mickey-ears { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); width: 80px; height: 40px; background-image: url('https://i.imgur.com/pCPQoZx.png'); /* 替换为米奇耳朵图标URL */ background-size: contain; background-repeat: no-repeat; background-position: center; } /* 卡片内容 */ .card-body-disney { padding: 2.5rem; background-color: #ffffff; border-radius: 0 0 18px 18px; position: relative; z-index: 2; } /* 书籍封面 */ .book-cover-container { position: relative; display: flex; justify-content: center; align-items: flex-start; } .book-cover { max-height: 300px; width: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; position: relative; z-index: 2; border: 3px solid #f9f0ff; } .book-cover:hover { transform: scale(1.03); } .disney-sparkles { position: absolute; width: 100%; height: 100%; background-image: url('https://i.imgur.com/8vZuwlG.png'); /* 替换为迪士尼闪光效果URL */ background-size: 200px; background-repeat: no-repeat; background-position: center; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; } .book-cover:hover + .disney-sparkles { opacity: 0.7; } /* 书籍详情 */ .book-details { display: flex; flex-direction: column; justify-content: center; } .book-title { color: #5e35b1; font-weight: 700; margin-bottom: 1.8rem; font-size: 1.8rem; border-bottom: 3px dotted #e1bee7; padding-bottom: 1rem; } .book-info { font-size: 1.05rem; color: #424242; } .book-info p { margin-bottom: 1rem; display: flex; align-items: center; } /* 迪士尼图标 */ .disney-icon { display: inline-block; width: 28px; height: 28px; background-size: contain; background-position: center; background-repeat: no-repeat; margin-right: 10px; flex-shrink: 0; } .author-icon { background-image: url('https://i.imgur.com/2K5qpgQ.png'); /* 替换为米妮图标URL */ } .publisher-icon { background-image: url('https://i.imgur.com/YKhKVT7.png'); /* 替换为唐老鸭图标URL */ } .isbn-icon { background-image: url('https://i.imgur.com/ioaQTBM.png'); /* 替换为高飞图标URL */ } .inventory-icon { background-image: url('https://i.imgur.com/D0jRTKX.png'); /* 替换为奇奇蒂蒂图标URL */ } .type-icon { background-image: url('https://i.imgur.com/xgQriQn.png'); /* 替换为米奇图标URL */ } .amount-icon { background-image: url('https://i.imgur.com/ioaQTBM.png'); /* 替换为高飞图标URL */ } .remark-icon { background-image: url('https://i.imgur.com/2K5qpgQ.png'); /* 替换为米妮图标URL */ } /* 库存状态标签 */ .stock-badge { display: inline-block; padding: 0.35em 0.9em; border-radius: 50px; font-weight: 600; margin-left: 8px; font-size: 0.9rem; } .high-stock { background-color: #e0f7fa; color: #0097a7; border: 2px solid #80deea; } .low-stock { background-color: #fff8e1; color: #ff8f00; border: 2px solid #ffe082; } .out-stock { background-color: #ffebee; color: #c62828; border: 2px solid #ef9a9a; } /* 表单容器 */ .form-container { background-color: #f8f4ff; padding: 2rem; border-radius: 15px; margin-top: 2rem; border: 2px dashed #d1c4e9; position: relative; } .form-group { position: relative; } /* 表单标签 */ .disney-label { color: #5e35b1; font-weight: 600; margin-bottom: 0.8rem; display: flex; align-items: center; font-size: 1.1rem; } /* 自定义表单控件 */ .disney-select, .disney-input, .disney-textarea { display: block; width: 100%; padding: 0.8rem 1rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #495057; background-color: #fff; background-clip: padding-box; border: 2px solid #d1c4e9; border-radius: 12px; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } .disney-select:focus, .disney-input:focus, .disney-textarea:focus { border-color: #9575cd; outline: 0; box-shadow: 0 0 0 0.2rem rgba(149, 117, 205, 0.25); } /* 确保下拉菜单选项可见 */ .disney-select option { background-color: #fff; color: #495057; padding: 8px; } /* 库存提示 */ .stock-hint { color: #757575; font-size: 0.95rem; margin-top: 0.6rem; font-weight: 500; } .stock-hint.warning { color: #ff8f00; font-weight: bold; } .stock-hint.danger { color: #c62828; font-weight: bold; } /* 按钮样式 */ .button-group { display: flex; justify-content: flex-end; gap: 15px; margin-top: 2rem; } .btn { padding: 0.7rem 2rem; border-radius: 50px; font-weight: 600; font-size: 1rem; letter-spacing: 0.5px; display: inline-block; text-align: center; vertical-align: middle; transition: all 0.3s ease; position: relative; overflow: hidden; } .disney-cancel-btn { background-color: #f3e5f5; color: #6a1b9a; border: 2px solid #ce93d8; } .disney-cancel-btn:hover { background-color: #e1bee7; color: #4a148c; transform: translateY(-3px); } .disney-confirm-btn { background: linear-gradient(45deg, #7e57c2, #5e35b1); color: white; border: none; } .disney-confirm-btn:hover { background: linear-gradient(45deg, #673ab7, #4527a0); transform: translateY(-3px); box-shadow: 0 7px 15px rgba(103, 58, 183, 0.3); } .disney-confirm-btn:before { content: ""; position: absolute; top: -10px; left: -20px; width: 40px; height: 40px; background-image: url('https://i.imgur.com/8vZuwlG.png'); /* 替换为迪士尼魔法效果URL */ background-size: contain; background-repeat: no-repeat; opacity: 0; transition: all 0.5s ease; transform: scale(0.5); } .disney-confirm-btn:hover:before { opacity: 0.8; transform: scale(1) rotate(45deg); top: -5px; left: 10px; } /* 响应式调整 */ @media (max-width: 768px) { .book-cover-container { margin-bottom: 30px; } .book-cover { max-height: 250px; } .book-title { text-align: center; font-size: 1.5rem; } .disney-decoration { width: 40px; height: 40px; } .button-group { flex-direction: column; } .btn { width: 100%; margin-bottom: 10px; } .card-header-disney, .card-body-disney { padding: 1.5rem; } } /* 表单元素聚焦效果 */ .form-group.focused { transform: translateY(-3px); } .form-group.focused .disney-label { color: #7e57c2; } /* 提交动画 */ .disney-inventory-card.submitting { animation: submitPulse 1s ease; } @keyframes submitPulse { 0% { transform: scale(1); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); } 50% { transform: scale(1.02); box-shadow: 0 15px 35px rgba(126, 87, 194, 0.3); } 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); } } /* 确认按钮动画 */ .disney-confirm-btn.active { animation: btnPulse 0.3s ease; } @keyframes btnPulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } } /* 表单过渡效果 */ .form-group { transition: transform 0.3s ease; } .disney-select, .disney-input, .disney-textarea { transition: all 0.3s ease; } /* 闪光效果持续时间 */ .disney-sparkles { transition: opacity 0.8s ease; }