* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 禁用文本选择 */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 允许特定元素的文本选择 */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.1;
    background: white;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100vw;
    height: 100vh;
    background: white;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    /* 确保容器高度正确 */
    min-height: 100vh;
    max-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5vh 2vw;
    flex-shrink: 0;
    text-align: center;
    transition: opacity 0.5s ease-in-out;
    position: relative;
    z-index: 100; /* 确保header在点击区域之上 */
}

.header.clickable {
    cursor: pointer;
    position: relative;
}

.header.clickable:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.settings-hint {
    position: absolute;
    top: 0.5vh;
    right: 1vw;
    font-size: 1.8vh;
    opacity: 0;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3vh 0.8vw;
    border-radius: 10px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.header.clickable:hover .settings-hint {
    opacity: 0.8;
}

.header h1 {
    font-size: clamp(2.5rem, 8vh, 6rem);
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: titleAppear 1.2s ease-out 0.5s forwards;
}

/* 标题文字出现动画 */
@keyframes titleAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
        text-shadow: 0 0 0 rgba(0,0,0,0.3);
    }
    50% {
        opacity: 0.8;
        transform: translateY(0);
        text-shadow: 0 0 0 rgba(0,0,0,0.3);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }
}

/* 文字出现动画效果 - 模仿原始文件 */
.page .content > * {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.4s ease-out;
    will-change: opacity, transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.page.active .content > * {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* 优化动画性能和稳定性 */
.page .content > *,
.page.active .content > * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page.active .content > *:nth-child(1) {
    transition-delay: 0.3s;
}

.page.active .content > *:nth-child(2) {
    transition-delay: 0.4s;
}

.page.active .content > *:nth-child(3) {
    transition-delay: 0.5s;
}

.page.active .content > *:nth-child(4) {
    transition-delay: 0.6s;
}

.page.active .content > *:nth-child(5) {
    transition-delay: 0.7s;
}

.page.active .content > *:nth-child(6) {
    transition-delay: 0.8s;
}

.page.active .content > *:nth-child(7) {
    transition-delay: 0.9s;
}

.page.active .content > *:nth-child(8) {
    transition-delay: 1s;
}

.page.active .content > *:nth-child(9) {
    transition-delay: 1.1s;
}

.page.active .content > *:nth-child(10) {
    transition-delay: 1.2s;
}

.page.active .content > *:nth-child(11) {
    transition-delay: 1.3s;
}

.page.active .content > *:nth-child(12) {
    transition-delay: 1.4s;
}

.page.active .content > *:nth-child(13) {
    transition-delay: 1.5s;
}

.page.active .content > *:nth-child(14) {
    transition-delay: 1.6s;
}

.page.active .content > *:nth-child(15) {
    transition-delay: 1.7s;
}

.page.active .content > *:nth-child(16) {
    transition-delay: 1.8s;
}

.page.active .content > *:nth-child(17) {
    transition-delay: 1.9s;
}

.page.active .content > *:nth-child(18) {
    transition-delay: 2.0s;
}

.page.active .content > *:nth-child(19) {
    transition-delay: 2.1s;
}

.page.active .content > *:nth-child(20) {
    transition-delay: 2.2s;
}

/* 全屏模式适配 */
:fullscreen .header h1,
:-webkit-full-screen .header h1,
:-moz-full-screen .header h1 {
    font-size: clamp(2rem, 7vh, 5rem);
}

/* 自定义全屏类 - 与浏览器全屏保持一致 */
.fullscreen-active .header h1 {
    font-size: clamp(2rem, 7vh, 5rem) !important;
}

/* 确保全屏模式下整体布局一致 */
:fullscreen body,
:-webkit-full-screen body,
:-moz-full-screen body,
.fullscreen-active {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 响应式适配 */
@media (max-height: 600px) {
    .header h1 {
        font-size: clamp(2.2rem, 8vh, 6rem);
    }
}

@media (max-height: 400px) {
    .header h1 {
        font-size: clamp(1.8rem, 7vh, 5rem);
    }
}

.content {
    padding: 1.5vh 2vw;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none; /* 隐藏滚动条 */
    transition: opacity 0.5s ease-in-out;
    /* 确保内容区域能够正确分配剩余空间 */
    display: flex;
    flex-direction: column;
    min-height: 0; /* 确保flex子元素能够正确缩小 */
}

/* 隐藏滚动条但在需要时仍可滚动 */
.content::-webkit-scrollbar {
    display: none;
}

.content {
    -ms-overflow-style: none;  /* IE和Edge */
    scrollbar-width: none;  /* Firefox */
}

.intro {
    font-size: 3.6vh;
    line-height: 1.1;
    margin-bottom: 1vh;
    color: #333;
    background: #f8f9fa;
    padding: 1.5vh 1.5vw;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.section {
    margin-bottom: 0.8vh;
}

.section-title {
    font-size: 3.6vh;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8vh;
    padding: 0.6vh 1.5vw;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.items {
    margin-left: 2vw;
}

.item {
    margin-bottom: 0.4vh;
    position: relative;
}

.item::before {
    content: '';
    position: absolute;
    left: -2vw;
    top: 1.6vh;
    width: 1vh;
    height: 1vh;
    background: #667eea;
    border-radius: 50%;
}

.item-number {
    font-weight: 600;
    color: #667eea;
    margin-right: 0.2vw;
    font-size: 3.2vh;
}

.item-content {
    color: #444;
    line-height: 1.1;
    font-size: 3.2vh;
}

.item-sub {
    margin-left: 2vw;
    margin-bottom: 0.3vh;
    position: relative;
}

.item-sub::before {
    content: '';
    position: absolute;
    left: -1.5vw;
    top: 1.4vh;
    width: 0.8vh;
    height: 0.8vh;
    background: #8b9dc3;
    border-radius: 50%;
}

.highlight {
    font-weight: 600;
    color: #2c3e50;
}

.footer {
    text-align: right;
    margin-top: 2vh;
    padding-top: 1.5vh;
    border-top: 2px solid #e9ecef;
    flex-shrink: 0;
    transition: opacity 0.5s ease-in-out;
    /* 确保footer始终固定在底部 */
    position: sticky;
    bottom: 0;
    background: inherit;
    z-index: 10;
    /* 如果内容溢出，footer仍然保持在底部 */
    margin-top: auto;
}

.footer-text {
    font-size: 3.2vh;
    font-weight: 600;
    color: #2c3e50;
}

.website-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.website-link:hover {
    text-decoration: underline;
}

/* 页面指示器 - 仿Swiper样式（水平方向） */
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.1);
    padding: 6px 10px;
    border-radius: 20px;
    flex-direction: row;
    align-items: center;
}

.swiper-pagination-bullet {
    width: 11px;
    height: 11px;
    display: block;
    border-radius: 10px;
    background: #062744;
    opacity: 0.2;
    cursor: pointer;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #667eea;
    width: 30px;
    height: 11px;
    box-shadow: 0px 0px 20px rgba(102, 126, 234, 0.3);
}

/* 暗色主题样式 */
body.dark-theme {
    background: #1a1a1a;
    color: #e0e0e0;
}

.container.dark-theme {
    background: #2d2d2d;
}

.dark-theme .swiper-pagination {
    background: rgba(255, 255, 255, 0.1);
}

.dark-theme .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
}

.dark-theme .swiper-pagination-bullet-active {
    background: #8b9dff;
    box-shadow: 0 0 10px rgba(139, 157, 255, 0.6);
}

.dark-theme .header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: #e0e0e0;
}

.dark-theme .header.clickable:hover {
    background: linear-gradient(135deg, #4a5568 0%, #1a202c 100%);
}

.dark-theme .content {
    background: #2d2d2d;
    color: #e0e0e0;
}

.dark-theme .intro {
    background: #3a3a3a;
    color: #e0e0e0;
    border-left: 4px solid #667eea;
}

.dark-theme .section-title {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: #e0e0e0;
    border-left: 4px solid #667eea;
}

.dark-theme .item-content {
    color: #c0c0c0;
}

.dark-theme .item-sub {
    color: #c0c0c0;
}

.dark-theme .item-sub::before {
    background: #8b9dc3;
}

.dark-theme .item::before {
    background: #667eea;
}

.dark-theme .highlight {
    color: #90cdf4;
}

.dark-theme .footer {
    border-top: 2px solid #4a5568;
}

.dark-theme .footer-text {
    color: #e0e0e0;
}

.dark-theme .website-link {
    color: #90cdf4;
}

.dark-theme .website-link:hover {
    color: #63b3ed;
}

/* 暗色主题下的弹窗样式 */
.dark-theme .modal {
    background-color: rgba(0, 0, 0, 0.8);
}

.dark-theme .modal-content {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

.dark-theme .modal-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: #e0e0e0;
}

.dark-theme .modal-body {
    background: #2d2d2d;
    color: #e0e0e0;
}

.dark-theme .setting-group {
    background: #3a3a3a;
    border-left: 4px solid #667eea;
}

.dark-theme .setting-group label {
    color: #e0e0e0;
}

.dark-theme .setting-group input[type="number"],
.dark-theme .setting-group select {
    background: #4a5568;
    color: #e0e0e0;
    border: 2px solid #4a5568;
}

.dark-theme .setting-group input[type="number"]:focus,
.dark-theme .setting-group select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.dark-theme .modal-footer {
    border-top: 1px solid #4a5568;
}

/* 暗色主题下的表单控件样式 */
.dark-theme input[type="checkbox"] {
    accent-color: #667eea;
}

.dark-theme input, 
.dark-theme textarea {
    background: #4a5568;
    color: #e0e0e0;
    border: 2px solid #4a5568;
}

.dark-theme input:focus, 
.dark-theme textarea:focus {
    background: #4a5568;
    color: #e0e0e0;
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.dark-theme select option {
    background: #2d2d2d;
    color: #e0e0e0;
}

/* 暗色主题下的按钮样式 */
.dark-theme .number-btn {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: #e0e0e0;
}

.dark-theme .number-btn:hover {
    background: linear-gradient(135deg, #5a6568 0%, #3d4852 100%);
}

.dark-theme .number-btn:disabled {
    background: #6c757d;
    color: #adb5bd;
}

.dark-theme .number-input-container input[type="number"] {
    background: #4a5568;
    color: #e0e0e0;
    border: 2px solid #4a5568;
}

.dark-theme .number-input-container input[type="number"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.dark-theme .number-input-container input[type="number"].error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* 暗色主题下的点击区域样式 */
.dark-theme .click-zone:hover {
    background-color: rgba(128, 128, 128, 0.3);
}

/* 暗色主题下的页面指示器样式 */
.dark-theme .page-indicator {
    background: rgba(255, 255, 255, 0.1);
}

.dark-theme .indicator-dot {
    background: transparent;
    border: 2px solid #90cdf4;
}

.dark-theme .indicator-dot.active {
    background: #667eea;
    border: 2px solid #667eea;
}

/* 暗色主题下的错误样式 */
.dark-theme .error {
    border-color: #dc3545 !important;
}

.dark-theme .error-message {
    color: #ff6b6b;
}

/* 设置弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2vh;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 3.5vh;
    font-weight: 600;
}

.close-button {
    color: white;
    font-size: 3vh;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-button:hover {
    color: #f0f0f0;
}

.modal-body {
    padding: 2vh;
    max-height: 60vh;
    overflow-y: auto;
}

.setting-group {
    margin-bottom: 2.5vh;
    padding: 1.5vh;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.setting-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8vh;
    font-size: 2.4vh;
}

/* 设置项头部样式 - 标签和开关在同一行 */
.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8vh;
}

.setting-header label {
    margin-bottom: 0;
    font-size: 2.4vh;
}

/* 主题按钮样式 */
.theme-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8vh;
    background: #e9ecef;
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
}

.theme-button {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: #495057;
    font-size: 2.2vh;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.theme-button:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #2c3e50;
}

.theme-button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.theme-button.active:hover {
    background: #5a6fd8;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4);
}

/* 暗色主题下的主题按钮样式 */
.dark-theme .theme-buttons {
    background: #343a40;
}

.dark-theme .theme-button {
    color: #adb5bd;
}

.dark-theme .theme-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #dee2e6;
}

.dark-theme .theme-button.active {
    background: #667eea;
    color: white;
}

.setting-group input[type="number"],
.setting-group select {
    width: 100%;
    padding: 1vh;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 2.2vh;
    transition: border-color 0.3s ease;
    background: white;
}

.setting-group input[type="number"]:focus,
.setting-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* 滑动开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
}

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

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

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: #667eea;
}

