/* ===== 首页专属样式 ===== */

/* 轮播区 */
.hero-slider {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin: 30px 0;
    position: relative;
}

.hero-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 40px;
    border-radius: 0;
    width: 100%;
    z-index: 2;
}

.hero-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: white;
}

.hero-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 70%;
}

.gradient-btn {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 204, 255, 0.4);
}

.hero-indicators {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.hero-indicator.active {
    background: var(--primary);
}

/* 标题+分类 同一行 */
.section-header-row {
    display: flex;
    align-items: center;
    margin: 30px 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    flex: 1;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 18px;
    border-radius: 30px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.category-btn:hover {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: white;
    border-color: transparent;
    border: 1px solid #333
}

.category-btn.active {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: white;
    border-color: transparent;
    border: 1px solid #333
}

/* 更多按钮单独样式 */
.category-btn.more-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
    border-color: var(--primary);
}

.category-btn.more-btn:hover {
    background: var(--primary);
    color: white;
}

/* 移动端：只显示最新和更多，其他隐藏 - 用于电影板块 */
@media (max-width: 1024px) {
    .category-scroll .category-btn:not(.active):not(.more-btn) {
        display: none;
    }

    .category-scroll {
        justify-content: flex-end;
    }

    .category-btn.active {
        display: inline-block;
    }

    .category-btn.more-btn {
        display: inline-block;
    }
}

/* 左侧影片网格 + 右侧热播榜 */
.content-row {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.left-grid {
    flex: 4;
    min-width: 0;
}

.right-ranking {
    flex: 1;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 0 14px 18px;
    border: 1px solid var(--border);
    height: fit-content;
    max-height: 492px;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.right-ranking::-webkit-scrollbar {
    display: none;
}

/* 移动端隐藏热播榜 */
@media (max-width: 1024px) {
    .right-ranking {
        display: none;
    }

    .content-row {
        display: block;
    }
}

.ranking-title {
    padding-top: 18px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-left: 12px;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 999;
}

.ranking-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 0;
    width: 4px;
    background-color: var(--primary);
}

.ranking-list {
    list-style: none;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    height: 70px;
    box-sizing: content-box;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-num {
    width: 24px;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

.ranking-num.top1 {
    color: #ffcc00;
}

.ranking-num.top2 {
    color: #c0c0c0;
}

.ranking-num.top3 {
    color: #cd7f32;
}

.ranking-poster {
    width: 45px;
    height: 63px;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    background-color: #2a2a3a;
}

.ranking-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    width: 100%;
}

.ranking-meta span:first-child {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    flex-shrink: 1;
    min-width: 40px;
}

.ranking-hits {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ranking-hits i {
    margin-right: 0;
    color: var(--primary);
    font-size: 11px;
}

/* 左侧影片网格调整 */
.grid-double-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 15px;
}

/* ===== 影片卡片样式（含鼠标悬停效果） ===== */
.movie-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 卡片悬停效果 - 上移 + 阴影加深 */
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* 图片容器 */
.movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    /*flex-shrink: 0;*/
    max-height: 180px;
    position: relative;
    background: #2a2a3a;
}

/* 图片样式 - 添加过渡动画 */
.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

/* 卡片悬停时图片放大 */
.movie-card:hover .movie-poster img {
    transform: scale(1.08);
}

/* 信息区域 */
.movie-info {
    padding: 8px 6px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 标题样式 - 添加过渡 */
.movie-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    transition: color 0.25s ease;
}

/* 元信息 */
.movie-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 前两个卡片特殊背景（保留原有效果） */
.grid-double-row .movie-card:first-child,
.grid-double-row .movie-card:nth-child(6) {
    background: linear-gradient(145deg, #1d2a38, #16202c);
}

/* 移动端网格调整为3列，只显示前6个（2排） */
@media (max-width: 1024px) {
    .grid-double-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .grid-double-row .movie-card:nth-child(n+7) {
        display: none;
    }

    .grid-double-row .movie-card:first-child,
    .grid-double-row .movie-card:nth-child(4) {
        background: linear-gradient(145deg, #1d2a38, #16202c);
    }

    .grid-double-row .movie-card:nth-child(6) {
        background: var(--bg-card);
    }

    /* 移动端悬停效果减弱（避免误触） */
    .movie-card:hover {
        transform: translateY(-3px);
    }

    .movie-card:hover .movie-poster img {
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .grid-double-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .grid-double-row .movie-card:nth-child(n+7) {
        display: none;
    }

    .hero-slider {
        height: 250px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-content h2 {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 12px;
        max-width: 100%;
    }

    .gradient-btn {
        padding: 6px 16px;
        font-size: 14px;
    }

    .movie-title {
        font-size: 12px;
    }

    .movie-meta {
        font-size: 10px;
    }

    /* 小屏移动端悬停效果进一步减弱 */
    .movie-card:hover {
        transform: translateY(-2px);
    }
}

/* ===== 资讯模块样式 ===== */
.news-section {
    margin: 50px 0;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--border);
}

.news-header {
    display: flex;
    align-items: center;
    margin: 0 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.news-header h2 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    white-space: nowrap;
    margin-right: 20px;
}

.news-category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    flex: 1;
    scrollbar-width: none;
}

.news-category-scroll::-webkit-scrollbar {
    display: none;
}

.news-category-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 18px;
    border-radius: 30px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.news-category-btn:hover {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: white;
    border-color: transparent;
    border: 1px solid #333;
}

.news-category-btn.active {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: white;
    border-color: transparent;
    border: 1px solid #333;
}

/* 更多按钮单独样式 */
.news-category-btn.more-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
    border-color: var(--primary);
}

.news-category-btn.more-btn:hover {
    background: var(--primary);
    color: white;
}

/* 移动端：只显示最新和更多，其他隐藏 - 用于资讯模块 */
@media (max-width: 1024px) {
    .news-category-scroll .news-category-btn:not(.active):not(.more-btn) {
        display: none;
    }

    .news-category-scroll {
        justify-content: flex-end;
    }

    .news-category-btn.active {
        display: inline-block;
    }

    .news-category-btn.more-btn {
        display: inline-block;
    }
}

/* 资讯内容区域 - 左右布局 */
.news-content-row {
    display: flex;
    gap: 25px;
    margin-top: 20px;
}

/* 左侧最新资讯列表 */
.news-list-left {
    flex: 4;
    min-width: 0;
}

.news-list-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    color: inherit;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item:hover {
    background: rgba(0, 204, 255, 0.05);
    transform: translateX(5px);
}

.news-list-cover {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #2a2a3a;
}

.news-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-list-item:hover .news-list-cover img {
    transform: scale(1.05);
}

.news-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-list-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.news-list-category {
    background: rgba(0, 204, 255, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
    color: var(--primary);
}

.news-list-time i {
    margin-right: 3px;
    font-size: 10px;
}

/* 右侧最热资讯 */
.news-hot-right {
    flex: 1;
    background: var(--bg-light);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    height: fit-content;
}

.news-hot-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-left: 8px;
    position: relative;
}

.news-hot-title i {
    color: #ffaa00;
    margin-right: 5px;
}

.news-hot-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background-color: #ffaa00;
    border-radius: 2px;
}

.news-hot-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-hot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
}

.news-hot-item:last-child {
    border-bottom: none;
}

.news-hot-item:hover {
    background: rgba(255, 170, 0, 0.05);
    transform: translateX(3px);
}

.news-hot-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.news-hot-num.top1 {
    color: #ffcc00;
    font-size: 16px;
}

.news-hot-num.top2 {
    color: #c0c0c0;
}

.news-hot-num.top3 {
    color: #cd7f32;
}

.news-hot-info {
    flex: 1;
    min-width: 0;
}

.news-hot-item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-hot-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.news-hot-category {
    background: rgba(0, 204, 255, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    color: var(--primary);
}

.news-hot-views i {
    margin-right: 3px;
    color: #ffaa00;
}

/* 移动端响应式 */
@media (max-width: 992px) {
    .news-content-row {
        flex-direction: column;
    }

    .news-hot-right {
        width: 100%;
    }
}

/* 移动端 - 只调整布局和大小，保持列表格式不变 */
@media (max-width: 1024px) {
    /* 标题行保持水平 */
    .news-header {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .news-header h2 {
        font-size: 18px;
        margin-right: 10px;
    }

    .news-category-scroll {
        flex: 0 1 auto;
    }

    /* 按钮保持原样，不缩小 */
    .news-category-btn {
        padding: 6px 18px;
        font-size: 14px;
    }

    /* 隐藏非活跃分类按钮 */
    .news-category-scroll .news-category-btn:not(.active):not(.more-btn) {
        display: none;
    }

    /* 列表项保持左右结构，只适当缩小尺寸 */
    .news-list-item {
        gap: 15px;
        padding: 12px 0;
    }

    .news-list-cover {
        width: 100px;
        height: 70px;
    }

    .news-list-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .news-list-summary {
        font-size: 12px;
        margin-bottom: 8px;
        -webkit-line-clamp: 1;
    }

    .news-list-meta {
        gap: 12px;
        font-size: 11px;
    }

    /* 最热资讯隐藏 */
    .news-hot-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .news-header h2 {
        font-size: 16px;
    }

    .news-category-btn {
        padding: 5px 16px;
        font-size: 13px;
    }

    .news-list-item {
        gap: 12px;
        padding: 10px 0;
    }

    .news-list-cover {
        width: 80px;
        height: 60px;
    }

    .news-list-title {
        font-size: 14px;
    }

    .news-list-summary {
        font-size: 11px;
    }

    .news-list-meta {
        gap: 10px;
        font-size: 10px;
    }
}

/* ===== 留言板完整样式 ===== */
.message-board {
    background: var(--bg-light);
    border-radius: 24px;
    padding: 30px 0;
    margin: 40px 0 20px;
    border: 1px solid var(--border);
}

.message-board .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.message-board-header {
    text-align: center;
    margin-bottom: 30px;
}

.message-board-header h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.message-board-header h3 i {
    margin-right: 8px;
}

.message-board-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.message-form {
    max-width: 600px;
    margin: 0 auto;
}

.message-form .form-group {
    margin-bottom: 15px;
}

.message-form .form-textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: all 0.2s;
}

.message-form .form-textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 204, 255, 0.1);
}

