/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    text-align: center;
    padding: 20px 0;
    position: relative;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.slogan {
    font-size: 14px;
    color: #888;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #666;
}

section {
    margin-bottom: 25px;
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 15px 0;
    margin-top: 20px;
}

/* 活动首页样式 */
.activity-intro {
    text-align: center;
}

.intro-content {
    font-size: 14px;
    line-height: 1.8;
}

.intro-img {
    width: 100%;
    max-width: 300px;
    margin: 15px auto;
    border-radius: 8px;
    display: block;
}

.rule-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.rule-num {
    width: 24px;
    height: 24px;
    background-color: #ff4d4f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
}

.rule-text {
    font-size: 14px;
}

.reward-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.reward-item {
    background-color: #fff9f9;
    border: 1px solid #ffccc7;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.reward-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: #ff4d4f;
}

.reward-desc {
    font-size: 12px;
    color: #666;
}

.action-section {
    text-align: center;
    margin: 25px 0;
}

.create-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff4d4f;
    color: #fff;
    font-weight: bold;
    border-radius: 30px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.create-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 6px rgba(255, 77, 79, 0.2);
}

/* 创作页面样式 */
.script-content {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.voice-record {
    text-align: center;
    margin: 20px 0;
}

.record-status {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.record-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    margin: 0 auto;
    outline: none;
}

.record-icon {
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 8px;
}

.record-time {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.upload-tip {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.upload-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.upload-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.video-upload {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.upload-label {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.upload-icon {
    font-size: 24px;
    color: #ccc;
    margin-bottom: 5px;
}

.upload-text {
    font-size: 12px;
    color: #999;
}

.video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #eee;
    display: none;
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.start-create-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff4d4f;
    color: #fff;
    font-weight: bold;
    border-radius: 30px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.start-create-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 6px rgba(255, 77, 79, 0.2);
}

/* 视频处理页样式 */
.process-section {
    text-align: center;
    padding: 30px 15px;
}

.loading-icon {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    position: relative;
}

.loading-circle {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 77, 79, 0.2);
    border-top-color: #ff4d4f;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.process-tip {
    font-size: 14px;
    color: #888;
    margin: 10px 0 20px;
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #ff4d4f;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 12px;
    right: -50%;
    width: 100%;
    height: 1px;
    background-color: #eee;
    z-index: 1;
}

.step-num {
    width: 24px;
    height: 24px;
    background-color: #eee;
    color: #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.step-text {
    font-size: 12px;
    color: #999;
}

.step-active .step-num {
    background-color: #ff4d4f;
    color: #fff;
}

.step-active .step-text {
    color: #ff4d4f;
    font-weight: bold;
}

.result-section {
    text-align: center;
}

.video-container {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    display: block;
}

.video-info {
    text-align: left;
    margin: 15px 0;
}

.video-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.video-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: #fff0f0;
    color: #ff4d4f;
    border-radius: 4px;
    font-size: 12px;
}

.publish-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff4d4f;
    color: #fff;
    font-weight: bold;
    border-radius: 30px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.publish-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 6px rgba(255, 77, 79, 0.2);
}

.recreate-btn {
    display: block;
    padding: 10px;
    color: #666;
    font-size: 14px;
} 