* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f5f7fb;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
    line-height: 1.4;
    color: #1e2a3a;
    padding: 0 0 0 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.noinfo {
    background-color: #f1f5f9;
    color: #666;
    line-height: 60px;
    text-align: center;
    width: 100%;
    border-radius: 5px;
}

/* 手机容器 */
.phone-app {
    max-width: 450px;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    min-height: 100vh;
    border-radius: 0;
    overflow-x: hidden;
    position: relative;
}

/* 自定义滚动条隐藏 (保持美观) */
.scroll-x {
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.scroll-x::-webkit-scrollbar {
    height: 3px;
    background: #e9ecef;
}

.scroll-x::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}

/* 内容区域 */
.content {
    padding: 16px 16px 20px 16px;
}

.side-content {
    padding: 0px 16px 20px 16px;
}

/* 顶部标题栏 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 16px 8px 16px;
    background: white;
}

.logo-area h1 {
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2b6e3c, #38a169);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.logo-area h1 a {
    color: inherit;
    text-decoration: none;
}

.logo-area p {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 2px;
}

.action-icons {
    position: absolute;
    right: 12px;
    top: 27px;
}

.action-icons * {
    color: #2d6a4f;
}

.action-icons a {
    text-decoration: none;
}

.action-icons i {
    font-size: 0.9rem;
    color: #2d6a4f;
    /* background: #e9f5ef; */
    /* padding: 8px; */
    border-radius: 50%;
    margin-left: 8px;
}

/* 搜索引擎 + AI顾问 双行/同行 设计 */
.search-ai-row {
    display: flex;
    gap: 12px;
    margin: 12px 16px 16px 16px;
    align-items: center;
}

.search-box {
    flex: 1;
    background: #f2f4f8;
    border-radius: 30px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8d9aa8;
    transition: all 0.2s;
}

.search-box i {
    font-size: 1rem;
    color: #38a169;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.9rem;
    width: 100%;
    font-weight: 400;
}

.search-box input::placeholder {
    color: #b9c2cc;
}

.ai-btn {
    background: linear-gradient(105deg, #2c7a4d, #48bb78);
    border-radius: 40px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 8px rgba(56, 161, 105, 0.2);
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.ai-btn i {
    font-size: 1rem;
}

.ai-btn:active {
    transform: scale(0.96);
    background: #2c6e46;
}

button,
.ai-btn,
.nav-item,
.category-item,
.live-tag {
    cursor: pointer;
    user-select: none;
}

/* 底部导航栏 */
.bottom-nav {
    background: #ffffff;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 20px 18px;
    margin-top: 12px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #8f9bb3;
    font-size: 0.7rem;
    transition: 0.2s;
    cursor: pointer;
}

.nav-item i {
    font-size: 1.3rem;
}

.nav-item.active {
    color: #2c7a4d;
    font-weight: 600;
}

.nav-item:active {
    transform: scale(0.94);
}

/* 辅助样式 */
.mt-1 {
    margin-top: 4px;
}

.mb-1 {
    margin-bottom: 4px;
}

.text-muted {
    color: #6c757d;
}

/* 模拟点击反馈 */
button,
.ai-btn,
.nav-item,
.category-item,
.live-tag {
    cursor: pointer;
    user-select: none;
}

.video-thumb {
    background-size: cover !important;
}

/* ========= 优雅翻页组件样式 ========= */
.PageProgram {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

/* 公用按钮样式 */
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: white;
    border: none;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    color: #2c3e58;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02), 0 1px 1px rgba(0, 0, 0, 0.03);
    background: #ffffff;
    border: 1px solid #e2eaf1;
    min-width: 44px;
}

/* 图标专属微调 */
.page-btn i {
    font-size: 0.85rem;
    color: #4a6a8b;
}

/* 页码数字按钮特殊宽高 */
.page-num {
    min-width: 46px;
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
}

/* hover 效果 */
.page-btn:not(.disabled):hover {
    background: #f0f5fe;
    border-color: #bdd4ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.15);
    color: #1e3c72;
}

.page-btn:not(.disabled):active {
    transform: translateY(1px);
    transition: 0.05s;
}

/* 当前激活页码样式 */
.page-btn.active {
    background: linear-gradient(135deg, #2d6a4f, #1b4d3e);
    border-color: #2d6a4f;
    color: white;
    box-shadow: 0 8px 18px -6px rgba(45, 106, 79, 0.4);
}

.page-btn.active i {
    color: white;
}

/* 禁用状态（上一页/下一页在边界时） */
.page-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f1f3f7;
    border-color: #e2e6ec;
    transform: none;
    box-shadow: none;
}