* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
body {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 100px;
}
.login-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}
.top-balance {
    background: rgba(255,255,255,0.9);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    color: #495057;
    font-weight: 600;
}
.top-balance span {
    color: #FF6B9D;
    font-weight: 700;
}
.login-btn {
    background: white;
    color: #FF6B9D;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.login-btn:disabled {
    background: #ccc;
    color: #888;
}
.user-info {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.user-info .vip-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}
#logoutBtn {
    margin-left: 0;
    padding: 4px 10px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
}
.invite-header-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-right: 8px;
    animation: invite-pulse 2s infinite;
}
@keyframes invite-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.header {
    text-align: center;
    margin-bottom: 15px;
}
/* ===== 新首屏 Hero 区 ===== */
.hero-section {
    text-align: center;
    color: white;
    padding: 10px 0 30px;
}
.hero-mascot-wrap {
    margin: 0 auto 8px;
    display: flex;
    justify-content: center;
}
.hero-mascot {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    padding: 6px;
    animation: xiaopu-bounce 2.5s ease-in-out infinite;
}
@keyframes xiaopu-bounce {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-6px) rotate(3deg); }
}
.hero-brand {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
}
.hero-brand strong {
    font-weight: 700;
    background: linear-gradient(90deg, #fff 0%, #FFE4F0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 15px;
    margin: 0 2px;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,107,107,0.15);
    color: #FF6B9D;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}
.hero-title {
    font-size: 24px;
    line-height: 1.4;
    color: #2C3E50;
    font-weight: 800;
    margin-bottom: 10px;
}
.hero-sub {
    font-size: 17px;
    color: #7F8C8D;
    margin-bottom: 14px;
    font-weight: 500;
}
.hero-stars {
    font-size: 14px;
    color: #FFB800;
    margin-bottom: 20px;
}
.hero-stars span {
    color: #95A5A6;
    font-size: 12px;
    margin-left: 6px;
}
.hero-examples {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 0 -8px 20px;
    padding: 4px 8px;
    scrollbar-width: none;
}
.hero-examples::-webkit-scrollbar { display: none; }
.example-card {
    flex: 0 0 30%;
    max-width: 130px;
    aspect-ratio: 1;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.example-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.example-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}
.hero-cta { font-weight: 700;
    display: block;
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    color: white;
    border: none;
    border-radius: 26px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255,107,107,0.4);
    margin-bottom: 10px;
    transition: all 0.2s;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,107,107,0.5);
}
.hero-cta:active {
    transform: scale(0.98);
}
.hero-hint { font-size: 15px; line-height: 1.6; padding: 12px 0;
    font-size: 15px;
    color: #fff;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.hero-event {
    margin: 8px 0 0;
    padding: 8px 12px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    color: white;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
}
.header h1 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.header p {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    margin-top: 5px;
}
.card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.upload-zone {
    width: 100%;
    aspect-ratio: 1;
    max-height: 280px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px dashed #dee2e6;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}
.upload-zone:hover {
    border-color: #FF6B9D;
    background: linear-gradient(135deg, #fff5f5 0%, #fef0f0 100%);
}
.upload-zone.has-image {
    border: none;
    background: #f8f9fa;
}
.upload-zone .icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.upload-zone .text {
    color: #868e96;
    font-size: 15px;
    text-align: center;
}
.upload-zone .text small {
    font-size: 12px;
    display: block;
    margin-top: 4px;
}
.upload-zone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.upload-zone .change-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}
.upload-zone.has-image:hover .change-btn {
    opacity: 1;
}
.upload-zone input {
    display: none;
}

/* 情侣合拍双图框 */
.couple-upload-zone {
    display: none;
    gap: 12px;
    justify-content: space-between;
    align-items: stretch;
}
.couple-upload-box {
    flex: 1;
    aspect-ratio: 1;
    max-height: 220px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px dashed #dee2e6;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}
.couple-upload-box:hover {
    border-color: #FF6B9D;
    background: linear-gradient(135deg, #fff5f5 0%, #fef0f0 100%);
}
.couple-upload-box.has-image {
    border: none;
    background: #f8f9fa;
}
.couple-upload-box .upload-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 107, 157, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
}
.couple-upload-box .icon {
    font-size: 36px;
    margin-bottom: 8px;
}
.couple-upload-box .text {
    color: #868e96;
    font-size: 13px;
    text-align: center;
    padding: 0 8px;
}
.couple-upload-box .text small {
    font-size: 11px;
    display: block;
    margin-top: 3px;
}
.couple-upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.couple-upload-box .change-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.3s;
}
.couple-upload-box.has-image:hover .change-btn {
    opacity: 1;
}
.couple-upload-box input {
    display: none;
}
.style-scroll {
    margin-top: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 5px;
}
.style-scroll::-webkit-scrollbar {
    display: none;
}

/* 风格选择区 - 恢复之前的卡片式分组布局 */
.style-selection {
    margin-top: 18px;
}
.style-selection-title {
    text-align: center;
    margin-bottom: 16px;
}
.style-title-line1 {
    font-size: 16px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 4px;
}
.style-title-line2 {
    font-size: 18px;
    font-weight: 700;
    color: #FF6B9D;
}

/* 顶部常驻风格快速选择 */
.style-main-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.style-main-tab {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 12px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 90px;
}
.style-main-tab .tab-emoji {
    font-size: 28px;
    line-height: 1;
}
.style-main-tab .tab-name {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}
.style-main-tab.active {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}
.style-main-tab.active .tab-name {
    color: white;
}

/* 分类区域 */
.style-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.style-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.style-section-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: #FFF0F3;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #FF6B9D;
}
.style-section-items {
    display: grid;
    gap: 10px;
}
.style-section-items.cols-1 {
    grid-template-columns: 1fr;
}
.style-section-items.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 分类卡片 */
.style-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 90px;
}
.style-card .card-emoji {
    font-size: 28px;
    line-height: 1;
}
.style-card .card-name {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}
.style-card .card-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #FF6B9D;
    color: white;
    font-weight: 600;
}
.style-card.active {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}
.style-card.active .card-name,
.style-card.active .card-badge {
    color: white;
}
.style-card.active .card-badge {
    background: rgba(255,255,255,0.3);
}
.style-card.type-limited {
    border-color: #F59E0B;
    background: linear-gradient(135deg, #FFFBEA 0%, #FFF3C4 100%);
}
.style-card.type-limited.active {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border-color: #D97706;
}
.style-card.type-holiday {
    border-color: #FF6B9D;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFE0E0 100%);
}
.style-card.type-holiday.active {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    border-color: #C0392B;
}
.style-card.type-couple {
    background: linear-gradient(135deg, #FFF0F5 0%, #FFE4EC 100%);
    border-color: #FF9EB5;
    color: #D6336C;
    min-height: 70px;
}
.style-card.type-couple .card-name {
    color: #D6336C;
    font-size: 16px;
}
.style-card.type-couple .card-emoji {
    font-size: 24px;
}
.style-card.type-couple.active {
    background: linear-gradient(135deg, #FF6B9D 0%, #E83E8C 100%);
    border-color: #E83E8C;
    color: white;
    box-shadow: 0 4px 12px rgba(232, 62, 140, 0.35);
}
.style-card.type-couple.active .card-name {
    color: white;
}

/* 旧样式兼容：其他地方可能仍用 .style-item */
.style-item {
    width: 30%;
    max-width: 100px;
    height: 80px;
    padding: 8px 4px;
    background: #fff;
    border-radius: 12px;
    font-size: 12px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #e9ecef;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.style-item.active {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    color: white;
    font-weight: 600;
    border-color: transparent;
}
.style-item .style-emoji {
    font-size: 22px;
    line-height: 1;
}
.style-item .style-name {
    font-size: 11px;
    line-height: 1.2;
}
.style-badge {
    display: inline-block;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 6px;
    margin-right: 4px;
    font-weight: 700;
    vertical-align: middle;
}
.generate-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}
.generate-btn:active {
    transform: scale(0.98);
}
.generate-btn:disabled {
    background: #dee2e6;
    box-shadow: none;
}
.loading {
    display: none;
    text-align: center;
    padding: 30px 0;
}
.skeleton-container {
    margin-bottom: 20px;
}
.skeleton-img {
    width: 100%;
    aspect-ratio: 1;
    max-height: 280px;
    background: linear-gradient(90deg, #f0f3f7 25%, #e4e7eb 50%, #f0f3f7 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}
.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #f0f3f7 25%, #e4e7eb 50%, #f0f3f7 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    margin: 10px auto;
    max-width: 240px;
}
.skeleton-line.short {
    max-width: 160px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.progress-section {
    margin-top: 10px;
}
.progress-bar {
    width: 100%;
    height: 6px;
    background: #f1f3f4;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B9D 0%, #FFD93D 50%, #4ECDC4 100%);
    background-size: 200% 100%;
    animation: progressShine 1.5s linear infinite;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}
@keyframes progressShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.loading .text {
    color: #495057;
    font-size: 14px;
}
.loading .timer {
    color: #868e96;
    font-size: 12px;
    margin-top: 8px;
    font-family: monospace;
}
.loading .fun-tips {
    color: #FF6B9D;
    font-size: 12px;
    margin-top: 12px;
    font-style: italic;
    min-height: 16px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}
.result-section {
    display: none;
}
.result-brand-line {
    text-align: center;
    color: white;
    font-size: 13px;
    padding: 10px 0 12px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.result-brand-line strong {
    font-size: 15px;
    font-weight: 700;
    margin: 0 4px;
}
.result-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 16px;
}
.result-card img {
    width: 100%;
    border-radius: 12px;
}
.action-btns {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.save-tip {
    margin: 12px 0 0 0;
    text-align: center;
    font-size: 14px;
    color: #FF6B9D;
    font-weight: 600;
    background: #FFF5F5;
    padding: 10px;
    border-radius: 8px;
}
/* ===== 海报弹层 ===== */
.poster-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.poster-modal.show {
    display: flex;
}
.poster-content {
    background: white;
    border-radius: 20px;
    padding: 20px;
    max-width: 380px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.poster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}
.poster-close {
    background: #f1f3f4;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}
.poster-content canvas {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    background: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 100%);
}
.poster-content .poster-img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    background: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 100%);
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: default;
    pointer-events: auto;
}
.poster-share-guide {
    margin-top: 16px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: left;
}
.poster-share-guide .guide-title {
    font-size: 14px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 12px;
    text-align: center;
}
.poster-share-guide .guide-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.poster-share-guide .guide-item:last-child {
    margin-bottom: 0;
}
.poster-share-guide .guide-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}
.poster-share-guide .guide-text {
    flex: 1;
}
.poster-share-guide .guide-text strong {
    font-size: 14px;
    color: #2C3E50;
}
.poster-share-guide .guide-text p {
    font-size: 12px;
    color: #666;
    margin: 4px 0 0 0;
    line-height: 1.5;
}
.poster-hint {
    text-align: center;
    font-size: 20px;
    color: #999;
    margin: 10px 0;
}
.poster-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.poster-quote {
    background: #FFF5F5;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    color: #FF6B9D;
    font-weight: 600;
    line-height: 1.6;
}
.poster-quote span {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}
.action-btn.share {
    background: linear-gradient(135deg, #FFD93D 0%, #FF6B9D 100%);
    color: white;
}
.action-btn.save {
    width: 100%;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    color: white;
    font-weight: 700;
}
.action-btn {
    flex: 1;
    min-height: 48px;
    padding: 10px 8px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}
.action-btn.download {
    background: linear-gradient(135deg, #4ECDC4 0%, #44B3AA 100%);
    color: white;
}
.action-btn.retry {
    background: #f1f3f4;
    color: #495057;
}
.correction {
    display: none;
    margin-top: 16px;
}
.correction input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}
.correction input:focus {
    border-color: #FF6B9D;
}
.correction input::placeholder {
    color: #adb5bd;
    font-size: 16px;
}

/* 套餐选择 */
.packages-section {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.packages-title {
    font-size: 15px;
    color: #495057;
    font-weight: 600;
    margin-bottom: 12px;
}
.packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.package-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.package-item:hover {
    border-color: #FF6B9D;
}
.package-item .desc {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}
.package-item .price {
    font-size: 18px;
    font-weight: 700;
    color: #FF6B9D;
    margin-top: 4px;
}
.package-item .unit {
    font-size: 11px;
    color: #868e96;
}
.buy-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #4ECDC4 0%, #44B3AA 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    display: none;
}
.buy-btn:active {
    transform: scale(0.98);
}

/* 支付二维码弹窗 */
.pay-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.pay-modal.show {
    display: flex;
}
.pay-modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 320px;
    width: 90%;
    text-align: center;
}
.pay-modal-content h3 {
    font-size: 18px;
    color: #495057;
    margin-bottom: 15px;
}
.pay-modal-content img {
    width: 200px;
    height: 200px;
    margin: 15px auto;
}
.pay-modal-content .amount {
    font-size: 24px;
    font-weight: 700;
    color: #FF6B9D;
}
.pay-modal-content .tips {
    font-size: 12px;
    color: #868e96;
    margin-top: 10px;
}
.pay-modal-close {
    background: #f1f3f4;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    margin-top: 15px;
}

/* ===== 画质选择器 ===== */
.quality-selector {
    margin: 20px 0 16px;
    padding: 18px 16px;
    background: linear-gradient(135deg, #FFF8FB 0%, #FFF0F5 100%);
    border-radius: 20px;
    border: 1px solid #FFD6E7;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.08);
}
.quality-label {
    font-size: 15px;
    font-weight: 700;
    color: #FF6B9D;
    margin-bottom: 14px;
    text-align: center;
    letter-spacing: 0.5px;
}
.quality-options {
    display: flex;
    gap: 12px;
}
.quality-option {
    flex: 1;
    position: relative;
    padding: 14px 10px 12px;
    background: white;
    border: 2px solid #E9ECEF;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 86px;
    overflow: hidden;
}
.quality-option:active {
    transform: scale(0.97);
}
.quality-option.active {
    border-color: transparent;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.35);
}
.quality-emoji {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 1px;
}
.quality-name {
    font-size: 16px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 2px;
}
.quality-option.active .quality-name {
    color: white;
}
.quality-desc {
    font-size: 12px;
    color: #868E96;
    line-height: 1.4;
}
.quality-option.active .quality-desc {
    color: rgba(255, 255, 255, 0.92);
}
.quality-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #FFD93D 0%, #FF6B9D 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 0 12px 0 12px;
    box-shadow: 0 2px 6px rgba(255, 107, 157, 0.25);
    z-index: 1;
}
.quality-option.active .quality-badge {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}
.quality-check {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: #FF6B9D;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s ease;
}
.quality-option.active .quality-check {
    opacity: 1;
    transform: scale(1);
    background: rgba(255, 255, 255, 0.25);
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}
.brand-footer {
    text-align: center;
    color: rgba(255,255,255,0.92);
    font-size: 12px;
    padding: 14px 0 6px;
    letter-spacing: 0.3px;
}
.brand-footer strong {
    font-weight: 700;
    font-size: 13px;
}
.brand-footer a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,0.6);
    padding-bottom: 1px;
    margin-left: 4px;
}
.brand-footer a:hover {
    border-bottom-style: solid;
}
.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #868e96;
    font-size: 11px;
    text-decoration: none;
}
.footer-item .icon {
    font-size: 26px;
    margin-bottom: 2px;
}
.footer-item.active {
    color: #FF6B9D;
}

