/* 暗黑简洁主题 - 内容区域样式（极简扁平设计） */

/* ========== 内容区域样式 ========== */
.content {
    min-height: calc(100vh - 140px);
    background: #1f2833;
}

/* ========== 顶部提示框样式 ========== */
.toast-notification {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 10px 14px;
    border-radius: 2px;
    font-size: 13px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s;
    display: none;
    min-width: 280px;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    display: block;
}

.toast-notification.error {
    background: #4a1f1f;
    color: #ff6b6b;
    border: 1px solid #5a2a2a;
}

.toast-notification.success {
    background: #1f4a2f;
    color: #4ade80;
    border: 1px solid #2a5a3f;
}

.toast-notification.warning {
    background: #4a3f1f;
    color: #fbbf24;
    border: 1px solid #5a4f2f;
}

.toast-notification.info {
    background: #1f2f4a;
    color: #60a5fa;
    border: 1px solid #2f3f5a;
}

/* ========== 轮播图样式 ========== */
.carousel-section {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    padding: 18px 35px 0px 35px;
    box-sizing: border-box;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 5;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #2a3441;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s;
}

.carousel-slide.active .carousel-content {
    opacity: 1;
}

.carousel-content h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.carousel-content p {
    font-size: 14px;
    opacity: 0.9;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-indicator.active {
    width: 24px;
    background: #5dade2;
}

/* 轮播箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    color: #CCCCCC;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 2px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(255,255,255,0.95);
}

.carousel-arrow.prev {
    left: 15px;
}

.carousel-arrow.next {
    right: 15px;
}

/* ========== 横幅公告样式 ========== */
.banner-section {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    padding: 18px 35px 0px 35px;
    box-sizing: border-box;
}

.banner-container {
    background: #2a3441;
    border-radius: 2px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #2a3441;
}

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

.banner-icon svg {
    width: 100%;
    height: 100%;
}

.banner-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
}

.banner-text {
    color: #CCCCCC;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    animation: scroll-left 20s linear infinite;
    display: inline-block;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 更多公告按钮 */
.banner-more {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: #1f2833;
    border-radius: 2px;
    transition: background 0.2s;
    flex-shrink: 0;
    border: 1px solid #2a3441;
}

.banner-more:hover {
    background: #2a3441;
}

.banner-more svg {
    width: 20px;
    height: 20px;
}

.banner-more-text {
    font-size: 13px;
    font-weight: 500;
    color: #CCCCCC;
    white-space: nowrap;
}

/* 公告数量徽章 */
.banner-more-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #5dade2;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: block;
}

.banner-more {
    position: relative;
}

/* 公告弹窗样式 */
.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.announcement-modal.active {
    display: flex;
}

.announcement-modal-content {
    background: #1f2833;
    border-radius: 4px;
    width: 90%;
    max-width: 880px;
    max-height: 85vh;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #2a3441;
}

.announcement-modal-header {
    background: #1f2833;
    color: #CCCCCC;
    padding: 20px 25px;
    border-bottom: 1px solid #2a3441;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #CCCCCC;
}

.announcement-close {
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    color: #a0a8b0;
    transition: color 0.2s;
    line-height: 1;
}

.announcement-close:hover {
    color: #CCCCCC;
}

.announcement-modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
    background: #1f2833;
}

.announcement-modal-body::-webkit-scrollbar {
    width: 4px;
}

.announcement-modal-body::-webkit-scrollbar-track {
    background: #2a3441;
}

.announcement-modal-body::-webkit-scrollbar-thumb {
    background: #2a3441;
    border-radius: 2px;
}

.announcement-modal-body::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

.announcement-item {
    padding: 16px 20px;
    background: #1f2833;
    border-radius: 2px;
    margin-bottom: 12px;
    border-left: 3px solid #5dade2;
    transition: background 0.2s;
    border: 1px solid #2a3441;
}

.announcement-item:hover {
    background: #2a3441;
}

.announcement-item:last-child {
    margin-bottom: 0;
}

.announcement-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #a0a8b0;
    margin-bottom: 8px;
    font-weight: 400;
    padding: 3px 8px;
    background: #2a3441;
    border-radius: 2px;
}

