/* 旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* 导航栏部分 */
header {
    position: fixed;
    z-index: 999;
    width: 100%;
    margin: 0 auto;
    background-color: var(--white-color);
    box-shadow: 0 0 20px var(--primary-shadow-color);
}

header .tip {
    display: none;
    position: absolute;
    justify-content: center;
    align-items: center;
    top: 1px;
    right: -8px;
    background-color: var(--red-color);
    height: 18px;
    width: 18px;
    border-radius: 50%;
    color: var(--white-color);
    font-size: 0.6rem;
    line-height: 1;
}

.headerInner {
    height: 85px;
    width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.headerInner .logoImg {
    display: block;
    width: 178px;
    height: 52px;
    transition: all 0.3s;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 178px 100px;
}

.headerInner .logoImg:hover {
    transform: scale(1.03);
}

/* 根据页面类型设置不同的logo - 每个平台用独立的雪碧图 */
/* Novel页面 - logo.png (包含PC和移动版) */
body.page-novel .headerInner .logoImg {
    background-image: url(/images/HX/logo.png?v1);
}

/* Video页面 - logo2.png (包含PC和移动版) */
body.page-video .headerInner .logoImg {
    background-image: url(/images/HX/logo2.png);
}

/* Comic页面 - logo3.png (包含PC和移动版) */
body.page-comic .headerInner .logoImg {
    background-image: url(/images/HX/logo3.png);
}

.logoAndSearch {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* 全局男女切换 */
.changeBox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.changeBoxInner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    position: relative;
    height: 40px;
    gap: 8px;
}

.changeBoxInner span {
    position: relative;
    font-size: 14px;
    opacity: 0.3;
    padding: 8px;
    transition: all 0.2s;
    text-align: center;
    min-width: 44px;
    z-index: 1;
}

.changeBoxInner span:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: var(--color-999);
    opacity: 0.5;
}

.changeBoxInner span.active {
    font-size: 16px;
    opacity: 1;
    z-index: 2;
}

.changeBoxInner span.change-color-1 {
    color: #111;
}

.changeBoxInner span.change-color-2 {
    color: #111;
}

.changeBoxInner span.change-color-3 {
    color: #111;
}

.changeBox img {
    display: none;
    width: 16px;
    height: 16px;
    animation: rotate 2s linear infinite;
    transition: all 0.3s;
    margin-left: 8px;
}

.changeBox.change-style-1 img {
    background-color: var(--primary-color-2);
}

.changeBox.change-style-2 img {
    background-color: #14b8a6;
}

.changeBox.change-style-3 img {
    background-color: #ef4444;
}

/* 搜索部分 */
.searchBox {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.searchBox:hover {
    transform: scale(1.03);
}

.searchBox .searchText {
    background-color: var(--white-color);
    border-radius: 24px 0 0 24px;
    height: 38px;
    width: 300px;
    font-size: 14px;
    line-height: 1;
    color: var(--color-333);
    padding: 0 14px;
    border: 1px solid var(--primary-color-2);
    border-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.searchBox .searchImg {
    box-sizing: content-box;
    display: inline-block;
    width: 28px;
    height: 28px;
    padding: 4px 12px 4px 10px;
    transform: scale(1);
    background: var(--white-color);
    border-radius: 0 24px 24px 0;
    border: 1px solid var(--primary-color-2);
    
    border-left: 0;
}

.searchBox .searchImg img {
    width: 100%;
    height: 100%;
}

.searchBox .searchImg:hover img {
    transform: scale(1);
}

/* 右上角用户输入 */
.userBox {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: 36px;
    margin-left: 100px;
    color: var(--white-color);
}

.userBox a {
    transition: all 0.3s;
    margin-left: 15px;
    color: var(--color-333);
}

.userBox a:hover {
    transform: scale(1.05);
    color: var(--primary-active-color);
}

/* userAvatarWrap 样式与 userBox a 统一 */
.userBox .userAvatarWrap {
    transition: all 0.3s;
    margin-left: 15px;
    color: var(--color-333);
    position: relative;
    display: inline-block;
    z-index: 1001;
}

.userBox .userAvatarWrap:hover {
    transform: scale(1.05);
    color: var(--primary-active-color);
}

/* userAvatarWrap 内的 a 标签不受 userBox a 影响 */
.userBox .userAvatarWrap a {
    transition: all 0.3s;
    margin-left: 0;
    color: var(--color-333);
}

.userBox .userAvatarWrap a:hover {
    transform: scale(1);
    color: var(--color-333);
}

.userBox img {
    width: 38px;
    height: 38px;
    background: linear-gradient(270deg, var(--primary-color-2), var(--primary-color));
    margin-left: 8px;
    border-radius: 6px;
}

.userBox .userAvatarWrap img {
    margin-left: 0;
}

.userBox span {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 14px;
}

.userLogoutPanel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 100px;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--white-color) 0%, #f8f9fa 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.userAvatarWrap:hover .userLogoutPanel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.userLogoutPanel .logoutBtn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    text-align: center;
    color: var(--color-333);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    margin: 0;
    border-radius: 0;
    background: transparent;
}

