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

body {
    font-size: 100%; /* 使用百分比作为基础单位，确保可以自动缩放 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

/* 整体布局 */
.container {
    display: flex;
    min-height: 100vh;
}

/* 左侧导航 */
.sidebar {
    width: 12.5rem; /* 200px 转换为 rem 单位，确保可以自动缩放 */
    background-color: #ffffff;
    border-right: 1px solid #f0f0f0;
    padding: 1.25rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00c48c;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 196, 140, 0.2);
    letter-spacing: 0.5px;
}

.logo i, .logo img {
    margin-right: 0.5rem;
    font-size: 1.75rem;
    height: 1.75rem;
    transition: all 0.3s ease;
}

.logo:hover i,
.logo:hover img {
    transform: scale(1.1);
    text-shadow: 0 4px 8px rgba(0, 196, 140, 0.3);
}

.nav-menu {
    list-style: none;
    padding: 0.5rem 0;
}

.nav-item {
    padding: 0.875rem 1.25rem; /* 14px 20px 转换为 rem 单位 */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 0 0.5rem 0.5rem 0;
    font-weight: 400;
    margin: 0;
    border-left: 3px solid transparent;
}

.nav-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.nav-item:hover {
    background-color: rgba(0, 196, 140, 0.1);
    color: #00c48c;
    transform: translateX(0.25rem);
    border-left-color: rgba(0, 196, 140, 0.3);
}

.nav-item.active {
    background-color: linear-gradient(135deg, #00c48c 0%, #00a877 100%);
    background-color: #00c48c;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 196, 140, 0.4);
    border-radius: 0 0.5rem 0.5rem 0;
    position: relative;
    border-left-color: #008c6a;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.3125rem; /* 5px */
    background-color: #008c6a;
    border-radius: 0 0.25rem 0.25rem 0;
}

.nav-item i {
    margin-right: 0.875rem; /* 14px 转换为 rem 单位 */
    width: 1.125rem; /* 18px 转换为 rem 单位 */
    text-align: center;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.nav-item:hover i {
    color: #00c48c;
    transform: scale(1.2) rotate(5deg);
}

.nav-item.active i {
    color: #ffffff;
    transform: scale(1.1);
}

.nav-item span {
    transition: all 0.3s ease;
}

.nav-item:hover span {
    opacity: 0.9;
}

.hot-tag {
    display: inline-block;
    background-color: #ff4757;
    color: #ffffff;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    font-weight: 600;
    vertical-align: middle;
}

/* 分组分隔 */
.nav-item[data-target="section-featured"] {
    margin-top: 0.625rem;
    border-top: 2px solid rgba(0, 196, 140, 0.1);
    padding-top: 1rem;
}



.nav-footer {
    margin-top: auto;
    padding: 1rem;
    font-size: 0.75rem;
    color: #888;
    border-top: 1px solid #f0f0f0;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-footer div {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.nav-footer div:hover {
    color: #00c48c;
    background-color: rgba(0, 196, 140, 0.1);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: 12.5rem; /* 200px 转换为 rem 单位，与侧边栏宽度保持一致 */
    padding: 1.25rem; /* 20px 转换为 rem 单位 */
    background-color: #f5f5f5;
}

/* 顶部栏 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0;
    flex-wrap: wrap;
    background-color: #fff;
    /*border-bottom: 2px solid #00c48c;*/
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px 32px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    /*background: linear-gradient(90deg, #00c48c 0%, #00a877 100%);*/
}

/* logo标题样式 */
.logo-title h1 {
    font-size: 1.875rem; /* 30px */
    font-weight: 700;
    color: #00c48c;
    margin: 0;
    padding: 0;
    text-shadow: 0 2px 4px rgba(0, 196, 140, 0.2);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.logo-title h1:hover {
    color: #00a877;
    text-shadow: 0 4px 8px rgba(0, 196, 140, 0.3);
}

/* 最新发布 */
.latest-releases {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
}

.latest-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.latest-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.latest-releases .latest-tool-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.latest-releases .latest-tool-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.latest-releases .latest-tool-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
    background-color: #f0f9f5;
    color: #00c48c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.latest-releases .latest-tool-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.latest-releases .latest-tool-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* 页面标题和介绍 */
.page-header {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 30px;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    color: #333;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #00c48c 0%, #00a877 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.hero-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.hero-feature-item i {
    font-size: 24px;
    color: #00c48c;
}

.hero-feature-item span {
    font-weight: 500;
    color: #333;
}

/* 顶部统计和广告区域 */
.top-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}

.top-section .stats-container {
    flex: 0 0 250px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.top-section .banner-container {
    flex: 1;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.top-section .latest-releases {
    flex: 0 0 280px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.search-box {
    width: 400px;
    padding: 12px 16px 12px 48px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background-color: rgba(0, 196, 140, 0.1);
    color: #333;
}

.search-box:focus {
    width: 440px;
    background-color: rgba(0, 196, 140, 0.15);
}

.search-container {
    position: relative;
}

.search-container::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #00c48c;
    font-size: 15px;
}

.top-actions {
    display: flex;
    align-items: center;
}

.top-actions .action-btn {
    margin-left: 15px;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.top-actions .primary-btn {
    background-color: #00c48c;
    color: #fff;
    border: 1px solid #00c48c;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-actions .primary-btn:hover {
    background-color: #00a877;
    border-color: #00a877;
    box-shadow: 0 2px 8px rgba(0, 196, 140, 0.3);
}

.top-actions .secondary-btn {
    background-color: #fff;
    color: #666;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.top-actions .secondary-btn:hover {
    background-color: #f0f9f5;
    border-color: #e8f5e9;
    color: #00c48c;
}

.top-actions .icon-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
}

.top-actions .icon-btn:hover {
    background-color: #f5f5f5;
}

/* header-right 样式 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right .header-link {
    color: #555;
    text-decoration: none;
    font-size: 1rem; /* 16px */
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header-right .header-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 196, 140, 0.1), transparent);
    transition: left 0.5s ease;
}

