/* 移动端布局 */
.mobile-app {
    max-width: 480px; margin: 0 auto; min-height: 100vh;
    background: var(--bg-primary);
}
.mobile-header {
    position: sticky; top: 0; z-index: 100; background: var(--bg-secondary);
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}
.mobile-header .back-btn {
    background: none; border: none; color: var(--text-primary);
    font-size: 18px; cursor: pointer; padding: 4px;
}
.mobile-header h2 { font-size: 17px; flex: 1; }
.mobile-content { padding: 16px; }
.mobile-content.no-padding { padding: 0; }

/* 底部导航 */
.bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px; background: var(--bg-secondary);
    border-top: 1px solid var(--border); display: flex; z-index: 100;
}
.bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 8px 0; color: var(--text-muted);
    font-size: 11px; gap: 4px; text-decoration: none; transition: color 0.2s;
}
.bottom-nav a.active { color: var(--accent); }
.bottom-nav a .nav-icon { font-size: 20px; }

/* 剧本卡片 - 垂直列表 */
.script-list { display: flex; flex-direction: column; gap: 12px; }
.script-card {
    display: flex; gap: 12px; background: var(--bg-card);
    border-radius: var(--radius); padding: 12px; cursor: pointer;
    border: 1px solid var(--border);
}
.script-card .cover {
    width: 80px; height: 106px; border-radius: var(--radius-sm);
    object-fit: cover; flex-shrink: 0; background: var(--bg-input);
}
.script-card .info { flex: 1; min-width: 0; }
.script-card .info h3 {
    font-size: 15px; margin-bottom: 4px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.script-card .info .meta {
    font-size: 12px; color: var(--text-secondary); margin-bottom: 6px;
}
.script-card .info .meta span { margin-right: 8px; }
.script-card .info .desc {
    font-size: 12px; color: var(--text-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 6px;
}
.script-card .info .bottom {
    display: flex; justify-content: space-between; align-items: center;
}
.script-card .info .price { color: var(--accent2); font-size: 14px; font-weight: 600; }
.script-card .tags { display: flex; gap: 4px; flex-wrap: wrap; }

/* 剧本网格 - 横向滚动 */
.script-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}

/* 登录/注册页 */
.auth-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px;
}
.auth-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 32px 24px; width: 100%; max-width: 400px;
    border: 1px solid var(--border);
}
.auth-card h2 { text-align: center; margin-bottom: 24px; font-size: 22px; }
.auth-card .switch {
    text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-secondary);
}
.auth-card .switch a { color: var(--accent); cursor: pointer; }

/* 店铺卡片 */
.shop-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 16px; border: 1px solid var(--border); margin-bottom: 12px; cursor: pointer;
}
.shop-card .shop-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.shop-card .shop-logo {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
    background: var(--bg-input); flex-shrink: 0;
}
.shop-card .shop-name { font-size: 16px; font-weight: 600; }
.shop-card .shop-meta { font-size: 12px; color: var(--text-muted); }
.shop-card .shop-actions { display: flex; gap: 8px; margin-top: 10px; }

/* 详情页 */
.detail-header {
    position: relative; width: 100%; height: 280px; overflow: hidden;
}
.detail-header .cover-bg {
    width: 100%; height: 100%; object-fit: cover; filter: blur(20px) brightness(0.4);
    position: absolute; top: 0; left: 0; transform: scale(1.1);
}
.detail-header .cover-main {
    position: relative; z-index: 1; width: 140px; height: 186px;
    object-fit: cover; border-radius: var(--radius); margin: 47px auto 0;
    display: block; box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.detail-body { padding: 20px 16px; }
.detail-body h2 { font-size: 20px; margin-bottom: 8px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.detail-body .section { margin-top: 20px; }
.detail-body .section h3 {
    font-size: 15px; margin-bottom: 8px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.detail-body .content-text { font-size: 14px; color: var(--text-secondary); line-height: 1.8; white-space: pre-wrap; }

/* 图片上传预览 */
.img-upload-box {
    width: 120px; height: 160px; border: 2px dashed var(--border);
    border-radius: var(--radius-sm); display: flex; align-items: center;
    justify-content: center; cursor: pointer; background: var(--bg-input);
    position: relative; overflow: hidden;
}
.img-upload-box img { width: 100%; height: 100%; object-fit: cover; }
.img-upload-box .placeholder-text { color: var(--text-muted); font-size: 13px; text-align: center; padding: 10px; }

/* 分享面板 */
.share-panel {
    text-align: center; padding: 20px;
}
.share-panel .share-code {
    font-size: 28px; font-weight: 700; color: var(--accent);
    letter-spacing: 4px; margin: 16px 0;
}
.share-panel .share-url {
    padding: 10px; background: var(--bg-input); border-radius: var(--radius-sm);
    word-break: break-all; font-size: 12px; color: var(--text-secondary); margin-bottom: 16px;
}

/* PC端桌面适配 */
@media (min-width: 769px) {
    .mobile-app { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}