.userLogoutPanel .logoutBtn:hover {
    color: var(--primary-color) !important;
    transform: scale(1);
}

/* 导航栏 */
nav {
    height: 50px;
    background: linear-gradient(270deg, var(--primary-color-2), var(--primary-color));
    position: relative;
}

.navInner {
    height: 100%;
    width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* background-image: url(/images/HX/bg-wen.png); */
    background-repeat: no-repeat;
    background-size: 96%;
    background-position: 436px -136px;
}

.navList {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    min-width: 0;
}

.navList a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 8px 10px;
    margin-right: 6px;
    font-size: 16px;
    color: var(--white-color);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.navList a img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    transition: all 0.3s;
}

.navList a.specialLink img {
    width: 36px;
    height: 36px;
}

.navList a:hover,
.navList a.active {
    background: rgba(0, 0, 0, 0.15);
    text-decoration: none;
    border-bottom: 3px solid var(--white-color);
}

.navList a:hover img,
.navList a.active img {
    transform: scale(1.13);
}

/* 导航栏子项样式 */
.navListItem-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}

.navListItem-nav .specialBtnWrap {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 10px 0 10px -5px rgba(0, 0, 0, 0.2);
}

.navListItem-nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    flex: 1 1 0%;
    width: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    cursor: grab;
}

.navListItem-nav ul:active {
    cursor: grabbing;
}

.navListItem-nav ul::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.navListItem-nav ul li {
    display: inline-flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: auto;
}

.navListItem-nav ul li a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 8px 10px;
    margin-left: 6px;
    font-size: 16px;
    color: var(--white-color);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.navListItem-nav ul li a:hover,
.navListItem-nav ul li a.active {
    background: rgba(0, 0, 0, 0.15);
    text-decoration: none;
    border-bottom: 3px solid var(--white-color);
}

.navListItem-promotion {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: -10px 0 10px -5px rgba(0, 0, 0, 0.2);
}

.navListItem-entrance {
    display: none;
}

/* 全部分类按钮及浮动层 */
.specialBtnWrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

/* hover 时 specialBtn 显示选中样式 */
.specialBtnWrap:hover .specialBtn {
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--white-color);
}

.specialBtnWrap:hover .specialBtn img {
    transform: scale(1.13);
}

.specialBtnPanel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 1080px;
    height: 390px;
    background: linear-gradient(135deg, var(--white-color) 0%, #f8f9fa 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* 装饰元素 */
.specialBtnPanel::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-light-color), transparent);
    border-radius: 50%;
    opacity: 0.3;
    animation: panelFloat 3s ease-in-out infinite;
}

.specialBtnPanel::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, transparent, var(--primary-light-color));
    border-radius: 50%;
    opacity: 0.25;
    animation: panelFloat 3s ease-in-out infinite 1.5s;
}

@keyframes panelFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.specialBtnWrap:hover .specialBtnPanel,
.specialBtnWrap.active .specialBtnPanel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.specialBtnWrap.active .specialBtn {
    background-color: rgba(0, 0, 0, .2);
    border-bottom: 3px solid var(--white-color);
}

.specialBtnWrap.active .specialBtn img {
    transform: scale(1.13);
}

.panelContent {
    width: 100%;
    min-height: 100%;
    max-height: 100%;
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: min-content;
    gap: 12px;
    box-sizing: border-box;
}

/* 首頁分類 */
.classifyList {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 10px;
}

