



* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* 🌌 在这里随时更换你喜欢的壁纸 */
    background: url('https://picsum.photos/1920/1080') no-repeat center center fixed; 
    background-size: cover; min-height: 100vh; padding: 50px 20px; color: #fff;
    -webkit-font-smoothing: antialiased;
}
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(10,10,25,0.4), rgba(0,0,0,0.3)); z-index: -1; }

.container { max-width: 900px; margin: 0 auto; }

header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
header h1 { font-size: 28px; font-weight: 700; letter-spacing: 1px; text-shadow: 0 4px 10px rgba(0,0,0,0.4); background: linear-gradient(to right, #fff, #e0e6ed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.header-btns { display: flex; gap: 12px; }

/* 智能通用按钮 */
.btn { padding: 10px 20px; border: none; border-radius: 20px; cursor: pointer; background: rgba(255,255,255,0.15); color: white; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(5px); }
.btn:hover { background: #fff; color: #1a1a2e; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,0.3); }
.btn-danger:hover { background: #e74c3c; color: white; box-shadow: 0 5px 15px rgba(231,76,60,0.4); border-color: #e74c3c; }
.btn-warning { background: rgba(230,126,34,0.2); border-color: rgba(230,126,34,0.4); color: #f39c12; }
.btn-warning:hover { background: #e67e22; color: white; box-shadow: 0 5px 15px rgba(230,126,34,0.4); border-color: #e67e22; }
.btn-primary { background: #2575fc; border-color: #2575fc; }
.btn-success { background: linear-gradient(135deg, #2ecc71, #27ae60); border: none; }

/* 磨砂玻璃搜索框 */
.search-box { display: flex; margin-bottom: 50px; box-shadow: 0 8px 32px rgba(0,0,0,0.25); border-radius: 30px; overflow: hidden; background: rgba(255, 255, 255, 0.12); padding: 6px; backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.15); }
.search-box input { flex: 1; padding: 12px 25px; border: none; outline: none; font-size: 16px; background: transparent; color: #fff; }
.search-box input::placeholder { color: rgba(255,255,255,0.6); }
.search-box button { background: linear-gradient(135deg, #6a11cb, #2575fc); color: white; border: none; padding: 0 30px; font-size: 15px; font-weight: 600; cursor: pointer; border-radius: 25px; transition: all 0.3s ease; }
.search-box button:hover { transform: scale(1.02); box-shadow: 0 0 15px rgba(37,117,252,0.5); }

/* 后台管理折叠面板 */
.admin-panel { background: rgba(10, 10, 20, 0.4); backdrop-filter: blur(20px); padding: 25px; border-radius: 16px; margin-bottom: 40px; border: 1px dashed rgba(255,255,255,0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.admin-panel h3 { margin-bottom: 15px; font-size: 18px; color: #e0e6ed; }
.form-group { display: flex; gap: 12px; flex-wrap: wrap; }
.form-group input { flex: 1; min-width: 180px; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; background: rgba(255,255,255,0.1); color: #fff; font-size: 14px; outline: none; }
.form-group input:focus { border-color: #2575fc; background: rgba(255,255,255,0.15); }

/* 分类与卡片网格系统 */
.category { margin-bottom: 45px; }
.category-title { font-size: 18px; color: #fff; margin-bottom: 20px; border-left: 4px solid #2575fc; padding-left: 12px; text-shadow: 0 2px 4px rgba(0,0,0,0.4); font-weight: 600; }
.category-hidden .category-title { border-left-color: #ff007f; color: #ff007f; text-shadow: 0 0 10px rgba(255,0,127,0.3); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.card-wrapper { position: relative; border-radius: 14px; }

/* 🌟 高光磨砂卡片样式 */
.card { 
    display: flex; align-items: center; min-height: 64px; gap: 12px;
    background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 12px 18px; border-radius: 14px; text-decoration: none; color: rgba(255,255,255,0.9); 
    font-weight: 600; font-size: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.card:hover { 
    background: rgba(255, 255, 255, 0.15); color: #fff; transform: translateY(-4px); 
    box-shadow: 0 10px 25px rgba(37,117,252,0.35); border-color: rgba(37, 117, 252, 0.6);
}

.card-icon { width: 28px; height: 28px; border-radius: 8px; background: #fff; padding: 2px; object-fit: contain; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: transform 0.3s; }
.card:hover .card-icon { transform: scale(1.1) rotate(4deg); }

.card-text-icon { width: 28px; height: 28px; border-radius: 8px; color: #fff; font-size: 13px; font-weight: bold; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: transform 0.3s; }
.card:hover .card-text-icon { transform: scale(1.1) rotate(-4deg); }

.card-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.category-hidden .card:hover { box-shadow: 0 10px 25px rgba(255,0,127,0.35); border-color: rgba(255, 0, 127, 0.6); }

/* 编辑悬浮动作组 */
.action-group { display: none; position: absolute; top: -8px; right: -8px; gap: 6px; z-index: 10; }
.is-editing .action-group { display: flex; }

.op-btn { width: 26px; height: 26px; color: white; border-radius: 50%; text-align: center; line-height: 24px; cursor: pointer; font-size: 12px; border: 1px solid rgba(255,255,255,0.2); transition: all 0.2s ease; }
.del-btn { background: #e74c3c; }
.del-btn:hover { background: #ff4757; transform: scale(1.1); }
.edit-btn { background: #f1c40f; color: #2c3e50; font-weight: bold; }
.edit-btn:hover { background: #ffd32a; transform: scale(1.1); }

/* 高清拟物弹窗 */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5,5,15,0.6); backdrop-filter: blur(8px); justify-content: center; align-items: center; z-index: 999; }
.modal-content { background: rgba(255,255,255,0.95); color: #1e272e; padding: 30px; border-radius: 20px; width: 360px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); border: 1px solid #fff; }
.modal-content h3 { font-size: 20px; font-weight: 700; color: #2c3e50; }
.modal-content label { font-size: 12px; color: #718093; display: block; margin-top: 15px; }
.modal-content input { width: 100%; padding: 10px 14px; margin-top: 5px; border: 1px solid #dcdde1; border-radius: 8px; font-size: 14px; outline: none; color: #2f3640; }
.btn-cancel { background: #f5f6fa; color: #2f3640; }