* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* 平滑滚动到锚点 */
html {
    scroll-padding-top: 80px;
    /* 顶部导航栏的高度加一些额外空间 */
}

/* 底部区域 */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    margin-top: 60px;
    padding: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 主要内容区域 */
.footer-main {
    padding: 60px 0 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* 确保子元素分布在两端 */
    align-items: flex-start;
    gap: 40px;
}

.footer-brand-qr-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    /* 控制品牌信息和二维码之间的间距 */
    flex: 1 1 100%;
    /* 占据整个可用宽度 */
    flex-wrap: wrap;
    /* 允许内部元素换行 */
    width: 100%;
    /* 确保占据全宽 */
}

/* 品牌信息区域 */
.footer-brand {
    flex: 1 1 300px;
    /* 调整flex基础和增长/收缩因子 */
    /* margin-right: 40px; */
    /* Removed to rely on parent gap */
    margin-bottom: 30px;
    min-width: 280px;
    /* 确保品牌信息不会被过度压缩 */
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 28px;
    margin-right: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-slogan {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    max-width: 90%;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

/* 导航链接区域 */
.footer-nav {
    flex: 2 1 200px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-nav-column {
    flex: 1 1 160px;
    min-width: 160px;
}

.footer-nav-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    position: relative;
}

.footer-nav-column h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    border-radius: 4px;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 8px;
}

/* 二维码区域 */
.footer-qr {
    flex: 0 1 320px;
    /* 调整flex基础和增长/收缩因子，允许收缩但不要过度增长 */
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* 保持原有对齐 */
    margin-bottom: 30px;
    /* 保持底部间距 */
    margin-left: auto;
    /* 将二维码推到容器的最右侧 */
}

.footer-qr h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    position: relative;
}

.footer-qr h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

