/* 冰雪奇缘主题库存日志页面样式 */ @import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Nunito:wght@300;400;600;700&display=swap'); :root { --primary-blue: #6fa8dc; --light-blue: #cfe2f3; --dark-blue: #1a5190; --accent-pink: #f4b8c4; --accent-purple: #b19cd9; --subtle-gold: #ffd966; --ice-white: #f3f9ff; --snow-white: #ffffff; --text-dark: #2c3e50; --text-light: #ecf0f1; --shadow-color: rgba(0, 53, 102, 0.15); --frost-blue: #a2d5f2; --elsa-blue: #85c1e9; --anna-purple: #c39bd3; --olaf-white: #f9fcff; } /* 全局样式重置 */ * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Nunito', sans-serif; background: #f5f9ff url('/static/images/disney-bg.jpg') no-repeat center center fixed; background-size: cover; color: var(--text-dark); line-height: 1.6; position: relative; overflow-x: hidden; min-height: 100vh; } /* 容器样式 */ .disney-container { max-width: 95%; margin: 2rem auto; padding: 0 15px; position: relative; z-index: 1; } /* 魔法粒子效果层 */ #magic-particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; } /* 主卡片样式 */ .disney-card { background: linear-gradient(135deg, var(--ice-white) 0%, var(--snow-white) 100%); border-radius: 20px; box-shadow: 0 10px 30px var(--shadow-color), 0 0 50px rgba(137, 196, 244, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.8); overflow: hidden; position: relative; margin-bottom: 2rem; border: 1px solid rgba(200, 223, 255, 0.8); animation: card-glow 3s infinite alternate; } /* 卡片发光动画 */ @keyframes card-glow { from { box-shadow: 0 10px 30px var(--shadow-color), 0 0 50px rgba(137, 196, 244, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.8); } to { box-shadow: 0 10px 30px var(--shadow-color), 0 0 70px rgba(137, 196, 244, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.9); } } /* 装饰元素 */ .disney-decoration { position: absolute; background-size: contain; background-repeat: no-repeat; opacity: 0.7; z-index: 1; pointer-events: none; } .book-icon { top: 20px; right: 30px; width: 60px; height: 60px; background-image: url('https://api.iconify.design/ph:books-duotone.svg?color=%236fa8dc'); transform: rotate(10deg); animation: float 6s ease-in-out infinite; } .crown-icon { bottom: 40px; left: 20px; width: 50px; height: 50px; background-image: url('https://api.iconify.design/fa6-solid:crown.svg?color=%23ffd966'); animation: float 5s ease-in-out infinite 1s; } .wand-icon { top: 60px; left: 40px; width: 40px; height: 40px; background-image: url('https://api.iconify.design/fa-solid:magic.svg?color=%23b19cd9'); animation: float 7s ease-in-out infinite 0.5s; } .snowflake-icon { bottom: 70px; right: 50px; width: 45px; height: 45px; background-image: url('https://api.iconify.design/fa-regular:snowflake.svg?color=%23a2d5f2'); animation: float 4s ease-in-out infinite 1.5s, spin 15s linear infinite; } @keyframes float { 0% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-15px) rotate(5deg); } 100% { transform: translateY(0) rotate(0deg); } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* 卡片头部 */ .card-header-disney { background: linear-gradient(45deg, var(--elsa-blue), var(--frost-blue)); color: var(--text-light); padding: 1.5rem; text-align: center; position: relative; border-bottom: 3px solid rgba(255, 255, 255, 0.5); } .card-header-disney h4 { font-size: 1.8rem; font-weight: 700; margin: 0; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); position: relative; z-index: 2; font-family: 'Dancing Script', cursive; letter-spacing: 1px; } .card-header-disney i { margin-right: 10px; color: var(--subtle-gold); animation: pulse 2s infinite; } .princess-crown { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 60px; height: 30px; background-image: url('https://api.iconify.design/fa6-solid:crown.svg?color=%23ffd966'); background-size: contain; background-repeat: no-repeat; background-position: center; filter: drop-shadow(0 0 5px rgba(255, 217, 102, 0.7)); } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } } /* 卡片内容 */ .card-body-disney { padding: 2rem; position: relative; z-index: 2; } /* 图书信息部分 */ .book-details-container { display: flex; background: linear-gradient(to right, rgba(162, 213, 242, 0.1), rgba(177, 156, 217, 0.1)); border-radius: 15px; padding: 1.5rem; margin-bottom: 2rem; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); border: 1px solid rgba(162, 213, 242, 0.3); position: relative; overflow: hidden; } .book-cover-wrapper { flex: 0 0 150px; margin-right: 2rem; position: relative; } .disney-book-cover { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 4px solid white; object-fit: cover; z-index: 2; position: relative; } .disney-book-cover:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15); } .book-cover-glow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(162, 213, 242, 0.6) 0%, rgba(255, 255, 255, 0) 70%); z-index: 1; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; } .book-cover-wrapper:hover .book-cover-glow { opacity: 1; animation: glow-pulse 2s infinite; } @keyframes glow-pulse { 0% { opacity: 0.3; } 50% { opacity: 0.7; } 100% { opacity: 0.3; } } .book-info { flex: 1; } .book-title { font-family: 'Dancing Script', cursive; font-size: 2rem; margin-bottom: 1rem; color: var(--dark-blue); text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); position: relative; display: inline-block; } .book-title::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background: linear-gradient(to right, var(--elsa-blue), var(--anna-purple)); border-radius: 2px; } .info-row { display: flex; align-items: center; margin-bottom: 0.8rem; font-size: 1rem; } .disney-icon { width: 24px; height: 24px; margin-right: 10px; background-size: contain; background-repeat: no-repeat; background-position: center; } .author-icon { background-image: url('https://api.iconify.design/fa-solid:user-edit.svg?color=%236fa8dc'); } .publisher-icon { background-image: url('https://api.iconify.design/fa-solid:building.svg?color=%236fa8dc'); } .isbn-icon { background-image: url('https://api.iconify.design/fa-solid:barcode.svg?color=%236fa8dc'); } .stock-icon { background-image: url('https://api.iconify.design/fa-solid:warehouse.svg?color=%236fa8dc'); } .stock-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-weight: bold; font-size: 0.9rem; color: white; margin-left: 5px; } .high-stock { background-color: #2ecc71; animation: badge-pulse 2s infinite; } .low-stock { background-color: #f39c12; } .out-stock { background-color: #e74c3c; } @keyframes badge-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } } /* 日志部分 */ .logs-section { background-color: var(--ice-white); border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); padding: 1.5rem; position: relative; overflow: hidden; border: 1px solid rgba(162, 213, 242, 0.3); } .logs-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://api.iconify.design/ph:snowflake-thin.svg?color=%23a2d5f2'); background-size: 20px; opacity: 0.05; pointer-events: none; animation: snow-bg 60s linear infinite; } @keyframes snow-bg { from { background-position: 0 0; } to { background-position: 100% 100%; } } .logs-title { text-align: center; font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--dark-blue); position: relative; display: flex; align-items: center; justify-content: center; font-family: 'Dancing Script', cursive; } .title-decoration { width: 100px; height: 2px; background: linear-gradient(to right, transparent, var(--elsa-blue), transparent); margin: 0 15px; } .title-decoration.right { transform: scaleX(-1); } .table-container { overflow-x: auto; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); margin-bottom: 1.5rem; } .disney-table { width: 100%; border-collapse: separate; border-spacing: 0; background-color: white; border-radius: 10px; overflow: hidden; } .disney-table thead { background: linear-gradient(45deg, var(--elsa-blue), var(--frost-blue)); color: white; } .disney-table th { padding: 1rem 0.8rem; text-align: left; font-weight: 600; letter-spacing: 0.5px; position: relative; border-bottom: 1px solid rgba(255, 255, 255, 0.3); } .disney-table th:first-child { border-top-left-radius: 10px; } .disney-table th:last-child { border-top-right-radius: 10px; } .disney-table td { padding: 0.8rem; border-bottom: 1px solid rgba(162, 213, 242, 0.2); vertical-align: middle; } .log-row { transition: all 0.3s ease; } .log-row:hover { background-color: rgba(162, 213, 242, 0.1); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); } .operation-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-align: center; display: inline-block; min-width: 80px; } .in-badge { background-color: rgba(46, 204, 113, 0.15); color: #27ae60; border: 1px solid rgba(46, 204, 113, 0.3); } .out-badge { background-color: rgba(231, 76, 60, 0.15); color: #c0392b; border: 1px solid rgba(231, 76, 60, 0.3); } .remark-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .empty-logs { text-align: center; padding: 3rem 0 !important; } .empty-state { display: flex; flex-direction: column; align-items: center; color: #95a5a6; } .empty-icon { width: 80px; height: 80px; background-image: url('https://api.iconify.design/ph:book-open-duotone.svg?color=%2395a5a6'); background-size: contain; background-repeat: no-repeat; background-position: center; margin-bottom: 1rem; opacity: 0.7; } .empty-state p { font-size: 1.1rem; } /* 分页样式 */ .disney-pagination { margin-top: 1.5rem; display: flex; justify-content: center; } .pagination-list { display: flex; list-style: none; gap: 5px; align-items: center; } .page-item { margin: 0 2px; } .page-link { display: flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 20px; color: var(--dark-blue); background-color: white; text-decoration: none; font-weight: 600; transition: all 0.3s ease; min-width: 40px; border: 1px solid rgba(111, 168, 220, 0.3); } .page-link:hover:not(.disabled .page-link) { background-color: var(--light-blue); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); transform: translateY(-2px); } .page-item.active .page-link { background: linear-gradient(45deg, var(--elsa-blue), var(--frost-blue)); color: white; box-shadow: 0 4px 8px rgba(111, 168, 220, 0.3); } .page-item.dots .page-link { border: none; background: none; pointer-events: none; } .page-item.disabled .page-link { color: #b2bec3; pointer-events: none; background-color: rgba(236, 240, 241, 0.5); border: 1px solid rgba(189, 195, 199, 0.3); } /* 卡片底部 */ .card-footer-disney { padding: 1.5rem; background: linear-gradient(45deg, rgba(162, 213, 242, 0.2), rgba(177, 156, 217, 0.2)); border-top: 1px solid rgba(162, 213, 242, 0.3); } .button-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; } .disney-button { padding: 10px 20px; border-radius: 30px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; transition: all 0.3s ease; position: relative; overflow: hidden; z-index: 1; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); } .disney-button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); transition: all 0.6s ease; z-index: -1; } .disney-button:hover::before { left: 100%; } .disney-button:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); } .button-icon { margin-right: 10px; } .return-btn { background: linear-gradient(45deg, #3498db, #2980b9); color: white; } .adjust-btn { background: linear-gradient(45deg, #9b59b6, #8e44ad); color: white; } /* 响应式设计 */ @media (max-width: 992px) { .book-details-container { flex-direction: column; } .book-cover-wrapper { margin-right: 0; margin-bottom: 1.5rem; text-align: center; width: 180px; margin: 0 auto 1.5rem; } .logs-title { font-size: 1.3rem; } .title-decoration { width: 50px; } } @media (max-width: 768px) { .disney-container { margin: 1rem auto; } .card-header-disney h4 { font-size: 1.5rem; } .card-body-disney { padding: 1.5rem 1rem; } .book-title { font-size: 1.7rem; } .disney-button { padding: 8px 15px; font-size: 0.9rem; } } @media (max-width: 576px) { .button-container { justify-content: center; gap: 1rem; } .book-title { font-size: 1.5rem; } .logs-title { font-size: 1.2rem; } .title-decoration { width: 30px; } } /* 飘落的雪花 */ .snowflake { position: fixed; top: -50px; animation: fall linear infinite; z-index: 0; pointer-events: none; color: rgba(255, 255, 255, 0.8); text-shadow: 0 0 5px rgba(162, 213, 242, 0.5); } @keyframes fall { to { transform: translateY(100vh) rotate(360deg); } }