.header-right .header-link:hover::before {
    left: 100%;
}

.header-right .header-link:hover {
    color: #00c48c;
    background-color: #f0f9f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 196, 140, 0.2);
}

/* 统计信息 */
.stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.stat-card {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-content {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    /*background-color: #00c48c;*/
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #00c48c;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    margin-bottom: 0;
    font-size: 22px;
    transition: all 0.3s ease;
    background-color: #f0f9f5;
    color: #00c48c;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    background-color: #00c48c;
    color: #fff;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.stat-card:hover .stat-number {
    color: #00c48c;
}

.stat-label {
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
}

.stat-card:hover .stat-label {
    color: #444;
}

/* 广告横幅 */
.banner-container {
    margin-bottom: 20px;
    display: flex;
    align-items: stretch;
}

.banner {
    width: 100%;
    height: 100%;
    min-height: 160px;
    background: linear-gradient(135deg, #00c48c 0%, #00a877 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 0 48px;
    box-shadow: 0 6px 20px rgba(0, 196, 140, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.8s ease-out;
}

.banner:hover::before {
    left: 100%;
}

.banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 196, 140, 0.5);
}

.banner-content {
    max-width: 55%;
    z-index: 1;
}

.banner-content h3 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    line-height: 1.3;
}

.banner-content p {
    font-size: 16px;
    opacity: 0.98;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.banner-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
}

.computer-screen {
    width: 220px;
    height: 130px;
    background-color: #fff;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    transform: perspective(1000px) rotateY(-5deg);
}

.banner:hover .computer-screen {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.screen-header {
    height: 24px;
    background-color: #333;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.screen-dots {
    display: flex;
    gap: 6px;
}

.screen-dots::before,
.screen-dots::after,
.screen-dots span {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff5f57;
}

.screen-dots span {
    background-color: #ffbd2e;
}

.screen-dots::after {
    background-color: #27ca3f;
}

.screen-content {
    padding: 15px;
    height: calc(100% - 24px);
}

.screen-icons {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    position: relative;
}

.screen-icons::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 2s infinite ease;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.4;
    }
}

/* 我的工具 */
.my-tools-container {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border: 2px solid #00c48c;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 196, 140, 0.1);
}

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

.my-tools-header h2 {
    font-size: 18px;
}

/* 绿色按钮样式 */
.green-btn {
    background-color: #00c48c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.green-btn:hover {
    background-color: #00a877;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 196, 140, 0.3);
}

.add-tool-btn {
    width: 100%;
    padding: 40px;
    background-color: #fff;
    border: 2px dashed #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
}

.add-tool-btn:hover {
    border-color: #00c48c;
    color: #00c48c;
}

/* 工具分类区域 */
.tools-section {
    margin-bottom: 30px;
}

.tools-section h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.tools-section h2 i {
    margin-right: 8px;
    color: #00c48c;
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 工具卡片 */
.tool-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    position: relative;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #00c48c;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.tool-icon {
    font-size: 24px;
    color: #00c48c;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
    color: #00a877;
}