.classifyItem {
    width: 100%;
    margin-top: 6px;
    line-height: 1;
    padding: 8px 0;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid var(--color-efefef);
    background: linear-gradient(120deg, var(--primary-light-color-2), var(--primary-light-color));
    color: var(--color-333) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.classifyItem:hover {
    background: linear-gradient(270deg, var(--primary-color-2), var(--primary-color));
    border: 1px solid var(--color-efefef);
    transform: scale(1.03);
    color: var(--white-color) !important;
}

.classifyItem:hover::before {
    opacity: 1;
    transform: translate(-8px, -8px) scale(1.3) rotate(0deg);
    animation: pulseBefore 1s ease-in-out infinite;
}

.classifyItem:hover::after {
    opacity: 1;
    transform: translate(8px, 8px) scale(1.3) rotate(0deg);
    animation: pulseAfter 1s ease-in-out infinite 0.2s;
}

@keyframes pulseBefore {

    0%,
    100% {
        transform: translate(-8px, -8px) scale(1.3) rotate(0deg);
    }

    50% {
        transform: translate(-8px, -8px) scale(1.5) rotate(0deg);
    }
}

@keyframes pulseAfter {

    0%,
    100% {
        transform: translate(8px, 8px) scale(1.3) rotate(0deg);
    }

    50% {
        transform: translate(8px, 8px) scale(1.5) rotate(0deg);
    }
}

.classifyItem span {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
    box-sizing: border-box;
}

.classifyItem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--white-color);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-35px, -35px) scale(0) rotate(-180deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.classifyItem::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: var(--white-color);
    border-radius: 50%;
    opacity: 0;
    transform: translate(35px, 35px) scale(0) rotate(180deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 浮动层中的 classifyItem 样式 - 模仿 .classifyList .classifyItem */
.specialBtnPanel .classifyItem {
    width: 100% !important;
    margin-top: 0 !important;
    height: auto !important;
    padding: 8px 0 !important;
    margin-right: 0 !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    border: 1px solid var(--color-efefef) !important;
    background: linear-gradient(120deg, var(--primary-light-color-2), var(--primary-light-color));
    color: var(--color-333) !important;
    transition: all 0.3s ease !important;
}

.specialBtnPanel .classifyItem:hover {
    background: linear-gradient(120deg, var(--primary-color-2), var(--primary-color)) !important;
    border: 1px solid var(--color-efefef) !important;
    color: var(--white-color) !important;
    transform: scale(1.03) !important;
}

.specialBtnPanel .classifyItem img {
    display: none !important;
}

/* 滚动条美化 */
.panelContent::-webkit-scrollbar {
    width: 6px;
}

.panelContent::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.panelContent::-webkit-scrollbar-thumb {
    background: var(--primary-light-color);
    border-radius: 3px;
    transition: all 0.3s;
}

.panelContent::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 登錄彈窗 */
.mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200001;
}

.accountBox {
    width: 500px;
    margin: 0 auto;
    position: relative;
    top: 20%;
    background-color: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accountTitle {
    padding: 25px 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-333);
    border-bottom: 1px solid #eee;
}

.accountClose {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: transparent;
}

.accountClose::before,
.accountClose::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #999;
    transition: background 0.3s ease;
}

.accountClose::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.accountClose::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.accountClose:hover {
    transform: rotate(90deg);
    background: #f5f5f5;
}

.accountClose:hover::before,
.accountClose:hover::after {
    background: var(--color-333);
}

.accountForm {
    padding: 30px 40px;
}

.accountForm input {
    width: 100%;
    height: 46px;
    font-size: 14px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.accountForm input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.accountForm .formItem {
    margin-bottom: 20px;
}

.accountBtn {
    padding-top: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

.accountBtn button {
    margin-bottom: 20px;
    width: 50%;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    color: var(--white-color);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color-2) 0%, var(--primary-color) 100%);
    border: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.accountBtn button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.accountBtn p {
    padding-bottom: 30px;
    font-size: 14px;
    color: var(--color-666);
}

.accountBtn a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.accountBtn a:hover {
    color: var(--primary-active-color);
    text-decoration: underline;
}

/* 提示 */
.messageBox {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 16px;
    padding: 12px 24px;
    background-color: rgba(0, 0, 0, .5);
    color: var(--white-color);
    z-index: 999999999999999;
}

/* 公用尾部样式 */
footer {
    padding: 20px 0;
    text-align: center;
    background-color: #f3f3f3;
    font-size: 14px;
}

.footerform {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    max-width: 1080px;
    line-height: 1;
}

.copyrightlink ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.copyrightlink li {
    padding: 0 10px;
    font-size: 14px;
}

/* 右下角浮动模块样式 */
.popfqa {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: auto;
    height: auto;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.popfqa-item:not(:last-child) {
    margin-bottom: 12px;
}

.popfqa-item {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--color-333);
}

.popfqa-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

.popfqa-item-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.popfqa-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
    display: block;
}

/* 图标背景色 */
.popfqa-app .popfqa-icon,
.popfqa-feedback .popfqa-icon,
.popfqa-top .popfqa-icon {
    background: linear-gradient(120deg, var(--color-333), var(--color-333));
    border-radius: 4px;
    transition: all 0.3s;
}

.popfqa-app:hover .popfqa-icon,
.popfqa-feedback:hover .popfqa-icon,
.popfqa-top:hover .popfqa-icon {
    background: linear-gradient(120deg, var(--primary-color-2), var(--primary-color));
}

.popfqa-text {
    font-size: 12px;
    line-height: 1;
    color: inherit;
    transition: color 0.3s;
}

/* App二维码悬浮显示 */
.popfqa-app {
    position: relative;
}