/* 验证码区域 - 优化布局 */
.message-form .captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.message-form .captcha-input {
    flex: 1;
    padding: 12px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 14px;
    min-width: 0; /* 允许缩小 */
    transition: all 0.2s;
}

.message-form .captcha-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 204, 255, 0.1);
}

.message-form .captcha-image {
    width: 100px;
    height: 40px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0; /* 防止缩小 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-form .captcha-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 确保完整显示，不被裁剪 */
    display: block;
    background: var(--bg-dark);
}

.message-form .captcha-refresh {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0; /* 防止缩小 */
}

.message-form .captcha-refresh:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 204, 255, 0.05);
}

.message-form .form-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.message-submit-btn {
    padding: 12px 40px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    width: auto;
    min-width: 160px;
    justify-content: center;
    /*border: 1px solid rgba(255, 255, 255, 0.1);*/
    border: 1px solid #333;
}

.message-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 204, 255, 0.4);
}

.message-submit-btn i {
    font-size: 16px;
}

/* 成功提示 */
.message-success-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 20px 30px;
    border-radius: 16px;
    border: 1px solid var(--primary);
    z-index: 9999;
    text-align: center;
    animation: fadeInOut 3s ease forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.message-success-tip i {
    font-size: 48px;
    color: #4caf50;
    margin-bottom: 12px;
    display: block;
}

