/* ============================================================
   活动投稿（入口） + 活动投票（展示） + 两个弹窗
   ============================================================ */

/* ---------- 投稿入口卡片 ---------- */
.act-submit-card {
    padding: 22px 24px 24px;
}

.act-submit-card .section-title,
.act-vote-card .section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.act-submit-sub,
.act-vote-sub {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

.act-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 22px;
    border: 1px solid rgba(108, 155, 255, 0.45);
    border-radius: 12px;
    background: rgba(108, 155, 255, 0.12);
    color: #8fb4ff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.act-submit-btn:hover {
    background: rgba(108, 155, 255, 0.22);
    transform: translateY(-1px);
}

.act-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* ---------- 活动投票卡片 ---------- */
.act-vote-card {
    padding: 22px 24px 24px;
}

.act-vote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.act-vote-item {
    padding: 16px;
    border-radius: 16px;
    background: rgba(var(--accent-rgb, 120, 160, 255), 0.06);
    border: 1px solid rgba(var(--accent-rgb, 120, 160, 255), 0.12);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    text-align: left;
    width: 100%;
    font: inherit;
    color: inherit;
}

.act-vote-item:hover {
    background: rgba(var(--accent-rgb, 120, 160, 255), 0.1);
    border-color: rgba(var(--accent-rgb, 120, 160, 255), 0.24);
    transform: translateY(-2px);
}

.act-vote-item-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.act-vote-item-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb, 120, 160, 255), 0.12);
    color: var(--accent, #7aa5ff);
}

.act-vote-item-title {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text, inherit);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.act-vote-item-date {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.5));
}

.act-vote-item-intro {
    margin: 6px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-secondary, rgba(255, 255, 255, 0.65));
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.act-doc-intro {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(108, 155, 255, 0.1);
    border: 1px solid rgba(108, 155, 255, 0.2);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text, #eee);
    word-break: break-word;
}

.act-vote-empty {
    grid-column: 1 / -1;
    padding: 16px 0 6px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.55));
}

@media (max-width: 720px) {
    .act-vote-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 通用弹窗 ---------- */
.act-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.act-modal-overlay.open {
    display: flex;
}

.act-modal-dialog {
    width: 100%;
    max-width: 480px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: var(--card-bg, #1b1f2a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.act-modal-dialog-wide {
    max-width: 720px;
}

.act-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.act-modal-headtext {
    min-width: 0;
}

.act-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #fff);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.act-modal-sub {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.5));
}

.act-modal-close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.act-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text, #fff);
}

.act-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
}

.act-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- 投稿表单 ---------- */
.act-form-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text, #fff);
}

.act-required {
    color: #ff6b6b;
}

.act-form-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text, #fff);
    font-size: 14px;
    outline: none;
}

.act-form-input:focus {
    border-color: rgba(108, 155, 255, 0.7);
}

.act-file-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    border: 1.5px dashed rgba(108, 155, 255, 0.5);
    border-radius: 12px;
    background: rgba(108, 155, 255, 0.06);
    color: #8fb4ff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.act-file-drop:hover,
.act-file-drop.dragover {
    background: rgba(108, 155, 255, 0.12);
    border-color: rgba(108, 155, 255, 0.8);
}

.act-file-drop.picked {
    border-style: solid;
}

.act-file-drop-text {
    font-size: 13px;
    text-align: center;
    word-break: break-all;
}

.act-status {
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.act-status-ok {
    background: rgba(80, 200, 120, 0.12);
    color: #6fd598;
}

.act-status-err {
    background: rgba(255, 107, 107, 0.12);
    color: #ff8a8a;
}

.act-submit-confirm {
    width: 100%;
    margin-top: 14px;
    padding: 11px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6c9bff, #4f7df0);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.act-submit-confirm:hover {
    opacity: 0.88;
}

.act-submit-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- Word 内容展示 ---------- */
.act-doc-loading {
    padding: 30px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.55));
}

.act-doc-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text, #eee);
    word-break: break-word;
}

.act-doc-content h1,
.act-doc-content h2,
.act-doc-content h3,
.act-doc-content h4 {
    margin: 14px 0 8px;
    line-height: 1.4;
}

.act-doc-content p {
    margin: 8px 0;
}

.act-doc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.act-doc-content table {
    border-collapse: collapse;
    margin: 10px 0;
    max-width: 100%;
}

.act-doc-content td,
.act-doc-content th {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    font-size: 13px;
}

.act-doc-content ul,
.act-doc-content ol {
    padding-left: 22px;
}

.act-doc-download {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--accent, #7aa5ff);
    text-decoration: none;
    opacity: 0.85;
}

.act-doc-download:hover {
    opacity: 1;
}

.act-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff7a9c, #ff5f7e);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.act-vote-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.act-vote-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.act-vote-btn.voted {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}