.tool-name {
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tool-card:hover .tool-name {
    color: #00c48c;
}

.tool-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.tool-card:hover .tool-desc {
    color: #444;
}

/* 添加到我的工具按钮 */
.add-to-my-tools {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 196, 140, 0.1);
    color: #00c48c;
    border: 1px solid rgba(0, 196, 140, 0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
}

.tool-card:hover .add-to-my-tools {
    opacity: 1;
}

.add-to-my-tools:hover {
    background-color: #00c48c;
    color: #fff;
    transform: scale(1.1);
}

.add-to-my-tools.added {
    background-color: #00c48c;
    color: #fff;
    opacity: 1;
}

.no-tools {
    font-size: 13px;
    color: #666;
}

/* 我的工具区域 */
.my-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.my-tool-card {
    position: relative;
    border: 2px solid #00c48c;
    background-color: #f8fff9;
}

.remove-from-my-tools {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 77, 79, 0.1);
    color: #ff4d4f;
    border: 1px solid rgba(255, 77, 79, 0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.remove-from-my-tools:hover {
    background-color: #ff4d4f;
    color: #fff;
    transform: scale(1.1);
}

/* 右侧边栏 */
.right-sidebar {
    width: 300px;
    margin-left: 20px;
}

.sidebar-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
}

.sidebar-section h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.latest-tools {
    list-style: none;
}

.latest-tool-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.latest-tool-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.latest-tool-icon {
    width: 40px;
    height: 40px;
    background-color: #f0f9f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #00c48c;
}

.latest-tool-info {
    flex: 1;
}

.latest-tool-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
}

.latest-tool-desc {
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }
    
    .latest-releases {
        display: none;
    }
    
    .top-section {
        flex-direction: column;
    }
    
    .top-section .stats-container {
        flex: 1;
        width: 100%;
        flex-direction: row;
    }
    
    .top-section .banner-container {
        flex: 1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 3.75rem; /* 60px 转换为 rem 单位 */
    }

    .main-content {
        margin-left: 3.75rem; /* 60px 转换为 rem 单位 */
        padding: 0.625rem; /* 10px 转换为 rem 单位 */
    }

    .logo span,
    .nav-item span {
        display: none;
    }
    
    .nav-footer {
        display: none;
    }

    .search-box {
        width: 12.5rem; /* 200px 转换为 rem 单位 */
    }
    
    .search-box:focus {
        width: 12.5rem;
    }

    .stats-container {
        flex-direction: column;
    }
    
    .top-section {
        flex-direction: column;
    }
    
    .top-section .stats-container {
        flex: 1;
        width: 100%;
        flex-direction: column;
    }
    
    .top-section .banner-container {
        flex: 1;
        width: 100%;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(13.75rem, 1fr)); /* 220px 转换为 rem 单位 */
    }
    
    /* 顶部栏在移动设备上的优化 */
    .top-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .logo-title {
        width: 100%;
        text-align: center;
    }
    
    .logo-title h1 {
        font-size: 1.5rem;
    }
    .logo-title h2 {
        font-size: 1rem;
    }
    .search-container {
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .top-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .top-actions .action-btn {
        margin-left: 0;
    }
    
    /* header-right 在移动设备上的优化 */
    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .header-right .header-link {
        font-size: 0.875rem;
        padding: 8px 14px;
    }

    .header-right .header-link:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 196, 140, 0.2);
    }
    
    /* 广告横幅在移动设备上的优化 */
    .banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .banner-content {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .banner-content h3 {
        font-size: 1.5rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .banner-image {
        justify-content: center;
    }
    
    .computer-screen {
        width: 150px;
        height: 90px;
    }
}

/* 小型手机设备的额外优化 */
@media (max-width: 480px) {
    .sidebar {
        width: 3.125rem; /* 50px 转换为 rem 单位 */
    }
    
    .main-content {
        margin-left: 3.125rem; /* 50px 转换为 rem 单位 */
    }
    
    .nav-item {
        padding: 0.5rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); /* 200px 转换为 rem 单位 */
    }
    
    /* 工具卡片触摸友好性优化 */
    .tool-card {
        padding: 1.25rem;
    }
    
    .add-to-my-tools {
        opacity: 1;
        width: 2rem;
        height: 2rem;
    }
}

.footer {
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    padding: 24px 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1890ff;
}

.copyright {
    color: #999;
    font-size: 12px;
}