:root { 
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #764ba2;
    --bg-color: #f3f5f9;
    --card-radius: 18px;
}

body { 
    background-color: var(--bg-color); 
    padding-bottom: 80px; 
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
}

/* 头部设计 */
.header-box { 
    background: var(--primary-gradient); 
    color: white; 
    padding: 30px 20px 50px 20px; 
    border-radius: 0 0 30px 30px; 
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.2);
    position: relative;
    overflow: hidden;
}
.header-box::before {
    content: ''; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px;
    background: rgba(255,255,255,0.1); border-radius: 50%;
}

.nav-pills { background: rgba(0,0,0,0.2); padding: 4px; border-radius: 50px; display: inline-flex; }
.nav-pills .nav-link { color: rgba(255,255,255,0.8); padding: 8px 25px; border-radius: 50px; font-size: 0.95rem; transition: all 0.3s; }
.nav-pills .nav-link.active { background: white; color: var(--accent-color); font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* --- Lemon羊毛日记 横幅样式 (动态心跳版) --- */
.lemon-banner {
    background: linear-gradient(90deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 15px 0 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 20;
    /* 呼吸动画 */
    animation: banner-breath 2s ease-in-out infinite;
    will-change: transform, box-shadow;
}
@keyframes banner-breath {
    0% { transform: scale(1); box-shadow: 0 5px 15px rgba(255, 75, 43, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 10px 25px rgba(255, 75, 43, 0.6); }
    100% { transform: scale(1); box-shadow: 0 5px 15px rgba(255, 75, 43, 0.3); }
}

.lemon-title { font-weight: bold; font-size: 1rem; margin-bottom: 4px; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.lemon-desc { font-size: 0.85rem; opacity: 0.95; margin-bottom: 12px; }

/* 按钮组容器 */
.btn-row { display: flex; justify-content: center; gap: 15px; }

/* 通用按钮样式 (带Q弹动画) */
.action-btn {
    display: flex; align-items: center; background: white; padding: 8px 18px; border-radius: 50px;
    text-decoration: none; font-weight: 800; font-size: 0.9rem; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); border: none; cursor: pointer;
    animation: btn-bounce 3s infinite;
}
.btn-qq { color: #d9363e; animation-delay: 0s; }
.btn-wx { color: #07c160; animation-delay: 0.2s; }

.action-btn:active { transform: scale(0.9); transition: 0.1s; }
.action-btn i { margin-right: 5px; font-size: 1.1rem; }

@keyframes btn-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    85% { transform: translateY(-4px); }
    90% { transform: translateY(0); }
    95% { transform: translateY(-2px); }
}

/* --- 弹窗 Modal 样式 --- */
.modal-mask {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 9999; align-items: center; justify-content: center;
    animation: fadeIn 0.2s;
}
.modal-box {
    background: white; width: 85%; max-width: 320px; padding: 25px; border-radius: 20px;
    text-align: center; position: relative; animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-close { position: absolute; top: 10px; right: 15px; font-size: 24px; color: #999; cursor: pointer; }
.qr-img { width: 100%; max-width: 220px; margin: 10px 0; border-radius: 8px; border: 1px solid #eee; }

/* 开屏弹窗样式 */
.startup-box { padding: 30px 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.penguin-icon { width: 80px; height: 80px; margin-bottom: 15px; object-fit: contain; }
.startup-title { font-size: 1.4rem; font-weight: 800; color: #333; margin-bottom: 8px; }
.startup-desc { font-size: 0.95rem; color: #666; margin-bottom: 25px; line-height: 1.5; }

.btn-join-group {
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
    color: white; width: 100%; padding: 12px; border-radius: 50px; font-size: 1.1rem; font-weight: bold;
    border: none; box-shadow: 0 8px 20px rgba(0, 114, 255, 0.3); text-decoration: none; display: block;
    margin-bottom: 15px; transition: transform 0.2s;
}
.btn-join-group:active { transform: scale(0.96); color: white; }
.btn-refuse { background: none; border: none; color: #999; font-size: 0.9rem; text-decoration: underline; cursor: pointer; }

@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 主操作面板 */
.card-panel { 
    background: rgba(255, 255, 255, 0.95); border-radius: var(--card-radius); border: none; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.05); margin-top: 15px; backdrop-filter: blur(10px);
}
.form-control { border-radius: 12px; border: 2px solid #edf2f7; padding: 14px; background: #f8fafc; font-size: 1rem; transition: all 0.3s; }
.form-control:focus { background: #fff; border-color: #bfa3da; box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.1); }
.btn-submit { background: var(--primary-gradient); border: none; color: white; font-weight: 600; letter-spacing: 1px; transition: transform 0.2s; }
.btn-submit:active { transform: scale(0.98); }

.scheme-box { background: #fdfdfd; border-radius: 12px; padding: 15px; margin-top: 15px; border: 1px solid #eee; }
.scheme-tag { display: inline-block; background: #f3e8ff; color: #6b46c1; padding: 4px 10px; border-radius: 6px; font-size: 0.9rem; margin: 3px; font-weight: 500; }

.list-header { display: flex; align-items: center; justify-content: space-between; margin: 30px 5px 15px 5px; }
.search-input { border-radius: 20px; border: none; background: white; padding: 10px 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); width: 100%; outline: none; color: #666; }

.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 5px; }
.user-card { background: white; border-radius: 16px; padding: 15px; position: relative; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.02); animation: fadeUp 0.5s ease backwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.score-display { font-size: 1.6rem; font-weight: 800; line-height: 1; margin: 5px 0; letter-spacing: -1px; }
.tag-type { font-size: 0.7rem; padding: 3px 8px; border-radius: 6px; position: absolute; top: 12px; right: 12px; font-weight: bold; }
.tag-team { background: #fff7e6; color: #d46b08; } 
.tag-solo { background: #f0f5ff; color: #2f54eb; } 

.copy-btn { font-size: 0.85rem; margin-top: 10px; width: 100%; border-radius: 8px; background: #f7f9fc; color: #555; border: none; padding: 8px 0; font-weight: 500; }
.copy-btn.active { background: #d9f7be; color: #389e0d; }
.hidden-schemes { display: none; }
.show-more-btn { font-size: 0.8rem; color: #999; text-align: center; cursor: pointer; margin-top: 8px; }

.filter-btn-group .btn-check:checked + .btn { background-color: var(--accent-color); color: white; border-color: var(--accent-color); }
.filter-btn-group .btn { border-color: #ddd; color: #666; margin-right: 5px; }

/* ========================================= */
/* 【新增】顶部美化弹窗 (Toast) 样式 */
/* ========================================= */
#toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    width: 90%;
    max-width: 400px;
    pointer-events: none; /* 让点击穿透 */
}

.custom-toast {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    color: #333;
    padding: 14px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    animation: slideDownToast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
}

.custom-toast i { margin-right: 8px; font-size: 1.1rem; }
.custom-toast.success { color: #28a745; }
.custom-toast.error { color: #dc3545; }
.custom-toast.info { color: #0d6efd; }

@keyframes slideDownToast {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeOutToast {
    to { opacity: 0; transform: translateY(-20px); }
}