/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.5;
    color: #111827;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8faff 100%);
}

/* 应用容器 */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* 左侧侧边栏 */
.sidebar {
    width: 250px;
    background-color: #f8f9fa;
    border-right: 1px solid #e5e7eb;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7C3AED 0%, #6366f1 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
}

.logo span {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.sidebar.collapsed .logo span {
    display: none;
}

.sidebar.collapsed .logo i {
    margin: 0 auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 16px 0;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background-color: #e9ecef;
    color: #2563EB;
}

.sidebar-nav a.active {
    color: #2563EB;
    border-left-color: #2563EB;
    background-color: #eff6ff;
}

.sidebar.collapsed .sidebar-nav a span {
    display: none;
}

.sidebar.collapsed .sidebar-nav a {
    justify-content: center;
    padding: 12px 0;
}

/* Font Awesome 图标样式 */
.sidebar-nav i {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.sidebar-nav a:hover i {
    color: #2563EB;
}

.sidebar-nav a.active i {
    color: #2563EB;
}

/* 主内容区 */
.main-wrapper {
    flex: 1;
    margin-left: 250px;
    transition: all 0.3s ease;
    width: calc(100% - 250px);
    box-sizing: border-box;
}

.sidebar.collapsed + .main-wrapper {
    margin-left: 60px;
    width: calc(100% - 60px);
}

.search-container {
    margin-bottom: 10px;
}

@keyframes line-animation {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

.categories-nav {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 8px;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-nav-link {
    text-align: center;
    padding: 6px 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.3px;
    display: block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.category-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.category-nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 顶部导航栏 */
.navbar {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    background-size: 400% 400%;
    animation: wave-animation 15s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 900;
    overflow: hidden;
}

@keyframes surfer-animation {
    0% {
        left: -30px;
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(-5deg);
    }
    100% {
        left: 100%;
        transform: translateY(0) rotate(0deg);
    }
}

/* 海浪效果 */
@keyframes wave-animation {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 75%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 0% 25%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.menu-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(147, 197, 253, 0.2) 100%);
    background-size: 400% 400%;
    animation: wave-animation 8s ease-in-out infinite;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.menu-toggle:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3) 0%, rgba(147, 197, 253, 0.3) 100%);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: #e2e8f0;
    transition: transform 0.2s ease;
}

.top-nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: #e0f2fe;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link i {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bae6fd;
}

.nav-link:hover i {
    color: #ffffff;
}

.nav-link.active i {
    color: #ffffff;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
}

.navbar-center {
    text-align: center;
}

.site-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 5px;
}

/* 全宽线条容器 */
.full-width-line {
    position: relative;
    width: 100%;
    height: 30px;
    margin: 0 0 10px;
    overflow: visible;
}

.full-width-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 1.5px;
    background: linear-gradient(90deg, #ff9500 0%, #ffffff 25%, #ff9500 50%, #ffffff 75%, #ff9500 100%);
    background-size: 400% 100%;
    animation: line-animation 6s linear infinite;
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.5);
}

/* 冲浪者效果 */
.full-width-line::before {
    content: '🏄';
    font-size: 24px;
    position: absolute;
    top: 0;
    left: 0;
    animation: surfer-animation 15s linear infinite;
    z-index: 2;
}

.search-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.search-tab {
    text-decoration: none;
    color: #e0f2fe;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.search-tab:hover {
    color: #ffffff;
}

.search-tab.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.search-box {
    display: flex;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.6);
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #e2e8f0;
    background: transparent;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-btn {
    padding: 0 16px;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    background-size: 400% 400%;
    animation: wave-animation 8s ease-in-out infinite;
    border: none;
    color: #1e3a8a;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.search-btn:hover {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
    transform: scale(0.98);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.7);
}

.search-btn i {
    width: 16px;
    height: 16px;
    color: #1e3a8a;
}

/* 主内容 */
.content {
    padding: 24px;
}

