/* title-script-modal.css 左侧弹窗样式 */
.script-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10001; padding: 16px;
}
.script-modal-card {
    max-width: 760px; width: 100%; max-height: 90vh;
    background: white; border-radius: 36px; box-shadow: 0 30px 50px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
}
.script-modal-header {
    padding: 20px 24px 12px; border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}
.script-modal-header h3 { font-size: 1.4rem; font-weight: 700; color: #0f172a; }
.script-modal-close { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #64748b; }
.script-modal-body { padding: 18px 22px 24px; overflow-y: auto; flex: 1; }

.brand-section { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); border-radius: 24px; padding: 18px 20px; color: white; margin-bottom: 20px; }
.brand-title { font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.brand-title a { color: #fbbf24; text-decoration: none; font-size: 0.85rem; background: rgba(255,255,255,0.15); padding: 4px 12px; border-radius: 40px; }
.brand-desc { font-size: 0.9rem; opacity: 0.9; margin-bottom: 12px; line-height: 1.5; }
.brand-highlight { color: #fbbf24; font-weight: 700; }
.tutorial-link { display: inline-block; background: rgba(255,255,255,0.12); padding: 8px 18px; border-radius: 40px; color: white; text-decoration: none; font-weight: 600; font-size: 0.9rem; border: 1px solid rgba(251,191,36,0.4); }
.commission-bar { background: #fef3c7; border-radius: 20px; padding: 12px 18px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; border-left: 5px solid #fbbf24; font-weight: 600; color: #1e1b4b; }
.commission-badge { background: #fbbf24; padding: 6px 16px; border-radius: 40px; font-size: 1.1rem; color: #1e1b4b; }
.library-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.library-stats { background: #e0e7ff; padding: 6px 18px; border-radius: 40px; font-weight: 700; color: #3730a3; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cat-btn { background: #f1f5f9; border: none; padding: 8px 18px; border-radius: 40px; font-weight: 600; color: #475569; cursor: pointer; font-size: 0.85rem; border: 1px solid #e2e8f0; }
.cat-btn.active { background: #4f46e5; color: white; border-color: #4f46e5; }
.script-card { background: #ffffff; border-radius: 28px; padding: 20px 20px 18px; margin-bottom: 18px; box-shadow: 0 8px 20px -6px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card-title { font-size: 1.1rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
.card-meta { display: flex; gap: 16px; margin-bottom: 12px; font-size: 0.8rem; }
.commission-tag { background: #fbbf24; padding: 4px 10px; border-radius: 30px; font-weight: 700; color: #1e1b4b; }
.difficulty { color: #64748b; }
.stats { display: flex; gap: 16px; margin-bottom: 14px; font-size: 0.85rem; color: #2e1065; font-weight: 500; }
.shoot-tips { background: #f8fafc; padding: 14px 16px; border-radius: 20px; margin-bottom: 16px; font-size: 0.9rem; color: #334155; list-style: none; }
.shoot-tips li { margin-bottom: 6px; display: flex; align-items: baseline; gap: 8px; }
.card-actions { display: flex; gap: 12px; }
.btn-primary { background: #4f46e5; color: white; border: none; padding: 12px 20px; border-radius: 60px; font-weight: 700; font-size: 0.9rem; cursor: pointer; flex: 1; text-align: center; }
.btn-secondary { background: white; border: 1px solid #cbd5e1; color: #1e1b4b; padding: 12px 20px; border-radius: 60px; font-weight: 600; cursor: pointer; flex: 1; text-align: center; }
.bottom-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.guide-link { text-align: center; color: #4f46e5; font-weight: 600; text-decoration: none; }
.random-btn { background: linear-gradient(145deg, #fbbf24, #f59e0b); border: none; padding: 16px 20px; border-radius: 60px; font-weight: 800; font-size: 1.1rem; color: #1e1b4b; cursor: pointer; box-shadow: 0 10px 18px -6px #fbbf24; text-align: center; }
.loading-state { text-align: center; padding: 40px; color: #64748b; }

/* 二级分镜弹窗 */
.detail-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 10002; padding: 16px; }
.detail-card { max-width: 800px; width: 100%; max-height: 90vh; background: white; border-radius: 32px; display: flex; flex-direction: column; box-shadow: 0 30px 50px rgba(0,0,0,0.2); }
.detail-header { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 12px; border-bottom: 1px solid #e2e8f0; }
.detail-header h2 { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 0; }
.detail-close { background: none; border: none; font-size: 2rem; cursor: pointer; color: #64748b; line-height: 1; }
.detail-body { flex: 1; overflow-y: auto; padding: 16px 24px 8px; }
.detail-footer { flex-shrink: 0; padding: 16px 24px 24px; border-top: 1px solid #e2e8f0; }
.detail-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: #1e1b4b; }
.detail-meta { display: flex; gap: 16px; margin-bottom: 12px; }
.detail-stats { display: flex; gap: 24px; margin-bottom: 20px; color: #4f46e5; font-weight: 500; }
.shoot-tips-box { background: #f8fafc; border-radius: 20px; padding: 16px; margin-bottom: 20px; }
.shoot-tips-box h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: #0f172a; }
.shoot-tips-box ul { padding-left: 24px; margin: 0; }
.shoot-tips-box li { margin-bottom: 6px; }
.detail-content { line-height: 1.6; color: #334155; }
.detail-content h3 { font-size: 1.2rem; font-weight: 700; margin: 20px 0 12px; color: #0f172a; }
.detail-content h4 { font-size: 1rem; font-weight: 700; margin: 16px 0 8px; }
.storyboard-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.storyboard-table td, .storyboard-table th { border: 1px solid #e2e8f0; padding: 10px 12px; text-align: left; vertical-align: top; }
.storyboard-table tr:first-child { background: #f8fafc; font-weight: 600; }
.storyboard-ul { padding-left: 24px; margin: 12px 0; }
.storyboard-ul li { margin-bottom: 6px; }
.detail-copy-btn, .detail-close-btn { width: 100%; padding: 14px; border-radius: 60px; font-weight: 700; border: none; cursor: pointer; font-size: 1rem; }
.detail-copy-btn { background: #4f46e5; color: white; margin-bottom: 8px; }
.detail-close-btn { background: #f1f5f9; color: #1e1b4b; }

/* 保姆级教程弹窗样式 */
.tutorial-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10001; padding: 16px;
}
.tutorial-modal-card {
    max-width: 720px; width: 100%; max-height: 90vh;
    background: white; border-radius: 36px; box-shadow: 0 30px 50px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; overflow: hidden;
}
.tutorial-modal-header {
    flex-shrink: 0; padding: 20px 24px 12px; border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}
.tutorial-modal-header h2 { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 0; }
.tutorial-modal-close { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #64748b; }
.tutorial-modal-body {
    flex: 1; overflow-y: auto; padding: 20px 24px 24px;
    line-height: 1.6; color: #334155;
}
.tutorial-intro { font-size: 1rem; margin-bottom: 20px; background: #f8fafc; padding: 14px 18px; border-radius: 20px; }
.tutorial-step { margin-bottom: 24px; }
.tutorial-step h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: #1e1b4b; }
.tutorial-step p { margin-bottom: 8px; }
.tutorial-tip { background: #fef3c7; padding: 12px 16px; border-radius: 16px; margin-top: 10px; border-left: 4px solid #fbbf24; }
.tutorial-footer { margin-top: 20px; text-align: center; }
.tutorial-close-btn {
    background: linear-gradient(145deg, #fbbf24, #f59e0b); border: none;
    padding: 14px 24px; border-radius: 60px; font-weight: 800; font-size: 1.1rem;
    color: #1e1b4b; cursor: pointer; box-shadow: 0 10px 18px -6px #fbbf24;
    width: 100%; margin-top: 16px;
}
.tutorial-modal-body a { color: #4f46e5; font-weight: 600; text-decoration: none; }
.tutorial-modal-body a:hover { text-decoration: underline; }
code { background: #e2e8f0; padding: 2px 6px; border-radius: 8px; font-family: monospace; }

/* 保姆级教程醒目入口卡片 */
.tutorial-featured-card {
    background: linear-gradient(145deg, #fef3c7 0%, #fff7ed 100%);
    border-radius: 24px;
    padding: 16px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #fbbf24;
    box-shadow: 0 6px 14px -4px rgba(251, 191, 36, 0.2);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.tutorial-featured-card:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 20px -6px rgba(251, 191, 36, 0.3);
}
.tutorial-featured-icon {
    font-size: 2.8rem;
    line-height: 1;
}
.tutorial-featured-content {
    flex: 1;
}
.tutorial-featured-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 4px;
}
.tutorial-featured-desc {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}



/* 右侧活动中心弹窗样式 */
.challenge-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10001; padding: 16px;
}
.challenge-modal-card {
    max-width: 760px; width: 100%; max-height: 90vh;
    background: white; border-radius: 36px; box-shadow: 0 30px 50px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; overflow: hidden;
}
.challenge-modal-header {
    flex-shrink: 0; padding: 20px 24px 12px; border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}
.challenge-modal-header h2 { font-size: 1.3rem; font-weight: 700; color: #0f172a; margin: 0; }
.challenge-modal-close { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #64748b; }
.challenge-modal-body { flex: 1; overflow-y: auto; padding: 18px 22px 24px; }
.challenge-subhead { font-size: 0.95rem; color: #475569; margin-bottom: 18px; text-align: center; }

/* 三列价值卡片 */
.challenge-benefits-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    margin-bottom: 20px;
}
.benefit-item {
    background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 100%);
    border-radius: 20px; padding: 16px 10px; text-align: center;
    border: 1px solid #e2e8f0;
}
.benefit-icon { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.benefit-text { font-weight: 700; color: #1e1b4b; font-size: 0.9rem; }
.benefit-text small { font-weight: 400; color: #64748b; display: block; margin-top: 4px; }

/* 品牌卡片（与左侧保持一致） */
.brand-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 24px; padding: 18px 20px; color: white; margin-bottom: 20px;
}
.brand-title { font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.brand-title a { color: #fbbf24; text-decoration: none; font-size: 0.85rem; background: rgba(255,255,255,0.15); padding: 4px 12px; border-radius: 40px; }
.brand-desc { font-size: 0.9rem; opacity: 0.9; margin-bottom: 12px; line-height: 1.5; }
.brand-highlight { color: #fbbf24; font-weight: 700; }
.brand-links { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-link { color: #fbbf24; text-decoration: none; font-size: 0.85rem; font-weight: 600; }

/* 活动列表头部 */
.challenge-list-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 14px; margin-top: 8px;
}
.challenge-list-header h3 { font-size: 1.2rem; font-weight: 700; color: #0f172a; }
.challenge-count { font-size: 0.8rem; color: #64748b; }

/* 活动卡片 */
.challenge-card {
    background: #ffffff; border-radius: 24px; padding: 18px 20px;
    margin-bottom: 14px; border: 1px solid #e2e8f0;
    box-shadow: 0 6px 14px -6px rgba(0,0,0,0.05);
}
.challenge-card.ended { opacity: 0.7; }
.challenge-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.challenge-title { font-size: 1.1rem; font-weight: 700; color: #1e1b4b; }
.challenge-status { font-size: 0.75rem; padding: 4px 10px; border-radius: 30px; font-weight: 700; }
.challenge-status.active { background: #dcfce7; color: #166534; }
.challenge-status.upcoming { background: #fef3c7; color: #92400e; }
.challenge-status.ended { background: #f1f5f9; color: #64748b; }
.challenge-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.challenge-tag { background: #f1f5f9; padding: 4px 10px; border-radius: 30px; font-size: 0.7rem; font-weight: 600; color: #475569; }
.challenge-meta { display: flex; gap: 20px; margin-bottom: 14px; font-size: 0.85rem; color: #475569; }
.challenge-card-footer { display: flex; justify-content: flex-end; }
.challenge-detail-btn {
    background: transparent; border: 1px solid #4f46e5; color: #4f46e5;
    padding: 8px 18px; border-radius: 40px; font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: all 0.15s;
}
.challenge-detail-btn:hover { background: #4f46e5; color: white; }
.challenge-detail-btn:disabled { opacity: 0.5; cursor: not-allowed; border-color: #cbd5e1; color: #94a3b8; }

/* 底部联系区域 */
.challenge-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.contact-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 10px; }
.contact-link { color: #4f46e5; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.contact-hint { text-align: center; font-size: 0.75rem; color: #94a3b8; }

/* 活动详情弹窗 */
.challenge-detail-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10002; padding: 16px;
}
.challenge-detail-card {
    max-width: 700px; width: 100%; max-height: 85vh;
    background: white; border-radius: 32px; display: flex; flex-direction: column;
    box-shadow: 0 30px 50px rgba(0,0,0,0.2);
}
.challenge-detail-header {
    flex-shrink: 0; padding: 20px 24px 12px; border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}
.challenge-detail-header h2 { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 0; }
.challenge-detail-close { background: none; border: none; font-size: 2rem; cursor: pointer; color: #64748b; }
.challenge-detail-body { flex: 1; overflow-y: auto; padding: 20px 24px 24px; }
.challenge-detail-meta { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.challenge-detail-content { line-height: 1.6; color: #334155; }
.challenge-detail-content h3 { font-size: 1.2rem; font-weight: 700; margin: 20px 0 10px; color: #1e1b4b; }
.challenge-detail-content ul { padding-left: 24px; margin: 10px 0; }
.challenge-detail-content li { margin-bottom: 6px; }
.challenge-detail-footer { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.challenge-signup-btn {
    background: #4f46e5; color: white; border: none; padding: 14px;
    border-radius: 60px; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.challenge-detail-close-btn {
    background: #f1f5f9; color: #1e1b4b; border: none; padding: 14px;
    border-radius: 60px; font-weight: 600; cursor: pointer;
}

/* 报名表单弹窗 */
.signup-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10003; padding: 16px;
}
.signup-modal-card {
    max-width: 500px; width: 100%; max-height: 85vh;
    background: white; border-radius: 32px; box-shadow: 0 30px 50px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; overflow: hidden;
}
.signup-modal-header {
    flex-shrink: 0; padding: 20px 24px 12px; border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}
.signup-modal-header h3 { font-size: 1.3rem; font-weight: 700; color: #0f172a; margin: 0; }
.signup-modal-close { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #64748b; }
.signup-modal-body { flex: 1; overflow-y: auto; padding: 20px 24px 24px; }
.signup-intro { font-size: 0.9rem; color: #475569; margin-bottom: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: #1e1b4b; font-size: 0.9rem; }
.form-group .required { color: #ef4444; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 2px solid #e2e8f0; border-radius: 20px;
    font-size: 0.95rem; font-family: inherit; transition: border 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #4f46e5; outline: none;
}
.form-actions { display: flex; gap: 12px; margin-top: 24px; }
.signup-submit-btn {
    flex: 1; background: #4f46e5; color: white; border: none;
    padding: 14px; border-radius: 60px; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.signup-cancel-btn {
    flex: 1; background: #f1f5f9; color: #1e1b4b; border: none;
    padding: 14px; border-radius: 60px; font-weight: 600; cursor: pointer;
}
.signup-note { font-size: 0.75rem; color: #94a3b8; margin-top: 16px; text-align: center; }


/* 站内联系弹窗 */
.contact-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10003; padding: 16px;
}
.contact-modal-card {
    max-width: 500px; width: 100%; max-height: 85vh;
    background: white; border-radius: 32px; box-shadow: 0 30px 50px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; overflow: hidden;
}
.contact-modal-header {
    flex-shrink: 0; padding: 20px 24px 12px; border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}
.contact-modal-header h3 { font-size: 1.3rem; font-weight: 700; color: #0f172a; margin: 0; }
.contact-modal-close { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #64748b; }
.contact-modal-body { flex: 1; overflow-y: auto; padding: 20px 24px 24px; }
.contact-intro { font-size: 0.9rem; color: #475569; margin-bottom: 18px; }
.contact-note { font-size: 0.75rem; color: #94a3b8; margin-top: 16px; text-align: center; }
.contact-submit-btn {
    flex: 1; background: #4f46e5; color: white; border: none;
    padding: 14px; border-radius: 60px; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.contact-cancel-btn {
    flex: 1; background: #f1f5f9; color: #1e1b4b; border: none;
    padding: 14px; border-radius: 60px; font-weight: 600; cursor: pointer;
}

.deadline-tag {
    background: #fef3c7 !important;
    color: #92400e !important;
    font-weight: 700;
}

/* 活动详情弹窗内容样式 */
.challenge-detail-content {
    line-height: 1.6;
    color: #334155;
}
.challenge-detail-content p {
    margin-bottom: 12px;
}
.challenge-detail-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 20px 0 10px;
    color: #1e1b4b;
}
.challenge-detail-content ul,
.challenge-detail-content ol {
    padding-left: 24px;
    margin: 12px 0;
}
.challenge-detail-content li {
    margin-bottom: 6px;
    display: list-item;
    list-style-type: disc;
}
/* 如果希望数字列表也是正常样式 */
.challenge-detail-content ol li {
    list-style-type: decimal;
}


/* 品牌区内联系方式样式 */
.brand-contact {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.brand-contact .contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 8px;
}
.brand-contact .contact-link {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.brand-contact .contact-link:hover {
    color: #fde68a;
    text-decoration: underline;
}
.brand-contact .contact-hint {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* 移动端联系方式强制一行，无任何间距 */
@media (max-width: 640px) {
    .brand-contact .contact-links {
        flex-wrap: nowrap;          /* 强制不换行 */
        justify-content: space-between; /* 两端对齐，充分利用宽度 */
        gap: 0;                     /* 清除所有间距 */
    }
    .brand-contact .contact-link {
        white-space: nowrap;
        font-size: 0.8rem;          /* 稍微缩小字体 */
        padding: 0;                 /* 清除内边距 */
        margin: 0;                  /* 清除外边距 */
    }
    .brand-contact .contact-hint {
        padding: 0;
        margin: 4px 0 0 0;          /* 仅保留与上方链接的微小间距 */
        font-size: 0.7rem;
    }
    .brand-contact {
        padding-left: 0;
        padding-right: 0;
    }
}

/* 分享卡片弹窗 */
.share-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10001; padding: 16px;
}
.share-modal-card {
    max-width: 760px; width: 100%; max-height: 90vh;
    background: white; border-radius: 36px; overflow: hidden;
    display: flex; flex-direction: column;
}
.share-modal-header {
    padding: 20px 24px; border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}
.share-modal-header h3 { font-size: 1.4rem; margin: 0; }
.share-modal-close { background: none; border: none; font-size: 1.8rem; cursor: pointer; }
.share-modal-body { padding: 20px 24px 24px; overflow-y: auto; }
.share-intro { text-align: center; margin-bottom: 16px; color: #475569; }
.share-preview { text-align: center; }
.share-preview canvas {
    max-width: 100%;
    max-height: 60vh;          /* 限制最大高度为视口高度的60%，防止溢出 */
    width: auto;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    display: block;
    margin: 0 auto;
}
.share-actions { margin-top: 20px; display: flex; justify-content: center; }
.share-download-btn {
    background: #4f46e5; color: white; border: none; padding: 14px 32px;
    border-radius: 60px; font-weight: 700; font-size: 1.1rem; cursor: pointer;
}

.share-help-wrapper {
    margin-top: 20px;
    text-align: center;
}
.share-help-btn {
    background: #fbbf24;
    color: #1e1b4b;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(251, 191, 36, 0.3);
    transition: transform 0.15s;
    display: inline-block;
}
.share-help-btn:hover {
    transform: scale(1.02);
}