/* activity.css - Mobile First, Fully Responsive */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 15px;
}

/* Main Container */
.activity-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 20px;
}

/* Mobile Padding */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .activity-container {
        padding: 15px;
        border-radius: 20px;
    }
}

/* ===== Header ===== */
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left h1 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.header-subtitle {
    color: #718096;
    font-size: 1rem;
}

.participant-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-align: center;
    min-width: 140px;
}

.count-number {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.count-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Mobile Header */
@media (max-width: 600px) {
    .activity-header {
        flex-direction: column;
        text-align: center;
    }
    .participant-count {
        width: 100%;
    }
}

/* ===== Section Header ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-icon {
    font-size: 1.8rem;
}

.section-header h2 {
    font-size: 1.4rem;
    color: #2d3748;
    flex: 1;
}

.showcase-badge {
    background: #48bb78;
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== Prediction Module ===== */
.predict-section {
    background: linear-gradient(135deg, #f6f9fc 0%, #e6f0fa 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #cbd5e0;
}

.predict-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.predict-left {
    flex: 2;
    min-width: 250px;
}

.predict-description {
    color: #4a5568;
    margin-bottom: 10px;
    line-height: 1.5;
}

.highlight-text {
    background: #FFD966;
    color: #333;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
}

.predict-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    background: white;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stat-value {
    font-weight: 800;
    color: #667eea;
    font-size: 1.2rem;
}

.stat-label {
    color: #718096;
    font-size: 0.8rem;
    margin-left: 5px;
}

.predict-right {
    flex: 1;
    min-width: 200px;
}

.predict-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.predict-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    font-size: 1.3rem;
}

/* ===== Poster Generation Section ===== */
.poster-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    padding: 30px;
    margin: 25px 0;
    color: white;
}

.poster-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Loading Animation */
.poster-loading {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-time {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
    margin-top: 5px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #FFD966, #FFB347);
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* Poster Result */
.poster-result {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.poster-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin-bottom: 25px;
    border: 4px solid white;
}

.poster-image {
    width: 100%;
    height: auto;
    display: block;
}

.poster-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    color: #FFD966;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

/* Share Caption */
.poster-caption {
    margin-bottom: 25px;
}

.caption-box {
    background: white;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    color: #333;
}

.caption-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.copy-caption-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.copy-caption-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* Share Guide */
.share-guide {
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
}

.share-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #FFD966;
}

.share-icon {
    font-size: 1.5rem;
}

.share-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #FFD966;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 8px;
}

