/* ============================================
   樱桃视频 - 全新模板样式
   风格：深色顶栏 + 白色内容区 + 卡片阴影
============================================ */

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

:root {
    --red:        #e8192c;
    --red-light:  #ff4d5e;
    --red-pale:   #fff0f1;
    --red-dark:   #b5001e;
    --text:       #1a1a2e;
    --text-mid:   #555566;
    --text-light: #9999aa;
    --bg:         #f5f5f8;
    --bg-card:    #ffffff;
    --bg-dark:    #16161f;
    --bg-dark2:   #1e1e2a;
    --bg-soft:    #f0f0f5;
    --border:     #e8e8f0;
    --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
    --shadow:     0 4px 16px rgba(0,0,0,0.08);
    --shadow-md:  0 8px 28px rgba(0,0,0,0.12);
    --shadow-red: 0 4px 16px rgba(232,25,44,0.22);
    --r:          12px;
    --r-sm:       7px;
    --r-xs:       4px;
    --ease:       0.22s ease;
    --font:       'PingFang SC','Microsoft YaHei',Arial,sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}
body.loaded { opacity: 1; }
a { color: inherit; text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--red); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul { list-style: none; padding: 0; margin: 0; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* ============================================
   顶部通知栏
============================================ */
.topbar {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.topbar-left { color: rgba(255,255,255,0.55); }
.topbar-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}
.topbar-right a {
    color: rgba(255,255,255,0.55);
    transition: color var(--ease);
}
.topbar-right a:hover { color: var(--red-light); }
.topbar-right .divider { color: rgba(255,255,255,0.2); }

/* ============================================
   Header
============================================ */
.header {
    background: var(--bg-dark2);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
    transition: box-shadow var(--ease);
}
.header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    padding: 12px 0;
    min-height: 64px;
}

/* Logo */
.logo {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.logo-text {
    font-size: 19px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
}
.logo-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* 搜索区 */
.search-wrap {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.search-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.search-box:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(232,25,44,0.18);
    background: rgba(255,255,255,0.12);
}
.search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 9px 16px;
    font-size: 14px;
    color: #ffffff;
    font-family: var(--font);
}
.search-input::placeholder { color: rgba(255,255,255,0.35); }
.search-btn {
    flex-shrink: 0;
    background: var(--red);
    border: none;
    padding: 9px 18px;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    transition: background var(--ease);
    white-space: nowrap;
}
.search-btn:hover { background: var(--red-dark); }

.search-hot {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
}
.search-hot span {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.search-hot a {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    padding: 2px 8px;
    background: rgba(255,255,255,0.07);
    border-radius: 50px;
    white-space: nowrap;
    transition: all var(--ease);
    flex-shrink: 0;
}
.search-hot a:hover {
    background: var(--red);
    color: white;
}

/* 右侧 */
.header-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}
.btn-upload {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    background: var(--red);
    color: white;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: all var(--ease);
    text-decoration: none;
    box-shadow: var(--shadow-red);
}
.btn-upload:hover {
    background: var(--red-dark);
    color: white;
    transform: translateY(-1px);
}

/* 汉堡按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    transition: all var(--ease);
}

/* ============================================
   主导航 — 独立一行，深色背景
============================================ */
.main-nav {
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 64px;
    z-index: 190;
}

.nav-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav-list::-webkit-scrollbar { display: none; }

.nav-item {
    position: relative;
    flex-shrink: 0;
    display: block !important;
    width: auto !important;
}
.nav-item > a {
    display: block !important;
    padding: 11px 14px;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    white-space: nowrap;
    transition: all var(--ease);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.nav-item > a:hover,
.nav-item.active > a {
    color: #ffffff;
    border-bottom-color: var(--red);
    background: rgba(255,255,255,0.04);
}

/* 高亮导航项 */
.nav-highlight > a {
    color: var(--red-light) !important;
    font-weight: 700;
}
.nav-highlight > a:hover {
    color: white !important;
    background: var(--red) !important;
    border-bottom-color: transparent !important;
}

/* 下拉菜单 */
.drop-menu {
    display: none;
    position: absolute !important;
    top: 100%;
    left: 0;
    background: var(--bg-dark2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-sm);
    min-width: 130px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
    z-index: 9999;
    padding: 6px 0;
    list-style: none;
}
.has-drop:hover .drop-menu { display: block; }
.drop-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    transition: all var(--ease);
    text-decoration: none;
}
.drop-menu li a:hover {
    color: white;
    background: rgba(232,25,44,0.2);
    padding-left: 20px;
}

