/* 验证覆盖层样式 */
.verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.verification-loading {
    text-align: center;
    color: white;
}

.verification-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

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

.verification-text {
    font-size: 18px;
    margin-top: 10px;
}

.verification-error {
    text-align: center;
    color: white;
}

.verification-error-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ff5555;
}

.verification-error-message {
    font-size: 18px;
}

body {
    font-family: Arial, sans-serif;
    background-image: radial-gradient(circle at 91% 11%, hsla(66, 100%, 88%, 0.66) 4.038772213247173%, transparent 37.2265767974114%), radial-gradient(circle at 66% 37%, hsla(16, 100%, 88%, 1) 0%, transparent 63.33640956108327%), radial-gradient(circle at 36% 87%, hsla(321, 100%, 88%, 1) 12.107536057085522%, transparent 63.33640956108327%);
    background-blend-mode: normal, normal, normal;

    /* background-image: url('hx_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */

    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: auto;
    flex-direction: column;
    padding: 20px 10px;
    box-sizing: border-box;
}

/* body::after{
    content: '';
    width: 100%;
    height: 160vh;
    background: red;
    position: absolute;
    z-index: -1;
} */

.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; /* 增加间距 */
    max-width: 800px;
    width: 100%;
    justify-content: center;
    padding: 0 10px;
    box-sizing: border-box;
}

#device_simulator {
    width: 770px;
    transform: translateX(-220px);

    z-index: 0;
}

.card {
    background: white;
    margin-left: 0;
    border-radius: var(--card-border-radius);
    border: 2px dotted pink;
    border-color: var(--card-border-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
    width: 100%;
    aspect-ratio: 1/1; /* 保持正方形 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    max-width: 150px; /* 限制最大宽度 */
    margin: 0 auto; /* 居中显示 */
    will-change: box-shadow; /* 优化动画性能 */
}

/* 发光效果开启时的卡片动画 */
[data-glow-enabled="1"] .card {
    animation: card_ani 8s ease-in-out infinite;
}

/* 发光效果关闭时的卡片阴影 */
[data-glow-enabled="0"] .card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



@keyframes card_ani {
    0%, 100% {
        box-shadow: 0px 0px 0px 0px var(--card-shadow-color);
    }

    50% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) var(--card-shadow-color);
    }
}

/* 五颜六色主题特殊动画 */
[data-theme="colorful"][data-glow-enabled="1"] .card {
    animation: card_ani_colorful 10s ease-in-out infinite;
    will-change: box-shadow;
}

@keyframes card_ani_colorful {
    0%, 100% {
        box-shadow: 0px 0px 0px 0px #ff6b6b;
    }
    20% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) #ff6b6b;
    }
    40% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) #4ecdc4;
    }
    60% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) #ffbe0b;
    }
    80% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) #8a2be2;
    }
}

/* 双拼色主题特殊动画 - 紫粉 */
[data-theme="duotone"][data-glow-enabled="1"] .card {
    animation: card_ani_duotone 8s ease-in-out infinite;
    will-change: box-shadow;
}

@keyframes card_ani_duotone {
    0%, 100% {
        box-shadow: 0px 0px 0px 0px var(--theme-modal-glow-color-1, #6c5ce7);
    }
    25% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) var(--theme-modal-glow-color-1, #6c5ce7);
    }
    50% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) var(--theme-modal-glow-color-2, #fd79a8);
    }
    75% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) var(--theme-modal-glow-color-1, #6c5ce7);
    }
}

/* 双拼色主题特殊动画 - 蓝绿 */
[data-theme="duotone-blue-green"][data-glow-enabled="1"] .card {
    animation: card_ani_duotone_blue_green 8s ease-in-out infinite;
    will-change: box-shadow;
}

@keyframes card_ani_duotone_blue_green {
    0%, 100% {
        box-shadow: 0px 0px 0px 0px var(--theme-modal-glow-color-1, #0984e3);
    }
    25% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) var(--theme-modal-glow-color-1, #0984e3);
    }
    50% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) var(--theme-modal-glow-color-2, #00b894);
    }
    75% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) var(--theme-modal-glow-color-1, #0984e3);
    }
}

/* 双拼色主题特殊动画 - 橙红 */
[data-theme="duotone-orange-red"][data-glow-enabled="1"] .card {
    animation: card_ani_duotone_orange_red 8s ease-in-out infinite;
    will-change: box-shadow;
}

@keyframes card_ani_duotone_orange_red {
    0%, 100% {
        box-shadow: 0px 0px 0px 0px var(--theme-modal-glow-color-1, #e17055);
    }
    25% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) var(--theme-modal-glow-color-1, #e17055);
    }
    50% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) var(--theme-modal-glow-color-2, #d63031);
    }
    75% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) var(--theme-modal-glow-color-1, #e17055);
    }
}

/* 双拼色主题特殊动画 - 黄紫 */
[data-theme="duotone-yellow-purple"][data-glow-enabled="1"] .card {
    animation: card_ani_duotone_yellow_purple 8s ease-in-out infinite;
    will-change: box-shadow;
}

@keyframes card_ani_duotone_yellow_purple {
    0%, 100% {
        box-shadow: 0px 0px 0px 0px var(--theme-modal-glow-color-1, #fdcb6e);
    }
    25% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) var(--theme-modal-glow-color-1, #fdcb6e);
    }
    50% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) var(--theme-modal-glow-color-2, #8e44ad);
    }
    75% {
        box-shadow: 0px 0px var(--glow-size) var(--glow-blur) var(--theme-modal-glow-color-1, #fdcb6e);
    }
}

@keyframes card_ani2 {
    0% {
        box-shadow: 0px 0px 0px 0px var(--card-shadow-color);
        opacity: 0;
    }

    100% {
        box-shadow: 0px 0px 30px 10px var(--card-shadow-color);
        opacity: 1;
    }
}

@keyframes card_ani3 {
    0% {
        box-shadow: 0px 0px 30px 10px var(--card-shadow-color);
        opacity: 1;
    }

    100% {
        box-shadow: 0px 0px 0px 00px var(--card-shadow-color);
        opacity: 0;
    }
}

.card:hover,
.card.touch-active {
    transform: scale(1.05);
}