.step-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.step-arrow {
    font-size: 1.5rem;
    color: #FFD966;
    font-weight: 300;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.social-btn {
    padding: 12px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    color: white;
}

.social-btn.facebook {
    background: #1877F2;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #405DE6);
}

.social-btn.twitter {
    background: #000000;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.social-icon {
    font-size: 1.1rem;
}

.bonus-message {
    background: #FFD966;
    color: #333;
    padding: 15px;
    border-radius: 40px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Action Buttons */
.poster-actions {
    display: flex;
    gap: 15px;
}

.poster-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.download-btn {
    background: white;
    color: #667eea;
}

.download-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.change-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.change-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ===== Rules Section ===== */
.rules-section {
    margin-bottom: 25px;
}

.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.rule-card {
    background: #f7fafc;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.rule-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.rule-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.rule-card h3 {
    color: #2d3748;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.rule-list {
    list-style: none;
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.6;
}

.rule-list li {
    margin-bottom: 5px;
}

.rule-predict {
    border-top: 5px solid #667eea;
}

.rule-upload {
    border-top: 5px solid #48bb78;
}

.deadline-info {
    background: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    color: #2d3748;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Mobile Rules */
@media (max-width: 600px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Upload Form ===== */
.upload-section {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #48bb78;
    background: #f0fff4;
}

.upload-placeholder .upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.upload-hint {
    color: #a0aec0;
    font-size: 0.8rem;
    margin-top: 8px;
}

.preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
}

/* Region Options */
.region-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.region-option {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 15px;
    background: #f7fafc;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
}

.region-option input[type="radio"] {
    width: auto;
    margin-right: 3px;
}

/* Input Fields */
input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: #f7fafc;
    padding: 12px;
    border-radius: 10px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 10px 20px rgba(72, 187, 120, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(72, 187, 120, 0.4);
}

.submit-message {
    background: #48bb78;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
}

/* ===== Participants Showcase ===== */
.participants-showcase {
    background: #f8fafc;
    border-radius: 20px;
    padding: 25px;
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.participant-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.participant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.participant-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    background: #edf2f7;
}

.participant-info {
    padding: 10px;
    text-align: center;
}

.participant-name {
    font-weight: 700;
    color: #2d3748;
    font-size: 0.9rem;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participant-region {
    font-size: 0.75rem;
    color: #718096;
}

/* Mobile Participants Grid */
@media (max-width: 992px) {
    .participants-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .participants-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .participants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .participant-image {
        height: 80px;
    }
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 0 10px;
}

.page-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.page-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: #a0aec0;
    padding: 0 5px;
}

/* ===== Team Selection Modal ===== */
.team-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 15px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 25px;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.teams-grid {
    padding: 20px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.team-option {
    cursor: pointer;
    padding: 12px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
    background: white;
}

.team-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.team-option.selected {
    border-color: #667eea;
    background: #ebf4ff;
    border-width: 3px;
}

.team-option img {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 8px;
}

.team-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.85rem;
}

.team-group {
    font-size: 0.7rem;
    color: #718096;
    margin-top: 3px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn.cancel {
    background: #e2e8f0;
    color: #4a5568;
}

.modal-btn.cancel:hover {
    background: #cbd5e0;
}

.modal-btn.confirm {
    background: #667eea;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.modal-btn.confirm:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-2px);
}

.modal-btn.confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Modal */
@media (max-width: 700px) {
    .teams-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-content {
        max-height: 90vh;
    }
}

/* Mobile Poster Section */
@media (max-width: 768px) {
    .poster-section {
        padding: 20px;
    }
    
    .share-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step {
        flex-direction: row;
        width: 100%;
        gap: 15px;
    }
    
    .step-arrow {
        display: none;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .poster-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .poster-section {
        padding: 15px;
    }
    
    .caption-box {
        padding: 15px;
    }
    
    .caption-text {
        font-size: 0.9rem;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    .step-text {
        font-size: 0.8rem;
    }
}
/* 按钮样式 */
.rule-button {
    display: inline-block;
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.rule-button:hover {
    background: white;
    color: #D32F2F;
    border-color: #D32F2F;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
}

.button-subtext {
    display: block;
    font-size: 0.8rem;
    font-weight: normal;
    opacity: 0.9;
    margin-top: 2px;
}

/* 双按钮布局 */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.button-group .rule-button {
    flex: 1;
    margin-top: 0;
}

.rule-button.primary {
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
}

.rule-button.secondary {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
}

/* 优惠码样式 */
.discount-code {
    margin-top: 15px;
    padding: 10px;
    background: #f0f7ff;
    border-radius: 30px;
    font-size: 0.9rem;
    border: 1px dashed #D32F2F;
}

.discount-code span {
    font-weight: 800;
    color: #D32F2F;
    background: white;
    padding: 4px 12px;
    border-radius: 30px;
    margin-left: 5px;
    font-family: monospace;
    letter-spacing: 1px;
}

/* 海报预览 */
.poster-preview {
    margin: 15px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.poster-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.poster-preview:hover img {
    transform: scale(1.05);
}

/* 响应式 */
@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
    }
    
    .rule-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}
/* ===== 优惠码展示框（修复版） ===== */
.discount-show-box {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid #4a5568;
}

.discount-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.discount-icon {
    font-size: 1.5rem;
}

.discount-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.5px;
}

.discount-code-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2d3748;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 10px;
    border: 1px solid #4a5568;
}

.discount-code {
    flex: 1;
    padding: 12px 16px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fbbf24;
    text-align: left;
    font-family: 'Courier New', monospace;
    background: #1e2532;
    border-radius: 8px;
    margin-right: 8px;
}

.copy-discount-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 80px;
    justify-content: center;
}

.copy-discount-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.copy-discount-btn .btn-icon {
    font-size: 1rem;
}

.discount-note {
    font-size: 0.8rem;
    color: #a0aec0;
    text-align: left;
    margin-top: 8px;
    padding-left: 4px;
}

/* 手机适配 */
@media (max-width: 600px) {
    .discount-code-container {
        flex-direction: row; /* 保持水平布局，不堆叠 */
        padding: 4px;
    }
    
    .discount-code {
        padding: 10px 12px;
        font-size: 1rem;
        margin-right: 6px;
    }
    
    .copy-discount-btn {
        padding: 8px 16px;
        min-width: 70px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .discount-show-box {
        padding: 15px;
    }
    
    .discount-title {
        font-size: 0.9rem;
    }
    
    .discount-code {
        font-size: 0.9rem;
        padding: 8px 10px;
    }
    
    .copy-discount-btn {
        padding: 8px 12px;
        min-width: 65px;
        font-size: 0.8rem;
    }
}

/* 确保在暗色背景下文字清晰 */
.discount-code-container .btn-icon {
    font-size: 0.9rem;
}

/* 复制成功时的动画 */
@keyframes copyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.copy-discount-btn.copied {
    background: #10b981;
    animation: copyPulse 0.3s ease;
}
/* ===== 全局导航栏样式 ===== */
.global-navigation {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50px;
    padding: 10px 20px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #ddd;
}

.global-navigation .nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.global-navigation .nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.global-navigation .nav-item:hover {
    background: white;
    color: #D32F2F;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.global-navigation .nav-item.active {
    background: #D32F2F;
    color: white;
}

.global-navigation .nav-icon {
    font-size: 1.2rem;
}

.global-navigation .nav-separator {
    color: #ccc;
    font-weight: 300;
}

.global-navigation .admin-link {
    background: #333;
    color: white;
    padding: 8px 15px;
}

.global-navigation .admin-link:hover {
    background: #555;
}

/* 本地时间显示 */
.local-time-info {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin: 10px 0 20px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 30px;
    display: inline-block;
}

#userTimeZone {
    font-weight: 600;
    color: #D32F2F;
}

#localMatchTime {
    color: #2a5298;
    font-weight: 500;
}

.match-started-message {
    text-align: center;
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    color: white;
    padding: 15px;
    border-radius: 40px;
    margin: 20px auto;
    max-width: 600px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ===== 导航栏手机适配 - 强制一行显示 ===== */
@media (max-width: 768px) {
    .global-navigation {
        padding: 5px 10px;
        margin: 10px 5px;
        border-radius: 40px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        display: flex;
        justify-content: center;
    }
    
    .global-navigation .nav-container {
        display: flex;
        flex-wrap: nowrap;
        gap: 5px;
        justify-content: center;
        width: 100%;
    }
    
    .global-navigation .nav-item {
        display: inline-flex;
        padding: 6px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
        min-width: auto;
        flex-shrink: 0;
    }
    
    .global-navigation .nav-icon {
        font-size: 0.9rem;
        margin-right: 3px;
    }
    
    .global-navigation .nav-separator {
        display: inline-block;
        margin: 0 2px;
        color: #ccc;
        font-size: 0.9rem;
    }
    
    /* 隐藏多余的导航项分隔符，只保留必要的 */
    .global-navigation .nav-separator:last-of-type {
        display: none;
    }
}

/* 极小屏适配 (320px - 480px) */
@media (max-width: 480px) {
    .global-navigation {
        padding: 4px 8px;
    }
    
    .global-navigation .nav-item {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .global-navigation .nav-icon {
        font-size: 0.8rem;
    }
    
    .global-navigation .nav-text {
        font-size: 0.7rem;
    }
}

/* 超小屏适配 (320px以下) */
@media (max-width: 360px) {
    .global-navigation .nav-item {
        padding: 4px 6px;
    }
    
    .global-navigation .nav-icon {
        display: none;  /* 隐藏图标，只显示文字 */
    }
    
    .global-navigation .nav-text {
        font-size: 0.65rem;
    }
}
/* ===== AI Generator Section ===== */
.ai-generator-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 2px solid #334155;
    color: white;
    margin-top: 30px;
}

.section-badge {
    background: #fbbf24;
    color: #0f172a;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.generator-container {
    max-width: 700px;
    margin: 0 auto;
}

.generator-step {
    animation: fadeIn 0.5s ease;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #334155;
}

.step-number {
    width: 36px;
    height: 36px;
    background: #fbbf24;
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: Black;
}

/* Country Select */
.country-select-wrapper {
    position: relative;
    width: 100%;
}

.country-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #334155;
    border-radius: 16px;
    background: #1e293b;
    color: white;
    font-size: 1rem;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-select:focus {
    border-color: #fbbf24;
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fbbf24;
    font-size: 1.2rem;
    pointer-events: none;
}

.selected-country-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    background: #334155;
    border-radius: 16px;
    animation: slideDown 0.3s ease;
}

.selected-country-preview img {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #fbbf24;
}

.selected-country-preview span {
    font-weight: 600;
    color: white;
}

/* Jersey Input */
.jersey-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #334155;
    border-radius: 16px;
    background: #1e293b;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.jersey-input:focus {
    border-color: #fbbf24;
    outline: none;
}

.field-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 8px;
}