input:focus + .slider {
    box-shadow: 0 0 3px #667eea;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* 暗色主题下的滑动开关样式 */
.dark-theme .slider {
    background-color: #4a5568;
}

.dark-theme input:checked + .slider {
    background-color: #667eea;
}

.dark-theme .slider:before {
    background-color: white;
}

.setting-group small {
    display: block;
    margin-top: 0.5vh;
    color: #6c757d;
    font-size: 2vh;
    line-height: 1.1;
}

.modal-footer {
    padding: 2vh;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1vh;
    flex-wrap: wrap;
}

.btn {
    padding: 1vh 2vh;
    border: none;
    border-radius: 5px;
    font-size: 2.2vh;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-cancel {
    background: #dc3545;
    color: white;
}

.btn-cancel:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* 针对16:9屏幕的优化 */
@media (aspect-ratio: 16/9) {
    body {
        padding: 0;
    }
    
    .container {
        width: 100vw;
        height: 100vh;
    }
    
    .header h1 {
        font-size: 5.6vh;
    }
    
    .intro {
        font-size: 3vh;
    }
    
    .section-title {
        font-size: 3.4vh;
    }
    
    .item-content {
        font-size: 2.8vh;
    }
    
    .footer-text {
        font-size: 2.8vh;
        /* 确保底部文字在小屏幕上也能清晰显示 */
        min-height: 3vh;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

/* 针对16:10屏幕的优化 */
@media (aspect-ratio: 16/10) {
    .header h1 {
        font-size: 5.8vh;
    }
    
    .intro {
        font-size: 2.8vh;
    }
    
    .section-title {
        font-size: 3.6vh;
    }
    
    .item-content {
        font-size: 2.9vh;
    }
    
    .footer-text {
        font-size: 3vh;
        /* 确保底部文字在中等屏幕上显示良好 */
        min-height: 3.5vh;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

/* 大屏幕优化 */
@media (min-width: 1920px) and (min-height: 1080px) {
    .header h1 {
        font-size: 6.4vh;
    }
    
    .intro {
        font-size: 2.9vh;
    }
    
    .section-title {
        font-size: 3.8vh;
    }
    
    .item-content {
        font-size: 3vh;
    }
    
    .footer-text {
        font-size: 3.2vh;
        /* 确保底部文字在大屏幕上正确显示 */
        min-height: 4vh;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        /* 确保文字有足够的行高 */
        line-height: 1.1;
        padding: 1vh 0;
    }
}

/* 页面切换动画 */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 表单错误样式 */
.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.error-message {
    animation: fadeIn 0.2s ease-in;
}

.validation-errors {
    animation: slideInRight 0.3s ease-out;
}

/* 消息提示动画 */
.temp-message {
    animation: slideInRight 0.3s ease-out;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

/* 左右点击区域样式 */
.click-zone {
    position: absolute;
    top: 25vh; /* 确保在header区域下方，避免覆盖设置按钮 */
    bottom: 15vh; /* 确保在页面指示器上方 */
    width: 15%; /* 进一步缩小宽度，避免与内容重叠 */
    z-index: 50; /* 降低z-index，确保header区域可点击 */
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* 默认透明，鼠标悬停时显示灰色 */
    pointer-events: auto; /* 确保点击区域可点击 */
}

.click-zone:hover {
    background-color: rgba(128, 128, 128, 0.2); /* 灰色半透明背景 */
}

.click-zone-left {
    left: 0;
}

.click-zone-right {
    right: 0;
}

/* 箭头样式 */
.arrow-left {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-right: 30px solid #667eea; /* 蓝色箭头 */
    transition: all 0.3s ease;
    opacity: 0; /* 默认隐藏 */
}

.arrow-right {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 30px solid #667eea; /* 蓝色箭头 */
    transition: all 0.3s ease;
    opacity: 0; /* 默认隐藏 */
}

/* 鼠标悬停时箭头显示和动画 */
.click-zone:hover .arrow-left {
    opacity: 1; /* 显示箭头 */
    transform: translate(-50%, -50%) scale(1.1); /* 显示时放大 */
}

.click-zone:hover .arrow-right {
    opacity: 1; /* 显示箭头 */
    transform: translate(-50%, -50%) scale(1.1); /* 显示时放大 */
}

/* 在所有模式下都显示点击区域，允许手动切换 */
.container.auto-mode .click-zone {
    display: block;
}

.container.single-mode .click-zone {
    display: block;
}

/* 数字输入容器样式 */
.number-input-container {
    display: flex;
    align-items: center;
    gap: 0.5vh;
    margin-bottom: 0.5vh;
}

.number-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.8vh 1.2vh;
    font-size: 1.4vh;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 3.5vw;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.number-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.number-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.number-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.number-input-container input[type="number"] {
    flex: 1;
    text-align: center;
    font-size: 1.8vh;
    font-weight: 600;
    padding: 1vh;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    background: white;
    color: #2c3e50;
    transition: border-color 0.3s ease;
}

.number-input-container input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.number-input-container input[type="number"].error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

mark.red-text-only {
    background-color: transparent; /* 去掉背景色 */
    color: red; /* 设置文字为红色 */
    padding: 0; /* 可选：去掉内边距 */
}

/* 小屏幕设备的额外优化 */
@media (max-width: 768px), (max-height: 600px) {
    .container {
        padding: 0;
        margin: 0;
    }
    
    .header {
        padding: 1.5vh 2vw;
    }
    
    .header h1 {
        font-size: 3.5vh;
        line-height: 1.1;
    }
    
    .content {
        padding: 1.5vh 2vw;
        /* 确保内容区域不会挤压footer */
        flex: 1;
        overflow-y: auto;
    }
    
    .intro {
        font-size: 1.6vh;
        line-height: 1.1;
        padding: 1vh 1.5vw;
    }
    
    .section-title {
        font-size: 2vh;
        padding: 0.8vh 1.5vw;
    }
    
    .item-content {
        font-size: 1.5vh;
        line-height: 1.1;
    }
    
    .footer-text {
        font-size: 1.8vh;
        min-height: 3vh;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        /* 确保底部文字在小屏幕上不被其他元素影响 */
        flex-shrink: 0;
        position: relative;
        z-index: 5;
    }
}

/* 超小屏幕设备的优化 */
@media (max-width: 480px), (max-height: 400px) {
    .header h1 {
        font-size: 3vh;
    }
    
    .intro {
        font-size: 1.4vh;
    }
    
    .section-title {
        font-size: 1.8vh;
    }
    
    .item-content {
        font-size: 1.4vh;
    }
    
    .footer-text {
        font-size: 1.6vh;
    }
}

/* 自定义右键菜单样式 */
.context-menu {
    display: none;
    position: fixed;
    z-index: 10001;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    padding: 8px 0;
    animation: contextMenuFadeIn 0.2s ease-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes contextMenuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.context-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    border-radius: 6px;
    margin: 2px 8px;
}

.context-menu-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.context-menu-icon {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.context-menu-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.context-menu-item:hover .context-menu-icon {
    transform: scale(1.1);
}

.context-menu-item:hover .context-menu-svg {
    transform: rotate(10deg);
}

.context-menu-text {
    flex: 1;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.context-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 8px 0;
}

/* 暗色主题下的右键菜单样式 */
.dark-theme .context-menu {
    background: rgba(45, 45, 45, 0.95);
    border-color: #4a5568;
    color: #e0e0e0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.dark-theme .context-menu-item {
    color: #e0e0e0;
}

.dark-theme .context-menu-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dark-theme .context-menu-divider {
    background: linear-gradient(90deg, transparent, #4a5568, transparent);
}

/* 多选框样式 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    margin-top: 0.8vh;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 2.2vh;
    color: #2c3e50;
    transition: all 0.3s ease;
    padding: 0.5vh 0;
}

.checkbox-label:hover {
    color: #667eea;
    transform: translateX(4px);
}

.checkbox-custom {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: #667eea;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.carousel-page-checkbox:checked + .checkbox-custom {
    background: #f8f9fa;
    border-color: #667eea;
}

.carousel-page-checkbox:checked + .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.carousel-page-checkbox:focus + .checkbox-custom {
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.checkbox-text {
    font-size: 2.2vh;
    line-height: 1.1;
}

/* 暗色主题下的多选框样式 */
.dark-theme .checkbox-label {
    color: #e0e0e0;
}

.dark-theme .checkbox-label:hover {
    color: #90cdf4;
}

.dark-theme .checkbox-custom {
    border-color: #90cdf4;
}

.dark-theme .checkbox-custom::after {
    background: #90cdf4;
}

.dark-theme .carousel-page-checkbox:checked + .checkbox-custom {
    background: #3a3a3a;
    border-color: #90cdf4;
}