.announcement-time::before {
    content: '📅';
    font-size: 11px;
}

.announcement-title {
    font-size: 15px;
    font-weight: 500;
    color: #CCCCCC;
    margin-bottom: 10px;
    line-height: 1.5;
}

.announcement-content {
    font-size: 13px;
    color: #a0a8b0;
    line-height: 1.6;
    padding: 10px 14px;
    background: #2a3441;
    border-radius: 2px;
    border: 1px solid #2a3441;
}

/* 空状态样式 */
.announcement-empty {
    text-align: center;
    padding: 50px 20px;
    background: #1f2833;
    border-radius: 2px;
    border: 1px solid #2a3441;
}

.announcement-empty-icon {
    font-size: 56px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.announcement-empty-text {
    font-size: 13px;
    color: #a0a8b0;
    font-weight: 400;
}

/* ========== 素材展示板块样式 ========== */
.material-section {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    padding: 18px 35px;
    box-sizing: border-box;
}

/* 素材主导航 */
.material-main-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    padding: 0;
}

.material-main-nav-btn {
    padding: 10px 24px;
    background: #1f2833;
    border: 1px solid #2a3441;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    color: #a0a8b0;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.material-main-nav-btn:hover {
    border-color: #5dade2;
    color: #5dade2;
}

.material-main-nav-btn.active {
    background: #5dade2;
    border-color: #5dade2;
    color: white;
}

/* 素材子导航 */
.material-sub-nav-container {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: #2a3441;
    border-radius: 2px;
    border: 1px solid #2a3441;
}

.material-sub-nav-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 0px;
}

.material-sub-nav-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.material-search-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1f2833;
    border: 1px solid #2a3441;
    border-radius: 2px;
    padding: 8px 10px;
    min-width: 230px;
    transition: border-color 0.2s;
}

.material-search-box:focus-within {
    border-color: #5dade2;
}

.material-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #CCCCCC;
    flex: 1;
    min-width: 0;
}

.material-search-input::placeholder {
    color: #a0a8b0;
}

.material-search-icon {
    color: #a0a8b0;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.material-sub-nav-btn {
    padding: 8px 16px;
    background: #1f2833;
    border: 1px solid #2a3441;
    border-radius: 2px;
    font-size: 13px;
    color: #a0a8b0;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 400;
}

.material-sub-nav-btn:hover {
    background: #1f2f4a;
    border-color: #5dade2;
    color: #5dade2;
}

.material-sub-nav-btn.active {
    background: #5dade2;
    border-color: #5dade2;
    color: white;
}

/* "全部"按钮特殊样式 */
.material-sub-nav-all {
    font-weight: 500;
}

/* 我的收藏按钮样式 */
.material-favorite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: #1f2833;
    border: 1px solid #2a3441;
    border-radius: 2px;
    font-size: 13px;
    color: #a0a8b0;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 400;
    white-space: nowrap;
}

.material-favorite-btn:hover {
    background: #1f2f4a;
    border-color: #5dade2;
    color: #5dade2;
}

.material-favorite-btn.active {
    background: #5dade2;
    border-color: #5dade2;
    color: white;
}

.material-favorite-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 无限级导航容器样式 */
.material-grandson-nav-container {
    display: none;
    margin-top: 0px;
    padding: 10px 14px;
    background: #2a3441;
    border-radius: 2px;
    border: 1px solid #2a3441;
}

.material-grandson-nav-container.show {
    display: block;
}

.material-grandson-nav-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.material-grandson-nav-btn {
    padding: 6px 14px;
    background: #1f2833;
    border: 1px solid #2a3441;
    border-radius: 2px;
    font-size: 12px;
    color: #a0a8b0;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 400;
}

.material-grandson-nav-btn:hover {
    background: #1f2f4a;
    border-color: #5dade2;
    color: #5dade2;
}

.material-grandson-nav-btn.active {
    background: #5dade2;
    border-color: #5dade2;
    color: white;
}

/* 无限级导航容器支持多层级 */
#materialNavContainers {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

#materialNavContainers .material-grandson-nav-container {
    margin-top: 10px;
}