/* ============================================
   Banner
============================================ */
.banner-section {
    padding: 20px 0;
    background: var(--bg);
}
.banner-wrap {
    display: grid;
    grid-template-columns: 1fr 265px;
    gap: 16px;
    align-items: stretch;
}
.banner-main {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    height: 330px;
    box-shadow: var(--shadow-md);
}
.banner-track {
    display: flex;
    flex-direction: row;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}
.slide {
    min-width: 100%;
    position: relative;
    height: 100%;
    flex-shrink: 0;
}
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px 26px 22px;
    background: linear-gradient(transparent, rgba(0,0,0,0.72));
    color: white;
}
.slide-tag {
    display: inline-block;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.slide-info h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.slide-info p {
    font-size: 13px;
    opacity: 0.82;
    margin-bottom: 12px;
}
.slide-btn {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    transition: all var(--ease);
    text-decoration: none;
    box-shadow: var(--shadow-red);
}
.slide-btn:hover {
    background: var(--red-dark);
    color: white;
    transform: translateY(-1px);
}
.slide-prev, .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ease);
}
.slide-prev:hover, .slide-next:hover {
    background: var(--red);
    border-color: var(--red);
}
.slide-prev { left: 12px; }
.slide-next { right: 12px; }
.slide-dots {
    position: absolute;
    bottom: 12px; right: 16px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    z-index: 10;
}
.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all var(--ease);
}
.dot.active { background: var(--red); width: 20px; border-radius: 3px; }

/* 侧边 */
.banner-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.side-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-mid);
    padding: 0 2px 4px;
    border-bottom: 2px solid var(--red);
    display: inline-block;
    margin-bottom: 2px;
}
.side-card {
    flex: 1;
    position: relative;
    border-radius: var(--r-sm);
    overflow: hidden;
    display: block;
    min-height: 0;
    transition: transform var(--ease), box-shadow var(--ease);
    box-shadow: var(--shadow-sm);
}
.side-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.side-card img { width: 100%; height: 100%; object-fit: cover; }
.side-mask {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}
.side-mask p { font-size: 12px; color: white; font-weight: 600; }
.badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 50px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.badge.hot  { background: #ff4757; color: white; }
.badge.new  { background: var(--red); color: white; }
.badge.live { background: #2ed573; color: white; }

/* ============================================
   分类快捷入口
============================================ */
.cat-section {
    padding: 16px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.cat-grid {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
}
.cat-grid::-webkit-scrollbar { display: none; }
.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform var(--ease);
    text-decoration: none;
    min-width: 64px;
}
.cat-item:hover { transform: translateY(-3px); }
.cat-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow);
    transition: box-shadow var(--ease);
}
.cat-item:hover .cat-icon { box-shadow: var(--shadow-md); }
.cat-item span {
    font-size: 12px;
    color: var(--text-mid);
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   通用 Section
============================================ */
.section { padding: 36px 0; }
.bg-dark-soft { background: var(--bg-soft); }

.sec-head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.sec-title-wrap { display: flex; flex-direction: column; gap: 2px; }
.sec-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    padding-left: 12px;
    position: relative;
    white-space: nowrap;
    line-height: 1.3;
}
.sec-title::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 20px;
    background: var(--red);
    border-radius: 2px;
}
.sec-desc {
    font-size: 12px;
    color: var(--text-light);
    padding-left: 12px;
}
.more-link {
    margin-left: auto;
    font-size: 13px;
    color: var(--red);
    padding: 5px 14px;
    border: 1.5px solid rgba(232,25,44,0.3);
    border-radius: 50px;
    transition: all var(--ease);
    white-space: nowrap;
    text-decoration: none;
    align-self: center;
    flex-shrink: 0;
}
.more-link:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* 筛选标签 */
.tabs {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-wrap: wrap;
    align-self: center;
}
.tab {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 13px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-mid);
    cursor: pointer;
    transition: all var(--ease);
    font-family: var(--font);
    white-space: nowrap;
}
.tab:hover, .tab.active {
    background: var(--red);
    border-color: var(--red);
    color: white;
    box-shadow: var(--shadow-red);
}