.popfqa-qrcode {
    position: absolute;
    right: 70px;
    bottom: 0;
    width: 200px;
    padding: 15px;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qrcode-item {
    text-align: center;
}

.qrcode-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    margin-bottom: 8px;
    vertical-align: middle;
}

.qrcode-img {
    width: 100%;
    height: auto;
    display: block;
    /* margin-bottom: 6px; */
}

.qrcode-item p {
    font-size: 12px;
    color: var(--color-666);
    margin: 0;
}

.popfqa-app:hover .popfqa-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 回到顶部按钮默认隐藏，滚动后显示 */
.popfqa-top {
    opacity: 0;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    pointer-events: none;
    transform: scale(0);
    transition: opacity 0.3s, height 0.3s, width 0.3s, transform 0.3s;
}

.popfqa-top.show {
    opacity: 1;
    height: 60px !important;
    width: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto;
    transform: scale(1);
}

/* 移动端响应式 */
@media screen and (max-width: 1080px) {
    .popfqa {
        bottom: 80px;
        right: 15px;
    }

    .popfqa-item:not(:last-child) {
        margin-bottom: 10px;
    }

    .popfqa-item {
        width: 50px;
        height: 50px;
    }

    .popfqa-top {
        height: 0 !important;
        width: 0 !important;
    }

    .popfqa-top.show {
        height: 50px !important;
        width: 50px !important;
    }

    .popfqa-icon {
        width: 24px;
        height: 24px;
        /* margin-bottom: 0; */
    }

    .popfqa-app .popfqa-icon,
    .popfqa-feedback .popfqa-icon,
    .popfqa-top .popfqa-icon {
        border-radius: 0;
        /* 移动端只有图标没有hover，常态就是primary颜色 */
        background: linear-gradient(120deg, var(--primary-color-2), var(--primary-color));
    }

    .popfqa-text {
        font-size: 12px;
        color: var(--primary-color);
    }

    /* 移动端禁用 hover 显示二维码 */
    .popfqa-app:hover .popfqa-qrcode {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* 移动端使用 active 类显示二维码 */
    .popfqa-app.active .popfqa-qrcode {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
    }

    .popfqa-qrcode {
        right: 60px;
        width: 160px;
        padding: 12px;
        gap: 12px;
    }

    .qrcode-icon {
        width: 20px;
        height: 20px;
    }

    .qrcode-item p {
        font-size: 11px;
    }
}

/* 广告弹窗样式 */
.adPopup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.adPopup.show {
    display: flex;
}

body.adPopup-open {
    overflow: hidden;
}

.adPopup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.adPopup-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.adPopup-bg {
    position: relative;
    width: 100%;
    z-index: 0;
}

.adPopup-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.adPopup-bg img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 100%;
    object-fit: cover;
}

.adPopup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    /* background-color: rgba(0, 0, 0, 0.5); */
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
}

.adPopup-close:hover {
    /* background-color: rgba(0, 0, 0, 0.7); */
    transform: scale(1.1);
}

.adPopup-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 20px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.adPopup-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--white-color);
    margin: 0 0 12px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.adPopup-text {
    font-size: 14px;
    color: var(--white-color);
    margin: 0 0 20px 0;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.adPopup-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white-color) !important;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.adPopup-btn:hover {
    color: var(--white-color) !important;
    background-color: var(--primary-active-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* 移动端广告弹窗样式 */
@media screen and (max-width: 1080px) {
    .adPopup {
        padding: 15px;
    }

    .adPopup-content {
        max-width: 100%;
        max-height: 80vh;
    }

    .adPopup-body {
        padding: 25px 15px;
    }

    .adPopup-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .adPopup-text {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .adPopup-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* VIP广告弹窗样式 */
.vipPopup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.vipPopup.show {
    display: flex;
}

.vipPopup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.vipPopup-content {
    position: relative;
    width: 100%;
    max-width: 750px;
    border-radius: 16px;
    overflow: hidden;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); */
    z-index: 1;
}

.vipPopup-bg {
    position: relative;
    width: 100%;
    z-index: 0;
}

.vipPopup-bg img {
    width: 100%;
    height: auto;
    display: block;
}

.vipPopup-body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 172px 120px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.vipPopup-title {
    font-size: 24px;
    line-height: 42px;
    font-weight: bold;
    color: #0e0d08;
    margin: 0 150px 45px 0;
    text-align: left;
    text-align: center;
}

.vipPopup-title em {
    font-size: 36px;
    padding: 0 8px;
    font-weight: bold;
    color: #f91b1b;
}

.vipPopup-title em.size2 {
    font-size: 32px;
    padding: 0 6px;
    font-weight: bold;
    color: #f91b1b;
}

.vipPopup-title i {
    text-decoration: line-through;
}

.vipPopup-desc {
    font-size: 18px;
    line-height: 1.5;
    color: #0e0d08;
    margin: 0 150px 68px 0;
    text-align: center;
}

.vipPopup-desc em {
    font-weight: bold;
}

.vipPopup-desc i {
    text-decoration: line-through;
    font-style: normal;
}

.vipPopup-features {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 70px;
    padding: 0 45px;
}

.vipPopup-feature-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%); */
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vipPopup-feature-item .feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
    object-fit: contain;
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.03);
        opacity: 0.9;
    }
}