/* 素材展示区域 */
.material-display {
    display: none;
}

.material-display.active {
    display: block;
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.material-card {
    background: #1f2833;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid #2a3441;
}

.material-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-color: #5dade2;
}

.material-card-image {
    width: 100%;
    aspect-ratio: 1920 / 1080;
    background-color: #2a3441;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #2a3441;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.material-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

/* 素材水印样式 */
.material-watermark {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 5;
    font-weight: 600;
}
.material-watermark-repeat {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.material-watermark-repeat-container {
    width: 200%;
    height: 200%;
    position: absolute;
    top: -50%;
    left: -50%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--watermark-gap-x, 32px) var(--watermark-gap-y, 64px);
}
.material-watermark-repeat-item {
    white-space: nowrap;
}
.material-watermark-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--watermark-angle, -45deg));
}
.material-watermark-top-left {
    top: 10px;
    left: 10px;
    transform: rotate(var(--watermark-angle, -45deg));
}
.material-watermark-top-right {
    top: 10px;
    right: 10px;
    transform: rotate(var(--watermark-angle, -45deg));
}
.material-watermark-bottom-left {
    bottom: 10px;
    left: 10px;
    transform: rotate(var(--watermark-angle, -45deg));
}
.material-watermark-bottom-right {
    bottom: 10px;
    right: 10px;
    transform: rotate(var(--watermark-angle, -45deg));
}

/* 版权信息标签 */
.material-copyright {
    position: absolute;
    top: 0;
    left: 0;
    background: #ff5252;
    color: white;
    padding: 5px 12px;
    border-radius: 0 0 2px 0;
    font-size: 11px;
    font-weight: 500;
    z-index: 10;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 时间标签 */
.material-time {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(117, 117, 117, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 0 0 0 2px;
    font-size: 10px;
    font-weight: 400;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 3px;
}

.material-time::before {
    content: '🕐';
    font-size: 10px;
}

/* 新素材标签样式 */
.material-new-tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 10px;
    border-radius: 0 0 0 2px;
    font-size: 11px;
    font-weight: 500;
    z-index: 11;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background: #5dade2;
    color: white;
}

/* 当有时间标签时，新素材标签需要显示在时间标签的左边，间距更小 */
.material-new-tag.has-time-tag {
    right: var(--time-tag-width, 85px);
    border-radius: 0 0 0 2px;
}

.material-card-footer {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.material-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #CCCCCC;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-card-views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #a0a8b0;
    font-size: 12px;
    white-space: nowrap;
}

.material-card-views svg {
    width: 14px;
    height: 14px;
}

/* 收藏标签样式 - 放在底部标题右侧 */
.material-card-favorite-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    flex-shrink: 0;
}

.material-card-favorite-badge svg {
    width: 16px;
    height: 16px;
    fill: #ef4444;
    stroke: #ef4444;
    stroke-width: 2;
}

/* 素材详情弹窗 */
.material-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.material-modal.active {
    display: flex;
}

.material-modal-content {
    background: #1f2833;
    border-radius: 4px;
    width: 90%;
    max-width: 880px;
    max-height: 85vh;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #2a3441;
}

.material-modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid #2a3441;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.material-modal-header h3 {
    color: #CCCCCC !important;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.material-modal-close {
    font-size: 24px;
    color: #a0a8b0;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-modal-close:hover {
    color: #CCCCCC;
}

.material-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a3441;
}

.material-modal-body::-webkit-scrollbar {
    width: 4px;
}

.material-modal-body::-webkit-scrollbar-track {
    background: #2a3441;
}

.material-modal-body::-webkit-scrollbar-thumb {
    background: #2a3441;
    border-radius: 2px;
}

.material-modal-body::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* 固定1920*1080比例的图片容器 */
.material-modal-image-container {
    width: 100%;
    aspect-ratio: 1920 / 1080;
    background: #1f2833;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.material-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1f2833;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.material-modal-footer {
    padding: 18px 22px;
    border-top: 1px solid #2a3441;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f2833;
}

.material-modal-title {
    font-size: 15px;
    font-weight: 500;
    color: #CCCCCC;
    flex: 1;
}

