/* ============================================================
   原始点学习平台 - 全站样式
   主色调：#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;
    --transition: all 0.3s ease;
}

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-sm);
    padding: 10px 12px;
    transition: var(--transition);
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 138, 110, 0.1);
}

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;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
    white-space: nowrap;
}

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

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

.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-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

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

.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;
}

/* ========== 顶部导航栏 ========== */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

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

.main-nav a {
    padding: 10px 18px;
    font-size: 15px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

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

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

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

.search-box {
    position: relative;
    width: 220px;
}

.search-box input {
    width: 100%;
    padding: 8px 36px 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    background-color: var(--bg-gray);
}

.search-box input:focus {
    background-color: var(--bg-white);
}

.search-box .search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    padding: 4px;
}

.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);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-white);
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.show {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

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

/* ========== 底部 Footer ========== */
.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: 24px;
    background-color: var(--primary);
    border-radius: 2px;
}

.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-md);
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

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

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-bg), #d4f0e4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: var(--transition);
}

.category-item:hover .category-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    transform: scale(1.1);
}

.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-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;
    }

    .search-box {
        display: none;
    }

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

    .header-inner {
        height: 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: 1fr;
    }

    .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;
    }
}

/* 工具类 */
.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; }
