/* ========== 短视频去水印系统 - 完整样式（首页已修复） ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 统一容器 - 所有页面一致 */
.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* 首页解析框 - 确保宽度一致 */
.parse-box {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
}

        .home-container {
            max-width: 1000px !important;
            width: 100% !important;
            margin: 0 auto !important;
            
        }
        .parse-box {
            width: 100% !important;
            max-width: 100% !important;
        }
        .result-video {
            width: 100%;
            max-height: 450px;
            background: #000;
        }
        .video-wrapper {
            background: #000;
            text-align: center;
        }
        
  .free-badge {
    background: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
}      
        
/* 头部 */
.header {
    background: rgb(255 255 255);
    
    position: sticky;
    top: 0;
    z-index: 100;
    height: 70px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  padding: 18px 24px;
}

.logo h1 {
    font-size: 1.3rem;
    color: #667eea;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav a:hover {
    color: #667eea;
}

/* 主要内容 */
.main {
    padding: 30px 0 50px;
}

.hero {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.hero h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.hero p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 用户信息栏 */
.user-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 10px;
}

.vip-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.upgrade-link, .login-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.85rem;
}

/* 输入区域 */
.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.input-group input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #667eea;
}

.parse-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0 32px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.parse-btn:hover {
    transform: translateY(-1px);
}

.parse-btn:disabled {
    opacity: 0.6;
    transform: none;
}

.hint {
    text-align: center;
    color: #999;
    font-size: 0.75rem;
}

/* 结果卡片 */
.result-wrapper {
    margin-top: 25px;
    width: 100%;
}

.result-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
}

.video-wrapper {
    position: relative;
    background: #000;
}

.result-video {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    background: #000;
    display: block;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 18px;
    border: none;
    transition: background 0.2s;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(0,0,0,0.7);
}

.result-content {
    padding: 0;
}

/* 作者区域 */
.author-section {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
}

.author-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.author-details {
    flex: 1;
}

.author-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.author-badge {
    background: #e8f5e9;
    color: #4caf50;
    font-size: 0.65rem;
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 8px;
}

.author-meta {
    display: flex;
    gap: 18px;
    font-size: 0.7rem;
    color: #999;
}

/* 标题区域 */
.title-section {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.video-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
    word-break: break-word;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.video-tag {
    background: #f0f2f5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #666;
}

/* 按钮区域 */
.action-section {
    padding: 16px 20px;
    display: flex;
    gap: 14px;
    background: white;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity 0.2s;
}

.btn-download {
    background: #28a745;
    color: white;
}

.btn-copy {
    background: #f0f2f5;
    color: #444;
    border: 1px solid #e0e0e0;
}

.btn-share {
    background: #f0f2f5;
    color: #444;
    border: 1px solid #e0e0e0;
}

.action-btn:hover {
    opacity: 0.85;
}

/* 加载状态 */
.loading-state {
    background: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    margin-top: 25px;
}

.loading-spinner {
    width: 45px;
    height: 45px;
    border: 3px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 提示消息 */
.toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: #333;
    color: white;
    border-radius: 40px;
    font-size: 0.85rem;
    z-index: 10001;
    white-space: nowrap;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========== 个人中心样式 ========== */
.user-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.stat-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
}

.records-table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.records-table h3 {
    padding: 15px 18px;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
}

.records-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.records-table th,
.records-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.records-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* ========== 套餐页面样式 ========== */
.packages-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 25px;
}

.package-card {
    background: white;
    border-radius: 20px;
    padding: 22px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.package-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.package-card.recommended {
    border: 2px solid #ffc107;
}

.recommend-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ffc107;
    color: #333;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.package-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.package-price {
    font-size: 2rem;
    color: #667eea;
    font-weight: 700;
}

.package-price small {
    font-size: 0.75rem;
    color: #999;
}

.package-days {
    font-size: 0.8rem;
    color: #666;
    margin: 10px 0;
}

.package-features {
    list-style: none;
    margin: 15px 0;
}

.package-features li {
    padding: 6px 0;
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.package-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: opacity 0.2s;
}

.package-btn:hover {
    opacity: 0.9;
}

/* ========== 登录/注册页面样式 ========== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 35px 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 28px;
    color: #667eea;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #667eea;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: opacity 0.2s;
}

.auth-btn:hover {
    opacity: 0.9;
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 0.85rem;
    color: #666;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .parse-btn {
        padding: 12px;
    }
    
    .result-video {
        max-height: 300px;
    }
    
    .author-avatar,
    .author-avatar-placeholder {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    
    .author-name {
        font-size: 0.9rem;
    }
    
    .video-title {
        font-size: 0.9rem;
    }
    
    .action-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .nav {
        gap: 12px;
    }
    
    .nav a {
        font-size: 0.8rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .parse-box {
        padding: 20px;
    }
}