* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f8ff;
}

.mobile-menu-btn {
    display: none;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-section {
    flex: 1;
    margin: 20px 50px;
}


/* PC端样式 - 保持原有布局 */
.main-header {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

/* 主头部区域布局 */
.main-header {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo-container {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    height: 45px; /* 与搜索容器高度保持一致 */
}

/* 移动端菜单按钮默认隐藏 */
.mobile-menu-btn {
    display: none;
}

.logo {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.search-container {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    height: 45px;
    border: 2px solid #1088ff;
    border-radius: 5px;
    background-color: #ffffff;
}

.search-engine-select {
    position: relative;
    width: 100px;
    border-right: 1px solid #999999;
}

.select-trigger {
    width: 100%;
    height: 100%;
    padding: 0 35px 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
}

.select-trigger::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    transition: transform 0.3s;
}

.custom-select.active .select-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.select-trigger .engine-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.select-trigger .engine-name {
    font-size: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}

.select-trigger.selected[data-engine="baidu"] { color: #4e6ef2; }
.select-trigger.selected[data-engine="google"] { color: #4285f4; }
.select-trigger.selected[data-engine="bing"] { color: #00809d; }
.select-trigger.selected[data-engine="sogou"] { color: #fb6022; }
.select-trigger.selected[data-engine="so"] { color: #2aaa8f; }
.select-trigger.selected[data-engine="yahoo"] { color: #6001d2; }
.select-trigger.selected[data-engine="yandex"] { color: #fc3f1d; }
.select-trigger.selected[data-engine="qwant"] { color: #5c97ff; }
.select-trigger.selected[data-engine="ask"] { color: #cf0000; }

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100px;
    background: #ffffff;
    border: 1px solid #1088ff;
    border-radius: 5px;
    box-shadow: 0 2px 12px rgba(64,158,255,0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    margin-top: 5px;
}

.custom-select.active .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.option {
    padding: 10px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1;
    color: #555555;
}

.option .engine-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.option:hover {
    background-color: #e0f1ff;
    color: #1088ff;
}

.search-box {
    flex: 1;
    position: relative;
    display: flex;
}

#searchInput, textarea {
    width: 100%;
    padding: 8px 120px 8px 12px;
    border: none;
    border-radius: 0 5px 5px 0;
    outline: none;
    transition: all 0.3s;
    font-size: 14px;
    color: #555;
}

#searchButton {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: calc(50px - 16px);
    width: 60px;
    padding: 0;
    margin: 0;
    border: 1px solid #1088ff;
    border-radius: 5px;
    background-color: #e0f1ff;
    color: #1088ff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#searchButton:hover {
    background-color: #1088ff;
    color: #ffffff;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #1088ff;
    border-radius: 5px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #1088ff #f5f7fa;
}

.search-suggestions.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f5f7fa;
    border-radius: 5px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #1088ff;
    border-radius: 5px;
}

.suggestion-item {
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    line-height: 1;
    font-size: 14px;
    color: #555555;
}

.suggestion-item::before {
    content: attr(data-index);
    margin-right: 8px;
    font-weight: bold;
    min-width: 16px;
    text-align: center;
}

.suggestion-item[data-index="1"]::before { color: #d81500; }
.suggestion-item[data-index="2"]::before { color: #ff5151; }
.suggestion-item[data-index="3"]::before { color: #ff5f00; }
.suggestion-item[data-index="4"]::before { color: #ff8800; }
.suggestion-item[data-index="5"]::before { color: #ffa500; }
.suggestion-item[data-index="6"]::before { color: #ffd200; }
.suggestion-item[data-index="7"]::before { color: #0075ff; }
.suggestion-item[data-index="8"]::before { color: #2faaff; }
.suggestion-item[data-index="9"]::before { color: #60b5ff; }
.suggestion-item[data-index="10"]::before { color: #999999; }

.suggestion-item:hover {
    background-color: #f5f7fa;
    color: #1088ff;
}

.suggestion-switch-container {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 20px;
    z-index: 3;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.suggestion-switch {
    width: 36px;
    height: 18px;
    background-color: #dcdfe6;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.suggestion-switch::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.suggestion-switch.active {
    background-color: #1088ff;
}

.suggestion-switch.active::after {
    transform: translateX(18px);
}

.suggestion-switch-tooltip {
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.suggestion-switch-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.8);
}

.suggestion-switch-container:hover .suggestion-switch-tooltip {
    opacity: 1;
    visibility: visible;
}

.time-section {
    margin: 20px 0;
}

.time-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 11px;
}

.time-item {
    border-radius: 5px;
    padding: 6px;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: #FFFFFF;
}

.time-item .region-row {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
}

.time-item .region-name {
    background: #1E90FF;
    color: #ffffff;
    padding: 2px 2px;
    font-size: 11px;
    white-space: nowrap;
    border-radius: 2px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.flag {
    height: 16px;
    object-fit: cover;
    display: block;
}

.time-item span {
    font-size: 14px;
    color: #888;
    text-align: left;
}

.nav-section {
    display: flex;
    gap: 20px;
}

.main-nav {
    width: 80px;
    position: sticky;
    top: 10px;
    align-self: flex-start;
    z-index: 100;
    background-color: #fff; /* 确保背景色不透明 */
    border-radius: 5px;
}

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

.nav-item {
    padding: 6px 8px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    color: #555555;
    transition: all 0.2s;
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-item:hover {
    color: #1088ff;
}

.nav-item.active {
    color: #ffffff;
    background-color: #1088ff;
    border-radius: 5px;
}

.floor-container {
    flex: 1;
    width: 100%;
    overflow: hidden;
}

.floor {
    background: #fff;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 15px;
    position: relative;
}

.news-floor {
    height: auto;
    min-height: 30px;
    padding: 2.5px 15px !important;
    margin-bottom: 15px;
    overflow: hidden;
}

.news-content {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.floor-icon {
    height: 25px;
    width: auto;
    flex-shrink: 0;
    margin-right: 10px !important;
}

.news-scroll-container {
    flex: 1;
    overflow: hidden !important;
    position: relative;
    height: 30px;
    background-color: #ffffff;
    border-radius: 3px;
}

.news-wrapper {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    height: 100%;
    align-items: center;
}

.news-links {
    display: flex;
    gap: 50px !important;
    white-space: nowrap;
    position: relative;
    height: 100%;
    align-items: center;
}

.news-item {
    white-space: nowrap;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    flex-shrink: 0;
    line-height: 20px;
    transition: color 0.3s;
}

.news-item:hover {
    color: #1088ff;
}

/* 鼠标悬停时暂停动画 */
.news-scroll-container:hover .news-wrapper {
    /* 移除 animation-play-state: paused; */
}

/* 热门工具楼层样式 */
.tools-floor {
    width: 100%;
}

.tools-category-container {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-out;
    will-change: transform, opacity;
    position: absolute;
    width: 100%;
    visibility: hidden;
    display: block;
}

.tools-category-container.active {
    opacity: 1;
    transform: translateX(0);
    display: grid;
    gap: 15px;
    width: 100%;
    position: relative;
    visibility: visible;
}

.tools-category-container[data-category="汇率换算"].active {
    border-radius: 5px;
    border: 1px solid #dddddd;
}

.currency-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 0.5px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    background-color: #dddddd;
}

.unit-converter .unit-row {
    display: grid;
    gap: 0.5px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    background-color: #dddddd;
    border-radius: 5px;
}

.unit-row:first-child {
    grid-template-columns: repeat(6, 1fr);
    border: 0.5px solid #dddddd;
    width: 100%;
    margin-bottom: 10px;
}

.unit-row:last-child {
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
    border: 1px solid #dddddd;
    margin-bottom: 0;
}

.unit-item {
    background: #f0f8ff;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    height: 40px;
}

.unit-item:hover {
    background: linear-gradient(135deg, #c0e0ff, #ddeeff);
}

.unit-item .unit-input {
    width: 100%;
    padding: 6px 8px;
    border-radius: 5px;
    font-size: 14px;
    color: #555;
    transition: all 0.3s;
    outline: none;
}

.unit-name {
    color: #555;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    width: 60px;
    display: block;
    line-height: 1;
}

.unit-input {
    padding: 6px 8px;
    margin: 0;
    font-size: 14px;
    line-height: 1;
}

.currency-item {
    background: #f0f8ff;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    height: 40px;
}

.currency-item:hover {
    background: linear-gradient(135deg, #c0e0ff, #ddeeff);
}

.currency-item img {
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.currency-name {
    color: #555;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    width: 80px;
    display: block;
    line-height: 1;
}

.currency-input {
    padding: 6px 8px;
    margin: 0;
    font-size: 14px;
    line-height: 1;
}

.converter, .tracking, .case-converter {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

input[type="number"], input[type="text"], textarea {
    flex: 1;
    min-width: 50px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

/* 字母大小写转换和文本去重的通用样式 */
.case-converter, .deduplication {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    height: 80px;
}

/* 输入框和结果输出框的通用样式 */
.case-converter textarea, .deduplication textarea {
    flex: 1; /* 输入框和结果输出框平分宽度 */
    resize: none;
    height: 80px;
    padding: 8px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    font-size: 14px;
    width: calc(50% - 55px); /* 确保输入框和输出框宽度一致，考虑中间按钮的宽度和间距 */
}

/* 按钮容器样式 */
.case-converter .buttons, .deduplication .buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 90px; /* 按钮宽度固定 */
    gap: 5px;
    flex-shrink: 0; /* 防止按钮容器被压缩 */
}

/* 按钮样式 */
.case-converter .buttons button, .deduplication .buttons button {
    width: 100%;
    height: 40px;
    padding: 0 8px;
    font-size: 14px;
    background-color: #1088ff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* 输入框与清空按钮的容器样式 */
.input-with-clear {
    position: relative;
    width: calc(50% - 55px);
}

/* 清空按钮样式 */
.clear-button {
    position: absolute;
    bottom: 8px;
    right: 20px;
    padding: 4px 8px;
    font-size: 12px;
    background-color: #e0e0e0;
    color: #666;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
}

.clear-button:hover {
    background-color: #d0d0d0;
    color: #333;
    border-color: #999;
}

/* 更新输入框样式以适应清空按钮 */
.input-with-clear textarea {
    width: 100% !important;
    padding-right: 60px !important;
}

/* 结果容器样式 */
.result-container {
    position: relative;
    width: calc(50% - 55px); /* 与输入框保持相同宽度 */
}

/* 结果输出框样式 */
#caseConversionResult, #deduplicationResult {
    width: 100%;
    resize: none;
}

/* 复制按钮样式 */
#copyResultButton, #copyDeduplicationButton {
    position: absolute;
    bottom: 8px;
    right: 20px;
    padding: 4px 8px;
    font-size: 12px;
    background-color: #e0f1ff;
    color: #1088ff;
    border: 1px solid #1088ff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 1; /* 确保按钮在文本框上方 */
}

#copyResultButton.copied, #copyDeduplicationButton.copied {
    background-color: #51c11a;
    color: #ffffff;
}

/* 物流查询样式 */
.tracking {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    height: 40px;
}

#trackingNumber {
    width: 300px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    flex: none;
    font-size: 14px;
}

.tracking button {
    width: 100px;
    height: 40px;
    border-radius: 5px;
    background-color: #1088ff;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

#trackingResult {
    height: 40px;
    padding: 0 10px;
    border: 1px solid #dddddd;
    background-color: #f0f8ff;
    flex: 1;
    border-radius: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sub-nav-container {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
    position: relative;
    cursor: grab;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.sub-nav-container::-webkit-scrollbar {
    display: none;
}

.sub-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}

.sub-nav-item {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    color: #555555;
    background: #f0f8ff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.sub-nav-item:hover {
    color: #1088ff;
}

.sub-nav-item.active {
    color: #1088ff;
    background-color: #e0f1ff;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    opacity: 0;
    /* 移除 transform 和 transition 属性 */
    will-change: opacity;
    position: absolute;
    visibility: hidden;
}

.category-container.active {
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    width: 100%;
    opacity: 1;
    /* 移除 transform 属性 */
    position: relative;
    visibility: visible;
}

/* 移除滑动相关的类 */
.category-container.slide-in-left,
.category-container.slide-in-right,
.category-container.slide-out-left,
.category-container.slide-out-right {
    transform: none;
    opacity: 0;
}

.site-card {
    background: #f0f8ff;
    border-radius: 5px;
    transition: all 0.3s;
    width: 100%;
    min-width: 0;
    display: flex;
    position: relative;
    overflow: visible;
    flex-direction: column;
}

.site-card:hover {
    background: linear-gradient(135deg, #c0e0ff, #ddeeff);
    transform: scale(1.05);
}

.site-card a {
    text-decoration: none;
    display: flex;
    padding: 12px;
    color: inherit;
    align-items: center;
    gap: 12px;
}

.site-card img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.site-card .text-container {
    flex: 1;
    min-width: 0;
}

.site-card .site-title {
    display: block;
    font-size: 15px;
    color: #111111;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-card p {
    margin: 0;
    font-size: 12px;
    color: #999999;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    white-space: nowrap;
}

/* 网站卡片角标样式 */
.tag {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 30px;
    background-color: #1088ff;
    color: #fff;
    font-size: 12px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    border-top-right-radius: 5px;
}

.tag::before {
    content: attr(data-text);
    display: block;
    transform: translate(20%, 20%) rotate(35deg);
    transform-origin: center center;
    white-space: nowrap;
}

/* ==== 网站卡片浮窗样式 ==== */
.site-card-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 5px;
    padding: 6px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-size: 12px;
    opacity: 0;
    width: 100%;
    box-sizing: border-box;
    left: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    bottom: 100%;
    margin-bottom: 8px;
    white-space: normal;
    text-align: center;
    pointer-events: none;
}

/* 浮窗显示时的状态 */
.site-card-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 浮窗箭头 */
.site-card-tooltip::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.8);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.site-card-tooltip.top::after {
    border-top: none;
    border-bottom: 6px solid rgba(0, 0, 0, 0.8); /* 箭头指向上方 */
    top: -5px;
    bottom: auto;
}

.ad-floor {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 5px;
    background-color: #ffffff;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* 这很重要，确保放大的图片不会超出容器 */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1; /* 添加z-index，确保非激活幻灯片在底层 */
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
    z-index: 5; /* 确保激活幻灯片在顶层 */
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle; /* 确保图片垂直对齐 */
    transition: transform 0.5s ease; /* 添加过渡效果 */
}

.carousel-indicators {
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    padding: 4px 8px;
    border-radius: 12px;
}

.indicator {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator.active {
    width: 16px;
    border-radius: 3px;
    background-color: #ffffff;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: none;
    z-index: 10;
    transition: all 0.3s ease;
    line-height: 30px;
    text-align: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.carousel-container:hover .carousel-btn {
    display: block;
    opacity: 1;
}

/* 添加鼠标悬停时的缩放效果 */
.carousel-container:hover .carousel-slide.active img {
    transform: scale(1.05); /* 图片放大5% */
}

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

.prev-btn {
    left: 10px; /* 调整位置 */
}

.next-btn {
    right: 10px; /* 调整位置 */
}

/* 轮播图计时器样式 */
.carousel-timer {
    position: absolute;
    bottom: 40px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.floor-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.floor-title {
    font-size: 16px;
    color: #555555;
    margin-right: 20px;
    white-space: nowrap;
}

.subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.subcategory {
    padding: 4px 12px;
    background-color: #f5f7fa;
    border-radius: 5px;
    color: #555555;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.subcategory:hover {
    background-color: #e0f1ff;
    color: #1088ff;
}

.subcategory.active {
    background-color: #1088ff;
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    margin-top: 50px;
    color: #555555;
    text-align: center;
}

.footer-section p {
    margin: 10px 0;
}

.footer-links a {
    font-size: 12px;
    color: #555555;
    text-decoration: none;
}

.footer-info p {
    font-size: 14px;
    text-decoration: none;
}

.footer-info a {
    color: #555555;
    text-decoration: none;
}

/* Chat按钮容器 - 完全独立的固定定位 */
.chat-buttons {
    position: fixed;
    bottom: 120px; /* 固定位置，确保在返回顶部按钮上方 */
    right: 10px; /* 与返回按钮组保持相同的右侧距离 */
    z-index: 1111; /* 确保在最上层 */
}

/* Chat按钮样式 */
.chat-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #1088ff;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat按钮悬停效果 */
.chat-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: #0a6fd8;
}

/* 滚动按钮容器样式 */
.scroll-buttons {
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1111; /* 确保在最上层 */
}

.scroll-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%; /* 圆形 */
    background: #1088ff;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 悬停效果 */
.scroll-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: #0a6fd8;
}

/* 隐藏状态 */
.scroll-btn.hidden {
    display: none; /* 仅在必要时使用，避免频繁切换display属性 */
}

/* Chat浮窗样式 - 在左侧显示 */
.chat-popup {
    position: absolute;
    bottom: 0;
    right: 100%; /* 显示在按钮左侧 */
    margin-right: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.1);
    display: none;
    text-align: center;
    z-index: 1111;
}

/* 二维码图片默认尺寸 - 非移动端 */
.qrcode-image {
    width: 100px;  /* 减小浮窗中二维码图片的尺寸 */
    height: 100px;
    margin-bottom: 5px;
    border: 1px solid #eee;
}

/* 二维码文字默认样式 - 非移动端 */
.qrcode-text {
    margin: 0;
    font-size: 12px;
    color: #333;
}

/* 显示Chat浮窗 */
.chat-buttons:hover .chat-popup {
    display: block;
}

/* 按钮内图片样式 - 缩小图标尺寸 */
.btn-image {
    width: 20px;  /* 从24px减小到20px */
    height: 20px;
    object-fit: contain;
}

/* 移动端适配调整 */
@media (max-width: 768px) {
    body .news-floor {
        padding: 2.5px 10px;
    }
	
    .floor-icon {
        height: 20px; /* 移动端缩小图标 */
    }
    
    .news-item {
        font-size: 12px; /* 移动端缩小字体 */
    }
    
    @keyframes scrollNews {
        0% {
            transform: translateX(100%);
        }
        100% {
            transform: translateX(-100%);
        }
    }
}

/* 新增移动端样式 */
@media screen and (max-width: 768px) {
    .content-section {
        margin: 20px 10px;
        max-width: calc(100% - 20px);
    }
    
    /* 移动端搜索容器不悬浮，位于logo下方 */
    .main-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }
    
    /* 移动端logo容器悬浮并居中 */
    .logo-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #f0f8ff;
        z-index: 1000;
    }
    
    body .logo {
        width: 120px;
        height: auto;
    }
    
    /* 移动端菜单按钮样式调整 */
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 10px;
        top: 20px;
        transform: translateY(-50%);
        color: #1088ff;
        border: none;
        background-color: transparent;
        font-size: 20px;
        cursor: pointer;
    }
    
    /* 移动端搜索容器样式调整 */
    .search-container {
        margin-top: 30px; /* 为悬浮logo容器留出空间 */
        max-width: 100%;
        height: 40px;
        font-size: 14px;
    }
    
    /* 移动端内容区域为固定头部留出空间 */
    .time-section {
        margin-top: 10px;
    }
    
    /* 时间模块 */
    .time-container {
        gap: 5px;
        flex-wrap: wrap;
    }
	
    .time-item {
        flex-basis: calc(50% - 2.5px);
    }
	
	.flag{
    display: none;
    }
    
    /* 移动端主分类按钮 */
    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0; /* 初始位置在视口内 */
        padding: 20px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        height: 100vh;
        background: #ffffff;
        transition: transform 0.3s ease; /* 改用 transform 过渡 */
        z-index: 1000;
        transform: translateX(-100%); /* 默认隐藏：向左平移100%宽度 */
    }

    .main-nav.active {
        transform: translateX(0); /* 显示：平移回原位 */
    }

    .mobile-menu-btn.rotated {
        transform: translateY(-50%) rotate(90deg);
    }
    
    /* 汇率换算 */
    body .currency-row {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }
    
    .currency-item img {
        display: none;
    }
    
    /* 单位转换 */
    body .unit-row {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }
    
    /* 确保单位转换的网格布局在移动端正确应用为2列 */
    body .unit-converter .unit-row {
        grid-template-columns: repeat(2, minmax(100px, 1fr)) !important;
    }
    
    /* 确保第一行和最后一行都应用相同的2列布局 */
    body .unit-converter .unit-row:first-child,
    body .unit-converter .unit-row:last-child {
        grid-template-columns: repeat(2, minmax(100px, 1fr)) !important;
    }
    
    /* 字母大小写转换 */
    .case-converter {
        flex-direction: column;
        height: auto;
        align-items: stretch;
    }
    
    body .input-with-clear {
        width: 100%;
        position: relative;
    }
    
    body .input-with-clear textarea {
        width: 100%;
        padding-right: 60px;
        height: 80px;
    }
    
    .clear-button {
        position: absolute;
        bottom: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .case-converter .buttons {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    
    .case-converter .buttons button {
        width: 32%;
    }
    
    .case-converter .result-container {
        width: 100%;
        position: relative;
    }
    
    body .case-converter .result-container textarea {
        width: 100%;
        padding-right: 80px;
    }
    
    #copyResultButton, #copyDeduplicationButton {
        right: 10px;
    }
    
    /* 文本去重 */
    .case-converter.deduplication {
        flex-direction: column;
        height: auto;
    }
    
    #deduplicationInput {
        width: 100%;
    }
    
    /* 物流查询 */
    .tracking {
        flex-direction: column;
        gap: 10px;
        height: auto;
    }

    #trackingNumber {
        width: 100%;
        min-width: 200px;
    }

    .tracking button {
        width: 100%;
    }

    #trackingResult {
        width: 100%;
        min-height: 40px;
    }

    /* 网站卡片布局 */
    body .category-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 修复网站分类楼层下网站卡片的显示问题 */
    body .category-container.active {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@keyframes placeholderShake {
    0%, 100% {
        color: #999999;
        opacity: 1;
    }
    50% {
        color: #999999;
        opacity: 0.8;
    }
}

.shake-placeholder::placeholder {
    animation: placeholderShake 0.6s ease-in-out;
    color: #ff5050;
}

/* 热点推荐楼层样式 */
.hot-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
    align-items: center;
}

.hot-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
    line-height: 1;
}

.hot-link:hover {
    color: #1088ff;
}

.hot-link-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    object-fit: contain;
    vertical-align: middle;
}

.hot-link-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    vertical-align: middle;
}

/* 移动端热点推荐样式适配 */
@media (max-width: 768px) {
    .hot-links-container {
        gap: 15px;
        padding: 10px;
        justify-content: flex-start;
    }
    
    .hot-link-icon {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }
    
    .hot-link-text {
        font-size: 13px;
    }
}