:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --danger: #ea4335;
    --success: #34a853;
    --warning: #fbbc04;
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --text: #202124;
    --text-secondary: #5f6368;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
}
*{box-sizing:border-box;margin:0}
body {
    background: #fff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    padding: 20px 20px 100px 20px;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    color: white;
    background: var(--primary);
    letter-spacing: 0.5px;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,115,232,0.3); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #d93025; }
.btn-success { background: var(--success); }
.btn-success:hover { background: #2d9249; }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 24px;
}
.btn-outline:hover { background: rgba(26,115,232,0.08); }
input, textarea, select {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
    outline: none;
    background: #fff;
}
.flex { display: flex; gap: 12px; flex-wrap: wrap; }
.mt-2 { margin-top: 20px; }
.text-center { text-align: center; }
.toast-container {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: white; padding: 14px 28px; border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 9999;
    display: none; align-items: center; gap: 8px; font-size: 16px; font-weight: 500;
}
.toast-container.show { display: flex; animation: slideDown 0.3s ease; }
.toast-container.success { color: var(--success); border-left: 4px solid var(--success); }
.toast-container.error { color: var(--danger); border-left: 4px solid var(--danger); }
.toast-container.warning { color: #f9a825; }
@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.table { width:100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 14px; border-bottom: 1px solid #eee; text-align: left; }
.table th { background: #f8f9fa; font-weight: 600; color: var(--text-secondary); }

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: 60px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 100;
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    font-size: 11px;
    transition: color 0.2s;
}
.bottom-nav a span:first-child {
    font-size: 20px;
    margin-bottom: 2px;
}
.bottom-nav a.active { color: var(--primary); font-weight: 600; }

/* 签到按钮 */
.sign-btn {
    background: linear-gradient(135deg, #f9a825, #fbc02d);
    color: #fff; border: none; padding: 12px 30px; font-size: 16px; border-radius: 30px;
    font-weight: bold; box-shadow: 0 4px 12px rgba(251,192,45,0.4); cursor: pointer;
}

/* 二维码卡片 */
.qr-section { text-align: center; margin-top: 16px; }
.qr-code canvas, .qr-code img { border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.invite-code-box { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0; }
.invite-code { font-size: 24px; font-weight: bold; color: var(--primary); background: #e8f0fe; padding: 6px 20px; border-radius: 30px; }
.copy-btn { padding: 8px 18px; font-size: 14px; }

/* 海报按钮 */
.poster-btn { margin-top: 10px; }

@media (max-width: 600px) {
    body { padding: 12px 12px 90px 12px; }
    .card { padding: 20px; }
    .btn { width: 100%; margin-bottom: 8px; }
    .flex { flex-direction: column; }
}
/* ---------- 以上为前台+后台共用样式，以下样式已迁移至 assets/css/admin.css ---------- */