.material-modal-download {
    background: #5dade2;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.material-modal-download:hover {
    background: #4a9bc7;
}

.material-modal-download svg {
    width: 16px;
    height: 16px;
}

/* 素材详情弹窗中的收藏按钮样式 */
.material-modal-favorite {
    background: #1f2833;
    color: #a0a8b0;
    border: 1px solid #2a3441;
    padding: 8px 16px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
}

.material-modal-favorite:hover {
    background: #1f2f4a;
    border-color: #5dade2;
    color: #5dade2;
}

.material-modal-favorite svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.material-modal-favorite.favorited {
    background: #5dade2;
    border-color: #5dade2;
    color: white;
}

.material-modal-favorite.favorited:hover {
    background: #4a9bc7;
    border-color: #4a9bc7;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0a8b0;
}

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

.empty-state-text {
    font-size: 14px;
}

/* ========== 分页样式 ========== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 14px;
    background: #1f2833;
    border: 1px solid #2a3441;
    border-radius: 2px;
    color: #a0a8b0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 400;
    min-width: 36px;
    text-align: center;
}

.pagination-btn:hover:not(.disabled) {
    background: #1f2f4a;
    border-color: #5dade2;
    color: #5dade2;
}

.pagination-btn.active {
    background: #5dade2;
    border-color: #5dade2;
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #2a3441;
}

.pagination-info {
    padding: 6px 14px;
    color: #a0a8b0;
    font-size: 13px;
    white-space: nowrap;
}

/* ========== 会员开通按钮样式 ========== */
.member-subscription-button-section {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    padding: 18px 0px 0px 0px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.member-subscription-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.member-subscription-button {
    padding: 14px 36px;
    background: #FFA500;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-subscription-button:hover {
    background: #FF8C00;
}

.member-subscription-button:active {
    background: #FF7F00;
}

.member-subscription-button .button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.member-subscription-button .button-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.member-subscription-button .button-text {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========== 支付方式弹窗样式 ========== */
.payment-method-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.payment-method-modal.show {
    display: flex;
}

.payment-method-content {
    background: #1f2833;
    border-radius: 4px;
    padding: 25px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid #2a3441;
}

.payment-method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #2a3441;
}

.payment-method-title {
    font-size: 20px;
    font-weight: 500;
    color: #CCCCCC;
}

.payment-method-close {
    width: 28px;
    height: 28px;
    border: none;
    background: #2a3441;
    border-radius: 2px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a8b0;
    transition: background 0.2s;
}

.payment-method-close:hover {
    background: #2a3441;
    color: #CCCCCC;
}

.payment-method-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid #2a3441;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
    background: #1f2833;
}

.payment-method-item:hover {
    border-color: #5dade2;
    background: #1f2f4a;
}

.payment-method-item.active {
    border-color: #5dade2;
    background: #1f2f4a;
}

.payment-method-icon {
    margin-right: 14px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #1f2833;
    border-radius: 2px;
    border: 1px solid #2a3441;
}

.payment-method-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.payment-method-info {
    flex: 1;
}

.payment-method-name {
    font-size: 16px;
    font-weight: 500;
    color: #CCCCCC;
    margin-bottom: 3px;
}

.payment-method-desc {
    font-size: 13px;
    color: #a0a8b0;
}

.payment-method-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #2a3441;
    border-radius: 50%;
    position: relative;
    margin-left: 10px;
}

.payment-method-item.active .payment-method-radio {
    border-color: #5dade2;
}

.payment-method-item.active .payment-method-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #5dade2;
    border-radius: 50%;
}

.payment-method-price {
    text-align: center;
    margin-bottom: 20px;
    padding: 14px;
    background: #2a3441;
    border-radius: 2px;
}

.payment-method-price-label {
    font-size: 13px;
    color: #a0a8b0;
    margin-bottom: 6px;
}

.payment-method-price-value {
    font-size: 28px;
    font-weight: 600;
    color: #f44336;
}

.payment-method-submit {
    width: 100%;
    padding: 12px;
    background: #5dade2;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.payment-method-submit:hover {
    background: #4a9bc7;
}