.message-success-tip div {
    color: white;
    font-size: 16px;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -30%);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    90% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -70%);
    }
}

/* ===== 移动端优化 ===== */
@media (max-width: 1024px) {
    .message-board {
        padding: 20px 0;
        margin: 30px 0 15px;
    }

    .message-board .container {
        padding: 0 15px;
    }

    .message-board-header {
        margin-bottom: 20px;
    }

    .message-board-header h3 {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .message-board-header p {
        font-size: 13px;
    }

    .message-form {
        width: 100%;
    }

    .message-form .form-textarea {
        min-height: 80px;
        padding: 12px;
        font-size: 15px;
        border-radius: 14px;
    }

    /* 验证码区域移动端优化 */
    .message-form .captcha-group {
        gap: 8px;
    }

    .message-form .captcha-input {
        padding: 10px 12px;
        font-size: 15px;
        height: 45px;
    }

    .message-form .captcha-image {
        width: 85px;
        height: 45px;
    }

    .message-form .captcha-refresh {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .message-submit-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        min-width: auto;
    }
}

/* 小屏手机优化 (480px以下) */
@media (max-width: 480px) {
    .message-board {
        padding: 15px 0;
    }

    .message-board .container {
        padding: 0 12px;
    }

    .message-board-header {
        margin-bottom: 15px;
    }

    .message-board-header h3 {
        font-size: 18px;
    }

    .message-board-header p {
        font-size: 12px;
    }

    .message-form .form-textarea {
        min-height: 70px;
        padding: 10px;
        font-size: 14px;
        border-radius: 12px;
    }

    /* 验证码区域小屏优化 */
    .message-form .captcha-group {
        gap: 6px;
    }

    .message-form .captcha-input {
        padding: 8px 10px;
        font-size: 14px;
        height: 42px;
    }

    .message-form .captcha-image {
        width: 80px;
        height: 42px;
    }

    .message-form .captcha-refresh {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .message-submit-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* 超小屏优化 (360px以下) - 验证码区域自动换行 */
@media (max-width: 360px) {
    .message-form .captcha-group {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }

    .message-form .captcha-input {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 0;
    }

    .message-form .captcha-image {
        width: calc(100% - 50px); /* 减去刷新按钮宽度和间距 */
        max-width: none;
    }

    .message-form .captcha-refresh {
        margin-left: auto;
    }
}

/* 确保验证码图片在任何尺寸下都完整显示 */
.message-form .captcha-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ========== 热门推荐滚动模块 ========== */
.hot-recommend-section {
    margin: 30px 0 20px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border);
}

.hot-recommend-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.hot-recommend-header h3 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 关键：overflow: hidden 防止溢出，用负边距实现半页效果 */
.hot-recommend-wrapper {
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    touch-action: pan-y pinch-zoom;
}

.hot-recommend-wrapper:active {
    cursor: grabbing;
}

.hot-recommend-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    will-change: transform;
    gap: 15px;
    padding-left: calc(50% - 90px);
}

.hot-recommend-group {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.hot-recommend-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 180px;
}

.hot-recommend-item:hover {
    transform: translateY(-5px);
}

.hot-recommend-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    overflow: hidden;
    background: #2a2a3a;
}

