

.content {
    min-height: calc(100vh - 140px);
    background: #ffffff;
}

.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: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.toast-notification.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.toast-notification.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.toast-notification.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.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: #f5f5f5;
}
.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: #2196F3;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    color: #333;
    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: #f5f5f5;
    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 #e5e5e5;
}
.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: #333;
    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: #ffffff;
    border-radius: 2px;
    transition: background 0.2s;
    flex-shrink: 0;
    border: 1px solid #e5e5e5;
}
.banner-more:hover {
    background: #f5f5f5;
}
.banner-more svg {
    width: 20px;
    height: 20px;
}
.banner-more-text {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.banner-more-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #2196F3;
    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: white;
    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 #e5e5e5;
}
.announcement-modal-header {
    background: #ffffff;
    color: #333;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e5e5;
    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: #333;
}
.announcement-close {
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    line-height: 1;
}
.announcement-close:hover {
    color: #333;
}
.announcement-modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
    background: #ffffff;
}
.announcement-modal-body::-webkit-scrollbar {
    width: 4px;
}
.announcement-modal-body::-webkit-scrollbar-track {
    background: #f5f5f5;
}
.announcement-modal-body::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 2px;
}
.announcement-modal-body::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}
.announcement-item {
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 2px;
    margin-bottom: 12px;
    border-left: 3px solid #2196F3;
    transition: background 0.2s;
    border: 1px solid #e5e5e5;
}
.announcement-item:hover {
    background: #f8f8f8;
}
.announcement-item:last-child {
    margin-bottom: 0;
}
.announcement-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 400;
    padding: 3px 8px;
    background: #f5f5f5;
    border-radius: 2px;
}
.announcement-time::before {
    content: '📅';
    font-size: 11px;
}
.announcement-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}
.announcement-content {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    padding: 10px 14px;
    background: #f8f8f8;
    border-radius: 2px;
    border: 1px solid #e5e5e5;
}

.announcement-empty {
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid #e5e5e5;
}
.announcement-empty-icon {
    font-size: 56px;
    margin-bottom: 12px;
    opacity: 0.4;
}
.announcement-empty-text {
    font-size: 13px;
    color: #999;
    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: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}
.material-main-nav-btn:hover {
    border-color: #2196F3;
    color: #2196F3;
}
.material-main-nav-btn.active {
    background: #2196F3;
    border-color: #2196F3;
    color: white;
}

.material-sub-nav-container {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: #f8f8f8;
    border-radius: 2px;
    border: 1px solid #e5e5e5;
}
.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: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    padding: 8px 10px;
    min-width: 230px;
    transition: border-color 0.2s;
}
.material-search-box:focus-within {
    border-color: #2196F3;
}
.material-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #333;
    flex: 1;
    min-width: 0;
}
.material-search-input::placeholder {
    color: #999;
}
.material-search-icon {
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
}
.material-sub-nav-btn {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    font-weight: 400;
}
.material-sub-nav-btn:hover {
    background: #f0f7ff;
    border-color: #2196F3;
    color: #2196F3;
}
.material-sub-nav-btn.active {
    background: #2196F3;
    border-color: #2196F3;
    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: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 400;
    white-space: nowrap;
}
.material-favorite-btn:hover {
    background: #f0f7ff;
    border-color: #2196F3;
    color: #2196F3;
}
.material-favorite-btn.active {
    background: #2196F3;
    border-color: #2196F3;
    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: #f0f0f0;
    border-radius: 2px;
    border: 1px solid #e5e5e5;
}
.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: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    font-weight: 400;
}
.material-grandson-nav-btn:hover {
    background: #f0f7ff;
    border-color: #2196F3;
    color: #2196F3;
}
.material-grandson-nav-btn.active {
    background: #2196F3;
    border-color: #2196F3;
    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;
    animation: none;
}
.material-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.material-card {
    background: #ffffff;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
    border: 1px solid #e5e5e5;
}
.material-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-color: #2196F3;
}
.material-card-image {
    width: 100%;
    aspect-ratio: 1920 / 1080;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #d0d0d0;
    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: #2196F3;
    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: #333;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.material-card-views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #999;
    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: white;
    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 #e5e5e5;
}
.material-modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.material-modal-header h3 {
    color: #333 !important;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}
.material-modal-close {
    font-size: 24px;
    color: #999;
    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: #333;
}
.material-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}
.material-modal-body::-webkit-scrollbar {
    width: 4px;
}
.material-modal-body::-webkit-scrollbar-track {
    background: #f5f5f5;
}
.material-modal-body::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 2px;
}
.material-modal-body::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