/* 消除移动设备上的点击延迟 */
@media (pointer: coarse) {
    .card, .modal button, .modal input, .modal select, .modal input[type="checkbox"], .checkbox-container {
        -webkit-tap-highlight-color: transparent;
    }

    /* 增大移动设备上的点击区域 */
    .modal input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }

    .checkbox-container {
        padding: 12px;
        margin: 12px 0;
    }

    /* 增大按钮点击区域 */
    .modal button {
        padding: 12px;
        margin-top: 20px;
    }

    /* 增大文本字体 */
    .modal label {
        font-size: 16px;
    }
}

.card-title {
    font-weight: bold;
    font-size: 14px;
    padding: 0 5px;
    margin: 0 0 5px 0;
}

.card-desc {
    font-size: 11px;
    color: gray;
    padding: 0 5px;
    margin: 2px 0;
    line-height: 1.2;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000; /* 添加高于页脚的z-index */
}

.modal {
    background: var(--primary-color);
    padding: 15px;
    border-radius: var(--modal-border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1001; /* 确保模态框在最上层 */
    will-change: box-shadow;
}

/* 发光效果开启时的模态框动画 */
[data-glow-enabled="1"] .modal {
    animation: modal_glow 8s ease-in-out infinite;
    box-shadow: 0 5px 15px var(--card-shadow-color);
}

/* 发光效果关闭时的模态框阴影 */
[data-glow-enabled="0"] .modal {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes modal_glow {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) var(--card-shadow-color);
    }
}

/* 五颜六色主题特殊模态框发光效果 */
[data-theme="colorful"][data-glow-enabled="1"] .modal {
    animation: modal_glow_colorful 10s ease-in-out infinite;
    will-change: box-shadow;
}

@keyframes modal_glow_colorful {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    20% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) #ff6b6b;
    }
    40% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) #4ecdc4;
    }
    60% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) #ffbe0b;
    }
    80% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) #8a2be2;
    }
}

/* 双拼色主题特殊模态框发光效果 - 紫粉 */
[data-theme="duotone"][data-glow-enabled="1"] .modal {
    animation: modal_glow_duotone 8s ease-in-out infinite;
    will-change: box-shadow;
}

@keyframes modal_glow_duotone {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    25% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) var(--theme-modal-glow-color-1, #6c5ce7);
    }
    50% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) var(--theme-modal-glow-color-2, #fd79a8);
    }
    75% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) var(--theme-modal-glow-color-1, #6c5ce7);
    }
}

/* 双拼色主题特殊模态框发光效果 - 蓝绿 */
[data-theme="duotone-blue-green"][data-glow-enabled="1"] .modal {
    animation: modal_glow_duotone_blue_green 8s ease-in-out infinite;
    will-change: box-shadow;
}

@keyframes modal_glow_duotone_blue_green {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    25% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) var(--theme-modal-glow-color-1, #0984e3);
    }
    50% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) var(--theme-modal-glow-color-2, #00b894);
    }
    75% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) var(--theme-modal-glow-color-1, #0984e3);
    }
}

/* 双拼色主题特殊模态框发光效果 - 橙红 */
[data-theme="duotone-orange-red"][data-glow-enabled="1"] .modal {
    animation: modal_glow_duotone_orange_red 8s ease-in-out infinite;
    will-change: box-shadow;
}

@keyframes modal_glow_duotone_orange_red {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    25% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) var(--theme-modal-glow-color-1, #e17055);
    }
    50% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) var(--theme-modal-glow-color-2, #d63031);
    }
    75% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) var(--theme-modal-glow-color-1, #e17055);
    }
}

/* 双拼色主题特殊模态框发光效果 - 黄紫 */
[data-theme="duotone-yellow-purple"][data-glow-enabled="1"] .modal {
    animation: modal_glow_duotone_yellow_purple 8s ease-in-out infinite;
    will-change: box-shadow;
}

@keyframes modal_glow_duotone_yellow_purple {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    25% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) var(--theme-modal-glow-color-1, #fdcb6e);
    }
    50% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) var(--theme-modal-glow-color-2, #8e44ad);
    }
    75% {
        box-shadow: 0 5px calc(var(--glow-size) * 0.8) var(--theme-modal-glow-color-1, #fdcb6e);
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.modal h1 {
    font-size: 18px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.modal input,
.modal button,
.modal select,
.modal label {
    display: block;
    width: 96%;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.modal input[type="checkbox"] {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid #fff;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    position: relative;
}

.modal input[type="checkbox"]:checked {
    background-color: #fff;
}

.modal input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--button-bg-color);
    font-size: 14px;
    font-weight: bold;
}

.modal label {
    border: none;
    text-align: left;
    padding: 8px 10px;
    margin-bottom: 5px;
    font-weight: bold;
    display: block;
    cursor: pointer;
}

/* 为支持 :has() 选择器的现代浏览器提供样式 */
.modal label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.modal label:has(input[type="checkbox"]):hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 为不支持 :has() 选择器的浏览器提供备选方案 */
.checkbox-container {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.checkbox-container:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal button {
    background: var(--button-bg-color);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    width: 100%;
    font-weight: bold;
    margin-top: 15px;
    padding: 10px;
    transition: background-color 0.3s;
}

.modal button:hover {
    background: var(--button-hover-color);
}

.modal input,
.modal select {
    border-radius: 20px;
    -webkit-appearance: none;
    appearance: none;
}

.modal select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}

#message {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px 0;
}

#tip {
    color: #666;
    font-size: 0.9rem;
    margin-top: 8px;
}





.code-panel {
    margin: 20px;
    padding: 15px;
    border: 2px dotted white;
    border-radius: 25px;
    max-width: 600px;
    max-height: 400px;
    overflow-y: auto;
}

.code-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    background-color: white;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.code-item:hover {
    background-color: #ebebeb;
}

.code-item.copied {
    background-color: #00ff00;
    animation: 1s copied_ani infinite;
}

@keyframes copied_ani {

    0% {
        box-shadow: 0px 0px 0px 0px #00ff00;
    }

    100% {
        box-shadow: 0px 0px 10px 5px #00ff00;
    }

    0% {
        box-shadow: 0px 0px 0px 0px #00ff00;
    }

}