.hot-recommend-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hot-recommend-item:hover .hot-recommend-poster img {
    transform: scale(1.05);
}

.hot-recommend-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 4px 8px;
    font-size: 12px;
    color: #ff6b6b;
    backdrop-filter: blur(4px);
}

.hot-recommend-info {
    padding: 10px 0;
}

.hot-recommend-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

/*.hot-recommend-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 6px;
    align-items: center;
}*/

.hot-recommend-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 移动端适配 */
@media (max-width: 1024px) {
    .hot-recommend-section {
        margin: 20px 0 15px;
        padding: 15px;
    }

    .hot-recommend-header h3 {
        font-size: 18px;
    }

    .hot-recommend-item {
        width: 130px;
    }

    .hot-recommend-track {
        padding-left: calc(50% - 65px);
    }

    .hot-recommend-title {
        font-size: 12px;
    }

/*    .hot-recommend-meta {
        font-size: 10px;
    }*/
     .hot-recommend-meta {
            font-size: 10px;
            gap: 3px;
     }
}

@media (max-width: 480px) {
    .hot-recommend-item {
        width: 110px;
    }

    .hot-recommend-track {
        padding-left: calc(50% - 55px);
    }

    .hot-recommend-header h3 {
        font-size: 16px;
    }

    .hot-recommend-title {
        font-size: 11px;
    }
}