/* ============================================================
   原始点学习平台 - 全站样式
   主色调：#2d8a6e  辅助色：#e8a33d
   ============================================================ */

/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2d8a6e;
    --primary-light: #3da888;
    --primary-dark: #1f6b52;
    --primary-bg: #f0f9f5;
    --secondary: #e8a33d;
    --secondary-light: #f0b85a;
    --secondary-dark: #d18e2a;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --text-white: #fff;
    --bg-white: #fff;
    --bg-gray: #f5f7fa;
    --bg-light: #fafbfc;
    --border-color: #e8e8e8;
    --border-light: #f0f0f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-pill: 999px;
    --transition: all 0.3s ease;

    /* ===== 2026-09-15 全站统一升级 ===== */
    --primary-soft: #e6f4ef;      /* 主色浅底（选中态/标签） */
    --primary-ring: rgba(45, 138, 110, 0.14); /* focus 光环 */
    --radius-card: 14px;          /* 卡片统一圆角 */
    --shadow-card: 0 1px 3px rgba(16, 24, 40, 0.04), 0 6px 18px rgba(16, 24, 40, 0.06);
    --shadow-hover: 0 4px 10px rgba(16, 24, 40, 0.06), 0 14px 32px rgba(16, 24, 40, 0.10);
    --shadow-primary: 0 4px 14px rgba(45, 138, 110, 0.28);
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

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

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    min-height: 42px;
    background-color: var(--bg-white);
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-ring);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========== 通用容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    min-height: 40px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease,
                box-shadow .25s ease, transform .25s ease;
    border: 1px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn:active { transform: translateY(0); }

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(45, 138, 110, 0.18);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-white);
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--text-white);
}

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

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

.btn-light {
    background-color: var(--bg-white);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-light:hover {
    background-color: var(--bg-gray);
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    display: flex;
    width: 100%;
}

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

/* ========== 卡片样式 ========== */
.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow .28s ease, transform .28s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-light);
}

/* ========== 表格样式 ========== */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
}

.table tbody tr:hover {
    background-color: var(--primary-bg);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ========== 分页样式 ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    background-color: var(--bg-white);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .current {
    background-color: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .dots {
    border: none;
    background: none;
}

/* 上一页 / 下一页：更醒目，移动端也便于点击 */
.pagination a.prev,
.pagination a.next {
    font-weight: 600;
    color: var(--primary);
    border-color: var(--primary);
}
.pagination span.prev,
.pagination span.next {
    font-weight: 600;
}

/* ========== 顶部导航栏 ========== */
.header {
    background-color: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 rgba(45, 138, 110, 0.08), 0 6px 24px rgba(16, 24, 40, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color .3s ease, box-shadow .3s ease;
}

/* 滚动后加深（由 common.js 添加 .scrolled） */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 rgba(45, 138, 110, 0.14), 0 10px 30px rgba(16, 24, 40, 0.10);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: .5px;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(45, 138, 110, .28);
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    padding: 8px 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 999px;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
    position: relative;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary);
    background-color: var(--primary-soft);
}

.main-nav a.active {
    color: var(--primary-dark);
    background-color: var(--primary-soft);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    width: 200px;
    transition: width .25s ease;
}

.search-box input {
    width: 100%;
    padding: 9px 42px 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    background-color: var(--bg-gray);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.search-box input:focus {
    background-color: var(--bg-white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-ring);
}

.search-box .search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    padding: 0;
    transition: background-color .2s ease, color .2s ease;
}

.search-box .search-btn:hover {
    background-color: var(--primary-soft);
    color: var(--primary);
}

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

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    padding: 8px 0;
    display: none;
    z-index: 1001;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.user-dropdown a:hover {
    background-color: var(--primary-bg);
    color: var(--primary);
}

.user-dropdown .divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 6px 0;
}

