* {
    margin: 0;
    padding: 0;
}

.gachapon #site-logo {
    width: 150px;
    height: 150px;
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.9;
    pointer-events: none;
}

html {
    background-image: url("newsetting.jpg");
    background-size: cover;
}

body {
    display: flex;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

.container {
    margin: 0 auto;
    width: 100vw;
    height: 650px; /* 默认高度为650px */
    display: flex;
    justify-content: space-between;
    transition: height 0.3s ease; /* 添加过渡效果使高度变化更平滑 */
}

.mask {
    position: absolute;
    z-index: 3;
    background-color: rgba(138, 139, 140, 0.8);
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    display: none;
    transition: opacity 5s 5s linear;
}

.mask.active {
    display: flex;
    opacity: 100;
}

.mask .winner {
    width: 500px;
    background-color: #000;
    margin-bottom: 20px;
    color: white;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 28px;
    text-align: center;
    padding: 20px;
    box-shadow: 1px 4px 5px rgba(76, 87, 96, 0.3);
    border: #5a1730 2px solid;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mask .winner .gun-type,
.mask .winner .use-type {
    font-size: 22px;
    margin-top: 5px;
}

.mask svg {
    width: 200px;
}

.gachapon {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0;
}

.switch {
    width: 90px;
    position: absolute;
    bottom: 110px;
    left: 155px;
    transition: transform 0.3s 0s linear;
}

.switch:hover {
    cursor: pointer;
}

.switch.active {
    transform: rotate(-90deg);
}

.machine {
    width: 400px;
}

.egg {
    display: none;
    opacity: 0;
    transform: translate(0, -25px);
    transition: transform 0.4s 1.5s linear, opacity 0.1s 1.5s linear;
    transition: transform 0s 0s linear, opacity 0s 0s linear;
}

.egg.active {
    display: block;
    opacity: 100;
    transform: translate(0, 45px);
    transition: transform 0.2s 1.5s linear, opacity 0.1s 1.5s linear;
}

.egg:hover {
    cursor: pointer;
}

.gun-info {
    width: 400px;
    background-color: #000;
    margin-bottom: 20px;
    color: white;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 18px;
    text-align: center;
    padding: 15px;
    box-shadow: 1px 4px 5px rgba(76, 87, 96, 0.3);
    border: #5a1730 2px solid;
}

.confirm-btn {
    padding: 10px 30px;
    background-color: #5a1730;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 30px;
    font-family: "Noto Sans TC", sans-serif;
    transition: background-color 0.3s;
}

.confirm-btn:hover {
    background-color: #7a2040;
}

/* Swift风格通知样式 - 添加到CSS文件末尾 */
.swift-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    padding: 16px;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.swift-notification.show {
    transform: translateX(0);
}

.swift-notification-icon {
    width: 24px;
    height: 24px;
    background-color: #34c759;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.swift-notification-icon svg {
    width: 16px;
    height: 16px;
    color: white;
}

.swift-notification-content {
    flex-grow: 1;
}

.swift-notification-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #000;
    margin-bottom: 4px;
}

.swift-notification-message {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* 奖池信息样式 - 修改为上下收起 */
.pool-info {
    height: 100%;
    overflow: hidden;
    width: 400px;
    margin-right: 50px;
    background-color: rgba(90, 23, 48, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: "Noto Sans TC", sans-serif;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: height 0.3s ease, padding 0.3s ease;
}

.pool-info.collapsed {
    height: 32px;
    padding: 10px 20px;
}

.pool-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pool-info h2 {
    font-size: 24px;
    color: #f3d478;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.toggle-pool-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-pool-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.toggle-pool-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.pool-info.collapsed .toggle-pool-btn svg {
    transform: rotate(180deg);
}

.pool-info.collapsed .pool-content {
    display: none;
}

.pool-info-header {
    margin-bottom: 15px;
}

.pool-info.collapsed .pool-info-header {
    margin-bottom: 0;
}

.pool-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.loading {
    padding: 20px;
    text-align: center;
    color: #ccc;
}

.use-type-section {
    margin-bottom: 25px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.use-type-section:last-child {
    border-bottom: none;
}

.use-type-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.gun-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.gun-type-section {
    flex: 1 1 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
}

.gun-type-section h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #e5a0b9;
}

.gun-names {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gun-name {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.gun-name:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 自定义滚动条 */
.pool-content::-webkit-scrollbar {
    width: 8px;
}

.pool-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.pool-content::-webkit-scrollbar-thumb {
    background: #FAFAD2;
    border-radius: 10px;
}

.pool-content::-webkit-scrollbar-thumb:hover {
    background: #e5a0b9;
}

/* 抽奖规则信息样式 */
.rules-info {
    height: 100%;
    overflow: hidden;
    width: 400px;
    margin-left: 50px;
    background-color: rgba(90, 23, 48, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: "Noto Sans TC", sans-serif;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: height 0.3s ease, padding 0.3s ease;
}

.rules-info.collapsed {
    height: 32px;
    padding: 10px 20px;
}

.rules-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rules-info.collapsed .rules-info-header {
    margin-bottom: 0;
}

.rules-info h2 {
    font-size: 24px;
    color: #f3d478;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.toggle-rules-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-rules-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.toggle-rules-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.rules-info.collapsed .toggle-rules-btn svg {
    transform: rotate(180deg);
}

.rules-info.collapsed .rules-content {
    display: none;
}

.rules-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: left;
}

.rules-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.rules-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.rules-section h3 {
    font-size: 20px;
    color: #e5a0b9;
    margin-bottom: 10px;
}

.rules-section p {
    margin: 8px 0;
    line-height: 1.5;
}

.color-explanation {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.color-sample {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.color-desc {
    font-size: 16px;
}

/* 自定义滚动条 - 与奖池信息面板保持一致 */
.rules-content::-webkit-scrollbar {
    width: 8px;
}

.rules-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.rules-content::-webkit-scrollbar-thumb {
    background: #FAFAD2;
    border-radius: 10px;
}

.rules-content::-webkit-scrollbar-thumb:hover {
    background: #e5a0b9;
}

/* Tab切换样式 */
.tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 5;
}

.tab {
    padding: 10px 20px;
    background-color: rgba(90, 23, 48, 0.7);
    color: white;
    border: none;
    border-radius: 5px 5px 0 0;
    font-size: 16px;
    cursor: pointer;
    margin: 0 5px;
    font-family: "Noto Sans TC", sans-serif;
    transition: background-color 0.3s;
}

.tab.active {
    background-color: rgba(90, 23, 48, 0.9);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.tab:hover {
    background-color: rgba(90, 23, 48, 0.8);
}

/* 内容区域样式 */
.content-section {
    display: none;
    width: 100%;
}

.content-section.active {
    display: flex;
    justify-content: center;
    gap: 30px;
}

/* 大转盘样式 */
.wheel-container {
    width: 450px;
    background-color: rgba(90, 23, 48, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: "Noto Sans TC", sans-serif;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.wheel-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

#wheel-canvas {
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.wheel-pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #FAFAD2;
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.spin-btn {
    padding: 12px 30px;
    background-color: #DB70DB; /* 修改为#DB70DB */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    font-family: "Noto Sans TC", sans-serif;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.spin-btn:hover {
    background-color: #e5a0b9;
    transform: translateY(-2px);
}

.spin-btn:active {
    transform: translateY(0);
}

.wheel-options {
    width: 300px;
    background-color: rgba(90, 23, 48, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: "Noto Sans TC", sans-serif;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wheel-options h2 {
    margin: 0;
    color: #f3d478;
    font-size: 24px;
}

.option-input-group {
    display: flex;
    gap: 10px;
}

.option-input-group input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

.option-input-group input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

.add-option-btn {
    padding: 10px 15px;
    background-color: #DB70DB; /* 修改为#DB70DB */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-option-btn:hover {
    background-color: #e5a0b9;
}

.options-list-container {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    max-height: 250px;
    overflow-y: auto;
}

.options-list-container h3 {
    margin: 0 0 10px 0;
    color: #e5a0b9;
    font-size: 18px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 5px;
}

.option-text {
    flex: 1;
    text-align: left;
    word-break: break-all;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.option-text:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.edit-option-input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 3px;
    color: white;
    padding: 5px;
    font-size: 16px;
    font-family: "Noto Sans TC", sans-serif;
}

.edit-option-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
}

.delete-option-btn {
    background-color: transparent;
    color: #FAFAD2;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.delete-option-btn:hover {
    color: #e5a0b9;
}

.options-actions {
    display: flex;
    justify-content: center;
}

.clear-options-btn {
    padding: 10px 20px;
    background-color: rgba(223, 115, 108, 0.7);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.clear-options-btn:hover {
    background-color: rgba(223, 115, 108, 1);
}

/* 自定义滚动条 - 与奖池信息面板保持一致 */
.options-list-container::-webkit-scrollbar {
    width: 8px;
}

.options-list-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.options-list-container::-webkit-scrollbar-thumb {
    background: #FAFAD2;
    border-radius: 10px;
}

.options-list-container::-webkit-scrollbar-thumb:hover {
    background: #e5a0b9;
}

/* 修改 tab-with-dropdown 相关样式为气泡样式 */
.tab-with-dropdown {
    position: relative;
    display: inline-block;
}

.filter-dropdown {
    position: absolute;
    top: calc(100% + 10px); /* 距离tab底部10px */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background-color: rgba(90, 23, 48, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: auto; /* 宽度自适应内容 */
    min-width: 150px; /* 最小宽度 */
    overflow: hidden;
    opacity: 0;
    visibility: hidden; /* 使用visibility代替display */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* 添加气泡小三角 */
.filter-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(90, 23, 48, 0.95);
}

/* 添加一个透明的连接区域，确保鼠标移动时不会失去悬停 */
.filter-dropdown::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: transparent;
}

.tab-with-dropdown:hover .filter-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
}

.filter-content {
    padding: 12px 15px;
    white-space: nowrap; /* 确保内容不换行 */
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: white;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 14px;
}

.filter-option:last-child {
    margin-bottom: 0;
}

.filter-checkbox {
    margin-right: 8px;
    appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    border: 2px solid #DB70DB;
    border-radius: 3px;
    background-color: transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-checkbox:checked {
    background-color: #DB70DB;
}

.filter-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox:hover {
    border-color: #e5a0b9;
}

.filter-checkbox:checked:hover {
    background-color: #e5a0b9;
}

.filter-option label {
    cursor: pointer;
    white-space: nowrap; /* 确保文字不换行 */
}

/* 响应式设计 - 小屏幕隐藏规则和奖池信息 */
@media screen and (max-width: 1080px) {
  .rules-info, .pool-info {
    display: none;
  }
  
  /* 调整内容区域布局，但保持大转盘样式不变 */
  #gacha-content.content-section.active {
    justify-content: center;
  }
}

/* 随机数抽取样式 */
.random-number-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    justify-content: center;
}

.random-number-settings {
    background-color: rgba(90, 23, 48, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: "Noto Sans TC", sans-serif;
    color: white;
}

.random-number-settings h2 {
    margin-top: 0;
    color: #DB70DB;
    font-size: 24px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.setting-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.setting-group label {
    width: 100px;
    font-weight: bold;
    color: white;
}

.setting-group input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.setting-group input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

.draw-number-btn {
    background-color: #DB70DB; /* 修改为#DB70DB */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
    width: 100%;
    font-family: "Noto Sans TC", sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.draw-number-btn:hover {
    background-color: #e5a0b9;
    transform: translateY(-2px);
}

.draw-number-btn:active {
    transform: translateY(0);
}

.random-number-results {
    background-color: rgba(90, 23, 48, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: "Noto Sans TC", sans-serif;
    color: white;
}

.random-number-results h2 {
    margin-top: 0;
    color: #DB70DB;
    font-size: 24px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.result-item {
    background-color: #DB70DB;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background-color 0.2s;
}

.result-item:hover {
    transform: scale(1.05);
    background-color: #e5a0b9;
}

@media (max-width: 768px) {
    .random-number-container {
        padding: 10px;
    }
    
    .setting-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .setting-group label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .results-container {
        justify-content: center;
    }
}

#site-logo {
    position: fixed; /* 固定定位，不随滚动条移动 */
    top: 20px; /* 距离顶部20px */
    left: 20px; /* 距离左侧20px（改为左上角） */
    width: 200px; /* 原50px × 2.5倍 */
    height: 200px; /* 原50px × 2.5倍 */
    z-index: 1000; /* 确保图标显示在其他内容上方 */
}

/* 底部统计信息样式 */
.site-footer {
    position: fixed; 
    bottom: 0; 
    left: 0;
    right: 0;
    padding: 10px 20px;
    background-color: rgba(90, 23, 48, 0.9); 
    color: white;
    font-family: "Noto Sans TC", sans-serif;
    font-size: 14px;
    text-align: center;
    z-index: 1000; 
}