.payment-method-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 扫码支付弹窗 */
.payment-qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.payment-qrcode-modal.show {
    display: flex;
}

.payment-qrcode-content {
    background: #1f2833;
    border-radius: 4px;
    padding: 25px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid #2a3441;
}

.payment-qrcode-header {
    margin-bottom: 20px;
}

.payment-qrcode-title {
    font-size: 20px;
    font-weight: 500;
    color: #CCCCCC;
    margin-bottom: 6px;
}

.payment-qrcode-subtitle {
    font-size: 13px;
    color: #a0a8b0;
}

.payment-qrcode-box {
    background: #2a3441;
    border-radius: 2px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-qrcode-img {
    width: 180px;
    height: 180px;
    background: #1f2833;
    border-radius: 2px;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #2a3441;
}

.payment-qrcode-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-qrcode-loading {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f2833;
    border-radius: 2px;
    margin-bottom: 12px;
}

.payment-qrcode-loading::after {
    content: '';
    width: 36px;
    height: 36px;
    border: 3px solid #2a3441;
    border-top-color: #5dade2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.payment-qrcode-tips {
    font-size: 13px;
    color: #a0a8b0;
    line-height: 1.5;
}

.payment-qrcode-status {
    margin-top: 12px;
    padding: 10px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 400;
}

.payment-qrcode-status.success {
    background: #1f4a2f;
    color: #4ade80;
}

.payment-qrcode-status.error {
    background: #4a1f1f;
    color: #ff6b6b;
}

.payment-qrcode-close {
    width: 100%;
    padding: 10px;
    background: #2a3441;
    color: #a0a8b0;
    border: none;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s;
}

.payment-qrcode-close:hover {
    background: #2a3441;
    color: #CCCCCC;
}

/* ========== 会员开通弹窗样式 ========== */
.member-subscription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.member-subscription-modal.active {
    display: flex;
}

.member-subscription-modal-content {
    background: #1f2833;
    border-radius: 4px;
    width: 90%;
    max-width: 580px;
    max-height: 85vh;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #2a3441;
}

.member-subscription-modal-header {
    background: #FFA500;
    color: white;
    padding: 20px 25px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-subscription-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0;
}

.member-subscription-modal-header h3 svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
}

.member-subscription-modal-close {
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-subscription-modal-close:hover {
    opacity: 1;
}

.member-subscription-modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(85vh - 160px);
    background: #1f2833;
}

.member-subscription-modal-body::-webkit-scrollbar {
    width: 4px;
}

.member-subscription-modal-body::-webkit-scrollbar-track {
    background: #2a3441;
}

.member-subscription-modal-body::-webkit-scrollbar-thumb {
    background: #2a3441;
    border-radius: 2px;
}

.member-subscription-modal-body::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

.member-subscription-description {
    font-size: 14px;
    color: #a0a8b0;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
}

.member-subscription-features {
    background: #2a3441;
    border-radius: 2px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 3px solid #FFA500;
}

.member-subscription-features h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #CCCCCC;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.member-subscription-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-subscription-features-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #a0a8b0;
    line-height: 1.6;
    border-bottom: 1px solid #2a3441;
}

.member-subscription-features-list li:last-child {
    border-bottom: none;
}