/* 移动端汉堡菜单按钮 */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 移动端菜单
   ⚠ 必须置于 .header 之外：.header 上的 backdrop-filter 会成为 fixed 子元素的包含块，
   使 top/bottom 相对 .header 计算 → 菜单展开后高度塌陷（2026-09-22 修复） */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    padding: 24px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* 用 visibility/opacity/transform 替代 display 切换，获得展开过渡 */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.mobile-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 菜单内滚动条收细：白色面板上避免出现粗灰条 */
.mobile-menu::-webkit-scrollbar { width: 5px; }
.mobile-menu::-webkit-scrollbar-track { background: transparent; }
.mobile-menu::-webkit-scrollbar-thumb { background: rgba(45, 138, 110, .22); border-radius: 5px; }
.mobile-menu { scrollbar-width: thin; }

/* 菜单展开时收起右下角浮动预约按钮，避免遮挡菜单底部 */
.mobile-menu.show ~ .fab-booking {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    background-color: var(--bg-light);
    border-radius: 14px;
    border-left: 3px solid transparent;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.mobile-menu a.active {
    color: var(--primary-dark);
    font-weight: 700;
    background-color: var(--primary-soft);
    border-left-color: var(--primary);
}

/* 预约到店 CTA（顶部右侧 + 移动端菜单内通用） */
.nav-booking {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff !important;
    border-radius: 999px;
    padding: 9px 18px !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(45, 138, 110, .30);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.nav-booking:hover {
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(45, 138, 110, .38);
}

.nav-booking.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.nav-booking.active::after {
    display: none;
}



/* ========== 浮动预约按钮（圆形图标 FAB） ========== */
.fab-booking {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 52px;
    padding: 0 18px 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(45, 138, 110, .40);
    overflow: hidden;
    cursor: grab;
    transition: box-shadow .2s ease, transform .2s ease;
    animation: fab-in .4s ease both, fab-pulse 2.6s ease-in-out infinite .5s;
}

.fab-booking:active {
    cursor: grabbing;
}

.fab-booking:hover {
    box-shadow: 0 12px 28px rgba(45, 138, 110, .50);
    transform: translateY(-2px);
}

.fab-booking.is-hidden {
    display: none;
}

.fab-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.fab-label {
    margin-left: 10px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    opacity: 1;
    transition: opacity .2s ease .05s;
}


@keyframes fab-in {
    from { opacity: 0; transform: translateY(22px) scale(.8); }
    to { opacity: 1; transform: none; }
}

@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 8px 22px rgba(45, 138, 110, .40); }
    50% { box-shadow: 0 8px 22px rgba(45, 138, 110, .40), 0 0 0 6px rgba(45, 138, 110, .14); }
}

@media (max-width: 768px) {
    .fab-booking {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: auto;
        height: 50px;
        padding: 0 18px 0 14px;
        justify-content: flex-start;
        animation: fab-in .4s ease both;
    }
    .fab-booking:hover {
        width: auto;
        transform: none;
    }
    .fab-label {
        opacity: 1;
    }
}