/* ===== 品牌中心弹窗 ===== */
.brand-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.brand-modal.show {
    display: flex;
}
.brand-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 360px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
}
.brand-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid #f1f3f4;
}
.brand-modal-header h3 {
    font-size: 18px;
    color: #2C3E50;
    margin: 0;
}
.brand-modal-close {
    background: #f1f3f4;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}
.brand-modal-body {
    padding: 20px;
    text-align: center;
}
.brand-logo {
    font-size: 48px;
    margin-bottom: 8px;
}
.brand-name {
    font-size: 22px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 4px;
}
.brand-slogan {
    font-size: 14px;
    color: #868e96;
    margin-bottom: 20px;
}
.brand-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #FF6B9D, transparent);
    margin: 20px 0;
}
.brand-section {
    margin-bottom: 20px;
}
.brand-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 12px;
}
.brand-qr-placeholder {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFE4F0 100%);
    border: 2px dashed #FF6B9D;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.qr-icon {
    font-size: 36px;
    margin-bottom: 8px;
}
.qr-text {
    font-size: 14px;
    font-weight: 600;
    color: #FF6B9D;
    margin-bottom: 4px;
}
.qr-hint {
    font-size: 12px;
    color: #868e96;
}
.brand-contact {
    font-size: 14px;
    color: #495057;
    margin-bottom: 4px;
}
.brand-version {
    font-size: 12px;
    color: #adb5bd;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f3f4;
}