/* ============================================
   视频卡片
============================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.vcard {
    background: var(--bg-card);
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--ease);
    display: block;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}
.vcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(232,25,44,0.25);
    color: inherit;
}
.vthumb {
    position: relative;
    height: 162px;
    overflow: hidden;
    background: var(--bg-soft);
}
.vthumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.vcard:hover .vthumb img { transform: scale(1.06); }
.vplay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--ease);
}
.vthumb:hover .vplay { opacity: 1; }
.vdur {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--r-xs);
}
.vhd {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(46,213,115,0.92);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--r-xs);
    letter-spacing: 0.5px;
}
.vinfo {
    display: flex;
    flex-direction: row;
    gap: 9px;
    padding: 11px 12px 13px;
    align-items: flex-start;
}
.vavatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--red-pale);
    object-fit: cover;
    display: block;
}
.vmeta { flex: 1; min-width: 0; }
.vtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}
.vauthor {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 2px;
}
.vviews {
    font-size: 11px;
    color: var(--text-light);
}

/* ============================================
   双栏：排行 + 最新
============================================ */
.two-col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

/* 排行列表 */
.rank-list {
    background: var(--bg-card);
    border-radius: var(--r);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.rank-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background var(--ease);
    text-decoration: none;
    color: inherit;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: var(--red-pale); }
.rnum {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-light);
    flex-shrink: 0;
}
.r1 { background: linear-gradient(135deg,#FFD700,#FFA500); color: white; box-shadow: 0 2px 8px rgba(255,165,0,0.4); }
.r2 { background: linear-gradient(135deg,#C0C0C0,#909090); color: white; }
.r3 { background: linear-gradient(135deg,#CD7F32,#A0522D); color: white; }
.rank-item img {
    width: 80px; height: 52px;
    object-fit: cover;
    border-radius: var(--r-sm);
    flex-shrink: 0;
    display: block;
}
.rinfo { flex: 1; min-width: 0; }
.rtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    transition: color var(--ease);
}
.rank-item:hover .rtitle { color: var(--red); }
.rmeta { font-size: 11px; color: var(--text-light); }

/* 最新上传 */
.new-list {
    background: var(--bg-card);
    border-radius: var(--r);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.new-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    transition: background var(--ease);
    text-decoration: none;
    color: inherit;
}
.new-item:last-child { border-bottom: none; }
.new-item:hover { background: var(--red-pale); }
.new-item img {
    width: 72px; height: 46px;
    object-fit: cover;
    border-radius: var(--r-sm);
    flex-shrink: 0;
    display: block;
}
.new-info { flex: 1; min-width: 0; }
.new-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
    transition: color var(--ease);
}
.new-item:hover .new-title { color: var(--red); }
.new-meta { font-size: 11px; color: var(--text-light); }

/* ============================================
   文章区
============================================ */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.acard {
    background: var(--bg-card);
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--ease);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.acard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(232,25,44,0.2);
}
.acard-large {
    grid-column: span 2;
    flex-direction: row;
}
.acard-large .aimg {
    width: 40%;
    flex-shrink: 0;
    min-height: 230px;
    height: auto;
}
.aimg {
    height: 175px;
    overflow: hidden;
    flex-shrink: 0;
}
.aimg img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.acard:hover .aimg img { transform: scale(1.04); }
.abody {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.ameta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.atag {
    background: var(--red-pale);
    color: var(--red);
    border: 1px solid rgba(232,25,44,0.2);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}
.adate {
    font-size: 12px;
    color: var(--text-light);
    margin-left: auto;
}
.atitle {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    transition: color var(--ease);
}
.acard:hover .atitle { color: var(--red); }
.atext {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.85;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.amore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--red);
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
    text-decoration: none;
    transition: gap var(--ease);
}
.amore:hover { gap: 8px; }

/* ============================================
   页脚
============================================ */
.footer-top {
    background: var(--bg-dark);
    padding: 48px 0 36px;
    border-top: 3px solid var(--red);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 36px;
}
.footer-brand .f-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.footer-brand .f-logo span {
    font-size: 18px;
    font-weight: 900;
    color: white;
}
.footer-brand p {
    font-size: 13px;
    color: rgba(255,255,255,0.42);
    line-height: 2;
    margin-bottom: 18px;
}
.f-stats {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.f-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.f-stat strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--red-light);
}
.f-stat span {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}
.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    transition: all var(--ease);
    text-decoration: none;
    display: inline-block;
}
.footer-col ul li a:hover {
    color: var(--red-light);
    padding-left: 4px;
}
.footer-bottom {
    background: rgba(0,0,0,0.35);
    padding: 14px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.28);
    margin-bottom: 4px;
    line-height: 1.8;
}
.footer-bottom a {
    color: rgba(255,255,255,0.38);
    transition: color var(--ease);
    text-decoration: none;
}
.footer-bottom a:hover { color: var(--red-light); }