/* Style Grid */
.style-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.style-option {
    cursor: pointer;
    padding: 15px;
    border: 2px solid #334155;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    background: #1e293b;
}

.style-option:hover {
    transform: translateY(-3px);
    border-color: #fbbf24;
}

.style-option.selected {
    border-color: #fbbf24;
    background: #2d3a4f;
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.style-preview {
    width: 100%;
    height: 80px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.style-option span {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

/* Prompt Preview */
.prompt-preview {
    margin: 25px 0;
}

.prompt-box {
    background: #334155;
    border-left: 4px solid #fbbf24;
    padding: 16px 20px;
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 10px;
    font-style: italic;
}

/* Generate Button */
.generate-btn {
    width: 100%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    border: none;
    padding: 18px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
    margin-top: 20px;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(251, 191, 36, 0.4);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* AI Loading */
.ai-loading {
    text-align: center;
    padding: 60px 20px;
    background: #1e293b;
    border-radius: 30px;
}

.ai-loading-spinner {
    width: 70px;
    height: 70px;
    border: 5px solid #334155;
    border-top: 5px solid #fbbf24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

.ai-progress {
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 4px;
    margin: 25px 0 15px;
    overflow: hidden;
}

.ai-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.ai-status {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Result Section */
.ai-result {
    background: #1e293b;
    border-radius: 30px;
    padding: 25px;
}

.result-badge {
    background: #fbbf24;
    color: #0f172a;
    padding: 10px 20px;
    border-radius: 40px;
    display: inline-block;
    font-weight: 800;
    margin-bottom: 20px;
}

.result-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 3px solid #fbbf24;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.result-image {
    width: 100%;
    height: auto;
    display: block;
}

.result-watermark {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: #fbbf24;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.result-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.download-btn {
    background: #fbbf24;
    color: #0f172a;
}

.download-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.regenerate-btn {
    background: #334155;
    color: white;
    border: 2px solid #fbbf24;
}

.regenerate-btn:hover {
    background: #475569;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .style-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .step-indicator {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}