.code-chinese {
    flex: 1;
    margin-right: 20px;
    font-weight: bold;
}

.code-value {
    flex: 2;
    font-family: monospace;
    color: #333;
}

.code-panel::-webkit-scrollbar {
    width: 8px;
}

.code-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.code-panel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.code-panel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.search-box {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.search-box:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 3px rgba(76, 175, 80, 0.3);
}

.imgBox{
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1/1;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 汉堡菜单和侧边栏样式 */
.hamburger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background-color: var(--hamburger-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 2px dotted white;
}

/* 发光效果开启时的汉堡菜单阴影 */
[data-glow-enabled="1"] .hamburger-menu {
    box-shadow: 0 2px 5px var(--card-shadow-color);
}

.hamburger-icon {
    width: 20px;
    height: 16px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 7px;
}

.hamburger-icon span:nth-child(3) {
    top: 14px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: white;
    z-index: 1001;
    transition: 0.3s;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--sidebar-header-bg);
    color: white;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-sidebar {
    font-size: 24px;
    cursor: pointer;
}

.sidebar-content {
    padding: 20px 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    padding: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
    border-bottom: 1px solid #eee;
}

.sidebar-menu li a:hover {
    background-color: #f8f8f8;
    color: var(--primary-color);
}

.sidebar-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* 右侧购买按钮样式 */
.purchase-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    width: auto;
    height: 40px;
    background-color: var(--hamburger-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 2px dotted white;
    padding: 0 15px;
    transition: all 0.3s ease;
}

/* 发光效果开启时的购买按钮阴影 */
[data-glow-enabled="1"] .purchase-menu {
    box-shadow: 0 2px 5px var(--card-shadow-color);
}

.purchase-menu:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

[data-glow-enabled="1"] .purchase-menu:hover {
    box-shadow: 0 4px 8px var(--card-shadow-color);
}

.purchase-text {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* 购买下拉菜单样式 */
.purchase-dropdown {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 200px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: none;
    overflow: hidden;
    border: 2px dotted var(--card-border-color);
}

/* 发光效果开启时的下拉菜单阴影 */
[data-glow-enabled="1"] .purchase-dropdown {
    box-shadow: 0 4px 15px var(--card-shadow-color);
}

.purchase-dropdown.active {
    display: block;
    animation: dropdown-fade-in 0.3s ease-out forwards;
}

@keyframes dropdown-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.purchase-dropdown-content {
    display: flex;
    flex-direction: column;
}

.purchase-dropdown-content p {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.purchase-dropdown-content a {
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.purchase-dropdown-content a i {
    margin-right: 8px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.purchase-dropdown-content a:last-child {
    border-bottom: none;
}

.purchase-dropdown-content a:hover {
    background-color: #f8f8f8;
    color: var(--primary-color);
    padding-left: 20px;
}

.purchase-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.purchase-overlay.active {
    display: block;
}

/* 主题设置样式 */
#theme-modal {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 320px;
    border-radius: 0 0 20px 20px;
    padding-top: 12px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    animation: theme_modal_slide_down 0.5s ease-out forwards;
    overflow: hidden;
}

/* 发光效果开启时的主题模态框动画 */
[data-glow-enabled="1"] #theme-modal {
    animation: theme_modal_slide_down 0.5s ease-out forwards, theme_modal_glow 3s ease-in-out infinite;
    box-shadow: 0 10px 25px var(--card-shadow-color);
}

/* 发光效果关闭时的主题模态框阴影 */
[data-glow-enabled="0"] #theme-modal {
    animation: theme_modal_slide_down 0.5s ease-out forwards;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* 主题预览卡片样式 */
.theme-preview-container {
    margin: 0 auto 15px;
    padding: 0 10px;
    max-width: 200px;
}

.theme-preview-card {
    background-color: white;
    border-radius: var(--card-border-radius);
    border: 2px solid var(--card-border-color);
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 发光效果开启时的主题预览卡片 */
[data-glow-enabled="1"] .theme-preview-card {
    box-shadow: 0px 0px var(--glow-size) var(--glow-blur) var(--card-shadow-color);
}

/* 发光效果关闭时的主题预览卡片 */
[data-glow-enabled="0"] .theme-preview-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.theme-preview-icon {
    font-size: 24px;
    margin-right: 15px;
    color: var(--primary-color);
}

.theme-preview-text {
    text-align: left;
}

.theme-preview-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 3px;
    color: #333;
}

.theme-preview-desc {
    font-size: 12px;
    color: #666;
}

@media (max-width: 480px) {
    .theme-preview-container {
        margin-bottom: 10px;
        padding: 0 5px;
    }

    .theme-preview-card {
        padding: 10px;
    }

    .theme-preview-icon {
        font-size: 20px;
        margin-right: 10px;
    }

    .theme-preview-title {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .theme-preview-desc {
        font-size: 10px;
    }
}

@keyframes theme_modal_glow {
    0% {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 10px 25px var(--card-shadow-color);
    }
    100% {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }
}

/* 五颜六色主题特殊主题模态框发光效果 */
[data-theme="colorful"][data-glow-enabled="1"] #theme-modal {
    animation: theme_modal_slide_down 0.5s ease-out forwards, theme_modal_glow_colorful 5s ease-in-out infinite;
}

@keyframes theme_modal_glow_colorful {
    0% {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }
    20% {
        box-shadow: 0 10px var(--glow-size) #ff6b6b;
    }
    40% {
        box-shadow: 0 10px var(--glow-size) #4ecdc4;
    }
    60% {
        box-shadow: 0 10px var(--glow-size) #ffbe0b;
    }
    80% {
        box-shadow: 0 10px var(--glow-size) #8a2be2;
    }
    100% {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }
}

/* 双拼色主题特殊主题模态框发光效果 - 紫粉 */
[data-theme="duotone"][data-glow-enabled="1"] #theme-modal {
    animation: theme_modal_slide_down 0.5s ease-out forwards, theme_modal_glow_duotone 5s ease-in-out infinite;
}

@keyframes theme_modal_glow_duotone {
    0% {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }
    25% {
        box-shadow: 0 10px var(--glow-size) var(--theme-modal-glow-color-1, #6c5ce7);
    }
    50% {
        box-shadow: 0 10px var(--glow-size) var(--theme-modal-glow-color-2, #fd79a8);
    }
    75% {
        box-shadow: 0 10px var(--glow-size) var(--theme-modal-glow-color-1, #6c5ce7);
    }
    100% {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }
}

/* 双拼色主题特殊主题模态框发光效果 - 蓝绿 */
[data-theme="duotone-blue-green"][data-glow-enabled="1"] #theme-modal {
    animation: theme_modal_slide_down 0.5s ease-out forwards, theme_modal_glow_duotone_blue_green 5s ease-in-out infinite;
}

@keyframes theme_modal_glow_duotone_blue_green {
    0% {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }
    25% {
        box-shadow: 0 10px var(--glow-size) var(--theme-modal-glow-color-1, #0984e3);
    }
    50% {
        box-shadow: 0 10px var(--glow-size) var(--theme-modal-glow-color-2, #00b894);
    }
    75% {
        box-shadow: 0 10px var(--glow-size) var(--theme-modal-glow-color-1, #0984e3);
    }
    100% {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }
}

/* 双拼色主题特殊主题模态框发光效果 - 橙红 */
[data-theme="duotone-orange-red"][data-glow-enabled="1"] #theme-modal {
    animation: theme_modal_slide_down 0.5s ease-out forwards, theme_modal_glow_duotone_orange_red 5s ease-in-out infinite;
}

@keyframes theme_modal_glow_duotone_orange_red {
    0% {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }
    25% {
        box-shadow: 0 10px var(--glow-size) var(--theme-modal-glow-color-1, #e17055);
    }
    50% {
        box-shadow: 0 10px var(--glow-size) var(--theme-modal-glow-color-2, #d63031);
    }
    75% {
        box-shadow: 0 10px var(--glow-size) var(--theme-modal-glow-color-1, #e17055);
    }
    100% {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }
}

/* 双拼色主题特殊主题模态框发光效果 - 黄紫 */
[data-theme="duotone-yellow-purple"][data-glow-enabled="1"] #theme-modal {
    animation: theme_modal_slide_down 0.5s ease-out forwards, theme_modal_glow_duotone_yellow_purple 5s ease-in-out infinite;
}

@keyframes theme_modal_glow_duotone_yellow_purple {
    0% {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }
    25% {
        box-shadow: 0 10px var(--glow-size) var(--theme-modal-glow-color-1, #fdcb6e);
    }
    50% {
        box-shadow: 0 10px var(--glow-size) var(--theme-modal-glow-color-2, #8e44ad);
    }
    75% {
        box-shadow: 0 10px var(--glow-size) var(--theme-modal-glow-color-1, #fdcb6e);
    }
    100% {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }
}

@keyframes theme_modal_slide_down {
    0% {
        top: -100%;
    }
    100% {
        top: 0;
    }
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 8px 0;
    max-height: 30vh;
    overflow-y: auto;
    padding: 6px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
    .theme-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 4px;
        max-height: 25vh;
    }
}

.theme-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .theme-card {
        padding: 3px;
        border-radius: 6px;
        border-width: 1px;
    }
}

.theme-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.95);
}

.theme-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 12px var(--card-shadow-color);
    background-color: rgba(255, 255, 255, 1);
}

.theme-card.active::after {
    content: '\2713';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.theme-preview {
    height: 50px;
    border-radius: 8px;
    margin-bottom: 6px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .theme-preview {
        height: 30px;
        margin-bottom: 4px;
        border-radius: 6px;
    }
}

.theme-card:hover .theme-preview {
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

.theme-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
    color: #333;
}

.theme-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .theme-name {
        font-size: 12px;
        margin-bottom: 1px;
    }

    .theme-desc {
        font-size: 9px;
    }
}

/* 主题设置控件样式 */
.theme-settings-controls {
    margin: 10px 0;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* 开关按钮样式 */
.toggle-container {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-container label {
    font-weight: bold;
    color: #333;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--button-bg-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* 当发光效果关闭时隐藏发光设置 */
[data-glow-enabled="0"] .glow-settings {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 480px) {
    .theme-settings-controls {
        margin: 8px 0;
        padding: 6px;
        border-radius: 6px;
    }
}

.slider-container {
    margin-bottom: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.slider-container label {
    flex: 0 0 100%;
    margin-bottom: 3px;
    color: white;
    font-size: 13px;
    font-weight: bold;
}

@media (max-width: 480px) {
    .slider-container {
        margin-bottom: 8px;
    }

    .slider-container label {
        font-size: 12px;
        margin-bottom: 2px;
    }
}

.slider {
    flex: 1;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    border-radius: 5px;
    margin: 0 8px 0 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border: none;
}

@media (max-width: 480px) {
    .slider {
        height: 8px;
        margin: 0 6px 0 0;
    }

    .slider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }

    .slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
    }
}

#glow-size-value,
#glow-blur-value,
#border-radius-value {
    width: 45px;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

@media (max-width: 480px) {
    #glow-size-value,
    #glow-blur-value,
    #border-radius-value {
        width: 35px;
        font-size: 12px;
    }
}

/* 主题颜色变量 */
:root {
    --primary-color: pink;
    --primary-gradient-1: hsla(66, 100%, 88%, 0.66);
    --primary-gradient-2: hsla(16, 100%, 88%, 1);
    --primary-gradient-3: hsla(321, 100%, 88%, 1);
    --card-border-color: pink;
    --card-shadow-color: pink;
    --button-bg-color: #ff69b4;
    --button-hover-color: #ff4da6;
    --sidebar-header-bg: pink;
    --hamburger-bg: pink;
    --glow-size: 15px;
    --glow-blur: 5px;
    --card-border-radius: 30px;
    --modal-border-radius: 30px;
    --glow-enabled: 0; /* 0表示禁用发光效果，1表示启用 */
}

/* 验证模糊层和加载圈样式 */
.verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

/* 主题设置覆盖层样式 */
.theme-change-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.theme-change-loading {
    text-align: center;
    color: var(--primary-color);
}

.theme-change-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

.theme-change-text {
    font-size: 20px;
    margin-top: 15px;
    font-weight: bold;
}

.verification-content {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 80%;
}

.verification-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 105, 180, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

.verification-message {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.verification-error {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    max-width: 80%;
}

.verification-error-title {
    font-size: 24px;
    color: #e74c3c;
    margin-bottom: 15px;
    font-weight: bold;
}

.verification-error-message {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

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

/* 蓝宝石主题 */
[data-theme="sapphire"] {
    --primary-color: #1E90FF;
    --primary-gradient-1: hsla(210, 100%, 88%, 0.66);
    --primary-gradient-2: hsla(200, 100%, 88%, 1);
    --primary-gradient-3: hsla(220, 100%, 88%, 1);
    --card-border-color: #1E90FF;
    --card-shadow-color: #1E90FF;
    --button-bg-color: #1E90FF;
    --button-hover-color: #187bdb;
    --sidebar-header-bg: #1E90FF;
    --hamburger-bg: #1E90FF;
}

/* 翡翠绿主题 */
[data-theme="emerald"] {
    --primary-color: #2ecc71;
    --primary-gradient-1: hsla(120, 100%, 88%, 0.66);
    --primary-gradient-2: hsla(140, 100%, 88%, 1);
    --primary-gradient-3: hsla(160, 100%, 88%, 1);
    --card-border-color: #2ecc71;
    --card-shadow-color: #2ecc71;
    --button-bg-color: #2ecc71;
    --button-hover-color: #27ae60;
    --sidebar-header-bg: #2ecc71;
    --hamburger-bg: #2ecc71;
}

/* 紫水晶主题 */
[data-theme="amethyst"] {
    --primary-color: #9b59b6;
    --primary-gradient-1: hsla(280, 100%, 88%, 0.66);
    --primary-gradient-2: hsla(290, 100%, 88%, 1);
    --primary-gradient-3: hsla(270, 100%, 88%, 1);
    --card-border-color: #9b59b6;
    --card-shadow-color: #9b59b6;
    --button-bg-color: #9b59b6;
    --button-hover-color: #8e44ad;
    --sidebar-header-bg: #9b59b6;
    --hamburger-bg: #9b59b6;
}

/* 红宝石主题 */
[data-theme="ruby"] {
    --primary-color: #e74c3c;
    --primary-gradient-1: hsla(0, 100%, 88%, 0.66);
    --primary-gradient-2: hsla(10, 100%, 88%, 1);
    --primary-gradient-3: hsla(350, 100%, 88%, 1);
    --card-border-color: #e74c3c;
    --card-shadow-color: #e74c3c;
    --button-bg-color: #e74c3c;
    --button-hover-color: #c0392b;
    --sidebar-header-bg: #e74c3c;
    --hamburger-bg: #e74c3c;
}

/* 黄水晶主题 */
[data-theme="topaz"] {
    --primary-color: #f39c12;
    --primary-gradient-1: hsla(40, 100%, 88%, 0.66);
    --primary-gradient-2: hsla(50, 100%, 88%, 1);
    --primary-gradient-3: hsla(30, 100%, 88%, 1);
    --card-border-color: #f39c12;
    --card-shadow-color: #f39c12;
    --button-bg-color: #f39c12;
    --button-hover-color: #d35400;
    --sidebar-header-bg: #f39c12;
    --hamburger-bg: #f39c12;
}

/* 绿松石主题 */
[data-theme="turquoise"] {
    --primary-color: #1abc9c;
    --primary-gradient-1: hsla(170, 100%, 88%, 0.66);
    --primary-gradient-2: hsla(180, 100%, 88%, 1);
    --primary-gradient-3: hsla(190, 100%, 88%, 1);
    --card-border-color: #1abc9c;
    --card-shadow-color: #1abc9c;
    --button-bg-color: #1abc9c;
    --button-hover-color: #16a085;
    --sidebar-header-bg: #1abc9c;
    --hamburger-bg: #1abc9c;
}

/* 黑曜石主题 */
[data-theme="obsidian"] {
    --primary-color: #34495e;
    --primary-gradient-1: hsla(210, 30%, 88%, 0.66);
    --primary-gradient-2: hsla(220, 30%, 88%, 1);
    --primary-gradient-3: hsla(230, 30%, 88%, 1);
    --card-border-color: #34495e;
    --card-shadow-color: #34495e;
    --button-bg-color: #34495e;
    --button-hover-color: #2c3e50;
    --sidebar-header-bg: #34495e;
    --hamburger-bg: #34495e;
}

/* 五颜六色主题 */
[data-theme="colorful"] {
    --primary-color: #ff6b6b;
    --primary-gradient-1: hsla(60, 100%, 70%, 0.66);
    --primary-gradient-2: hsla(180, 100%, 70%, 1);
    --primary-gradient-3: hsla(300, 100%, 70%, 1);
    --card-border-color: linear-gradient(to right, #ff6b6b, #4ecdc4, #ffbe0b, #8a2be2);
    --card-shadow-color: #ff6b6b;
    --button-bg-color: #ff6b6b;
    --button-hover-color: #ff5252;
    --sidebar-header-bg: linear-gradient(to right, #ff6b6b, #4ecdc4, #ffbe0b, #8a2be2);
    --hamburger-bg: linear-gradient(to right, #ff6b6b, #4ecdc4, #ffbe0b, #8a2be2);
    --text-gradient: linear-gradient(to right, #ff6b6b, #4ecdc4, #ffbe0b, #8a2be2);
}

/* 灰色主题 */
[data-theme="gray"] {
    --primary-color: #7f8c8d;
    --primary-gradient-1: hsla(180, 10%, 88%, 0.66);
    --primary-gradient-2: hsla(180, 10%, 78%, 1);
    --primary-gradient-3: hsla(180, 10%, 68%, 1);
    --card-border-color: #7f8c8d;
    --card-shadow-color: #7f8c8d;
    --button-bg-color: #7f8c8d;
    --button-hover-color: #6c7a7d;
    --sidebar-header-bg: #7f8c8d;
    --hamburger-bg: #7f8c8d;
}

/* 双拼色主题 - 紫粉 */
[data-theme="duotone"] {
    --primary-color: #6c5ce7;
    --primary-gradient-1: hsla(240, 100%, 88%, 0.66);
    --primary-gradient-2: hsla(340, 100%, 88%, 1);
    --primary-gradient-3: hsla(290, 100%, 88%, 1);
    --card-border-color: #6c5ce7;
    --card-shadow-color: #fd79a8;
    --button-bg-color: #6c5ce7;
    --button-hover-color: #5b4bc4;
    --sidebar-header-bg: linear-gradient(to right, #6c5ce7, #fd79a8);
    --hamburger-bg: linear-gradient(to right, #6c5ce7, #fd79a8);
    --text-gradient: linear-gradient(to right, #6c5ce7, #fd79a8);
    --theme-modal-glow-color-1: #6c5ce7;
    --theme-modal-glow-color-2: #fd79a8;
}

/* 双拼色主题 - 蓝绿 */
[data-theme="duotone-blue-green"] {
    --primary-color: #0984e3;
    --primary-gradient-1: hsla(200, 100%, 88%, 0.66);
    --primary-gradient-2: hsla(160, 100%, 88%, 1);
    --primary-gradient-3: hsla(180, 100%, 88%, 1);
    --card-border-color: #0984e3;
    --card-shadow-color: #00b894;
    --button-bg-color: #0984e3;
    --button-hover-color: #0876c9;
    --sidebar-header-bg: linear-gradient(to right, #0984e3, #00b894);
    --hamburger-bg: linear-gradient(to right, #0984e3, #00b894);
    --text-gradient: linear-gradient(to right, #0984e3, #00b894);
    --theme-modal-glow-color-1: #0984e3;
    --theme-modal-glow-color-2: #00b894;
}

/* 双拼色主题 - 橙红 */
[data-theme="duotone-orange-red"] {
    --primary-color: #e17055;
    --primary-gradient-1: hsla(20, 100%, 88%, 0.66);
    --primary-gradient-2: hsla(0, 100%, 88%, 1);
    --primary-gradient-3: hsla(10, 100%, 88%, 1);
    --card-border-color: #e17055;
    --card-shadow-color: #d63031;
    --button-bg-color: #e17055;
    --button-hover-color: #c7624b;
    --sidebar-header-bg: linear-gradient(to right, #e17055, #d63031);
    --hamburger-bg: linear-gradient(to right, #e17055, #d63031);
    --text-gradient: linear-gradient(to right, #e17055, #d63031);
    --theme-modal-glow-color-1: #e17055;
    --theme-modal-glow-color-2: #d63031;
}

/* 双拼色主题 - 黄紫 */
[data-theme="duotone-yellow-purple"] {
    --primary-color: #fdcb6e;
    --primary-gradient-1: hsla(40, 100%, 88%, 0.66);
    --primary-gradient-2: hsla(260, 100%, 88%, 1);
    --primary-gradient-3: hsla(280, 100%, 88%, 1);
    --card-border-color: #fdcb6e;
    --card-shadow-color: #8e44ad;
    --button-bg-color: #fdcb6e;
    --button-hover-color: #e3b762;
    --sidebar-header-bg: linear-gradient(to right, #fdcb6e, #8e44ad);
    --hamburger-bg: linear-gradient(to right, #fdcb6e, #8e44ad);
    --text-gradient: linear-gradient(to right, #fdcb6e, #8e44ad);
    --theme-modal-glow-color-1: #fdcb6e;
    --theme-modal-glow-color-2: #8e44ad;
}

/* 应用主题变量 */
body {
    background-image: radial-gradient(circle at 91% 11%, var(--primary-gradient-1) 4.038772213247173%, transparent 37.2265767974114%), radial-gradient(circle at 66% 37%, var(--primary-gradient-2) 0%, transparent 63.33640956108327%), radial-gradient(circle at 36% 87%, var(--primary-gradient-3) 12.107536057085522%, transparent 63.33640956108327%);
}

/* 五颜六色和双拼色主题的文字渐变效果 */
[data-theme="colorful"] .modal h1,
[data-theme="colorful"] .modal h2,
[data-theme="colorful"] .modal h3,
[data-theme="colorful"] .modal .tool-title,
[data-theme="duotone"] .modal h1,
[data-theme="duotone"] .modal h2,
[data-theme="duotone"] .modal h3,
[data-theme="duotone"] .modal .tool-title,
[data-theme="duotone-blue-green"] .modal h1,
[data-theme="duotone-blue-green"] .modal h2,
[data-theme="duotone-blue-green"] .modal h3,
[data-theme="duotone-blue-green"] .modal .tool-title,
[data-theme="duotone-orange-red"] .modal h1,
[data-theme="duotone-orange-red"] .modal h2,
[data-theme="duotone-orange-red"] .modal h3,
[data-theme="duotone-orange-red"] .modal .tool-title,
[data-theme="duotone-yellow-purple"] .modal h1,
[data-theme="duotone-yellow-purple"] .modal h2,
[data-theme="duotone-yellow-purple"] .modal h3,
[data-theme="duotone-yellow-purple"] .modal .tool-title {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* 五颜六色和双拼色主题的汉堡按钮和菜单渐变效果 */
[data-theme="colorful"] .hamburger-menu,
[data-theme="duotone"] .hamburger-menu,
[data-theme="duotone-blue-green"] .hamburger-menu,
[data-theme="duotone-orange-red"] .hamburger-menu,
[data-theme="duotone-yellow-purple"] .hamburger-menu {
    background: var(--hamburger-bg);
}

[data-theme="colorful"] .sidebar-header,
[data-theme="duotone"] .sidebar-header,
[data-theme="duotone-blue-green"] .sidebar-header,
[data-theme="duotone-orange-red"] .sidebar-header,
[data-theme="duotone-yellow-purple"] .sidebar-header {
    background: var(--sidebar-header-bg);
}

.card {
    border-color: var(--card-border-color);
}

@keyframes card_ani {
    0% {
        box-shadow: 0px 0px 0px 0px var(--card-shadow-color);
    }

    50% {
        box-shadow: 0px 0px 30px 10px var(--card-shadow-color);
    }

    100% {
        box-shadow: 0px 0px 0px 0px var(--card-shadow-color);
    }
}

.modal {
    background: var(--primary-color);
}

.modal button {
    background: var(--button-bg-color);
}

.modal button:hover {
    background: var(--button-hover-color);
}

.sidebar-header {
    background-color: var(--sidebar-header-bg);
}

.hamburger-menu {
    background-color: var(--hamburger-bg);
}

/* 自定义一键对标工具样式优化 */
.upload-section {
    margin-bottom: 15px;
}

.status-box {
    margin-top: 10px;
    padding: 8px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    min-height: 20px;
}

.custom-name-section {
    margin: 15px 0;
}

.downloadLink_13 {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
}

/* 移除背景工具样式优化 */
#update, #back, #down {
    display: inline-block;
    width: auto;
    margin-right: 5px;
}

#text {
    width: 60px;
    display: inline-block;
    margin-left: 5px;
}

/* 图标改色工具样式优化 */
#colorPicker {
    height: 40px;
    width: 80px;
    padding: 0;
    border: none;
}

#myCanvas {
    max-width: 100%;
    height: auto;
}

@media (min-width: 480px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .card {
        border-radius: var(--card-border-radius);
    }

    .card-title {
        font-size: 16px;
    }

    .card-desc {
        font-size: 12px;
    }

    .modal {
        padding: 20px;
        width: 85%;
    }

    #update, #back, #down {
        width: auto;
    }

    #text {
        width: 80px;
    }
}

@media (min-width: 768px) {
    .container {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }

    #device_simulator {
        width: 1050px;
        transform: translateX(-220px);
    }

    body {
        font-family: Arial, sans-serif;
        /* background-image: radial-gradient(circle at 91% 11%, hsla(66, 100%, 88%, 0.66) 4.038772213247173%, transparent 37.2265767974114%), radial-gradient(circle at 66% 37%, hsla(16, 100%, 88%, 1) 0%, transparent 63.33640956108327%), radial-gradient(circle at 36% 87%, hsla(321, 100%, 88%, 1) 12.107536057085522%, transparent 63.33640956108327%);
        background-blend-mode: normal, normal, normal; */

        /* background-image: url('hx_bg.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat; */

        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        flex-direction: column;
        padding: 20px;
    }

    .card {
        margin-left: 15px;
        border-radius: var(--card-border-radius);
    }

    /* 确保模态框使用固定圆角 */
    .modal {
        border-radius: var(--modal-border-radius);
    }

    .imgBox{
        width: 435px;
        height: 435px;
    }

    .modal {
        width: 80%;
        border-radius: var(--modal-border-radius);
    }

    .modal h1 {
        font-size: 20px;
    }

    /* 确保模态框使用固定圆角 */
    .modal {
        border-radius: var(--modal-border-radius);
    }
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background-image: radial-gradient(circle at 91% 11%, var(--primary-gradient-1) 4.038772213247173%, transparent 37.2265767974114%), radial-gradient(circle at 66% 37%, var(--primary-gradient-2) 0%, transparent 63.33640956108327%), radial-gradient(circle at 36% 87%, var(--primary-gradient-3) 12.107536057085522%, transparent 63.33640956108327%);
    background-blend-mode: normal, normal, normal;
    overflow: hidden;

    z-index: -1;
}

.background li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 19s linear infinite;
}




.background li:nth-child(0) {
    left: 73%;
    width: 57px;
    height: 57px;
    bottom: -57px;
    animation-delay: 1s;
}

.background li:nth-child(1) {
    left: 48%;
    width: 212px;
    height: 212px;
    bottom: -212px;
    animation-delay: 1s;
}

.background li:nth-child(2) {
    left: 76%;
    width: 132px;
    height: 132px;
    bottom: -132px;
    animation-delay: 7s;
}

.background li:nth-child(3) {
    left: 56%;
    width: 225px;
    height: 225px;
    bottom: -225px;
    animation-delay: 9s;
}

.background li:nth-child(4) {
    left: 65%;
    width: 37px;
    height: 37px;
    bottom: -37px;
    animation-delay: 8s;
}

.background li:nth-child(5) {
    left: 52%;
    width: 233px;
    height: 233px;
    bottom: -233px;
    animation-delay: 2s;
}

.background li:nth-child(6) {
    left: 36%;
    width: 102px;
    height: 102px;
    bottom: -102px;
    animation-delay: 2s;
}

.background li:nth-child(7) {
    left: 65%;
    width: 197px;
    height: 197px;
    bottom: -197px;
    animation-delay: 24s;
}

.background li:nth-child(8) {
    left: 7%;
    width: 2px;
    height: 2px;
    bottom: -2px;
    animation-delay: 19s;
}

.background li:nth-child(9) {
    left: 23%;
    width: 159px;
    height: 159px;
    bottom: -159px;
    animation-delay: 24s;
}

.background li:nth-child(10) {
    left: 38%;
    width: 65px;
    height: 65px;
    bottom: -65px;
    animation-delay: 7s;
}

.background li:nth-child(11) {
    left: 84%;
    width: 174px;
    height: 174px;
    bottom: -174px;
    animation-delay: 21s;
}

.background li:nth-child(12) {
    left: 27%;
    width: 89px;
    height: 89px;
    bottom: -89px;
    animation-delay: 13s;
}

.background li:nth-child(13) {
    left: 7%;
    width: 128px;
    height: 128px;
    bottom: -128px;
    animation-delay: 46s;
}

.background li:nth-child(14) {
    left: 62%;
    width: 114px;
    height: 114px;
    bottom: -114px;
    animation-delay: 27s;
}

.background li:nth-child(15) {
    left: 11%;
    width: 227px;
    height: 227px;
    bottom: -227px;
    animation-delay: 3s;
}

.background li:nth-child(16) {
    left: 35%;
    width: 128px;
    height: 128px;
    bottom: -128px;
    animation-delay: 54s;
}

.background li:nth-child(17) {
    left: 85%;
    width: 212px;
    height: 212px;
    bottom: -212px;
    animation-delay: 32s;
}

.background li:nth-child(18) {
    left: 54%;
    width: 113px;
    height: 113px;
    bottom: -113px;
    animation-delay: 14s;
}

.background li:nth-child(19) {
    left: 67%;
    width: 43px;
    height: 43px;
    bottom: -43px;
    animation-delay: 49s;
}

.background li:nth-child(20) {
    left: 37%;
    width: 148px;
    height: 148px;
    bottom: -148px;
    animation-delay: 84s;
}

.background li:nth-child(21) {
    left: 21%;
    width: 36px;
    height: 36px;
    bottom: -36px;
    animation-delay: 13s;
}

.background li:nth-child(22) {
    left: 44%;
    width: 205px;
    height: 205px;
    bottom: -205px;
    animation-delay: 20s;
}

.background li:nth-child(23) {
    left: 53%;
    width: 144px;
    height: 144px;
    bottom: -144px;
    animation-delay: 59s;
}

.background li:nth-child(24) {
    left: 42%;
    width: 50px;
    height: 50px;
    bottom: -50px;
    animation-delay: 120s;
}

.background li:nth-child(25) {
    left: 9%;
    width: 43px;
    height: 43px;
    bottom: -43px;
    animation-delay: 40s;
}

.background li:nth-child(26) {
    left: 22%;
    width: 26px;
    height: 26px;
    bottom: -26px;
    animation-delay: 60s;
}

.background li:nth-child(27) {
    left: 70%;
    width: 199px;
    height: 199px;
    bottom: -199px;
    animation-delay: 41s;
}

.background li:nth-child(28) {
    left: 54%;
    width: 174px;
    height: 174px;
    bottom: -174px;
    animation-delay: 93s;
}

.background li:nth-child(29) {
    left: 16%;
    width: 233px;
    height: 233px;
    bottom: -233px;
    animation-delay: 103s;
}

.background li:nth-child(30) {
    left: 1%;
    width: 105px;
    height: 105px;
    bottom: -105px;
    animation-delay: 22s;
}

.background li:nth-child(31) {
    left: 20%;
    width: 18px;
    height: 18px;
    bottom: -18px;
    animation-delay: 8s;
}

.background li:nth-child(32) {
    left: 1%;
    width: 63px;
    height: 63px;
    bottom: -63px;
    animation-delay: 1s;
}

.background li:nth-child(33) {
    left: 77%;
    width: 47px;
    height: 47px;
    bottom: -47px;
    animation-delay: 127s;
}

.background li:nth-child(34) {
    left: 42%;
    width: 131px;
    height: 131px;
    bottom: -131px;
    animation-delay: 39s;
}

.background li:nth-child(35) {
    left: 62%;
    width: 159px;
    height: 159px;
    bottom: -159px;
    animation-delay: 112s;
}

.background li:nth-child(36) {
    left: 78%;
    width: 12px;
    height: 12px;
    bottom: -12px;
    animation-delay: 110s;
}

.background li:nth-child(37) {
    left: 71%;
    width: 170px;
    height: 170px;
    bottom: -170px;
    animation-delay: 46s;
}

.background li:nth-child(38) {
    left: 12%;
    width: 227px;
    height: 227px;
    bottom: -227px;
    animation-delay: 67s;
}

.background li:nth-child(39) {
    left: 81%;
    width: 177px;
    height: 177px;
    bottom: -177px;
    animation-delay: 164s;
}

.background li:nth-child(40) {
    left: 69%;
    width: 123px;
    height: 123px;
    bottom: -123px;
    animation-delay: 175s;
}

.background li:nth-child(41) {
    left: 24%;
    width: 150px;
    height: 150px;
    bottom: -150px;
    animation-delay: 105s;
}

.background li:nth-child(42) {
    left: 77%;
    width: 4px;
    height: 4px;
    bottom: -4px;
    animation-delay: 84s;
}

.background li:nth-child(43) {
    left: 80%;
    width: 174px;
    height: 174px;
    bottom: -174px;
    animation-delay: 31s;
}

.background li:nth-child(44) {
    left: 9%;
    width: 183px;
    height: 183px;
    bottom: -183px;
    animation-delay: 81s;
}

.background li:nth-child(45) {
    left: 49%;
    width: 204px;
    height: 204px;
    bottom: -204px;
    animation-delay: 69s;
}

.background li:nth-child(46) {
    left: 4%;
    width: 93px;
    height: 93px;
    bottom: -93px;
    animation-delay: 55s;
}

.background li:nth-child(47) {
    left: 23%;
    width: 220px;
    height: 220px;
    bottom: -220px;
    animation-delay: 167s;
}

.background li:nth-child(48) {
    left: 74%;
    width: 214px;
    height: 214px;
    bottom: -214px;
    animation-delay: 153s;
}

.background li:nth-child(49) {
    left: 25%;
    width: 186px;
    height: 186px;
    bottom: -186px;
    animation-delay: 64s;
}

/* CDK显示区域样式 */
.cdk-display {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--modal-border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cdk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: bold;
}

.cdk-content {
    padding: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: calc(var(--modal-border-radius) / 2);
    text-align: center;
    position: relative;
}

.toggle-visibility {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.toggle-visibility:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.hidden-text {
    filter: blur(5px);
    user-select: none;
}

.auth-status {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    background-color: rgba(0, 200, 0, 0.2);
    color: green;
    margin-left: 5px;
}

.auth-expired {
    background-color: rgba(255, 0, 0, 0.2);
    color: red;
}

/* 页脚样式 */
.footer {
    width: 100%;
    background: transparent;
    border-color: transparent;
    /* 移除上边框线 */
    margin-top: 20px;
    padding: 10px 0;
    border-radius: 0;
    position: relative;
    z-index: 5; /* 降低z-index，避免挡住模态框 */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 5px;
    padding: 5px;
    background: transparent;
    text-align: center;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 5px;
    position: relative;
    padding-bottom: 4px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background-color: var(--primary-color);
}

.footer-section p {
    color: #777;
    font-size: 12px;
    line-height: 1.3;
    margin: 4px 0;
}

.footer-bottom {
    text-align: center;
    padding: 5px 0 2px;
    margin-top: 5px;
    /* 移除底部边框线 */
}

.footer-bottom p {
    color: #999;
    font-size: 11px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        margin: 1px 5px;
        padding: 3px;
    }

    .footer-section h3 {
        font-size: 12px;
        margin-top: 3px;
        margin-bottom: 3px;
    }

    .footer-section p {
        font-size: 10px;
        margin: 2px 0;
        line-height: 1.2;
    }

    .footer {
        padding: 5px 0;
        margin-top: 10px;
    }

    .footer-bottom {
        padding: 3px 0 1px;
        margin-top: 3px;
    }

    .footer-bottom p {
        font-size: 10px;
    }
}