/* ============================================
   Search & App Download Pages - Modern Overwrite
   仅覆盖视觉属性，不改变布局结构与 JS 钩子
   ============================================ */

/* --- 搜索页 --- */
.translate_form {
    border-bottom: 1px solid var(--border-color, rgba(99,102,241,0.2)) !important;
}

.feed-list .box-hdd .translate_input {
    background: var(--bg-secondary, #1a1a2e);
    border-color: var(--border-color, rgba(99,102,241,0.3));
    color: var(--text-primary, #f1f5f9);
    border-radius: var(--radius-sm, 8px);
    outline: none;
    transition: var(--transition, all 0.25s ease);
}

.feed-list .box-hdd .translate_input:focus {
    border-color: var(--border-hover, rgba(99,102,241,0.6));
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.feed-list .box-hdd .translate_input::placeholder {
    color: var(--text-muted, #64748b);
}

.feed-list .box-hdd .translate_primary {
    background: linear-gradient(135deg, var(--primary, #6366f1), var(--primary-dark, #4f46e5));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm, 8px);
    font-weight: 600;
    transition: var(--transition, all 0.25s ease);
}

.feed-list .box-hdd .translate_primary:hover {
    background: linear-gradient(135deg, var(--primary-light, #818cf8), var(--primary, #6366f1));
    box-shadow: 0 4px 18px rgba(99,102,241,0.45);
}

.feed-list .search_count {
    color: var(--text-secondary, #94a3b8);
}

.feed-list .search_count .search_hotkey {
    color: var(--accent, #f43f5e);
}

.search_line {
    border-top: 1px solid var(--border-color, rgba(99,102,241,0.15)) !important;
}

.feed-list .search_tuijian_container,
.feed-list .search_tuijian_container span {
    color: var(--text-primary, #f1f5f9);
}

/* 搜索结果卡片深色化 */
#hot .feed {
    background: var(--bg-card, #1e1e35) !important;
    border: 1px solid var(--border-color, rgba(99,102,241,0.2));
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    transition: var(--transition, all 0.25s ease);
}

#hot .feed:hover {
    border-color: var(--border-hover, rgba(99,102,241,0.5));
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.4));
}

#hot .feed .user {
    color: var(--text-primary, #f1f5f9);
}

#hot .feed .username {
    color: var(--text-primary, #f1f5f9);
}

#hot .feed .comment {
    background: rgba(15,15,26,0.85) !important;
    color: var(--text-secondary, #94a3b8);
}

#hot .feed .comment-inner {
    color: var(--text-secondary, #94a3b8);
}

/* --- APP 下载页 --- */
.content {
    background-image: none !important;
    background: linear-gradient(180deg, var(--bg-secondary, #1a1a2e) 0%, var(--bg-primary, #0f0f1a) 100%) !important;
    height: auto !important;
    padding-bottom: 56px;
}

.con_center {
    height: auto !important;
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.con_left {
    width: 500px !important;
    height: auto !important;
    flex-shrink: 0;
}

.con_left .c-banner {
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-lg, 0 8px 40px rgba(0,0,0,0.5));
}

/* 无轮播数据时的宣传插画 */
.banner-fallback {
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(244,63,94,0.12));
    border: 1px solid var(--border-color, rgba(99,102,241,0.25));
    border-radius: var(--radius-lg, 16px);
    text-align: center;
    padding: 24px;
}
.banner-fallback h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light, #818cf8), var(--accent, #f43f5e));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.banner-fallback p { margin: 0; color: var(--text-secondary, #94a3b8); font-size: 14px; }
.bf-phone {
    width: 110px;
    height: 200px;
    border-radius: 22px;
    border: 3px solid rgba(129,140,248,0.6);
    background: rgba(15,15,26,0.7);
    padding: 10px 8px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 0 30px rgba(99,102,241,0.35);
}
.bf-notch {
    width: 40px; height: 6px;
    border-radius: 3px;
    background: rgba(148,163,184,0.4);
    margin: 0 auto 10px;
}
.bf-screen {
    height: 140px;
    border-radius: 10px;
    background: linear-gradient(160deg, #252545, #1a1a2e);
    border: 1px solid rgba(99,102,241,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}
.bf-live-dot {
    position: absolute;
    top: 8px; left: 8px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent, #f43f5e);
    animation: bf-pulse 1.4s ease-in-out infinite;
}
@keyframes bf-pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.bf-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.bf-bars span {
    width: 6px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    animation: bf-bar 1.1s ease-in-out infinite;
}
.bf-bars span:nth-child(1){height: 16px; animation-delay: 0s;}
.bf-bars span:nth-child(2){height: 30px; animation-delay: .15s;}
.bf-bars span:nth-child(3){height: 40px; animation-delay: .3s;}
.bf-bars span:nth-child(4){height: 26px; animation-delay: .45s;}
.bf-bars span:nth-child(5){height: 18px; animation-delay: .6s;}
@keyframes bf-bar { 0%,100%{transform: scaleY(1);} 50%{transform: scaleY(0.5);} }
.bf-title { font-size: 12px; font-weight: 800; letter-spacing: 3px; color: var(--text-primary, #f1f5f9); }

.con_right {
    color: var(--text-primary, #f1f5f9);
    width: auto !important;
    height: auto !important;
    flex: 1;
    min-width: 0;
}

.live_logo_area { margin-left: 0 !important; width: 100% !important; }
.live_logo_area .app_logo { margin-top: 8px !important; }
.live_logo_area .app_logo a {
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light, #818cf8), var(--accent, #f43f5e));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
}
.app-slogan { margin: 8px 0 0; color: var(--text-secondary, #94a3b8); font-size: 14px; }

/* 下载卡片 */
.dl-cards { display: flex; gap: 20px; margin-top: 24px; flex-wrap: wrap; clear: both; }
.dl-card {
    flex: 1;
    min-width: 240px;
    background: var(--bg-card, #1e1e35);
    border: 1px solid var(--border-color, rgba(99,102,241,0.25));
    border-radius: var(--radius-lg, 16px);
    padding: 22px;
    box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.4));
    transition: var(--transition, all 0.25s ease);
}
.dl-card:hover {
    border-color: var(--border-hover, rgba(99,102,241,0.5));
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 8px 40px rgba(0,0,0,0.5));
}
.dl-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.dl-card-head > i {
    font-size: 34px;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md, 12px);
    background: rgba(99,102,241,0.15);
    color: var(--primary-light, #818cf8);
    flex-shrink: 0;
}
.dl-card:nth-child(2) .dl-card-head > i {
    background: rgba(148,163,184,0.12);
    color: var(--text-primary, #f1f5f9);
}
.dl-card-name { font-size: 17px; font-weight: 700; color: var(--text-primary, #f1f5f9); }
.dl-card-ver { font-size: 12px; color: var(--text-muted, #64748b); margin-top: 2px; }
.dl-card-body { text-align: center; }
.dl-qr {
    width: 148px; height: 148px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-md, 12px);
    padding: 6px;
    box-sizing: content-box;
}
.dl-qr img, .dl-qr canvas { display: block; margin: 0 auto; }
.dl-card-body .ewm_text {
    color: var(--text-secondary, #94a3b8);
    font-weight: 500;
    height: auto;
    line-height: 1.6;
    margin: 12px 0;
}

/* 下载按钮 */
.btn-dl {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: var(--transition, all 0.25s ease);
    margin-top: 4px;
}
.btn-dl-android { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 4px 15px rgba(34,197,94,0.35); }
.btn-dl-android:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34,197,94,0.45); color: #fff; }
.btn-dl-ios { background: linear-gradient(135deg, #475569, #1e293b); box-shadow: 0 4px 15px rgba(71,85,105,0.4); }
.btn-dl-ios:hover { transform: translateY(-2px); color: #fff; }

.dl-soon {
    height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted, #64748b);
    font-size: 14px;
}
.dl-soon i { font-size: 36px; opacity: 0.6; }

/* 平台特色 */
.app-features {
    width: 1200px;
    margin: 48px auto 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.feat-item {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card, #1e1e35);
    border: 1px solid var(--border-color, rgba(99,102,241,0.2));
    border-radius: var(--radius-md, 12px);
    padding: 18px 20px;
    transition: var(--transition, all 0.25s ease);
}
.feat-item:hover { border-color: var(--border-hover, rgba(99,102,241,0.5)); transform: translateY(-3px); }
.feat-item > i {
    font-size: 26px;
    color: var(--primary-light, #818cf8);
    width: 52px; height: 52px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99,102,241,0.12);
    border-radius: var(--radius-md, 12px);
}
.feat-text h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--text-primary, #f1f5f9); }
.feat-text p { margin: 0; font-size: 12px; color: var(--text-secondary, #94a3b8); line-height: 1.5; }

/* 响应式 */
@media screen and (max-width: 1240px) {
    .con_center { width: 94% !important; flex-direction: column; align-items: stretch; }
    .con_left { width: 100% !important; }
    .app-features { width: 94%; }
}