.qr-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.qr-item {
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.qr-item:hover {
    transform: translateY(-5px);
}

.qr-code {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.qr-code:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.qr-placeholder {
    text-align: center;
    color: #7b68ee;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.qr-icon {
    font-size: 32px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qr-placeholder p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.qr-label {
    font-size: 13px;
    /* Adjusted from 12px to consolidate, or choose preferred size */
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    /* Kept from the first definition */
    display: block;
    width: 100%;
    text-align: center;
    /* Kept from the first definition */
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.copyright {
    flex: 1;
}

.copyright p {
    margin: 5px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.back-to-top {
    display: flex;
    align-items: center;
}

.back-to-top a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.back-to-top a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.top-arrow {
    font-size: 16px;
    font-weight: bold;
}

/* 重复的返回顶部按钮样式已移除，使用统一样式定义 */

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
    color: #1e293b;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    background-image: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* 顶部导航栏 */
.top-nav {
    background: linear-gradient(90deg, #ffffff, #f8f9fa);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #7b68ee;
    margin-right: 32px;
}

.logo i {
    font-size: 24px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    margin: 0 auto;
    max-width: 1200px;
    justify-content: center;
}

.nav-item {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0 15px;
    font-size: 15px;
}

.nav-item:hover,
.nav-item.active {
    color: #7b68ee;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7b68ee, #a78bfa);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0.8);
    transition: transform 0.3s ease;
}

.nav-item:hover::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7b68ee, #a78bfa);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0.6);
    opacity: 0.7;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn {
    background: linear-gradient(135deg, #7b68ee 0%, #6a5acd 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(123, 104, 238, 0.3);
    font-size: 14px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #6a5acd 0%, #7b68ee 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(123, 104, 238, 0.4);
}

/* 左侧导航栏 */
.sidebar {
    width: 200px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 12px;
    padding: 20px 0;
    height: fit-content;
    position: fixed;
    left: calc(50% - 920px);
    top: 84px;
    border: 1px solid rgba(123, 104, 238, 0.1);
    z-index: 99;
    box-shadow: 0 10px 30px rgba(123, 104, 238, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sidebar:hover {
    box-shadow: 0 15px 40px rgba(123, 104, 238, 0.12);
    transform: translateY(-5px);
}

/* 主容器 */
.main-container {
    max-width: 1600px;
    /* 增加最大宽度 */
    margin: 0 auto;
    padding: 20px;
    justify-content: center;
    position: relative;
}

.sidebar-header {
    padding: 0 24px 20px;
    border-bottom: 1px solid rgba(123, 104, 238, 0.1);
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, rgba(123, 104, 238, 0) 0%, rgba(123, 104, 238, 0.3) 50%, rgba(123, 104, 238, 0) 100%);
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.sidebar-header h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7b68ee 0%, #a78bfa 100%);
    transition: width 0.3s ease;
}

.sidebar:hover .sidebar-header h3::after {
    width: 100%;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0 0;
    transition: all 0.3s ease;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: #64748b;
    position: relative;
    overflow: hidden;
    margin: 0 10px;
    border-radius: 8px;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(123, 104, 238, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
    transition: all 0.6s ease;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    background: linear-gradient(90deg, rgba(123, 104, 238, 0.08) 0%, rgba(123, 104, 238, 0.02) 100%);
    color: #7b68ee;
    transform: translateX(5px);
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(123, 104, 238, 0.12) 0%, rgba(123, 104, 238, 0.05) 100%);
    color: #7b68ee;
    font-weight: 600;
    box-shadow: 0 5px 10px rgba(123, 104, 238, 0.1);
}

.menu-item i {
    width: 18px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #64748b;
}

.menu-item:hover i {
    color: #7b68ee;
    transform: scale(1.1);
}

.menu-item.active i {
    color: #7b68ee;
}

.menu-item span {
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.menu-item:hover span {
    transform: translateX(3px);
}

/* 主内容区域 */
.content {
    width: 100%;
    /* 修改为100%宽度 */
    max-width: 1400px;
    min-width: 0;
    margin: 0 auto;
    /* padding: 30px; */
    /* border: 1px solid rgba(123, 104, 238, 0.1); */
    /* border-radius: 12px;
    background: white; */
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    background-image: linear-gradient(135deg, #ffffff 0%, #fcfcff 100%); */
}

/* 重复的.card样式已移除，使用统一样式定义 */

/* 搜索区域 */
.search-section {
    text-align: center;
    margin: 0 auto 32px;
    max-width: 100%;
    padding: 20px 0;
    /* border-bottom: 1px solid #e2e8f0; */
}

/* 搜索引擎选择tabs */
/* 搜索引擎下拉选择器 */
.search-engine-dropdown {
    position: relative;
    z-index: 10;
}

.dropdown-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 54px;
    background: white;
    border: 2px solid rgba(123, 104, 238, 0.2);
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 54px;
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
    border-right: none;
}

.dropdown-selected .engine-name {
    display: none;
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 12px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.dropdown-selected.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: white;
    border: 2px solid rgba(123, 104, 238, 0.2);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 20px rgba(123, 104, 238, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    white-space: nowrap;
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏 Webkit 浏览器的滚动条 */
.dropdown-menu::-webkit-scrollbar {
    display: none;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(123, 104, 238, 0.05);
    color: #7b68ee;
}

.dropdown-item.active {
    background: rgba(123, 104, 238, 0.1);
    color: #7b68ee;
    font-weight: 600;
}

.engine-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.engine-icon img {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    object-fit: contain;
}

.engine-name {
    white-space: nowrap;
}

.tab-icon {
    font-size: 16px;
    display: inline-block;
    vertical-align: middle;
}

.tab-icon img {
    vertical-align: middle;
    border-radius: 2px;
}

.tab-name {
    font-weight: 600;
}

.search-header {
    margin-bottom: 32px;
}

.search-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    text-align: center;
}

.highlight {
    color: #7b68ee;
}

.search-header p {
    font-size: 16px;
    color: #64748b;
}

.search-box {
    position: relative;
    max-width: 60%;
    margin: 0 auto 24px;
    box-shadow: 0 5px 20px rgba(123, 104, 238, 0.1);
    display: flex;
    align-items: stretch;
}

.search-box input {
    flex: 1;
    height: 54px;
    padding: 0 70px 0 25px;
    border: 2px solid rgba(123, 104, 238, 0.2);
    border-radius: 0 12px 12px 0;
    border-left: none;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}



.search-box input::placeholder {
    color: #a0aec0;
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #7b68ee 0%, #6a5acd 100%);
    border: none;
    border-radius: 21px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(123, 104, 238, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #6a5acd 0%, #7b68ee 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(123, 104, 238, 0.4);
}

/* 导航栏中的搜索按钮样式已移除 */

.search-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    padding: 8px 16px;
    background: rgba(123, 104, 238, 0.08);
    color: #7b68ee;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(123, 104, 238, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.tag:hover {
    background: rgba(123, 104, 238, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(123, 104, 238, 0.15);
}

/* 海报展示区域 */
.poster-section {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.poster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 420px;
}

/* 轮播海报样式 */
.poster-main-carousel {
    grid-column: 1;
    grid-row: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    color: white;
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.poster-main-carousel:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    width: 33.333%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.carousel-item:hover {
    filter: brightness(1.15) contrast(1.05);
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.1) 80%);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.carousel-item:hover::after {
    opacity: 0.9;
}

.carousel-item .poster-content {
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.95;
    position: relative;
    z-index: 2;
    width: 100%;
}

.carousel-item:hover .poster-content {
    transform: translateY(-15px);
    opacity: 1;
}

.carousel-item:nth-child(1) {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjUwMCIgdmlld0JveD0iMCAwIDUwMCA1MDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXIpIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXIiIHgxPSIyNTAiIHkxPSIwIiB4Mj0iMjUwIiB5Mj0iNTAwIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiMwMDk5RkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMDAxQUZGIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+');
}

.carousel-item:nth-child(2) {
    background-image: linear-gradient(135deg, #FF5722 0%, #FF9800 100%);
}

.carousel-item:nth-child(3) {
    background-image: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 5;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.poster-main-carousel:hover .carousel-controls {
    opacity: 1;
    transform: translateY(-5px);
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.carousel-indicators {
    display: flex;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.indicator:hover {
    transform: scale(1.3);
    background: rgba(255, 255, 255, 0.4);
}

.indicator.active {
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

/* 主海报内容样式 */
.poster-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.poster-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.logo-icon {
    font-size: 24px;
    margin-right: 8px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
}

.poster-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ffffff, #f0f0f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.poster-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.poster-tag {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 12px;
}

.poster-date {
    font-size: 24px;
    font-weight: 700;
    color: #4facfe;
}

/* 右侧小海报区域 */
.poster-side {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.poster-small {
    border-radius: 16px;
    overflow: hidden;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.poster-small:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.small-poster-content {
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.poster-small:hover .small-poster-content {
    transform: translateY(-5px);
}

.poster-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

.poster-small:hover::before {
    opacity: 0.85;
}

.poster-small h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.poster-subtitle {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.poster-desc {
    font-size: 12px;
    opacity: 0.9;
}

.poster-icon {
    font-size: 20px;
    margin-bottom: 10px;
    display: inline-block;
}

.poster-1 {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.poster-2 {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.poster-3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.poster-4 {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

/* 横幅广告区域 */
.banner-section {
    margin-bottom: 40px;
    border: 1px solid rgba(123, 104, 238, 0.1);
    border-radius: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fcfcff 100%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    height: 110px;
}

.banner-item {
    border-radius: 12px;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.banner-item:hover::before {
    opacity: 1;
}

.banner-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.banner-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.banner-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.banner-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.banner-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.banner-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.banner-item p {
    font-size: 12px;
    opacity: 0.9;
}

/* 区域标题 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    padding-left: 15px;
}

.section-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 28px;
    background: linear-gradient(to bottom, #7b68ee, #6a5acd);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.section-header:hover::before {
    height: 35px;
    background: linear-gradient(to bottom, #8a7af0, #7b68ee);
}

.section-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.3s ease;
}

.section-header:hover h2 {
    color: #7b68ee;
    transform: translateX(5px);
}

.update-time {
    font-size: 14px;
    color: #64748b;
    background: rgba(123, 104, 238, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(123, 104, 238, 0.1);
}

.section-header:hover .update-time {
    background: rgba(123, 104, 238, 0.1);
    color: #7b68ee;
    transform: translateX(5px);
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 固定一排显示5个 */
    gap: 20px;
    /* 增加间距 */
    margin-top: 30px;
    margin-bottom: 40px;
    position: relative;
}

.tools-grid::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(123, 104, 238, 0) 0%, rgba(123, 104, 238, 0.2) 50%, rgba(123, 104, 238, 0) 100%);
}

/* 分类标签样式 */
.category-label {
    grid-column: 1 / -1;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(123, 104, 238, 0.08) 0%, rgba(123, 104, 238, 0.02) 100%);
    border-left: 5px solid #7b68ee;
    border-radius: 10px;
    color: #7b68ee;
    font-size: 20px;
    font-weight: 600;
    display: none;
    /* 默认隐藏所有分类标签 */
    box-shadow: 0 5px 15px rgba(123, 104, 238, 0.05);
    position: relative;
    overflow: hidden;
}

.category-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(123, 104, 238, 0.05) 0%, rgba(123, 104, 238, 0) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-label:hover::before {
    opacity: 1;
}

/* 隐藏没有内容的分类标签 */
.category-label:not(:has(+ .tool-card[style*="display: flex"])) {
    display: none !important;
}

.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-bottom: 32px;
}

/* 工具卡片 */
.tool-card {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 16px 20px;
    background: white;
    border: 1px solid rgba(123, 104, 238, 0.1);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    min-height: 100px;
    /* 设置最小高度确保卡片高度一致 */
    height: auto;
    /* 允许内容撑开高度 */
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #7b68ee, #a78bfa);
    transition: height 0.4s ease;
    border-radius: 4px 0 0 4px;
}

.tool-card:hover::before {
    height: 100%;
}

.tool-card:hover {
    border-color: rgba(123, 104, 238, 0.3);
    box-shadow: 0 10px 25px rgba(123, 104, 238, 0.1);
    transform: translateY(-5px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.tool-card.featured {
    border-color: rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.1);
}

.tool-card.featured::before {
    background: linear-gradient(to bottom, #fbbf24, #f59e0b);
}

.tool-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: rgba(123, 104, 238, 0.05);
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(123, 104, 238, 0.1);
}

.tool-card:hover .tool-icon {
    background-color: rgba(123, 104, 238, 0.1);
    transform: scale(1.05);
    box-shadow: 0 5px 10px rgba(123, 104, 238, 0.1);
}

.tool-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.tool-card:hover .tool-icon img {
    transform: scale(1.15);
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
}

.icon-text {
    font-size: 16px;
    margin-right: 8px;
    display: inline-block;
    width: 20px;
    text-align: center;
}

.tool-info {
    flex: 1;
    min-width: 0;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-info {
    transform: translateX(5px);
}

.tool-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.tool-card:hover .tool-info h3 {
    color: #7b68ee;
}

.tool-info p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 限制描述文字最多显示2行 */
    line-clamp: 2;
    /* 标准属性,实现跨浏览器兼容 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 42px;
    /* 2行文字的最大高度 */
}

.tool-card:hover .tool-info p {
    color: #4b5563;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    /* 减少标签间距 */
    margin-top: 6px;
    /* 减少上边距 */
}

.tool-tags .tag {
    font-size: 12px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.08) 0%, rgba(123, 104, 238, 0.05) 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(123, 104, 238, 0.1);
    box-shadow: 0 2px 5px rgba(123, 104, 238, 0.05);
}

.tool-tags .tag:hover {
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.15) 0%, rgba(123, 104, 238, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(123, 104, 238, 0.1);
}

.tool-tag {
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.08) 0%, rgba(123, 104, 238, 0.05) 100%);
    color: #7b68ee;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(123, 104, 238, 0.1);
    box-shadow: 0 2px 5px rgba(123, 104, 238, 0.05);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.tool-tag:hover {
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.15) 0%, rgba(123, 104, 238, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(123, 104, 238, 0.1);
}

.tool-link {
    background: linear-gradient(135deg, #7b68ee 0%, #6a5acd 100%);
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    align-self: center;
    white-space: nowrap;
    margin-top: 0;
    box-shadow: 0 4px 10px rgba(123, 104, 238, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.tool-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transition: all 0.6s ease;
}

.tool-card:hover .tool-link::before {
    left: 100%;
}

.tool-link:hover {
    background: linear-gradient(135deg, #6a5acd 0%, #7b68ee 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(123, 104, 238, 0.3);
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .banner-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .banner-4,
    .banner-5 {
        display: none;
    }
}

@media (max-width: 1100px) {
    .content {
        width: auto;
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 16px;
        position: static;
    }

    .content {
        width: 100%;
        margin: 0;
        padding: 15px;
    }

    .nav-container {
        justify-content: center;
    }

    .logo,
    .nav-right {
        position: static;
    }

    .nav-menu {
        display: none;
    }

    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        gap: 8px;
    }

    .banner-item {
        height: 70px;
    }

    .search-header h1 {
        font-size: 24px;
    }

    .search-box {
        max-width: 95%;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 搜索引擎tabs响应式 */
    .search-engine-tabs {
        max-width: 95%;
        gap: 4px;
        padding: 6px;
    }

    .tab-item {
        padding: 8px 12px;
        min-width: 80px;
        font-size: 13px;
    }

    .tab-icon {
        font-size: 14px;
    }

    .tab-name {
        font-size: 12px;
    }
}

/* 底部区域响应式 */
.footer-main {
    padding: 40px 0 30px;
}

.footer-container {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.footer-brand {
    margin-right: 0;
    width: 100%;
    max-width: 100%;
}

.footer-nav {
    width: 100%;
    gap: 20px;
    justify-content: space-between;
}

.footer-nav-column {
    min-width: auto;
    flex: 0 1 140px;
    max-width: 160px;
}

.footer-qr {
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
}

.qr-container {
    gap: 20px;
    justify-content: flex-start;
}

.qr-code {
    width: 100px;
    height: 100px;
}

.footer-bottom .footer-container {
    flex-direction: column;
    gap: 15px;
}

.copyright {
    text-align: center;
    width: 100%;
}

.back-to-top {
    margin: 0 auto;
}

@media (max-width: 900px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }

    .search-header h1 {
        font-size: 24px;
    }

    .tool-card {
        padding: 10px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    /* 底部区域超小屏幕响应式 */
    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }

    .footer-nav-column {
        width: 100%;
        max-width: 100%;
    }

    .qr-container {
        justify-content: center;
        width: 100%;
    }

    .footer-qr h4 {
        width: 100%;
        text-align: center;
    }

    .footer-qr h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }
}

/* 分类标题样式 */
.category-title {
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

/* 分类描述样式 */
.category-desc {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 120px;
}

.category-desc:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 隐藏没有内容的分类 */
.category-title:not(:has(+ .tool-card[style*="display: flex"])) {
    display: none !important;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-right {
    min-width: 300px;
}

.qr-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
}

.qr-codes {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.qr-item {
    text-align: center;
}

.qr-code {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: translateY(-5px);
}

.qr-placeholder {
    text-align: center;
    color: #7b68ee;
}

.qr-placeholder .qr-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.qr-placeholder p {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    color: #666;
}

.qr-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: block;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    text-align: center;
    margin: 5px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* 重复的返回顶部按钮样式已移除，使用统一样式定义 */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #e8e7ff;
    color: #334155;
    line-height: 1.6;
}

/* 顶部导航栏 */
.top-nav {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #7b68ee;
    margin-right: 32px;
}

.logo i {
    font-size: 24px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    margin: 0 auto;
    max-width: 1200px;
    justify-content: center;
}

.nav-item {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding: 0 10px;
}

.nav-item:hover,
.nav-item.active {
    color: #7b68ee;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #7b68ee;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn {
    background: #7b68ee;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #6a5acd;
}

/* 左侧导航栏 */
.sidebar {
    width: 180px;
    /* 减小宽度以匹配线框图 */
    background: white;
    border-radius: 8px;
    padding: 15px 0;
    /* 减少内边距 */
    height: fit-content;
    position: fixed;
    /* 改为固定定位，使其始终悬浮 */
    left: calc(50% - 900px);
    /* 更靠近主内容区左侧，但不影响主内容区布局 */
    top: 84px;
    /* 调整顶部距离，留出顶部导航栏的空间 */
    border: 1px solid #d8d5ff;
    z-index: 99;
    /* 确保在大多数内容之上，但低于顶部导航栏 */
}

/* 主容器 */
.main-container {
    max-width: 1600px;
    /* 增加最大宽度 */
    margin: 0 auto;
    display: flex;
    gap: 20px;
    /* 减少间距 */
    padding: 20px;
    justify-content: center;
    position: relative;
}

.sidebar-header {
    padding: 0 24px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.sidebar-menu {
    list-style: none;
    padding: 16px 0 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
}

.menu-item:hover {
    background: #f0f0ff;
    color: #7b68ee;
}

.menu-item.active {
    background: #f0f0ff;
    color: #7b68ee;
    border-right: 3px solid #7b68ee;
}

.menu-item i {
    width: 16px;
    font-size: 14px;
}

.menu-item span {
    font-size: 14px;
    font-weight: 500;
}

/* 重复的主内容区域样式已移除，使用统一样式定义 */

.card {
    border: 1px solid #d8d5ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
}

/* 搜索区域 */
.search-section {
    text-align: center;
    margin: 0 auto 32px;
    max-width: 100%;
    padding: 20px 0;
    /* border-bottom: 1px solid #e2e8f0; */
}

.search-header {
    margin-bottom: 32px;
}

.search-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    text-align: center;
}

.highlight {
    color: #7b68ee;
}

.search-header p {
    font-size: 16px;
    color: #64748b;
}

/* 重复的搜索框样式已移除，使用主样式定义 */

/* 导航栏搜索按钮相关样式已全部移除 */

/* 刷新图标按钮 */
.refresh-favicon-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 8px 32px rgba(103, 126, 234, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
}

.refresh-favicon-btn svg {
    transition: transform 0.3s ease;
}

.refresh-favicon-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 12px 40px rgba(103, 126, 234, 0.4) !important;
}

.refresh-favicon-btn:hover svg {
    transform: translateY(-1px);
}

.refresh-favicon-btn:active {
    transform: translateY(0) scale(0.98) !important;
}

.refresh-favicon-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.search-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    background: #f0f0ff;
    color: #7b68ee;
    border-radius: 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.tag:hover {
    background: #e2e8f0;
}

/* 海报展示区域 */
.poster-section {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.poster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    height: 400px;
}

/* 主海报样式 */
.poster-main {
    grid-column: 1;
    grid-row: 1;
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    color: white;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjUwMCIgdmlld0JveD0iMCAwIDUwMCA1MDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXIpIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXIiIHgxPSIyNTAiIHkxPSIwIiB4Mj0iMjUwIiB5Mj0iNTAwIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiMwMDk5RkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMDAxQUZGIi8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+');
    background-size: cover;
    background-position: center;
}

.poster-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.poster-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.poster-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.logo-icon {
    font-size: 24px;
    margin-right: 8px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
}

.poster-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ffffff, #f0f0f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.poster-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.poster-tag {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 12px;
}

.poster-date {
    font-size: 24px;
    font-weight: 700;
    color: #4facfe;
}

/* 右侧小海报区域 */
.poster-side {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
}

.poster-small {
    border-radius: 8px;
    overflow: hidden;
    padding: 15px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.poster-small:hover {
    transform: translateY(-5px);
}

.small-poster-content {
    position: relative;
    z-index: 2;
}

.poster-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.poster-small h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.poster-subtitle {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.poster-desc {
    font-size: 12px;
    opacity: 0.9;
}

.poster-icon {
    font-size: 20px;
    margin-bottom: 10px;
    display: inline-block;
}

.poster-1 {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.poster-2 {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.poster-3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.poster-4 {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

/* 横幅广告区域 */
.banner-section {
    margin-bottom: 30px;
    border: 1px solid #d8d5ff;
    border-radius: 8px;
    padding: 15px;
    background: white;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    height: 100px;
}

.banner-item {
    border-radius: 6px;
    padding: 15px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.banner-item:hover {
    transform: translateY(-2px);
}

.banner-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.banner-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.banner-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.banner-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.banner-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.banner-item p {
    font-size: 12px;
    opacity: 0.9;
}

/* 区域标题 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
}

.update-time {
    font-size: 14px;
    color: #64748b;
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 固定一排显示5个 */
    gap: 12px;
    /* 减少间距 */
    margin-top: 20px;
}

/* 分类标签样式 */
.category-label {
    grid-column: 1 / -1;
    margin-top: 30px;
    margin-bottom: 10px;
    padding: 10px 15px;
    background-color: #f0f0ff;
    border-left: 4px solid #7b68ee;
    border-radius: 4px;
    color: #7b68ee;
    font-size: 18px;
    font-weight: 600;
    display: none;
    /* 默认隐藏所有分类标签 */
}

/* 隐藏没有内容的分类标签 */
.category-label:not(:has(+ .tool-card[style*="display: flex"])) {
    display: none !important;
}

.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-bottom: 32px;
}

/* 工具卡片 */
.tool-card {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 8px 12px;
    /* 进一步减少上下内边距 */
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    /* 进一步减少圆角 */
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tool-card:hover {
    border-color: #7b68ee;
    box-shadow: 0 4px 12px rgba(123, 104, 238, 0.15);
    transform: translateY(-2px);
}

.tool-card.featured {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.tool-icon {
    width: 28px;
    /* 进一步减小图标容器 */
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: #f5f5f5;
    margin-right: 10px;
    /* 进一步减少右边距 */
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.tool-icon img {
    width: 20px;
    /* 减小图标尺寸 */
    height: 20px;
    object-fit: contain;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.tool-icon img:hover {
    transform: scale(1.1);
}

.icon-text {
    font-size: 16px;
    margin-right: 8px;
    display: inline-block;
    width: 20px;
    text-align: center;
}

.tool-info {
    flex: 1;
    min-width: 0;
    margin-right: 10px;
    /* 减少右边距 */
}

.tool-info h3 {
    font-size: 14px;
    /* 减小标题字体 */
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    /* 减少下边距 */
}

.tool-info p {
    font-size: 12px;
    /* 减小描述字体 */
    color: #64748b;
    line-height: 1.4;
    /* 减少行高 */
    margin-bottom: 6px;
    /* 减少下边距 */
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    /* 减少标签间距 */
    margin-top: 6px;
    /* 减少上边距 */
}

.tool-tags .tag {
    font-size: 12px;
    padding: 2px 8px;
}

.tool-tag {
    background: #f0f0ff;
    color: #7b68ee;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.tool-link {
    background: #7b68ee;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
    align-self: flex-start;
    white-space: nowrap;
    margin-top: 2px;
}

.tool-link:hover {
    background: #6a5acd;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 响应式设计 - 侧边栏特定样式 */
@media (max-width: 1100px) {
    .sidebar {
        left: 20px;
    }

    .content {
        width: auto;
        margin: 0 20px 0 220px;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
        border-radius: 6px;
        left: auto;
    }
}

/* 分类标题样式 */
.category-title {
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

/* 隐藏没有内容的分类 */
.category-title:not(:has(+ .tool-card[style*="display: flex"])) {
    display: none !important;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-right {
    min-width: 300px;
}

.qr-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
}

.qr-codes {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.qr-item {
    text-align: center;
}

.qr-code {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: translateY(-5px);
}

.qr-placeholder {
    text-align: center;
    color: #7b68ee;
}

.qr-placeholder .qr-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.qr-placeholder p {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    color: #666;
}

.qr-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: block;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    text-align: center;
    margin: 5px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(103, 126, 234, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top.visible {
    opacity: 0.9;
    visibility: visible;
}

.back-to-top:hover {
    opacity: 1;
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(103, 126, 234, 0.4);
}

.back-to-top:hover svg {
    transform: translateY(-1px);
}

.back-to-top:active {
    transform: translateY(0) scale(0.98);
}