/* 星星投票按钮 */
.star-vote-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #F9C74F, #FF8A5C);
    color: #2D2A24; font-weight: bold; padding: 8px 16px;
    border-radius: 30px; border: none; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(249, 199, 79, 0.3);
}
.star-vote-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(249, 199, 79, 0.5); }
.star-vote-btn.disabled { background: #ccc; color: #666; cursor: not-allowed; box-shadow: none; }

/* 投票弹窗遮罩 */
.star-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px); z-index: 99999;
    display: none; align-items: center; justify-content: center;
}
.star-modal-overlay.active { display: flex; }
.star-modal-box {
    background: var(--card-bg, #fff); width: 90%; max-width: 450px;
    border-radius: 20px; padding: 24px; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    color: var(--text-primary, #333);
}
.star-modal-close {
    position: absolute; top: 15px; right: 20px; font-size: 24px;
    cursor: pointer; color: #999; border: none; background: none;
}
.star-modal-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; color: #FF8A5C;}
.star-modal-quota { font-size: 0.85rem; color: #666; margin-bottom: 15px; padding: 8px; background: #f9f9f9; border-radius: 8px;}
.star-modal-textarea {
    width: 100%; height: 100px; padding: 12px; border-radius: 12px;
    border: 1px solid #ddd; margin-bottom: 15px; font-family: inherit; resize: vertical;
}
.star-modal-submit {
    width: 100%; padding: 12px; border-radius: 12px; border: none;
    background: #FF8A5C; color: #fff; font-weight: bold; font-size: 1rem; cursor: pointer;
}
.star-modal-submit:disabled { background: #ccc; }

/* =========================================================
   ⭐ Jyoupu 之星弹窗专属样式 (抽离自内联样式)
   ========================================================= */

.star-center-title {
    text-align: center;
    margin-top: 0;
}

/* 配额数字展示区 */
.star-quota-grid {
    display: flex;
    gap: 10px;
    margin: 25px 0;
}
.star-quota-card {
    flex: 1;
    text-align: center;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}
.star-quota-num {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
}
.star-quota-num.rest { color: var(--accent-orange); }
.star-quota-num.dish { color: var(--accent-mango); }
.star-quota-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* 主行动按钮 */
.star-action-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 138, 92, 0.4);
}

/* 星星不足及展开区域 */
.star-exchange-toggle-wrap {
    text-align: center;
}
.star-exchange-toggle {
    cursor: pointer;
    color: var(--text-light);
    text-decoration: underline;
    font-size: 0.85rem;
}
.star-exchange-area {
    display: none;
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px dashed var(--border-glass);
}
[data-theme="dark"] .star-exchange-area {
    background: rgba(255, 255, 255, 0.05);
}
.star-exchange-buttons {
    display: flex;
    gap: 10px;
}
.star-exchange-buttons .modal-btn {
    flex: 1;
    font-size: 0.85rem;
}

/* 右下角帮助提示 */
.star-help-wrap {
    position: relative;
    text-align: right;
    margin-top: 25px;
    padding-bottom: 10px;
}
.star-help-trigger {
    cursor: pointer;
    font-size: 0.85rem;
    background: var(--accent-mango);
    color: #2D2A24;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: inline-block;
}
.star-help-box {
    display: none;
    position: absolute;
    right: 0;
    bottom: 45px;
    width: 290px;
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-primary);
    z-index: 100;
    text-align: left;
}
.star-help-box p {
    margin: 0 0 12px 0;
}
.star-help-box p:last-child {
    margin-bottom: 0;
}
.star-help-title {
    color: var(--accent-orange);
}