.footer {
    background-color: #2c3e50;
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer h4 {
    color: var(--text-white);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-about p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 14px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

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

.footer-contact p {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

/* ========== 轮播 Banner ========== */
.banner-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.banner-slider {
    position: relative;
    height: 420px;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-item.active {
    opacity: 1;
}

.banner-content {
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 0 20px;
}

.banner-content h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.banner-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.banner-content .btn {
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.banner-content .btn:hover {
    background-color: var(--secondary-dark);
}

.banner-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dots span.active {
    background-color: var(--text-white);
    width: 30px;
    border-radius: 5px;
}

/* ========== 栏目入口 ========== */
.section {
    padding: 50px 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-title h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-left: 16px;
}

.section-title h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-pill);
}

.section-title .more {
    font-size: 14px;
    color: var(--text-secondary);
}

.section-title .more:hover {
    color: var(--primary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-item {
    background: var(--bg-white);
    border-radius: var(--radius-card);
    padding: 26px 15px;
    text-align: center;
    transition: transform .28s ease, box-shadow .28s ease;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary-bg), #d4f0e4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(45, 138, 110, .10);
    transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.category-item:hover .category-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(45, 138, 110, .28);
}

.category-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.category-item p {
    font-size: 12px;
    color: var(--text-light);
}

/* ========== 视频列表 ========== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.video-cover {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #e8e8e8;
    overflow: hidden;
}

.video-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-cover img {
    transform: scale(1.05);
}

.video-cover .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .play-icon {
    opacity: 1;
}

.video-cover .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.video-info {
    padding: 14px;
}

.video-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}

.video-meta .views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== 资讯列表 ========== */
.news-list {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: var(--primary-bg);
}

.news-item-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.news-item-title .tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    background-color: var(--primary-bg);
    color: var(--primary);
    border-radius: 4px;
    flex-shrink: 0;
}

.news-item-title .title {
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item-title .is-top {
    background-color: var(--secondary);
    color: white;
}

.news-item-date {
    font-size: 13px;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: 20px;
}

/* ========== 筛选栏 ========== */
.filter-bar {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    flex-shrink: 0;
    width: 70px;
    font-size: 14px;
    color: var(--text-secondary);
    padding-top: 6px;
    font-weight: 500;
}

.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-options a {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    background-color: var(--bg-gray);
    border-radius: 20px;
    transition: var(--transition);
}

.filter-options a:hover,
.filter-options a.active {
    background-color: var(--primary);
    color: var(--text-white);
}

/* ========== 详情页 ========== */
.detail-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.detail-main {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.detail-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.detail-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.detail-meta .item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
}

.detail-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 15px 0;
}

.detail-content p {
    margin-bottom: 16px;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-light);
    font-size: 14px;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
}

.sidebar-list a:hover {
    color: var(--primary);
}

/* ========== 视频播放页 ========== */
.video-player {
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.video-player video {
    width: 100%;
    display: block;
}

.video-detail-info {
    padding: 20px 0;
}

.video-detail-info h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.video-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn.active {
    background-color: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

/* ========== 登录/注册页 ========== */
.auth-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-bg), #e8f5ef);
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 35px;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
}

.auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-secondary);
    position: relative;
}

.auth-tabs a.active {
    color: var(--primary);
    font-weight: 600;
}

.auth-tabs a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

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

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

.form-group .input-wrap {
    position: relative;
}

.form-group .input-wrap .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.form-group .input-wrap input {
    padding-left: 40px;
}

.form-group .input-wrap .suffix-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 14px;
    font-size: 13px;
    background-color: var(--primary-bg);
    color: var(--primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    border: none;
}

.form-group .input-wrap .suffix-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
}

.form-row .remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-row .forgot {
    color: var(--primary);
}

.form-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-agree input {
    width: auto;
    margin-top: 2px;
}

.form-agree a {
    color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

/* ========== 用户中心 ========== */
.user-center {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 30px 0;
}

.user-sidebar {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.user-sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 10px;
}

.user-sidebar-header .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0 auto 12px;
}

.user-sidebar-header .name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-sidebar-header .mobile {
    font-size: 13px;
    color: var(--text-light);
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.user-menu a:hover {
    background-color: var(--primary-bg);
    color: var(--primary);
}

.user-menu a.active {
    background-color: var(--primary-bg);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 500;
}

.user-menu .icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.user-menu .um-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    background: #e05b4a;
    color: #fff;
    font-size: 11px;
    text-align: center;
}

.user-content {
    min-height: 500px;
}

.user-content-header {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-content-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.user-content-body {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-card .value .unit {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 2px;
}

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

.stat-card.secondary .value {
    color: var(--secondary);
}

/* Tab切换 */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.tabs a {
    padding: 12px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    margin-bottom: -1px;
}

.tabs a.active {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
}

/* 列表项 */
.list-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item .cover {
    width: 100px;
    height: 60px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-gray);
    flex-shrink: 0;
    overflow: hidden;
    margin-right: 16px;
}

.list-item .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.list-item .title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item .meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    gap: 15px;
}