/* ===== 帮助中心弹窗 ===== */
.help-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.help-modal.show {
    display: flex;
}
.help-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
}
@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid #f1f3f4;
}
.help-modal-header h3 {
    font-size: 18px;
    color: #2C3E50;
    margin: 0;
}
.help-modal-close {
    background: #f1f3f4;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}
.help-tabs {
    display: flex;
    padding: 0 20px;
    border-bottom: 1px solid #f1f3f4;
}
.help-tab {
    flex: 1;
    padding: 12px 4px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #868e96;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.help-tab.active {
    color: #FF6B9D;
    border-bottom-color: #FF6B9D;
}
.help-modal-body {
    padding: 20px;
}
.help-panel {
    display: none;
}
.help-panel.active {
    display: block;
}
.faq-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f8f9fa;
}
.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.faq-q {
    font-size: 14px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 6px;
}
.faq-a {
    font-size: 13px;
    color: #868e96;
    line-height: 1.6;
}
.contact-section {
    margin-bottom: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 10px;
}
.contact-icon {
    font-size: 28px;
}
.contact-info {
    flex: 1;
}
.contact-title {
    font-size: 14px;
    font-weight: 600;
    color: #2C3E50;
}
.contact-detail {
    font-size: 13px;
    color: #FF6B9D;
    font-weight: 600;
    margin-top: 2px;
}
.contact-hint {
    font-size: 12px;
    color: #868e96;
    margin-top: 2px;
}
.feedback-section {
    margin-top: 20px;
}
.feedback-title {
    font-size: 15px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 10px;
}
.feedback-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
}
.feedback-textarea:focus {
    border-color: #FF6B9D;
}
.feedback-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}
.disclaimer-content {
    text-align: left;
}
.disclaimer-title {
    font-size: 16px;
    font-weight: 700;
    color: #2C3E50;
    text-align: center;
    margin-bottom: 16px;
}
.disclaimer-text p {
    font-size: 13px;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 12px;
}
.disclaimer-text strong {
    color: #2C3E50;
}
.disclaimer-date {
    font-size: 12px;
    color: #adb5bd;
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f3f4;
}
    