.vipPopup-feature-item .feature-text {
    font-size: 17px;
    color: #eae4cc;
    font-weight: 500;
    text-align: center;
}

.vipPopup-btns {
    display: flex;
    gap: 25px;
    padding: 0 40px;
}

.vipPopup-btn {
    flex: 1;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fdbd57 0%, #fb7633 100%);
    color: var(--white-color) !important;
    border-radius: 35px;
    font-size: 20px;
    line-height: 1;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(253, 189, 87, 0.6), 0 0 40px rgba(251, 118, 51, 0.4);
    animation: breathe 2s ease-in-out infinite;
}

.vipPopup-close {
    position: absolute;
    top: 11px;
    right: 54px;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
}

.vipPopup-close::before,
.vipPopup-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background-color: var(--white-color);
    transition: all 0.3s;
}

.vipPopup-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.vipPopup-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.vipPopup-close:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1) rotate(90deg);
}

/* 移动端VIP广告弹窗样式 */
@media screen and (max-width: 1080px) {
    .vipPopup {
        padding: 0;
    }

    .vipPopup-content {
        width: 375px;
        transform: scale(1.2);
    }

    .vipPopup-body {
        padding: 80px 60px 0;
    }

    .vipPopup-title {
        font-size: 13px;
        line-height: 24px;
        margin-bottom: 22px;
        margin-right: 73px;
    }

    .vipPopup-title em {
        font-size: 17px;
        padding: 0 4px;
    }

    .vipPopup-title em.size2 {
        font-size: 15px;
        padding: 0 3px;
        font-weight: bold;
        color: #f91b1b;
    }

    .vipPopup-desc {
        font-size: 11px;
        margin-bottom: 13px;
        margin-right: 73px;
    }

    .vipPopup-features {
        gap: 8px;
        margin-bottom: 29px;
        padding: 0 25px;
    }


    .vipPopup-feature-item .feature-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 4px;
    }

    .vipPopup-feature-item .feature-text {
        font-size: 12px;
    }

    .vipPopup-btns {
        gap: 15px;
        padding: 0 20px;
    }

    .vipPopup-btn {
        font-size: 12px;
        line-height: 34px;
        height: 36px;
        border-radius: 18px;
    }

    .vipPopup-close {
        top: 0;
        right: 35px;
        width: 28px;
        height: 28px;
        font-size: 22px;
    }
}

/* 版权声明等页面样式复用 */
.artbox {
    margin: 0 auto;
    padding: 20px;
    max-width: 1200px;
    text-align: center;
}

.artbox h1 {
    display: inline-block;
    padding: 0 0 10px 0;
    border-bottom: 2px solid #999;
    font-size: 20px;
}

.artcont {
    text-align: left;
}

.artcont h2 {
    font-size: 16px;
    font-weight: bold;
    color: #f60;
    padding: 25px 0 0 0;
    border-top: 1px dashed #ccc;
    margin-top: 25px;
}

.artcont h2:first-child {
    border-top: 0;
    margin-top: 0;
}

.artcont p {
    font-size: 14px;
    line-height: 200%;
    padding: 10px 0 0 0;
}

/* 翻頁（PC端默認顯示） */
.page {
    display: block;
    text-align: center;
    padding: 20px 0 5px;
}

.page ul {
    display: block;
    font-size: 0;
}

.page ul li {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    margin: 0px;
    border-radius: 0px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    border-left: 0;
    background-color: #fff;
    font-size: 14px;
    line-height: 36px;
}

.page ul li:first-child {
    border-left: 1px solid #eee;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.page ul li:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.page ul li a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    color: #666;
}

.page ul li span {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.page ul li a:hover {
    background-color: #f3f3f3;
}

.page ul li.current {
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}

/* 加載更多（PC端默認隱藏） */
.loadmore {
    display: none;
    padding: 40px 0;
    color: #666;
    margin-bottom: 0px;
}

.loadmore button {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    padding: 0 20px;
    height: 40px;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.loadmore button:hover {
    opacity: 0.9;
}

.loadmore button:active {
    transform: scale(0.98);
}

/* 加載動畫 */
.loadmoreloading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 0;
}

.loadmoreloading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: loadingBounce 1.4s infinite ease-in-out both;
}

.loadmoreloading span:nth-child(1) {
    animation-delay: -0.32s;
}

