[v-cloak] {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

#app {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部 */
.header {
    text-align: center;
    padding: 40px 0 20px;
}

.header h1 {
    font-size: 28px;
    color: #1a73e8;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    font-size: 14px;
}

/* Tab 导航 */

/* 内容区 */
.content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 输入组 */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.input-group textarea:focus {
    border-color: #1a73e8;
}

.btn-parse {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
}

/* 按钮 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #1a73e8;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: #1557b0;
}

.btn-download {
    background: #34a853;
    color: #fff;
    font-size: 16px;
    padding: 14px 32px;
    margin-top: 16px;
}

.btn-download:hover {
    background: #2d9249;
}

/* 提示 */
.tip {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

/* 消息 */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.message.error {
    background: #fdecea;
    color: #d32f2f;
    border: 1px solid #f5c6cb;
}

.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* 视频区域 */
.video-section {
    margin-top: 24px;
}

.video-section h3 {
    margin-bottom: 12px;
    color: #333;
    display: inline-block;
}

.platform-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.video-player {
    width: 100%;
    max-height: 450px;
    border-radius: 8px;
    background: #000;
}

.video-info {
    margin-top: 12px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    word-break: break-all;
}

.video-info p {
    margin-bottom: 4px;
}

/* 图文展示区域 */
.image-section {
    margin-top: 24px;
}

.image-section h3 {
    margin-bottom: 12px;
    color: #333;
    display: inline-block;
}

.carousel {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-viewport {
    flex: 1;
    min-height: 300px;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.carousel-arrow:hover:not(:disabled) {
    background: #f0f0f0;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-indicator {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 12px 0;
}

.image-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.image-actions .btn-download {
    margin-top: 0;
}

.btn-download-all {
    background: #1a73e8;
}

.btn-download-all:hover {
    background: #1557b0;
}

/* 微信引导遮罩 */
.wechat-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15vh;
}

.wechat-arrow {
    position: absolute;
    top: 16px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 60px solid #fff;
    opacity: 0.9;
    animation: wechat-bounce 1.5s ease-in-out infinite;
}

@keyframes wechat-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.wechat-guide {
    text-align: center;
    color: #fff;
}

.wechat-guide-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
}

.wechat-guide-desc {
    font-size: 18px;
    margin-bottom: 12px;
    color: #ddd;
}

.wechat-guide-desc strong {
    color: #fff;
    font-size: 22px;
    letter-spacing: 2px;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 24px 0;
    color: #999;
    font-size: 12px;
    margin-top: auto;
}

/* 响应式 */
@media (max-width: 600px) {
    #app {
        padding: 12px;
    }

    .header h1 {
        font-size: 22px;
    }

    .input-group textarea {
        font-size: 13px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .btn-download {
        width: 100%;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .image-actions {
        flex-direction: column;
    }
}

/* 音频列表 */
.audio-list {
    margin-bottom: 16px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.audio-list p {
    margin-bottom: 12px;
    color: #333;
}

.audio-list-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-audio-item {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 13px;
}

.btn-audio-item:hover {
    background: #f0f0f0;
}

.btn-audio-active {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

.btn-audio-active:hover {
    background: #1557b0;
}

/* 音频操作按钮 */
.audio-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 16px;
}

.audio-actions .btn-download {
    margin-top: 0;
}