/* ===== 我的画廊 ===== */
.gallery-section {
    display: none;
    margin-top: 20px;
}
.gallery-section.show {
    display: block;
}
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.gallery-title {
    font-size: 16px;
    font-weight: 700;
    color: #2C3E50;
}
.gallery-count {
    font-size: 13px;
    color: #7F8C8D;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item-new {
    animation: galleryFadeIn 0.4s ease;
}

@keyframes galleryFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-item .gallery-style-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 28px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gallery-item .gallery-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255,107,107,0.95);
    color: #fff;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    z-index: 100;
    padding: 0;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}
.gallery-item .gallery-delete-btn:active {
    background: rgba(231,76,60,1);
}
.gallery-empty {
    text-align: center;
    padding: 40px 20px;
    color: #7F8C8D;
    font-size: 14px;
}
.gallery-empty .icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}
.gallery-load-more {
    text-align: center;
    margin-top: 12px;
}
.gallery-load-more button {
    background: transparent;
    border: 1px solid #FF6B9D;
    color: #FF6B9D;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}
.gallery-page-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.gallery-page-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #7F8C8D;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.gallery-page-tab.active {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    color: #fff;
}
.gallery-fullpage {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}
.gallery-fullpage.show {
    display: block;
}
.gallery-fullpage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: #fff;
}
.gallery-fullpage-header h2 {
    font-size: 18px;
    margin: 0;
}
.gallery-fullpage-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}
.gallery-fullpage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.gallery-fullpage-grid .gallery-item {
    box-shadow: none;
}
.gallery-image-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.gallery-image-modal.show {
    display: flex;
}
.gallery-image-modal img {
    max-width: 90%;
    max-height: 70vh;
    border-radius: 12px;
    object-fit: contain;
}
.gallery-image-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.gallery-image-actions button {
    padding: 12px 28px;
    border-radius: 24px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}