/* ============================================
   回到顶部
============================================ */
.back-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 42px; height: 42px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--ease);
    box-shadow: var(--shadow-red);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--red-dark); transform: translateY(-3px); }

/* ============================================
   响应式
============================================ */
@media screen and (min-width: 769px) {
    .nav-toggle { display: none !important; }
    .main-nav   { display: block !important; }
    .nav-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    .nav-item { display: block !important; width: auto !important; }
    .nav-item > a {
        display: block !important;
        white-space: nowrap !important;
    }
    .drop-menu { position: absolute !important; display: none !important; }
    .has-drop:hover .drop-menu { display: block !important; }
    .has-drop.open  .drop-menu { display: none  !important; }
}

@media screen and (max-width: 1100px) {
    .video-grid   { grid-template-columns: repeat(3, 1fr); }
    .two-col      { grid-template-columns: 1fr 300px; }
    .footer-grid  { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: span 3; }
}

@media screen and (max-width: 900px) {
    .banner-wrap  { grid-template-columns: 1fr; }
    .banner-side  { flex-direction: row; height: 90px; }
    .banner-main  { height: 270px; }
    .two-col      { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }
    .acard-large  { flex-direction: column; grid-column: span 1; }
    .acard-large .aimg { width: 100%; min-height: 185px; }
    .footer-grid  { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media screen and (max-width: 768px) {
    .topbar       { display: none; }
    .nav-toggle   { display: flex !important; }
    .search-wrap  { max-width: 200px; }
    .search-hot   { display: none; }
    .btn-upload span { display: none; }
    .btn-upload   { padding: 8px 12px; }
    .logo-sub     { display: none; }

    .main-nav { display: none !important; top: 0; position: static; }
    .main-nav.open { display: block !important; }
    .nav-list {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
    }
    .nav-item { width: 100% !important; }
    .nav-item > a {
        padding: 12px 18px !important;
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
        border-left: none !important;
    }
    .drop-menu {
        position: static !important;
        display: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        background: rgba(0,0,0,0.2) !important;
        padding-left: 16px !important;
    }
    .has-drop.open .drop-menu  { display: block !important; }
    .has-drop:hover .drop-menu { display: none  !important; }
    .has-drop.open:hover .drop-menu { display: block !important; }

    .video-grid   { grid-template-columns: repeat(2, 1fr); }
    .banner-side  { display: none; }
    .sec-head     { flex-wrap: wrap; }
    .footer-grid  { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media screen and (max-width: 480px) {
    .video-grid   { grid-template-columns: 1fr; }
    .footer-grid  { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .search-wrap  { max-width: 140px; }
    .banner-main  { height: 210px; }
    .slide-info h2 { font-size: 16px; }
    .slide-info p  { display: none; }
    .section       { padding: 24px 0; }
    .logo-text     { font-size: 16px; }
    .cat-item      { min-width: 56px; }
    .cat-icon      { width: 42px; height: 42px; font-size: 20px; }
    .f-stats       { gap: 14px; }
}
