* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f5f7fa; }
#app { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar { width: 220px; background: #4A3728; color: #fff; display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-header { padding: 24px 20px; font-size: 20px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 10px; }
.sidebar-header .logo { font-size: 28px; }
.sidebar-menu { flex: 1; padding: 12px 0; }
.sidebar-menu .menu-item { padding: 14px 24px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 10px; font-size: 14px; border-left: 3px solid transparent; text-decoration: none; color: #fff; }
.sidebar-menu .menu-item:hover { background: rgba(255,255,255,0.08); }
.sidebar-menu .menu-item.active { background: rgba(255,255,255,0.12); border-left-color: #FF8A9E; color: #FF8A9E; font-weight: 600; }
.sidebar-footer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 8px; }

/* Main */
.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: 60px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); flex-shrink: 0; }
.topbar-title { font-size: 18px; font-weight: 600; color: #4A3728; }
.topbar-user { font-size: 14px; color: #999; }
.main-content { flex: 1; padding: 24px; overflow-y: auto; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.stat-card .label { font-size: 13px; color: #999; margin-bottom: 8px; }
.stat-card .value { font-size: 32px; font-weight: 700; color: #4A3728; }
.stat-card .trend { font-size: 12px; margin-top: 4px; }
.stat-card .trend.up { color: #7BC67E; }
.stat-card .trend.down { color: #E87084; }

/* Page */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.page-header h2 { font-size: 20px; color: #4A3728; }
.table-actions { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.el-table { border-radius: 8px; overflow: hidden; }

/* Login */
.login-container { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #FFF5EE, #FFE8E8); }
.login-card { background: #fff; border-radius: 16px; padding: 48px 40px; width: 400px; box-shadow: 0 8px 32px rgba(74,55,40,0.12); }
.login-card h1 { text-align: center; font-size: 28px; margin-bottom: 8px; color: #4A3728; }
.login-card p { text-align: center; color: #999; margin-bottom: 32px; font-size: 14px; }

/* Dashboard nav cards */
.nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 24px; }
.nav-card { background: #fff; border-radius: 12px; padding: 32px 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-align: center; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; display: block; }
.nav-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.nav-card .icon { font-size: 40px; margin-bottom: 12px; }
.nav-card .title { font-size: 16px; font-weight: 600; color: #4A3728; margin-bottom: 6px; }
.nav-card .desc { font-size: 13px; color: #999; }

/* Badges */
.pet-badge { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.pet-badge.free { background: #E8F5E9; color: #4CAF50; }
.pet-badge.paid { background: #FFF3E0; color: #F5A623; }
.pet-badge.nfc { background: #E3F2FD; color: #2196F3; }

/* Upload */
.upload-area { border: 2px dashed #ddd; border-radius: 12px; padding: 40px; text-align: center; transition: all 0.3s; cursor: pointer; }
.upload-area:hover { border-color: #FF8A9E; background: #FFF5F5; }
.upload-area .icon { font-size: 48px; color: #ccc; }
.upload-area .text { color: #999; margin-top: 8px; }
.frame-preview { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.frame-item { width: 80px; height: 80px; border: 1px solid #eee; border-radius: 8px; overflow: hidden; position: relative; }
.frame-item img { width: 100%; height: 100%; object-fit: contain; }
.frame-item .remove { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; background: #E87084; color: #fff; border-radius: 50%; font-size: 12px; line-height: 20px; text-align: center; cursor: pointer; }
.anim-config { display: flex; gap: 16px; align-items: center; margin: 16px 0; flex-wrap: wrap; }

/* Section card */
.section-card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.section-title { font-size: 16px; font-weight: 600; color: #4A3728; margin-bottom: 16px; }