.material-modal-image-container {
    width: 100%;
    aspect-ratio: 1920 / 1080;
    background: #ffffff;
    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: #ffffff;
    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 #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}
.material-modal-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    flex: 1;
}
.material-modal-download {
    background: #2196F3;
    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: #1976D2;
}
.material-modal-download svg {
    width: 16px;
    height: 16px;
}

.material-modal-favorite {
    background: #ffffff;
    color: #666;
    border: 1px solid #e5e5e5;
    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: #f0f7ff;
    border-color: #2196F3;
    color: #2196F3;
}
.material-modal-favorite svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.material-modal-favorite.favorited {
    background: #2196F3;
    border-color: #2196F3;
    color: white;
}
.material-modal-favorite.favorited:hover {
    background: #1976D2;
    border-color: #1976D2;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.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: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 400;
    min-width: 36px;
    text-align: center;
}
.pagination-btn:hover:not(.disabled) {
    background: #f0f7ff;
    border-color: #2196F3;
    color: #2196F3;
}
.pagination-btn.active {
    background: #2196F3;
    border-color: #2196F3;
    color: white;
}
.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f8f8;
}
.pagination-info {
    padding: 6px 14px;
    color: #999;
    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: #fff;
    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: white;
    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 #e5e5e5;
}
.payment-method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e5e5;
}
.payment-method-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
}
.payment-method-close {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 2px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: background 0.2s;
}
.payment-method-close:hover {
    background: #e5e5e5;
    color: #333;
}
.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 #e5e5e5;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
}
.payment-method-item:hover {
    border-color: #2196F3;
    background: #f0f7ff;
}
.payment-method-item.active {
    border-color: #2196F3;
    background: #e3f2fd;
}
.payment-method-icon {
    margin-right: 14px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid #e5e5e5;
}
.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: #333;
    margin-bottom: 3px;
}
.payment-method-desc {
    font-size: 13px;
    color: #666;
}
.payment-method-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    position: relative;
    margin-left: 10px;
}
.payment-method-item.active .payment-method-radio {
    border-color: #2196F3;
}
.payment-method-item.active .payment-method-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #2196F3;
    border-radius: 50%;
}
.payment-method-price {
    text-align: center;
    margin-bottom: 20px;
    padding: 14px;
    background: #f8f8f8;
    border-radius: 2px;
}
.payment-method-price-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.payment-method-price-value {
    font-size: 28px;
    font-weight: 600;
    color: #f44336;
}
.payment-method-submit {
    width: 100%;
    padding: 12px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.payment-method-submit:hover {
    background: #1976D2;
}
.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: white;
    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 #e5e5e5;
}
.payment-qrcode-header {
    margin-bottom: 20px;
}
.payment-qrcode-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}
.payment-qrcode-subtitle {
    font-size: 13px;
    color: #666;
}
.payment-qrcode-box {
    background: #f8f8f8;
    border-radius: 2px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.payment-qrcode-img {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 2px;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #e5e5e5;
}
.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: white;
    border-radius: 2px;
    margin-bottom: 12px;
}
.payment-qrcode-loading::after {
    content: '';
    width: 36px;
    height: 36px;
    border: 3px solid #e5e5e5;
    border-top-color: #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.payment-qrcode-tips {
    font-size: 13px;
    color: #666;
    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: #d1fae5;
    color: #065f46;
}
.payment-qrcode-status.error {
    background: #fee2e2;
    color: #991b1b;
}
.payment-qrcode-close {
    width: 100%;
    padding: 10px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s;
}
.payment-qrcode-close:hover {
    background: #e5e5e5;
    color: #333;
}

.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: white;
    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 #e5e5e5;
}
.member-subscription-modal-header {
    background: #FFA500;
    color: #fff;
    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: #fff;
    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: #ffffff;
}
.member-subscription-modal-body::-webkit-scrollbar {
    width: 4px;
}
.member-subscription-modal-body::-webkit-scrollbar-track {
    background: #f5f5f5;
}
.member-subscription-modal-body::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 2px;
}
.member-subscription-modal-body::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}
.member-subscription-description {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
}
.member-subscription-features {
    background: #f8f8f8;
    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: #333;
    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: #666;
    line-height: 1.6;
    border-bottom: 1px solid #e5e5e5;
}
.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: #999;
    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: #999;
    margin-left: 3px;
}
.member-subscription-modal-footer {
    padding: 18px 25px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
}
.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 #e5e5e5;
    }
    .material-main-nav-btn:hover {
        border-color: #2196F3;
        color: #2196F3;
    }
    .material-main-nav-btn.active {
        background: #2196F3;
        border-color: #2196F3;
        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;
    }
}

@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;
    }
}
