/* 免费体验页面样式 */
.free-trial-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
    background: #f5f7fa;
    min-height: 100vh;
}

.free-trial-header {
    text-align: center;
    margin-bottom: 40px;
}

.free-trial-header h1 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.free-trial-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.free-trial-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 输入卡片 */
.input-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-url-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s;
}

.video-url-input:focus {
    border-color: #10b981;
}

.video-url-input::placeholder {
    color: #9ca3af;
}

.input-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.btn-clear,
.btn-paste,
.btn-parse {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.btn-clear {
    background: #ffffff;
    color: #333;
    border: 1px solid #e5e7eb;
}

.btn-clear:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-paste {
    background: #3b82f6;
    color: #ffffff;
}

.btn-paste:hover {
    background: #5db684;
}

.btn-parse {
    background: #10b981;
    color: #ffffff;
    flex: 1;
    max-width: 200px;
}

.btn-parse:hover {
    background: #059669;
}

.btn-parse:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* 支持平台区域 */
.platforms-section {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.platforms-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.platform-category {
    margin-bottom: 40px;
}

.platform-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 18px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.category-underline {
    height: 2px;
    background: #10b981;
    margin-bottom: 16px;
    width: 100%;
}

.platform-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.platform-table thead {
    background: #f3f4f6;
}

.platform-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-bottom: 2px solid #10b981;
}

.platform-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.platform-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.platform-table tbody tr:last-child {
    border-bottom: none;
}

.platform-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #666;
}

.platform-table td:first-child {
    color: #333;
}

.platform-table .status-check {
    color: #10b981;
    font-size: 18px;
    font-weight: bold;
}

/* 结果显示区域 */
.result-area {
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    min-height: 100px;
    display: none;
}

.result-area.show {
    display: block;
}

.result-area pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.result-area.error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.result-area.success {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #333;
    padding: 24px;
}

/* 解析成功页面样式 */
.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
    word-break: break-word;
}

.result-images-gallery {
    margin-bottom: 20px;
}

.images-scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
    -webkit-overflow-scrolling: touch;
}

.images-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.images-scroll-container::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
}

.images-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.images-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.image-item {
    position: relative;
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-download-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.image-download-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.image-download-btn svg {
    width: 16px;
    height: 16px;
}

.result-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5db684 0%, #3d9a6a 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.author-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.result-download-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-download-cover,
.btn-download-all {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    background: #ff6b35;
    color: #ffffff;
}

.btn-download-cover:hover,
.btn-download-all:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-download-cover:active,
.btn-download-all:active {
    transform: translateY(0);
}

.result-videos {
    margin-top: 20px;
    margin-bottom: 20px;
}

.result-live-photos {
    margin-top: 20px;
    margin-bottom: 20px;
}

.result-live-photos h3 {
    color: #333;
    margin-bottom: 16px;
}

.videos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* LivePhoto 专用样式 - 一排显�?�?*/
.result-live-photos .videos-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.result-live-photos .video-item {
    aspect-ratio: 9 / 16; /* 竖屏比例 */
}

.result-live-photos .video-wrapper {
    padding-top: 0;
    height: 100%;
}

.result-live-photos .video-wrapper video {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-item {
    position: relative;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    background: #000000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.video-download-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.video-download-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.video-download-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.video-download-btn span {
    white-space: nowrap;
}

.result-empty {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    text-align: center;
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    line-height: 1.6;
}

.result-json {
    background: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

/* 响应式设�?*/
@media (max-width: 768px) {
    .free-trial-container {
        padding: 24px 16px;
    }
    
    .free-trial-header h1 {
        font-size: 24px;
    }
    
    .free-trial-header p {
        font-size: 14px;
    }
    
    .input-card,
    .platforms-section {
        padding: 16px;
    }
    
    .input-actions {
        flex-direction: column;
    }
    
    .btn-parse {
        max-width: 100%;
    }
    
    .platform-table {
        font-size: 12px;
    }
    
    .platform-table th,
    .platform-table td {
        padding: 8px 12px;
    }
    
    .image-item {
        width: 150px;
        height: 150px;
    }
    
    .result-download-actions {
        flex-direction: column;
    }
    
    .btn-download-cover,
    .btn-download-all {
        width: 100%;
    }
    
    .videos-gallery {
        grid-template-columns: 1fr;
    }
    
    .video-download-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .video-download-btn span {
        display: none;
    }
    
    .video-download-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .result-live-photos h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    /* 移动端LivePhoto一排显�?�?*/
    .result-live-photos .videos-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .author-avatar,
    .author-avatar-img {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .author-name {
        font-size: 12px;
    }
}

/* 悬浮小程序二维码 */
.floating-qrcode {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.floating-qrcode:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.qrcode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1a3a2a 0%, #2d5a45 100%);
    color: white;
}

.qrcode-title {
    font-size: 14px;
    font-weight: 600;
}

.qrcode-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

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

.qrcode-content {
    padding: 16px;
    text-align: center;
}

.qrcode-image {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    border: 2px solid #f3f4f6;
    margin-bottom: 8px;
}

.qrcode-text {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .floating-qrcode {
        bottom: 16px;
        right: 16px;
        width: 180px;
    }

    .qrcode-image {
        width: 140px;
        height: 140px;
    }

    .qrcode-content {
        padding: 12px;
    }
}

/* 隐藏状�?*/
.floating-qrcode.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Toast提示样式 */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    background: #10b981;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.toast.info {
    background: #3b82f6;
}

.toast.warning {
    background: #f59e0b;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .toast {
        left: 20px;
        right: 20px;
        min-width: auto;
        max-width: none;
        top: 80px;
    }
}