.list-item .action {
    flex-shrink: 0;
    margin-left: 15px;
}

/* 推广中心 */
.promo-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    padding: 30px;
    color: white;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.promo-qr {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-light);
    font-size: 12px;
    text-align: center;
    padding: 10px;
}

.promo-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.promo-info p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.promo-code {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.promo-code .code {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
}

.copy-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.promo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    opacity: 0.9;
}

.promo-link input {
    flex: 1;
    padding: 6px 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.promo-link input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* 搜索页 */
.search-page {
    padding: 30px 0;
}

.search-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-header .search-input-large {
    max-width: 600px;
    margin: 0 auto 20px;
    position: relative;
}

.search-header .search-input-large input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border-radius: 30px;
    border: 2px solid var(--primary);
    font-size: 16px;
}

.search-header .search-input-large button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-highlight {
    color: var(--secondary);
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state .icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* 免责声明 */
.disclaimer {
    background-color: #fff8e6;
    border-left: 4px solid var(--secondary);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #8a6d1f;
    margin-bottom: 20px;
    line-height: 1.6;
}

.disclaimer strong {
    color: var(--secondary-dark);
}

/* ========== 响应式布局 ========== */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .detail-wrap {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .user-center {
        grid-template-columns: 1fr;
    }

    .user-sidebar {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
    }

    .user-sidebar-header {
        width: 100%;
        padding: 15px;
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
        border-bottom: 1px solid var(--border-light);
        margin-bottom: 0;
    }

    .user-sidebar-header .avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
        margin: 0;
    }

    .user-sidebar-header .info {
        flex: 1;
    }

    .user-menu {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        padding: 10px 0;
    }

    .user-menu a {
        flex: 1;
        min-width: 50%;
        padding: 10px 15px;
        border-left: none;
        border-bottom: 2px solid transparent;
        justify-content: center;
        font-size: 13px;
    }

    .user-menu a.active {
        border-left: none;
        border-bottom-color: var(--primary);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .header-right .nav-booking {
        display: none;
    }

    .header-right .search-box {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-inner {
        height: 60px;
    }
    .mobile-menu {
        top: 60px;
    }

    .banner-slider {
        height: 280px;
    }

    .banner-content h2 {
        font-size: 26px;
    }

    .banner-content p {
        font-size: 15px;
    }

    .section {
        padding: 30px 0;
    }

    .section-title h3 {
        font-size: 20px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .category-item {
        padding: 18px 10px;
    }

    .category-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .category-item h4 {
        font-size: 13px;
    }

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

    .video-info {
        padding: 10px;
    }

    .video-info h4 {
        font-size: 13px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer {
        padding: 35px 0 20px;
    }

    .detail-main {
        padding: 20px;
    }

    .detail-header h1 {
        font-size: 20px;
    }

    .promo-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .promo-code {
        justify-content: center;
    }

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

    .stat-card {
        padding: 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .stat-card .value {
        font-size: 24px;
        margin-bottom: 0;
    }

    .auth-card {
        padding: 30px 24px;
    }

    .auth-card h2 {
        font-size: 22px;
    }

    .filter-label {
        width: 60px;
        font-size: 13px;
    }

    .filter-options a {
        padding: 5px 12px;
        font-size: 12px;
    }

    .news-item {
        padding: 12px 16px;
    }

    .news-item-title .title {
        font-size: 13px;
    }

    .news-item-date {
        font-size: 12px;
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .banner-slider {
        height: 220px;
    }

    .banner-content h2 {
        font-size: 22px;
    }

    .banner-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

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

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .video-card {
        border-radius: 10px;
    }
    .video-cover {
        border-radius: 10px 10px 0 0;
    }

    .section-title h3 {
        font-size: 18px;
    }

    .detail-main {
        padding: 16px;
    }

    .detail-header h1 {
        font-size: 18px;
    }

    .detail-content {
        font-size: 14px;
    }

    .user-content-body {
        padding: 16px;
    }

    .list-item .cover {
        width: 80px;
        height: 50px;
    }

    .list-item .title {
        font-size: 14px;
    }

    .tabs a {
        padding: 10px 16px;
        font-size: 13px;
    }

    .table th,
    .table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* ============================================================
   H5 / 移动端 & 平板端 兼容增强（2026-09-07）
   目标：在现有响应式框架上，补齐平板(769–1024)导航溢出、
   手机端表格横向滚动、触控目标、以及 H5 体验细节。
   ============================================================ */

/* 全局触控优化：去除点击 300ms 延迟、统一点击高亮 */
a, button, input, select, textarea, .btn, .card, .list-item, .mobile-menu a {
    -webkit-tap-highlight-color: transparent;
}
button, .btn, .main-nav a, input[type="submit"], .filter-options a, .tabs a {
    touch-action: manipulation;
}

/* 卡片触摸按下反馈（移动端无 hover，用 :active 提供点击确认感） */
.video-card:active {
    transform: translateY(0) scale(0.97);
    box-shadow: var(--shadow-sm);
}

/* 锚点跳转时为吸顶导航留出空间 */
html {
    scroll-padding-top: 80px;
}

/* 刘海屏安全区 */
.mobile-menu {
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: calc(20px + env(safe-area-inset-left));
    padding-right: calc(20px + env(safe-area-inset-right));
}
.footer-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- 平板端 769–1024px：避免桌面导航溢出 ---------- */
@media (max-width: 1024px) {
    .header-inner {
        height: 64px;
    }
    .logo {
        font-size: 19px;
        gap: 8px;
    }
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    /* 顶栏搜索框收起（移动端菜单内已有搜索），为导航让出空间 */
    .header-right .search-box {
        display: none;
    }
    /* 平板竖屏也改用汉堡菜单，避免 9 个导航项拥挤换行 */
    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .mobile-menu {
        top: 64px;
    }
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
    /* 平板横向：卡片网格自适应 */
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- 手机端 ≤768px：表格滚动、触控舒适区 ---------- */
@media (max-width: 768px) {
    /* 表格在窄屏改为横向滚动，避免撑破布局 */
    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table th,
    .table td {
        white-space: nowrap;
    }
    .detail-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 表单元素触控舒适区：16px 可避免 iOS 聚焦时自动缩放 */
    input, textarea, select {
        min-height: 44px;
        font-size: 16px;
    }
    .btn {
        min-height: 44px;
    }

    /* 筛选条在窄屏改为横向滑动，避免分类选项拥挤换行 */
    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: none;
    }
    .filter-bar::-webkit-scrollbar {
        display: none;
    }
    .filter-options,
    .filter-bar > * {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .filter-item {
        margin-bottom: 10px;
        white-space: nowrap;
    }

    /* 文章/视频列表操作区与文字保持同行 */
    .list-item .action {
        margin-left: 10px;
    }
}

/* ---------- 小屏 ≤480px 微调 ---------- */
@media (max-width: 480px) {
    .header-inner {
        height: 56px;
    }
    .mobile-menu {
        top: 56px;
    }
    .logo {
        font-size: 17px;
    }
    .user-area .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-light { color: var(--text-light); }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.hide { display: none !important; }

/* ============================================
   前台提示消息 Toast
   ============================================ */
.flash-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -20px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    max-width: 90%;
    box-sizing: border-box;
}
.flash-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.flash-toast.flash-success { background: #2d8a6e; }
.flash-toast.flash-error { background: #e64646; }
.flash-icon { font-size: 15px; flex-shrink: 0; }
.flash-text { line-height: 1.5; word-break: break-all; }

/* ========== 视频连播控制条 ========== */
.play-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    margin-bottom: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.play-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}
.play-ctrl-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}
.play-ctrl-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.play-now {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    min-width: 110px;
}
.play-now strong { color: var(--primary); }
.autoplay-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.autoplay-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ========== 播放列表（选集） ========== */
/* 防止 grid 子项被内部宽内容（原生 <select>、长标题）撑破，避免移动端横向滚动 */
.detail-wrap > * { min-width: 0; }
.playlist-card { padding-bottom: 12px; min-width: 0; }
.playlist-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
.playlist-head h4 {
    margin: 0 0 4px;
    padding-bottom: 0;
    border-bottom: none;
}
.playlist-count {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}
.playlist-dir { margin: 10px 0 12px; }
.playlist-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-white);
    cursor: pointer;
}
.playlist-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 460px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.playlist-list li { border-bottom: 1px dashed var(--border-light); }
.playlist-list li:last-child { border-bottom: none; }
.ep-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 8px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}
.ep-item:hover { background: #f6faf8; color: var(--primary); }
.ep-num {
    flex: 0 0 22px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}
.ep-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ep-dur { flex: 0 0 auto; font-size: 12px; color: var(--text-light); }
.ep-playing { display: none; flex: 0 0 auto; font-size: 12px; color: var(--primary); white-space: nowrap; }
.ep-item.active { background: #eaf6f0; color: var(--primary); font-weight: 600; }
.ep-item.active .ep-num { color: var(--primary); font-weight: 700; }
.ep-item.active .ep-dur { display: none; }
.ep-item.active .ep-playing { display: inline; }
.playlist-empty { padding: 20px 0; text-align: center; color: #999; font-size: 13px; }

@media (max-width: 992px) {
    /* 移动端：播放列表移到播放器下方，列表高度更适合触屏 */
    .playlist-list { max-height: 340px; }
    .play-controls { gap: 8px; }
    .play-now { order: 3; flex-basis: 100%; text-align: left; }
}
@media (max-width: 480px) {
    .play-ctrl-btn { padding: 7px 12px; font-size: 13px; }
    .playlist-list { max-height: 300px; }
}


/* ============================================================
   2026-09-15 全站统一升级：移动端适配 + 视觉统一补丁
   ============================================================ */

/* 触摸目标最小尺寸，提升手机端可点性 */
@media (max-width: 768px) {
    .btn { min-height: 44px; padding: 11px 20px; }
    .btn-lg { min-height: 50px; padding: 14px 26px; }

    /* 表单字号 >=16px，避免 iOS Safari 聚焦时自动放大页面 */
    input, textarea, select { font-size: 16px; }

    .container { padding: 0 14px; }
    .section { margin-top: 26px; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .btn { padding: 11px 16px; font-size: 15px; }
    .btn-block + .btn-block { margin-top: 10px; }
    .section-title h3 { font-size: 19px; }
}

/* 图片统一圆角，避免直角突兀 */
.card img, .video-item img, .news-item img, .case-item img { border-radius: var(--radius-md); }

/* 键盘可访问性：统一焦点可见样式 */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 尊重系统「减少动效」偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========== 桌面搜索框：默认收起为图标，点击展开 ========== */
.search-collapse {
    display: flex;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: var(--bg-gray);
    overflow: hidden;
    transition: width .32s cubic-bezier(.4, 0, .2, 1), background-color .2s ease, box-shadow .2s ease;
}

.search-collapse.expanded {
    width: 240px;
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.search-collapse.expanded:focus-within {
    box-shadow: 0 0 0 3px var(--primary);
}

/* 收起态圆形图标按钮：主题绿图标更突出；hover 浅绿底 + 放大 */
.search-collapse .search-toggle {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.search-collapse .search-toggle:hover {
    background-color: var(--primary-soft);
    color: var(--primary);
    transform: scale(1.06);
}

.search-collapse .search-input {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-primary);
    padding: 0;
    opacity: 0;
    transition: opacity .25s ease;
}

.search-collapse.expanded .search-input {
    opacity: 1;
    padding-left: 2px;
}

/* 展开态提交按钮：实心绿圆 + 白图标，醒目；hover 深绿 + 放大 */
.search-collapse .search-btn {
    flex: 0 0 36px;
    position: static;
    transform: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    margin-right: 2px;
    transition: opacity .25s ease, background-color .2s ease, transform .2s ease;
}

.search-collapse.expanded .search-btn {
    opacity: 1;
    pointer-events: auto;
}

.search-collapse .search-btn:hover {
    background: #246f58;
    transform: scale(1.06);
}

/* ===== 2026-09-22 导航图标化 + 用户中心移动端横滑（批次四） ===== */

/* --- 移动菜单：图标 + 间距 --- */
.mobile-menu a {
    gap: 12px;
}

.mobile-menu .mm-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--primary);
    transition: color .2s ease;
}

.mobile-menu a.active .mm-icon {
    color: var(--primary-dark);
}

/* --- 移动菜单：预约到店 CTA 置顶 --- */
.mobile-menu a.nav-booking {
    justify-content: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-left-color: transparent;
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 8px 20px rgba(45, 138, 110, .32);
    font-weight: 700;
    font-size: 15.5px;
}

.mobile-menu a.nav-booking .mm-icon {
    color: #fff;
    width: 22px;
}

.mobile-menu a.nav-booking:hover,
.mobile-menu a.nav-booking.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-left-color: transparent;
}

/* --- 移动菜单：搜索框与分组标题 --- */
.mobile-menu .mm-search {
    width: 100%;
    margin-bottom: 16px;
}

.mobile-menu .mm-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 2px 12px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--text-light);
}

.mobile-menu .mm-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-light), transparent);
}

/* 退出登录：淡红提示色（站内无 --danger 变量，用固定色） */
.mobile-menu a.logout-link,
.mobile-menu a.logout-link .mm-icon {
    color: #d9534f;
}

.mobile-menu a.logout-link {
    background-color: #fdf5f5;
}

/* --- 平板/手机端：用户中心改为单列 + 菜单横向滑动 --- */
@media (max-width: 1024px) {
    .user-center {
        /* minmax(0,1fr)：避免 grid item 的 min-content 把布局撑破（否则横滑菜单会顶宽整页） */
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 18px 0;
    }

    .user-sidebar {
        min-width: 0;
        max-width: 100%;
        padding: 12px 0 6px;
        border-radius: var(--radius-md);
    }

    /* 头像区压成一行，省屏高 */
    .user-sidebar-header {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding: 10px 16px 12px;
        margin-bottom: 6px;
    }

    .user-sidebar-header .avatar {
        width: 44px;
        height: 44px;
        font-size: 18px;
        margin: 0;
        flex-shrink: 0;
    }

    .user-sidebar-header .name {
        font-size: 15px;
        margin-bottom: 2px;
    }

    /* 菜单：横向滚动 chips，12 项不再平铺 6 行 */
    .user-menu {
        display: flex;
        flex-wrap: nowrap;      /* 覆盖 992 断点的 wrap，否则 chips 会挤成两列多行 */
        min-width: 0;           /* 允许在 flex 父级内收缩，由内部 overflow-x 滚动 */
        max-width: 100%;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 14px 10px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .user-menu::-webkit-scrollbar {
        display: none;
    }

    .user-menu a {
        flex: 0 0 auto;
        min-width: 0;           /* 覆盖 992 断点的 min-width:50% */
        gap: 7px;
        padding: 9px 15px;
        font-size: 13.5px;
        white-space: nowrap;
        border-left: none;
        border-bottom: none;    /* 覆盖 992 断点的 border-bottom 下划线 */
        border-radius: 999px;
        background-color: var(--bg-light);
        scroll-snap-align: start;
    }

    .user-menu a.active {
        color: #fff;
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        border-left: none;
        border-bottom: none;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(45, 138, 110, .28);
    }

    .user-menu a.active .icon {
        color: #fff;
    }

    .user-menu .icon {
        width: auto;
        display: inline-flex;
        align-items: center;
    }

    /* active chip 进入视口时自动滚到可见处（由 common.js 处理，无 JS 也不影响） */
    .user-content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 18px;
    }

    .user-content-body {
        padding: 18px;
    }
}