.content-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.vertical-tabs {
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vertical-tab {
    display: block;
    padding: 12px 0;
    text-align: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.vertical-tab:hover {
    background-color: #e9ecef;
    color: #2563EB;
}

.vertical-tab.active {
    background-color: #2563EB;
    color: #ffffff;
}

.horizontal-tabs {
    flex: 1;
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.horizontal-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.horizontal-tab:hover {
    background-color: #e9ecef;
    color: #2563EB;
}

.horizontal-tab.active {
    background-color: #eff6ff;
    color: #2563EB;
}

.horizontal-tab i {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
}

.horizontal-tab:hover i {
    color: #2563EB;
}

.horizontal-tab.active i {
    color: #2563EB;
}

/* 资讯卡片流 */
.news-section {
    margin-bottom: 24px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.news-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-card-content {
    padding: 16px;
}

.news-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

.news-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* 广告横幅 */
.banner-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.banner {
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.banner-blue {
    background-color: #2563EB;
}

.banner-green {
    background-color: #10b981;
}

.banner h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.banner p {
    font-size: 14px;
    margin-bottom: 16px;
}

.banner-btn {
    align-self: flex-start;
    padding: 8px 16px;
    background-color: #ffffff;
    color: #2563EB;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.banner-btn:hover {
    transform: scale(0.98);
}

/* 分类导航 */
.categories-section {
    margin-bottom: 24px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.category-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid #e5e7eb;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.category-name {
    font-weight: 500;
    font-size: 14px;
}

/* 热门工具区 */
.tools-section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-right: 12px;
}

.section-badge {
    padding: 4px 12px;
    background-color: #7C3AED;
    color: #ffffff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.tool-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.tool-card-content {
    display: flex;
    gap: 12px;
}

.tool-logo {
    width: 32px;
    height: 32px;
    background-color: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.tool-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.tool-logo-img-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.tool-info {
    flex: 1;
}

.tool-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 2px;
}

.tool-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* 页脚 */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 24px 0;
    margin-left: 250px;
    transition: all 0.3s ease;
}

.sidebar.collapsed ~ footer {
    margin-left: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 左下角登录按钮 */
.login-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.login-btn:hover {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 右下角功能按钮 */
.bottom-right-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-icon {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-icon i {
    font-size: 18px;
}

footer p {
    color: #6b7280;
    font-size: 14px;
}

.login-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.login-btn:hover {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 工具详情页面样式 */
.tool-detail {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 32px;
    margin: 24px 0;
}

.tool-header {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.tool-logo-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7C3AED 0%, #6366f1 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    font-weight: 600;
    flex-shrink: 0;
}

.tool-header-info {
    flex: 1;
}

.tool-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.tool-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #eff6ff;
    color: #2563EB;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.tool-desc {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.tool-link:hover {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.tool-section {
    margin-bottom: 32px;
}

.tool-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.tool-detailed-description {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.5;
}

.feature-list li:last-child {
    border-bottom: none;
}

.highlight-features {
    list-style: none;
    padding: 0;
}

.highlight-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.5;
}

.highlight-features li:last-child {
    border-bottom: none;
}

.usage-steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
}

.usage-steps li {
    position: relative;
    padding: 12px 0 12px 40px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.5;
}

.usage-steps li:last-child {
    border-bottom: none;
}

.usage-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background-color: #3b82f6;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.target-audience {
    list-style: none;
    padding: 0;
}

.target-audience li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.5;
}

.target-audience li:last-child {
    border-bottom: none;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background-color: #f3f4f6;
    color: #4b5563;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

/* 深色主题下的工具详情页面样式 */
body.dark-theme .tool-detail {
    background-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-theme .tool-header {
    border-bottom: 1px solid #475569;
}

body.dark-theme .tool-header h1 {
    color: #e2e8f0;
}

body.dark-theme .tool-category {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

body.dark-theme .tool-desc {
    color: #94a3b8;
}

body.dark-theme .tool-section h2 {
    color: #e2e8f0;
    border-bottom: 1px solid #475569;
}

body.dark-theme .tool-detailed-description {
    color: #cbd5e1;
}

body.dark-theme .feature-list li {
    border-bottom: 1px solid #475569;
    color: #cbd5e1;
}

body.dark-theme .highlight-features li {
    border-bottom: 1px solid #475569;
    color: #cbd5e1;
}

body.dark-theme .usage-steps li {
    border-bottom: 1px solid #475569;
    color: #cbd5e1;
}

body.dark-theme .target-audience li {
    border-bottom: 1px solid #475569;
    color: #cbd5e1;
}

body.dark-theme .tag {
    background-color: #475569;
    color: #cbd5e1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    footer {
        margin-left: 0;
    }
    
    .content-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .vertical-tabs {
        width: 100%;
        flex-direction: row;
    }
    
    .banner-section {
        grid-template-columns: 1fr;
    }
    
    /* 移动端登录按钮 */
    .login-btn {
        bottom: 16px;
        left: 16px;
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* 移动端功能按钮 */
    .bottom-right-buttons {
        bottom: 16px;
        right: 16px;
        gap: 8px;
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
    }
    
    .btn-icon i {
        font-size: 16px;
    }
    
    /* 移动端分类导航 */
    .categories-navbar {
        top: 120px;
    }
    
    .categories-nav {
        padding: 0 16px;
        gap: 12px;
    }
    
    .category-nav-link {
        font-size: 13px;
        padding: 5px 10px;
    }
}

@media (max-width: 768px) {
    .navbar-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .top-nav {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .horizontal-tabs {
        overflow-x: auto;
        padding-bottom: 12px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* 骨架屏 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 深色主题 */
body.dark-theme {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
}

body.dark-theme .sidebar {
    background-color: #1e293b;
    border-right: 1px solid #334155;
}

body.dark-theme .sidebar-header {
    border-bottom: 1px solid #334155;
}

body.dark-theme .logo span {
    color: #e2e8f0;
}

body.dark-theme .sidebar-nav a {
    color: #94a3b8;
}

body.dark-theme .sidebar-nav a:hover {
    background-color: #334155;
}

body.dark-theme .sidebar-nav a.active {
    background-color: rgba(59, 130, 246, 0.2);
}

body.dark-theme .main-wrapper {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

body.dark-theme .content {
    background: transparent;
}

body.dark-theme .news-card {
    background-color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-theme .news-card h3 {
    color: #e2e8f0;
}

body.dark-theme .news-card p {
    color: #94a3b8;
}

body.dark-theme .tool-card {
    background-color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-theme .tool-name {
    color: #e2e8f0;
}

body.dark-theme .tool-desc {
    color: #94a3b8;
}

body.dark-theme footer {
    background-color: #1e293b;
    border-top: 1px solid #334155;
}

body.dark-theme footer p {
    color: #94a3b8;
}

body.dark-theme .search-box {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

body.dark-theme .search-box:focus-within {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
}

body.dark-theme .search-box input {
    color: #e2e8f0;
}

body.dark-theme .search-box input::placeholder {
    color: #94a3b8;
}

body.dark-theme .search-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

body.dark-theme .search-btn:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.7);
}

body.dark-theme .search-btn i {
    color: #ffffff;
}

body.dark-theme .search-tab {
    color: #94a3b8;
}

body.dark-theme .search-tab:hover {
    color: #3b82f6;
}

body.dark-theme .search-tab.active {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

body.dark-theme .horizontal-tab {
    color: #94a3b8;
}

body.dark-theme .horizontal-tab:hover {
    background-color: #334155;
    color: #3b82f6;
}

body.dark-theme .horizontal-tab.active {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

body.dark-theme .vertical-tab {
    color: #94a3b8;
}

body.dark-theme .vertical-tab:hover {
    background-color: #334155;
    color: #3b82f6;
}

body.dark-theme .vertical-tab.active {
    background-color: #3b82f6;
    color: #ffffff;
}

/* 深色模式分类导航栏 */
body.dark-theme .categories-navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    background-size: 400% 400%;
    animation: wave-animation 15s ease-in-out infinite;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-theme .category-nav-link {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .category-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .category-nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-theme .banner {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-theme .category-card {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-theme .category-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .navbar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-theme .navbar-left {
    border-bottom: 1px solid #334155;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

body.dark-theme .menu-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #334155;
}

body.dark-theme .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

body.dark-theme .menu-toggle span {
    background-color: #e2e8f0;
}

body.dark-theme .site-title {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

body.dark-theme .nav-link {
    color: #94a3b8;
}

body.dark-theme .nav-link i {
    color: #64748b;
}

body.dark-theme .nav-link:hover {
    color: #3b82f6;
}

body.dark-theme .nav-link:hover i {
    color: #3b82f6;
}

body.dark-theme .nav-link.active {
    color: #3b82f6;
}

body.dark-theme .nav-link.active i {
    color: #3b82f6;
}

body.dark-theme .nav-link.active::after {
    background-color: #3b82f6;
}

/* 滚动时搜索区域缩小样式 */
.navbar {
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 8px 24px;
}

.navbar.scrolled .site-title {
    display: none;
}

.navbar.scrolled .search-tabs {
    display: none;
}

/* 冲浪小人和线条保持显示 */
.navbar.scrolled .full-width-line {
    height: 20px;
    margin: 5px 0;
}

.navbar.scrolled .categories-nav {
    margin-top: 8px;
    padding: 8px;
}

.navbar.scrolled .search-container {
    max-width: 400px;
    margin-bottom: 0;
    transition: max-width 0.3s ease;
}

.navbar.scrolled .search-box {
    border-radius: 8px;
    transition: border-radius 0.3s ease;
}

.navbar.scrolled .search-box input {
    padding: 8px 12px;
    font-size: 13px;
    transition: padding 0.3s ease, font-size 0.3s ease;
}

.navbar.scrolled .search-btn {
    padding: 0 12px;
    transition: padding 0.3s ease;
}

.navbar.scrolled .navbar-left {
    margin-bottom: 8px;
    transition: margin-bottom 0.3s ease;
}

.navbar.scrolled .top-nav {
    gap: 16px;
    transition: gap 0.3s ease;
}

.navbar.scrolled .nav-link {
    font-size: 13px;
    transition: font-size 0.3s ease;
}

/* 小搜索框样式 */
.navbar.compact .search-container {
    max-width: 300px;
    transition: max-width 0.3s ease;
}

/* 分类导航栏始终保持显示 */
.navbar.compact .categories-nav {
    margin-top: 8px;
    padding: 8px;
}