.loadmoreloading span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* 媒體查詢 */
@media screen and (max-width: 1080px) {

    /* 导航部分 */
    .navListItem-promotion {
        display: none;
    }

    header {
        background-color: transparent;
        /* position: relative; */
        height: 100px;
        box-shadow: none;
    }

    nav {
        height: 50px;
        background: var(--white-color);
    }

    .headerInner {
        background-color: var(--white-color);
        width: 100%;
        height: 50px;
        padding: 0 12px;
        z-index: 9999;
        border-bottom: 0;
    }

    .navInner {
        width: 100%;
        background-size: 159%;
        background-position: 195px -87px;
    }

    .logoAndSearch {
        width: 100%;
        margin-right: 0;
        justify-content: space-between;
        padding-right: 122px;
    }

    .userAvatarWrap:hover .userLogoutPanel {
        display: none;
    }

    .headerInner .searchBox {
        position: absolute;
        top: 56px;
        right: 12px;
        width: calc(100% - 24px);
        z-index: 999999;
        height: 34px;
        border-radius: 5px;
        background: #f5f5f5;
    }
    .searchBox .searchImg{
        padding: 3px 8px 3px 8px;
        border-radius: 0;
        background: transparent;
        border: 0;
    }
    .navListItem-nav .specialBtnWrap{
        box-shadow: none;
        position: absolute;
        top: -50px;
        right: 0;
    }
    .searchBox .searchText{
        width: auto;
        height: 34px;
        border-radius: 0;
        border: 0;
        background: transparent;
    }
    /* .searchBox .searchText {
        display: none;
    } */

    .searchBox:hover {
        transform: scale(1);
    }

    /* .searchBox .searchImg {
        border: 0;
        border-radius: 6px;
        padding: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    } */

    .searchBox .searchImg img {
        width: 26px;
        height: 26px;
    }

    .changeBox {
        position: fixed;
        top: 3px;
        left: 50%;
        transform: translateX(-50%);
        padding: 0;
        margin: 0;
    }

    .changeBox img {
        width: 14px;
        height: 14px;
        margin-left: 4px;
    }
    .changeBoxInner span{
        font-size: 13px;
    }
    .changeBoxInner span.active {
        font-size: 15px;
    }

    .headerInner .logoImg {
        width: 40px;
        height: 40px;
        background-position: 0 bottom;
    }

    .navListItem-nav ul li a {
        font-size: 14px;
    }

    /* 重置所有 nav 的 hover 效果 */
    .navList a:hover {
        background: transparent !important;
        border-bottom: 3px solid transparent !important;
    }

    .navList a:hover img {
        transform: scale(1) !important;
    }
    .navListItem-nav ul{
        display: none;
    }
    .navListItem-nav ul li a:hover {
        background: transparent !important;
        border-bottom: 3px solid transparent !important;
    }

    .navListItem-nav ul li a:hover img {
        transform: scale(1) !important;
    }

    /* 移动端禁用 hover 效果，但保持按钮可见 */
    .specialBtnWrap:hover .specialBtn {
        /* 不改变背景色，保持按钮可见 */
        border-bottom: 3px solid transparent !important;
    }

    .specialBtnWrap:hover .specialBtn img {
        transform: scale(1) !important;
    }

    .specialBtnWrap:hover .specialBtnPanel {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .navListItem-entrance {
        display: flex;
        align-items: center;
        justify-content: space-around;
        width: 100%;
        height: 55px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white-color);
        z-index: 9999;
        border-top: 1px solid var(--color-efefef);
    }

    .navListItem-entrance a {
        width: 25%;
        margin: 0;
        padding: 0;
        color: var(--color-666);
        font-size: 12px;
        border: 1px solid transparent;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .navListItem-entrance a img {
        padding: 4px;
        background-color: var(--color-999);
        border-radius: 4px;
        margin-right: 0;
        margin-bottom: 2px;
        transition: background-color 0.3s;
    }

    .navListItem-entrance a:hover {
        background-color: transparent;
        border: 1px solid transparent;
    }

    .navListItem-entrance a.active {
        color: var(--primary-color);
        background: var(--color-efefef);
        border: 1px solid transparent;
    }

    .navListItem-entrance a.active img {
        background: linear-gradient(120deg, var(--primary-color-2), var(--primary-color));
        ;
    }

    .navListItem-entrance a:hover img,
    .navListItem-entrance a.active img {
        transform: scale(1);
    }

    /* 移动端浮动层样式 - 全屏显示，但不遮挡底部导航 */
    .specialBtnPanel {
        position: fixed !important;
        top: 100px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 55px !important;
        width: 100vw !important;
        height: calc(100vh - 100px - 55px) !important;
        max-height: calc(100vh - 100px - 55px) !important;
        border-radius: 0 !important;
        z-index: 10001 !important;
        background: linear-gradient(135deg, var(--white-color) 0%, #f8f9fa 100%) !important;
        transform: translateY(0) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        overflow: visible !important;
    }

    /* 移动端禁用 hover 触发，只使用 active */
    .specialBtnWrap:hover .specialBtnPanel {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* 移动端 active 状态显示面板 */
    .specialBtnWrap.active .specialBtnPanel {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .navList .specialBtnWrap a {
        margin-right: 0;
    }

    .navList .specialBtnWrap a {
        background: transparent;
        flex-direction: row-reverse;
    }

    .navList .specialBtnWrap .specialBtn {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin-right: 12px;
        width: 38px;
        height: 38px;
        padding-top: 3px;
        background: linear-gradient(270deg, var(--primary-color), var(--primary-color-2))!important;
        border: 0!important;
        border-radius: 5px;
    }

    .navList .specialBtnWrap .specialBtn img {
        margin: 0;
        width: 14px;
        height: 14px;
    }

    .navList .specialBtnWrap .specialBtn em {
        /* display: none; */
        font-size: 10px;
        margin-right: 0;
        margin-left: 0;
        color: #fff;
    }

    .panelContent {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
        height: 100%;
        overflow-y: auto;
        box-sizing: border-box;
    }

    header .tip {
        margin-left: 20px;
        left: 50%;
        right: 0;
        transform: translateX(-50%);
        top: 0;
    }

    .userBox,
    .userBox-border .userItem,
    .userBox-border .userItem:hover {
        /* height: 32px; */
        /* padding: 0 10px 0 10px; */
        font-size: 14px;
        background-color: var(--white-color);
        color: var(--primary-color) !important;
        margin-left: 0;
    }

    .userBox {
        display: none;
        min-width: 32px;
        justify-content: flex-end;
    }

    .userBox a,
    .userBox .userAvatarWrap {
        margin-left: 12px;
    }

    /* 移動端隱藏我的書架 */
    .userBookshelf {
        display: none !important;
    }

    .userBox img {
        /* display: none; */
        width: 32px;
        height: 32px;
        margin-left: 0;
    }

    .userBox span em {
        display: none;
    }

    .userBox-border {
        padding: 0;
    }

    .userBox-border .userName {
        display: none;
    }

    .userBox-border .userItem img {
        display: none;
    }

    /* footer - 移動端垂直佈局 */
    footer {
        display: block;
        padding: 20px 0;
        margin-bottom: 55px;
        /* footer 和 main 是平級，需要為底部導航欄留空間 */
    }

    .footerform {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .footerform p {
        order: 2;
        /* 版權信息放在下面 */
    }

    .copyrightlink {
        order: 1;
        /* 鏈接放在上面 */
    }

    .copyrightlink ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .copyrightlink li {
        padding: 5px 8px;
        font-size: 12px;
    }

    /* 登錄部分 */
    .accountBox {
        width: 95%;
        border-radius: 12px;
        top: 15%;
    }

    .accountTitle {
        padding: 20px 0;
        font-size: 18px;
    }

    .accountClose {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
    }

    .accountClose::before,
    .accountClose::after {
        width: 16px;
    }

    .accountForm {
        padding: 25px 20px;
    }

    .accountForm .formItem {
        margin-bottom: 18px;
    }

    .accountForm input {
        height: 44px;
        border-radius: 8px;
        padding: 0 15px;
        font-size: 14px;
    }

    .accountBtn {
        padding-top: 8px;
    }

    .accountBtn button {
        height: 44px;
        margin-bottom: 18px;
        font-size: 15px;
    }

    .accountBtn p {
        padding-bottom: 25px;
        font-size: 13px;
    }

    .classifyItem:hover::before {
        display: none;
    }

    .classifyItem:hover::after {
        opacity: 1;
        display: none;
    }

    /* 登錄框 */
    .dialog_box {
        width: 90%;
    }

    .dialog_form {
        padding: 0 20px;
    }

    .dialog_btn p a {
        padding: 10px;
    }

    /* 翻頁 - 移動端顯示加載更多，隱藏分頁 */
    .page {
        display: none !important;
    }

    .loadmore {
        display: block !important;
    }
}

/* 反饋
彈窗樣式 */
.feedbackBox {
    width: 700px;
    max-height: 90vh;
    margin: 0 auto;
    position: relative;
    top: 5%;
    background-color: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feedbackTitle {
    padding: 25px 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-333);
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.feedbackClose {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: transparent;
    z-index: 10;
}

.feedbackClose::before,
.feedbackClose::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #999;
    transition: background 0.3s ease;
}

.feedbackClose::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.feedbackClose::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.feedbackClose:hover {
    transform: rotate(90deg);
    background: #f5f5f5;
}

.feedbackClose:hover::before,
.feedbackClose:hover::after {
    background: var(--color-333);
}

/* 反饋歷史列表 */
.feedbackHistory {
    border-bottom: 1px solid #eee;
    max-height: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.historyTitle {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-333);
    padding: 20px 30px 15px;
    flex-shrink: 0;
}

.historyList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 30px 20px;
    overflow-y: auto;
    flex: 1;
}

.historyItem {
    padding: 12px 15px;
    background: linear-gradient(120deg, #f8f9fa, #ffffff);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s;
}

.historyItem:hover {
    border-color: var(--primary-light-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.historyHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.historyType {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
}

.historyStatus {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.status-unread {
    background-color: #fff3cd;
    color: #856404;
}

.status-read {
    background-color: #d1ecf1;
    color: #0c5460;
}

.historyContent {
    font-size: 14px;
    color: var(--color-666);
    line-height: 1.6;
}

.historyReply {
    margin-top: 10px;
    padding: 10px;
    background-color: #f0f8ff;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}

.historyReply strong {
    font-size: 13px;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.historyReply p {
    font-size: 13px;
    color: var(--color-666);
    line-height: 1.6;
    margin: 0;
}

/* 反饋表單 */
.feedbackForm {
    padding: 20px 30px 30px;
    overflow-y: auto;
    flex: 1;
}

.formTitle {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-333);
    margin-bottom: 15px;
}

.formItem {
    margin-bottom: 20px;
}

.formLabel {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-333);
    margin-bottom: 8px;
}

.formTextarea {
    width: 100%;
    min-height: 100px;
    font-size: 14px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
}

.formTextarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.formRadioGroup {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radioItem {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.radioItem:hover {
    border-color: var(--primary-light-color);
    background-color: #fafafa;
}

.radioItem input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radioItem span {
    font-size: 14px;
    color: var(--color-333);
}

.radioItem input[type="radio"]:checked+span {
    font-weight: 500;
    color: var(--primary-color);
}

.feedbackSubmitBtn {
    width: 50%;
    margin: 0 auto;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    color: var(--white-color);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color-2) 0%, var(--primary-color) 100%);
    border: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
}

.feedbackSubmitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feedbackTips {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.feedbackTips p {
    font-size: 13px;
    color: var(--color-666);
    line-height: 1.8;
    margin: 5px 0;
}

.feedbackTips a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.feedbackTips a:hover {
    color: var(--primary-active-color);
    text-decoration: underline;
}

/* 滾動條美化 */
.historyList::-webkit-scrollbar,
.feedbackForm::-webkit-scrollbar {
    width: 6px;
}

.historyList::-webkit-scrollbar-track,
.feedbackForm::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.historyList::-webkit-scrollbar-thumb,
.feedbackForm::-webkit-scrollbar-thumb {
    background: var(--primary-light-color);
    border-radius: 3px;
    transition: all 0.3s;
}

.historyList::-webkit-scrollbar-thumb:hover,
.feedbackForm::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 移動端反饋彈窗樣式 */
@media screen and (max-width: 1080px) {
    .feedbackBox {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
        top: 3%;
    }

    .feedbackTitle {
        padding: 20px 0;
        font-size: 18px;
    }

    .feedbackClose {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
    }

    .feedbackClose::before,
    .feedbackClose::after {
        width: 16px;
    }

    .feedbackHistory {
        max-height: 200px;
    }

    .historyTitle {
        font-size: 15px;
        padding: 15px 20px 12px;
    }

    .historyList {
        padding: 0 20px 15px;
    }

    .historyItem {
        padding: 10px 12px;
    }

    .historyType {
        font-size: 13px;
    }

    .historyStatus {
        font-size: 11px;
        padding: 2px 8px;
    }

    .historyContent {
        font-size: 13px;
    }

    .historyReply {
        padding: 8px;
    }

    .historyReply strong {
        font-size: 12px;
    }

    .historyReply p {
        font-size: 12px;
    }

    .feedbackForm {
        padding: 15px 20px 25px;
    }

    .formTitle {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .formItem {
        margin-bottom: 18px;
    }

    .formLabel {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .formTextarea {
        min-height: 80px;
        font-size: 13px;
        padding: 10px 12px;
    }

    .formRadioGroup {
        gap: 8px;
    }

    .radioItem {
        padding: 8px 12px;
    }

    .radioItem input[type="radio"] {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }

    .radioItem span {
        font-size: 13px;
    }

    .feedbackSubmitBtn {
        height: 44px;
        font-size: 15px;
        margin-bottom: 12px;
    }

    .feedbackTips {
        padding: 12px;
    }

    .feedbackTips p {
        font-size: 12px;
        line-height: 1.6;
    }
}