.member-subscription-features-list li::before {
    content: '✓';
    color: #FFA500;
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

.member-subscription-price {
    text-align: center;
    margin-bottom: 20px;
}

.member-subscription-price-label {
    font-size: 13px;
    color: #a0a8b0;
    margin-bottom: 6px;
}

.member-subscription-price-value {
    font-size: 32px;
    font-weight: 600;
    color: #FF8C00;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
}

.member-subscription-price-value .currency {
    font-size: 20px;
    font-weight: 500;
}

.member-subscription-price-value .unit {
    font-size: 16px;
    color: #a0a8b0;
    margin-left: 3px;
}

.member-subscription-modal-footer {
    padding: 18px 25px;
    border-top: 1px solid #2a3441;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1f2833;
}

.member-subscription-submit-btn {
    padding: 12px 36px;
    background: #FFA500;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.member-subscription-submit-btn:hover {
    background: #FF8C00;
}

.member-subscription-submit-btn:active {
    background: #FF7F00;
}

.member-subscription-submit-btn svg {
    width: 18px;
    height: 18px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1400px) {
    .material-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .material-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* 轮播图移动端同比例缩放 */
    .carousel-section {
        padding: 18px 18px 0 18px;
    }
    
    .carousel-container {
        height: 0;
        padding-bottom: 31.25%;
        aspect-ratio: unset;
        position: relative;
    }
    
    .carousel-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .carousel-content {
        padding: 16px;
        /* 移动端隐藏底部黑色文案块 */
        display: none;
    }
    
    .carousel-content h2 {
        font-size: 16px;
    }
    
    .carousel-content p {
        font-size: 11px;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
        /* 移动端隐藏左右切换按钮 */
        display: none;
    }
    
    /* 横幅广告区域移动端适配 */
    .banner-section {
        padding: 18px 18px 0 18px;
    }
    
    .banner-container {
        padding: 8px 12px;
        gap: 10px;
    }
    
    .banner-icon {
        width: 22px;
        height: 22px;
    }
    
    .banner-content {
        height: 22px;
    }
    
    .banner-text {
        font-size: 12px;
    }
    
    .banner-more {
        padding: 5px 10px;
        gap: 5px;
    }
    
    .banner-more svg {
        width: 16px;
        height: 16px;
    }
    
    .banner-more-text {
        font-size: 11px;
    }
    
    .banner-more-badge {
        font-size: 9px;
        padding: 2px 5px;
        min-width: 16px;
        top: -5px;
        right: -5px;
    }
    
    /* 素材导航移动端适配 */
    .material-main-nav {
        gap: 6px;
        margin-bottom: 14px;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    
    .material-main-nav::-webkit-scrollbar {
        display: none;
    }
    
    .material-main-nav-btn {
        padding: 6px 14px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
        border: 1px solid #2a3441;
    }
    
    .material-main-nav-btn:hover {
        border-color: #5dade2;
        color: #5dade2;
    }
    
    .material-main-nav-btn.active {
        background: #5dade2;
        border-color: #5dade2;
        color: white;
    }
    
    .material-sub-nav-container {
        flex-direction: column;
        padding: 10px;
        gap: 8px;
        min-height: auto;
    }
    
    .material-sub-nav-top-row {
        flex-direction: column;
        gap: 8px;
        min-height: auto;
    }
    
    .material-sub-nav-buttons {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 4px;
    }
    
    .material-search-box {
        width: 100%;
        min-width: auto;
    }
    
    .material-sub-nav-buttons::-webkit-scrollbar {
        display: none;
    }
    
    .material-sub-nav-btn {
        padding: 6px 12px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .material-search-box {
        width: 100%;
        min-width: 100%;
        padding: 6px 8px;
    }
    
    .material-search-input {
        font-size: 12px;
    }
    
    .material-search-icon {
        font-size: 12px;
    }
    
    .material-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .material-section {
        padding: 18px 18px;
    }
    
    .material-card-footer {
        padding: 10px;
    }
    
    .material-card-title {
        font-size: 12px;
    }
    
    .material-card-views {
        font-size: 10px;
    }
    
    .material-card-views svg {
        width: 12px;
        height: 12px;
    }
    
    .material-copyright {
        font-size: 9px;
        padding: 4px 8px;
    }
    
    /* 移动端隐藏时间标签 */
    .material-time {
        display: none;
    }
    
    /* 新素材标签移动端适配 */
    .material-new-tag {
        font-size: 9px;
        padding: 3px 8px;
        border-radius: 0 0 0 2px;
    }
    
    /* 移动端时间标签已隐藏，新素材标签直接显示在右上角 */
    .material-new-tag.has-time-tag {
        right: 0;
    }
    
    /* 收藏标签移动端适配 */
    .material-card-favorite-badge {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
    
    .material-card-favorite-badge svg {
        width: 14px;
        height: 14px;
    }
    
    /* 我的收藏按钮移动端适配 */
    .material-favorite-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .material-favorite-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .pagination-container {
        margin-top: 25px;
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 32px;
    }
    
    .pagination-info {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    /* 公告弹窗移动端适配 */
    .announcement-modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
    }
    
    .announcement-modal-header {
        padding: 18px;
    }
    
    .announcement-modal-header h3 {
        font-size: 16px;
    }
    
    .announcement-close {
        font-size: 22px;
    }
    
    .announcement-modal-body {
        padding: 18px;
    }
    
    .announcement-item {
        padding: 14px 18px;
        margin-bottom: 10px;
    }
    
    .announcement-title {
        font-size: 14px;
    }
    
    .announcement-content {
        font-size: 12px;
    }
    
    /* 素材详情弹窗移动端适配 */
    .material-modal-content {
        width: 95%;
        max-width: 95%;
    }
    
    .material-modal-image-container {
        width: 100%;
        max-width: 100%;
    }
    
    .material-modal-body {
        padding: 12px;
    }
    
    .material-modal-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .material-modal-footer > div {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .material-modal-favorite {
        width: 100%;
        justify-content: center;
        margin-right: 0;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .material-modal-favorite svg {
        width: 16px;
        height: 16px;
    }
    
    .material-modal-download {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .member-subscription-button-section {
        padding: 12px 0px 0px 0px;
    }
    
    .member-subscription-button {
        padding: 10px 24px;
        font-size: 14px;
        gap: 8px;
    }
    
    .member-subscription-button .button-icon {
        width: 18px;
        height: 18px;
    }
    
    .member-subscription-button .button-text {
        font-size: 14px;
        letter-spacing: 0.3px;
    }
    
    .member-subscription-modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
    }
    
    .member-subscription-modal-header {
        padding: 18px;
    }
    
    .member-subscription-modal-header h3 {
        font-size: 18px;
    }
    
    .member-subscription-modal-close {
        font-size: 26px;
        width: 28px;
        height: 28px;
    }
    
    .member-subscription-modal-body {
        padding: 18px;
    }
    
    .member-subscription-description {
        font-size: 13px;
    }
    
    .member-subscription-features {
        padding: 16px;
    }
    
    .member-subscription-features h4 {
        font-size: 15px;
    }
    
    .member-subscription-features-list li {
        font-size: 13px;
    }
    
    .member-subscription-price-value {
        font-size: 26px;
    }
    
    .member-subscription-modal-footer {
        padding: 12px 18px;
    }
    
    .member-subscription-submit-btn {
        padding: 10px 26px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
}

/* 超小屏幕适配（手机竖屏，小于480px） */
@media (max-width: 480px) {
    .member-subscription-button-section {
        padding: 15px 0px 0px 0px;
    }
    
    .member-subscription-button {
        padding: 8px 18px;
        font-size: 13px;
        gap: 6px;
        max-width: 260px;
    }
    
    .member-subscription-button .button-icon {
        width: 16px;
        height: 16px;
    }
    
    .member-subscription-button .button-text {
        font-size: 13px;
        letter-spacing: 0;
    }
    
    .member-subscription-modal-content {
        width: 98%;
        max-width: 98%;
    }
    
    .member-subscription-modal-header {
        padding: 15px;
    }
    
    .member-subscription-modal-header h3 {
        font-size: 16px;
    }
    
    .member-subscription-modal-header h3 svg {
        width: 20px;
        height: 20px;
        margin-right: 5px;
    }
    
    .member-subscription-modal-body {
        padding: 15px;
    }
    
    .member-subscription-description {
        font-size: 12px;
    }
    
    .member-subscription-features {
        padding: 14px;
    }
    
    .member-subscription-features h4 {
        font-size: 14px;
    }
    
    .member-subscription-features-list li {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .member-subscription-price-value {
        font-size: 22px;
    }
    
    .member-subscription-modal-footer {
        padding: 10px 15px;
    }
    
    .member-subscription-submit-btn {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        max-width: 260px;
    }
    
    .payment-method-content,
    .payment-qrcode-content {
        padding: 18px;
        width: 95%;
    }
    
    .payment-method-item {
        padding: 14px;
    }
    
    .payment-method-icon {
        width: 36px;
        height: 36px;
    }
    
    .payment-qrcode-img {
        width: 160px;
        height: 160px;
    }
}

