/* B站活动页面样式 */

.bilibili-page {
    padding: 20px 0;
    max-width: 800px;
    margin: 0 auto;
}

/* 页面导航区域 */
.page-navigation {
    margin-bottom: 20px;
}

/* 返回按钮样式 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 6px;
}

.back-link:hover {
    background: rgba(91, 163, 197, 0.1);
    transform: translateX(-2px);
}

.back-arrow {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-3px);
}

/* 顶部标题区域 */
.activity-header {
    text-align: center;
    margin-bottom: 24px;
}

.activity-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.b-icon {
    width: 28px;
    height: 28px;
    fill: #00AEEC;
    flex-shrink: 0;
}

/* ================== 活动说明卡片 ================== */
.activity-info-section {
    margin-bottom: 24px;
}

.info-card {
    background: var(--card-background);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow-color);
}

.info-card-header {
    background: linear-gradient(135deg, #00AEEC, #FB7299);
    padding: 14px 20px;
}

.info-card-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.info-card-body {
    padding: 20px;
}

.rule-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.rule-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rule-step:first-child {
    padding-top: 0;
}

.rule-num {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #00AEEC, #FB7299);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.rule-text {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
    flex: 1;
}

.rule-text .highlight {
    color: #00AEEC;
    font-weight: 600;
}

.rule-text .up-name {
    color: #FB7299;
    font-weight: 600;
}

.info-card-footer {
    background: linear-gradient(135deg, 
        rgba(0, 174, 236, 0.06), 
        rgba(251, 114, 153, 0.06));
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

@media (prefers-color-scheme: dark) {
    .info-card-footer {
        background: linear-gradient(135deg, 
            rgba(0, 174, 236, 0.1), 
            rgba(251, 114, 153, 0.1));
    }
}

.reward-info {
    text-align: center;
}

.reward-label {
    display: inline-block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.reward-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-tag {
    font-size: 12px;
    padding: 3px 10px;
    background: rgba(0, 174, 236, 0.1);
    color: #00AEEC;
    border-radius: 12px;
    font-weight: 500;
}

.device-tag-apple {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
}

.reward-amount {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #00AEEC, #FB7299);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reward-heart {
    width: 20px;
    height: 20px;
    fill: var(--heart-color);
}

.reward-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.reward-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* 提交审核区域 */
.submit-section {
    background: var(--card-background);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px var(--shadow-color);
}

.submit-container {
    max-width: 400px;
    margin: 0 auto;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

/* 登录提示 */
.login-prompt {
    text-align: center;
    padding: 40px 20px;
}

.login-prompt p {
    font-size: 16px;
    color: var(--text-secondary);
}

.login-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

/* 状态卡片 */
.status-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    background: var(--background-color);
}

.status-card.status-0 {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.05);
}

.status-card.status-1 {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.05);
}

.status-card.status--1,
.status-card.status--2 {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.05);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.status-label {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 状态图标 */
.status-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.status-icon-pending {
    fill: #F59E0B;
}

.status-icon-success {
    fill: #10B981;
}

.status-icon-fail {
    fill: #EF4444;
}

.submit-time {
    font-size: 14px;
    color: var(--text-secondary);
}

.status-body {
    margin-bottom: 16px;
}

.nickname-info {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.result-info {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-info.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.result-info.fail {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.result-info.cancel {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
}

/* 结果中的爱心图标 */
.result-heart {
    width: 16px;
    height: 16px;
    fill: var(--heart-color);
    flex-shrink: 0;
}

.status-footer {
    text-align: center;
}

.cancel-btn,
.resubmit-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #EF4444;
    color: white;
}

.cancel-btn:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

.resubmit-btn {
    background: var(--primary-color);
    color: white;
}

.resubmit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 提交表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--input-background);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--input-focus-shadow);
}

.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00AEEC, #FB7299);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 174, 236, 0.35);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 教程区域 */
.tutorial-section {
    margin-bottom: 24px;
}

.tutorial-section .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.title-icon {
    width: 22px;
    height: 22px;
    fill: var(--primary-color);
    flex-shrink: 0;
}

.tutorial-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.step-item {
    background: var(--card-background);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px var(--shadow-hover);
}

.step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #00AEEC, #FB7299);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.step-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* 注意事项 */
.notice-section {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.notice-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-icon {
    width: 18px;
    height: 18px;
    fill: #F59E0B;
    flex-shrink: 0;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    position: relative;
    padding-left: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.notice-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #F59E0B;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bilibili-page {
        padding: 16px;
    }
    
    .page-navigation {
        margin-bottom: 16px;
    }
    
    .activity-title {
        font-size: 20px;
    }
    
    .b-icon {
        width: 24px;
        height: 24px;
    }
    
    .info-card-body {
        padding: 16px;
    }
    
    .info-card-footer {
        padding: 16px;
    }
    
    .reward-items {
        gap: 16px;
    }
    
    .reward-amount {
        font-size: 24px;
    }
    
    .submit-section {
        padding: 20px;
    }
    
    .tutorial-steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .step-item {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .activity-title {
        font-size: 18px;
    }
    
    .b-icon {
        width: 22px;
        height: 22px;
    }
    
    .page-navigation {
        margin-bottom: 12px;
    }
    
    .back-link {
        font-size: 13px;
        padding: 4px 8px;
    }
    
    .back-arrow {
        width: 16px;
        height: 16px;
    }
    
    .rule-text {
        font-size: 14px;
    }
    
    .reward-items {
        flex-direction: column;
        gap: 12px;
    }
    
    .reward-divider {
        width: 60px;
        height: 1px;
    }
    
    .section-title {
        font-size: 17px;
    }
    
    .title-icon {
        width: 18px;
        height: 18px;
    }
}

/* 深色模式额外优化 */
@media (prefers-color-scheme: dark) {
    .info-card {
        border: 1px solid var(--border-color);
    }
    
    .step-item {
        border: 1px solid var(--border-color);
    }
    
    .notice-section {
        background: rgba(245, 158, 11, 0.08);
        border-color: rgba(245, 158, 11, 0.25);
    }
    
    .device-tag {
        background: rgba(0, 174, 236, 0.15);
    }
    
    .device-tag-apple {
        background: rgba(107, 114, 128, 0.15);
    }
}