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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #07c160;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.download-btn {
    margin-right: 8px;
}

.nav-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-info:hover {
    background: #e2e8f0;
}

.vip-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.vip-badge-gray {
    background: #e2e8f0;
    color: #94a3b8;
}

.vip-badge-permanent {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.vip-badge-normal {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.vip-expire-time {
    font-size: 11px;
    color: #6b7280;
    margin-left: 4px;
    padding: 2px 6px;
    background: #f3f4f6;
    border-radius: 8px;
    white-space: nowrap;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
}

a.btn {
    text-decoration: none;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

/* 移动端简短文字与图标（默认隐藏） */
.short-text,
.feedback-icon-mobile,
.download-icon-mobile,
.logout-icon-mobile {
    display: none;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    font-family: inherit;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--primary);
}

/* 移动端汉堡按钮（默认PC端隐藏） */
.hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.hamburger-btn:hover {
    background: var(--bg-card-soft, #f8fafc);
    border-color: var(--primary);
    color: var(--primary);
}

.hamburger-btn svg {
    width: 18px;
    height: 18px;
}

.dropdown-item svg {
    flex-shrink: 0;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 12px;
}

.btn-ghost:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.btn-wechat {
    background: var(--accent);
    color: white;
}

.btn-wechat:hover {
    background: #06ad56;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 32px 80px;
}

.hero {
    text-align: center;
    margin-bottom: 48px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.parse-section {
    margin-bottom: 64px;
}

.platforms-section {
    margin-bottom: 32px;
}

.parse-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.parse-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.parse-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    background: var(--bg);
}

.parse-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.parse-btn {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.parse-tip {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.login-prompt {
    margin-top: 24px;
}

.prompt-card {
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.prompt-card svg {
    margin-bottom: 16px;
}

.prompt-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.prompt-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.result-section {
    margin-bottom: 32px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.result-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.result-count {
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.result-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 12px;
}
.result-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.result-tab:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}
.result-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}
.result-tab.active .tab-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.tab-count {
    display: inline-block;
    min-width: 22px;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    background: #e2e8f0;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.result-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.result-item img,
.result-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f1f5f9;
}

.result-item-info {
    padding: 16px;
}

.result-item-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.type-image {
    background: #dbeafe;
    color: #1d4ed8;
}

.type-video {
    background: #fce7f3;
    color: #be185d;
}

.type-music {
    background: #fae8ff;
    color: #a21caf;
}

.result-item-url {
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-all;
    margin-bottom: 12px;
    line-height: 1.4;
}

.result-item-actions {
    display: flex;
    gap: 8px;
}

.result-item-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Hero 角标 */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: rgba(7, 193, 96, 0.08);
    color: #07c160;
    border: 1px solid rgba(7, 193, 96, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
}

.hero-badge svg {
    stroke: #07c160;
}

/* 数据统计区 */
.trust-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-top: 0;
    margin-bottom: 48px;
}

.trust-stat {
    text-align: center;
}

.trust-stat-num {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #07c160, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.trust-stat-num span {
    font-size: 16px;
    margin-left: 2px;
}

.trust-stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* 平台支持列表 */
.platforms-section {
    padding: 16px 0 32px;
    text-align: center;
    overflow: hidden;
}

.platforms-section h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.platforms-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

/* 使用教程 */
.tutorial-section {
    padding: 32px 0 24px;
    text-align: center;
}

.tutorial-header {
    margin-bottom: 32px;
}

.tutorial-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    font-size: 14px;
    margin-bottom: 12px;
}

.tutorial-header h3 {
    font-size: 28px;
    font-weight: 700;
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.tutorial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.tutorial-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.tutorial-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.tutorial-card h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tutorial-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .tutorial-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* 跑马灯容器 */
.marquee-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.marquee-fade-left,
.marquee-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.marquee-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-container {
    overflow: hidden;
    padding: 10px 0;
}

.marquee-content {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 平台卡片 */
.platform-card {
    flex-shrink: 0;
    width: 160px;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.platform-icon-container {
    position: relative;
    margin-bottom: 12px;
}

.platform-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.platform-icon-img {
    width: 28px;
    height: 28px;
    color: white;
}

.platform-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(20px);
    transition: opacity 0.3s ease;
}

.platform-card:hover .platform-glow {
    opacity: 0.3;
}

.platform-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.platform-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* 带壳截图展示区域 */
.showcase-section {
    margin-top: 64px;
    margin-bottom: 64px;
    text-align: center;
}

.showcase-header {
    margin-bottom: 40px;
}

.showcase-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    font-size: 13px;
    margin-bottom: 12px;
}

.showcase-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.showcase-desc {
    color: var(--text-light);
    font-size: 15px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 手机外壳（安卓风格） */
.phone-frame {
    position: relative;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 9 / 19;
    background: #1a1a1a;
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 0 2px #2a2a2a inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-item:hover .phone-frame {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 0 0 0 2px #2a2a2a inset;
}

/* 安卓顶部挖孔摄像头 */
.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 2px #333;
}

/* 屏幕 */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* 空状态占位 */
.phone-screen.showcase-empty::before {
    content: '暂无截图';
    position: absolute;
    color: #aaa;
    font-size: 13px;
}

.phone-screen.showcase-empty img {
    display: none;
}

.showcase-caption {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* 承诺区域 */
.commit-section {
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.04), rgba(99, 102, 241, 0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    margin-bottom: 64px;
    text-align: center;
}

.commit-section h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.commit-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 40px;
}

.commit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.commit-item {
    background: var(--bg-card);
    padding: 28px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

.commit-item:hover {
    border-color: #07c160;
    transform: translateY(-2px);
}

.commit-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.commit-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.commit-item p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* 页脚 */
.site-footer {
    text-align: center;
    padding: 40px 20px 60px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.site-footer p {
    font-size: 14px;
    margin-bottom: 8px;
}

.site-footer .footer-sub {
    color: #07c160;
    font-size: 13px;
    letter-spacing: 1px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 440px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

/* APP下载弹窗 */
.app-download-modal {
    padding: 40px 32px;
    max-width: 400px;
    text-align: center;
}

.app-download-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease;
}

.app-download-item:hover {
    border-color: var(--primary-color);
}

.app-download-item.ios-item {
    opacity: 0.65;
}

.app-download-item.ios-item:hover {
    border-color: var(--border-color);
}

.app-download-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.android-icon {
    background: #e8f5e9;
    color: #4caf50;
}

.ios-icon {
    background: #f3e8f5;
    color: #9c27b0;
}

.app-download-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
}

.app-download-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.app-download-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.app-download-btn-action {
    flex-shrink: 0;
    min-width: 72px;
}

.app-download-btn-action:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.login-modal {
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
}

.login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: var(--radius-md);
}
.common-btn {
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.common-btn.active {
    background: white;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tab-btn.active {
    background: white;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-error {
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 16px;
    min-height: 18px;
}

.form-footer {
    text-align: center;
    margin-top: 16px;
}

.form-link {
    color: var(--primary);
    font-size: 13px;
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

.input-with-btn {
    display: flex;
    gap: 8px;
}

.input-with-btn input {
    flex: 1;
}

.input-with-btn .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.input-with-toggle {
    position: relative;
}

.input-with-toggle input {
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
}

.toggle-pwd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.toggle-pwd:hover {
    color: #6366f1;
}

.toggle-pwd .eye-open {
    display: none;
}

.toggle-pwd .eye-closed {
    display: block;
}

.toggle-pwd.active .eye-open {
    display: block;
}

.toggle-pwd.active .eye-closed {
    display: none;
}

.wechat-login {
    text-align: center;
}

.qrcode-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    overflow: hidden;
}

.qrcode-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qrcode-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.wechat-tip {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--text-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 14px;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
}

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

.result-preview {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    height: 180px;
}

.result-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.result-type-badge.type-image { background: rgba(59, 130, 246, 0.92); }
.result-type-badge.type-video { background: rgba(239, 68, 68, 0.92); }
.result-type-badge.type-music { background: rgba(168, 85, 247, 0.92); }

.result-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.result-preview-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.result-preview:hover img,
.result-preview:hover video {
    transform: scale(1.05);
}

.preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-preview:hover .preview-overlay {
    opacity: 1;
}

.result-preview-music {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.music-icon {
    opacity: 0.9;
}

/* ============ M3U8 占位样式 ============ */
.m3u8-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    color: #fff;
}
.m3u8-film-icon {
    color: rgba(255, 255, 255, 0.85);
}
.m3u8-tag {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
@media (max-width: 768px) {
    .m3u8-film-icon {
        width: 52px;
        height: 52px;
    }
    .m3u8-tag {
        font-size: 12px;
        padding: 3px 9px;
    }
}

.preview-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    z-index: 3000;
    animation: fadeIn 0.2s ease;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.spin {
    animation: spin 0.8s linear infinite;
}

.parse-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    gap: 20px;
}

.parse-loading-icon {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.parse-loading-text {
    font-size: 15px;
    color: var(--text-secondary);
    transition: opacity 0.3s;
}

.parse-loading-dots span {
    display: inline-block;
    animation: dotBounce 1.4s infinite ease-in-out both;
}
.parse-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.parse-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotBounce {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

.preview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, transform .1s;
}

.preview-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.preview-content {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* 上56px给关闭按钮，左右12px安全区，下20px给HomeIndicator+底部提示条 */
    padding: 56px 12px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* ============================================================
 * 预览弹窗·图片/视频尺寸（兼容夸克/UC/微信等老旧 WebView）
 *  ⚠️ 已知坑1：国产老内核 flex 子元素里，使用百分比(%) max-width/max-height 不生效
 *           → 导致原始 1080p 大小直接渲染，夸克上"放大很多，只显示左上角"
 *  ⚠️ 已知坑2：写死 width:xx 或 min-width:xx → 竖版9:16短视频在手机竖屏里被强行拉宽，高度超出屏幕被裁
 *  ⚠️ 已知坑3：不写 -webkit-object-fit 前缀 → 老WebView object-fit:contain 被忽略
 *  解决：
 *    · 统一使用 vw/vh 绝对值（不依赖父级百分比）
 *    · width/height 始终 auto（让浏览器按原始宽高比缩放），只写 max-width/max-height 做上限拦截
 *    · 清除所有 min-width/min-width:0（之前的 95vw/60vw 会强制把小图放大、把竖版视频超高溢出）
 *    · 加 -webkit- 前缀；加 align-self 居中；加 !important 兜底内联 style
 * ============================================================ */

/* ---- 通用（任何屏幕）上限 92vw × 82vh · 四周留安全边 ---- */
.preview-content img,
.preview-content video {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 92vw;
    max-height: 82vh;
    -webkit-object-fit: contain;
    object-fit: contain;
    -webkit-align-self: center;
    align-self: center;
    -webkit-flex: 0 1 auto;
    flex: 0 1 auto;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 10px 60px rgba(0,0,0,0.6);
    display: block;
}

/* ---- 移动端 ≤767px：上限 93vw × 78vh（给底部提示条+关闭按钮留空间）---- */
@media only screen and (max-width: 767px) {
    .preview-content { padding: 56px 10px 16px; }
    .preview-content img,
    .preview-content video {
        max-width: 93vw;
        max-height: 78vh;
        border-radius: 10px;
    }
}

/* ---- 平板/小笔记本 768-1365px：上限 88vw × 82vh ---- */
@media only screen and (min-width: 768px) and (max-width: 1365px) {
    .preview-content { padding: 60px 24px 24px; }
    .preview-content img,
    .preview-content video {
        max-width: 88vw;
        max-height: 82vh;
    }
}

/* ---- 大桌面 ≥1366px：上限 1280px × 86vh（4K屏不被拉糊）---- */
@media only screen and (min-width: 1366px) {
    .preview-content { padding: 64px 32px 32px; }
    .preview-content img,
    .preview-content video {
        max-width: 1280px;
        max-height: 86vh;
    }
}

/* ---- 音频播放器 ---- */
.preview-content audio {
    max-width: 92vw;
    width: 480px;
    -webkit-align-self: center;
    align-self: center;
}
@media only screen and (max-width: 767px) {
    .preview-content audio { width: 90vw; max-width: 90vw; }
}

/* ---- 国产浏览器底部「长按保存」提示条 ---- */
.preview-domestic-tip {
    display: none;
    margin: 14px 0 0 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.94);
    color: #713f12;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    max-width: 92vw;
    text-align: center;
    z-index: 5;
    animation: fadeInUp .25s ease;
    -webkit-align-self: center;
    align-self: center;
    white-space: normal;
    word-break: break-all;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
}
.preview-domestic-tip.visible { display: block; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- 关闭按钮 ---- */
.preview-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255,255,255,0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background 0.2s, transform .1s;
}
.preview-close:hover { background: rgba(255, 255, 255, 0.28); }

@media only screen and (min-width: 768px) {
    .preview-close { top: 28px; right: 28px; width: 52px; height: 52px; }
    .preview-close svg { width: 26px; height: 26px; }
}
@media only screen and (max-width: 767px) {
    .preview-close { top: 12px; right: 12px; }
}

/* 自定义音乐播放器 */
.music-player {
    width: 480px;
    max-width: 90vw;
    padding: 40px 32px 32px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #fff;
}

.music-cover {
    width: 140px;
    height: 140px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.4);
}

.music-player audio {
    width: 100%;
    height: 56px;
    min-height: 56px;
}


.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.footer {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-divider {
    color: var(--border);
}

.footer-wechat {
    color: var(--text-secondary);
}

.contact-modal {
    max-width: 360px;
    text-align: center;
    padding: 40px 32px;
}

.contact-header {
    margin-bottom: 24px;
}

.contact-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    overflow: hidden;
}

.contact-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-modal h2 {
    font-size: 22px;
    margin: 0;
}

.contact-body {
    margin-bottom: 28px;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px;
}

.contact-qr {
    width: 180px;
    height: 180px;
    margin: 0 auto 12px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-tip {
    color: var(--text-tertiary, #94a3b8);
    font-size: 12px;
    margin: 0;
}

.vip-price-box {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1px solid #ffe082;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.vip-price-label {
    color: #b8860b;
    font-size: 13px;
    margin-bottom: 8px;
}

.vip-price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #d32f2f;
    line-height: 1;
}

.vip-price-amount .currency {
    font-size: 20px;
    vertical-align: top;
}

.vip-price-amount .unit {
    font-size: 20px;
    font-weight: 500;
}

.vip-price-desc {
    color: #8d6e63;
    font-size: 12px;
    margin-top: 8px;
}

.goods-list-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 8px;
}

.goods-list-row::-webkit-scrollbar {
    display: none;
}

.goods-item {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 16px 12px;
    border: 2px solid #ffe082;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    text-align: center;
    overflow: visible;
}

.goods-item-info {
    width: 100%;
}

.goods-item-price-col {
    width: 100%;
}

.goods-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.goods-item-selected {
    border-color: #6366f1 !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12)) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    z-index: 10;
}

.goods-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.goods-item-current-price {
    color: #ff6b35;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.goods-item-current-price .currency {
    font-size: 14px;
    font-weight: 600;
    margin-right: 2px;
}

.goods-item-original-price {
    color: #b0b0b0;
    font-size: 12px;
    text-decoration: line-through;
    margin-top: 4px;
    margin-bottom: 6px;
}

.goods-item-desc {
    color: #8d6e63;
    font-size: 11px;
    line-height: 1.4;
}

.goods-select-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #6366f1;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    z-index: 2;
}

.goods-item-selected .goods-select-indicator {
    display: flex;
}

@media (max-width: 768px) {
    .goods-list-row {
        flex-direction: column;
        overflow-x: visible;
        gap: 12px;
    }

    .goods-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 16px 20px;
    }

    .goods-item-info {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .goods-item-name {
        margin-bottom: 6px;
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .goods-item-desc {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .goods-item-price-col {
        text-align: right;
        flex-shrink: 0;
        margin-left: 16px;
        width: auto;
    }

    .goods-item-current-price {
        font-size: 24px;
    }

    .goods-item-original-price {
        margin-bottom: 0;
        margin-top: 2px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero {
        margin-bottom: 32px;
    }

    .parse-card {
        padding: 16px;
    }

    .parse-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .parse-input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .parse-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }

    .parse-section {
        margin-bottom: 40px;
    }

    .result-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .result-tabs {
        gap: 6px;
        padding: 5px;
        margin-bottom: 14px;
    }
    .result-tab {
        padding: 7px 12px;
        font-size: 13px;
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
    .tab-count {
        min-width: 18px;
        padding: 1px 6px;
        font-size: 11px;
    }
    .result-type-badge {
        font-size: 11px;
        padding: 2px 8px;
        top: 6px;
        left: 6px;
    }

    .result-preview {
        height: 140px;
    }

    .result-item-info {
        padding: 12px;
    }

    .result-item-actions .btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    .result-header h2 {
        font-size: 20px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px;
    }

    .login-modal {
        padding: 24px 20px;
        width: 95%;
    }

    .login-header h2 {
        font-size: 22px;
    }

    .nav-container {
        padding: 10px 12px;
    }

    .nav-right {
        gap: 4px;
    }

    .logo-img {
        width: 28px;
        height: 28px;
    }

    .logo-link span {
        display: none;
    }

    /* 移动端显示简短文字和图标，隐藏完整文字 */
    .full-text {
        display: none;
    }

    .short-text {
        display: inline;
    }

    .feedback-icon-mobile,
    .download-icon-mobile {
        display: inline-flex;
    }

    /* 退出按钮移动端只显示图标 */
    .logout-icon-mobile {
        display: inline-flex;
    }

    .logout-text {
        display: none;
    }

    .dropdown-arrow {
        margin-left: 2px;
    }

    .nav-right .btn {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .user-info {
        padding: 4px 8px;
        font-size: 13px;
        gap: 4px;
    }

    .user-avatar {
        width: 20px;
        height: 20px;
    }

    .user-name {
        display: none;
    }

    .dropdown-menu {
        right: 0;
        left: auto;
    }

    .main {
        padding: 32px 16px 48px;
    }

    .prompt-card {
        padding: 24px 20px;
    }

    .prompt-card h3 {
        font-size: 18px;
    }

    .qrcode-container {
        width: 160px;
        height: 160px;
    }

    .toast {
        top: 16px;
        padding: 10px 20px;
        font-size: 13px;
        max-width: 90%;
    }

    .info-card-wrapper {
        flex-direction: column !important;
    }

    .info-card-wrapper button {
        align-self: flex-end;
    }

    .vip-badge {
        font-size: 11px;
        padding: 1px 6px;
    }

    .input-with-toggle input {
        padding-right: 36px;
    }

    .toggle-pwd {
        padding: 3px;
    }

    .modal-content {
        width: 95%;
        margin: 0 10px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-content.vip-upgrade-modal {
        padding: 24px 20px;
    }

    .vip-price-box {
        margin: 16px 0;
    }

    .vip-price-amount {
        font-size: 36px;
    }

    .hero {
        text-align: center;
    }

    .hero-badges {
        gap: 6px;
    }

    .hero-badge {
        padding: 4px 10px;
        font-size: 12px;
    }

    .trust-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 24px 16px;
    }

    .trust-stat-num {
        font-size: 28px;
    }

    .commit-section {
        padding: 32px 20px;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .phone-frame {
        max-width: 160px;
    }

    .showcase-header h2 {
        font-size: 22px;
    }

    .platform-card {
        width: 140px;
        padding: 16px 12px;
    }

    .platform-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .platform-icon-img {
        width: 24px;
        height: 24px;
    }

    .platform-name {
        font-size: 14px;
    }

    .commit-section h2 {
        font-size: 22px;
    }

    .commit-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .logo-img {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-preview {
        height: 120px;
    }

    body {
        touch-action: manipulation;
    }

    /* ===== 移动端：次要按钮折叠进汉堡菜单，用户账号常驻外面 ===== */
    .hamburger-btn {
        display: inline-flex;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-user-area {
        gap: 6px;
    }

    /* 移动端：折叠面板相对于 nav-actions 飞出，不再相对于 nav-container */
    .nav-right {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        min-width: 200px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        display: none;
        z-index: 200;
    }

    .nav-right.active {
        display: flex;
    }

    /* 移动端：外面的用户账号区域保持紧凑，不显示长文字 */
    .nav-user-area .user-info {
        padding: 6px 10px;
        gap: 6px;
        font-size: 13px;
    }

    .nav-user-area .user-avatar {
        width: 22px;
        height: 22px;
    }

    .nav-user-area .user-name {
        max-width: 60px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }

    .nav-user-area .loginBtn,
    .nav-user-area #loginBtn {
        padding: 8px 12px;
        min-height: 36px;
        font-size: 13px;
    }

    .nav-user-area .logout-text {
        display: none;
    }

    .nav-user-area .logout-icon-mobile {
        display: inline-flex;
    }

    /* 移动端：面板内按钮全宽、显示完整文字 */
    .nav-right .btn,
    .nav-right .dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 14px;
        min-height: 40px;
        font-size: 14px;
    }

    .nav-right .dropdown {
        width: 100%;
    }

    .nav-right .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin: 4px 0 0 0;
        padding: 4px 8px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        box-shadow: none;
        display: none;
    }

    .nav-right .dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-right .dropdown-item {
        padding: 10px 12px;
        border-radius: var(--radius-sm);
    }

    /* 面板内用完整文字，简短文字隐藏 */
    .nav-right .full-text {
        display: inline;
    }

    .nav-right .short-text,
    .nav-right .feedback-icon-mobile,
    .nav-right .download-icon-mobile {
        display: none;
    }

    .nav-right .dropdown-arrow {
        margin-left: auto;
        transition: transform 0.2s ease;
    }

    .nav-right .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* 面板内的用户信息样式（现在面板里没有用户信息了，但做个兜底） */
    .nav-right .user-info {
        justify-content: flex-start;
        padding: 8px 12px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
        background: var(--bg-card);
    }

    .nav-right .user-name {
        display: inline;
    }

    /* 返回首页按钮在面板中 */
    .nav-right a.btn {
        display: flex;
    }
}