.gallery-image-actions .btn-download {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    color: #fff;
}
.gallery-image-actions .btn-regenerate {
    background: #fff;
    color: #2C3E50;
}
.gallery-image-actions .btn-close {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.gallery-image-modal .close-x {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.3);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    z-index: 3001;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

/* ===== 邀请裂变 ===== */
.invite-panel {
    padding: 16px;
}
.invite-card {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    text-align: center;
    margin-bottom: 16px;
}
.invite-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.invite-card-sub {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 16px;
}
.invite-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 16px;
}
.invite-stat {
    text-align: center;
}
.invite-stat-num {
    font-size: 28px;
    font-weight: 700;
}
.invite-stat-label {
    font-size: 12px;
    opacity: 0.85;
}
.invite-link-box {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    word-break: break-all;
    font-size: 13px;
    cursor: pointer;
    position: relative;
}
.invite-link-box:hover {
    background: rgba(255,255,255,0.3);
}
.invite-link-box::after {
    content: '点击复制';
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 11px;
    opacity: 0.7;
}
.invite-btn {
    background: #fff;
    color: #FF6B9D;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}
.invite-btn:hover {
    background: #f0f0f0;
}
.invite-rules {
    background: #FFF5F7;
    border-radius: 12px;
    padding: 16px;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}
.invite-rules-title {
    font-weight: 700;
    color: #FF6B9D;
    margin-bottom: 8px;
    font-size: 14px;
}
.invite-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 5000;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 20px rgba(255,107,157,0.3);
    text-align: center;
    max-width: 90%;
}
.invite-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===== 邀请有礼弹窗 ===== */
.invite-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.invite-modal.show {
    display: flex;
}
.invite-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
}
.invite-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid #f1f3f4;
}
.invite-modal-header h3 {
    font-size: 18px;
    color: #2C3E50;
    margin: 0;
}
.invite-modal-close {
    background: #f1f3f4;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}
.invite-modal-body {
    padding: 20px;
}
.invite-stats-bar {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #FFF5F7 0%, #FFF9E6 100%);
    border-radius: 16px;
    padding: 16px 8px;
    margin-bottom: 20px;
}
.invite-stat {
    text-align: center;
}
.invite-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #FF6B9D;
}
.invite-stat-label {
    font-size: 12px;
    color: #868e96;
    margin-top: 4px;
}
.invite-link-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}
.invite-link-label {
    font-size: 13px;
    color: #868e96;
    margin-bottom: 8px;
}
.invite-link-input-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.invite-link-input,
.invite-card-link-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    font-size: 13px;
    color: #495057;
    background: #fff;
    outline: none;
}
.invite-copy-btn,
.invite-card-copy-btn {
    background: #FF6B9D;
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.invite-link-hint {
    font-size: 12px;
    color: #868e96;
    line-height: 1.5;
}
.invite-link-hint strong {
    color: #FF6B9D;
}
.invite-rules {
    background: #fff;
    border: 1px solid #f1f3f4;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}
.invite-rule-title {
    font-size: 14px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 10px;
}
.invite-rule-item {
    font-size: 13px;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 6px;
}
.invite-share-btn,
.invite-card-share-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

/* ===== 帮助中心里的邀请卡片 ===== */
.invite-card {
    background: linear-gradient(135deg, #FFF5F7 0%, #FFF9E6 100%);
    border-radius: 16px;
    padding: 20px;
}
.invite-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 6px;
}
.invite-card-desc {
    font-size: 13px;
    color: #868e96;
    margin-bottom: 16px;
    line-height: 1.5;
}
.invite-card-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.invite-card-stat {
    text-align: center;
    flex: 1;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    padding: 12px;
}
.invite-card-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #FF6B9D;
}
.invite-card-stat-label {
    font-size: 12px;
    color: #868e96;
    margin-top: 4px;
}
.invite-card-link-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

/* ===== 小程序引流 ===== */
.mini-program-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.mini-program-modal.show {
    display: flex;
}

.mini-program-content {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 360px;
    overflow: hidden;
}

.mini-program-header {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFD93D 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-program-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mini-program-header .close-x {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    padding: 0;
}

.mini-program-body {
    padding: 24px;
    text-align: center;
}

.mini-program-body > p {
    color: #495057;
    font-size: 14px;
    margin-bottom: 16px;
}

.mini-program-body img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #f8f9fa;
}

.mini-program-tips {
    text-align: left;
    background: #FFF5F7;
    border-radius: 12px;
    padding: 14px 18px;
}

.mini-program-tips p {
    margin: 6px 0;
    color: #FF6B9D;
    font-size: 13px;
    font-weight: 500;
}

.mini-program-result-btn {
    width: 100%;
    background: linear-gradient(135deg, #4ECDC4 0%, #44B3AA 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 12px;
    cursor: pointer;
