/* --- 全局设置 --- */
:root {
    /* 科技感色盘 (深色底 + 亮色点缀) */
    --bg-dark-primary: #1a1a2e;  /* 整体最深背景 */
    --bg-dark-secondary: #a1a1d2; /* 备用深色 */
    --text-primary: #e0e0e0;     /* 主要文字颜色 (浅灰色) */
    --text-secondary: #a0a0c0;   /* 次要文字颜色 (灰紫色) */
    --accent-primary: #7b2cbf;   /* 鲜艳的主点缀色 (亮紫色) */
    --accent-hover: #5a1e8c;     /* 悬停颜色 */

    /* 玻璃效果的关键变量 */
    --glass-bg: rgba(42, 42, 78, 0.6);         /* ★ 关键: 半透明背景 (60%透明度) */
    --glass-border: rgba(255, 255, 255, 0.1); /* 玻璃亮边 */

    /* 霓虹效果颜色 */
    --neon-primary: #7b2cbf;      /* 主霓虹色 (紫色) */
    --neon-secondary: #00d4ff;    /* 次霓虹色 (青色) */
    --neon-accent: #ff00ff;       /* 强调霓虹色 (品红) */
}

body {
    margin: 0;
    font-family: 'Roboto', 'Helvetica Neue', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden; /* 防止水平滚动 */

    /* * ★ 关键改进点 1:
     * 必须给 body 一个渐变或图片背景，毛玻璃才有东西可模糊。
     */
    background:
            radial-gradient(circle at 20% 50%, rgba(123, 44, 191, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(0, 150, 255, 0.15) 0%, transparent 50%),
            linear-gradient(135deg, #1f1f3f, #1a1a2e 70%, #2a2a4e 100%);
    background-attachment: fixed; /* 固定背景，滚动时玻璃划过背景，效果更佳 */
    min-height: 100vh;
    position: relative;
}

/* =========================================
   新增：滚动动画系统
   ========================================= */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 顺序延迟 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================
   布局与原有样式保持
   ========================================= */
.container { display: flex; min-height: 100vh; }

/* 侧边栏 */
.sidebar {
    width: 240px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column; /* 垂直排列 */
    position: fixed; /* 固定在左侧 */
    height: 100vh;
    box-sizing: border-box; /* 确保padding不会撑大宽度 */
    z-index: 1000; /* 确保在最上层 */
    top: 0;
    left: 0;

    /* * ★ 关键改进点 2: 应用玻璃效果（增强版） */
    background: linear-gradient(
            135deg,
            rgba(42, 42, 78, 0.35) 0%,
            rgba(30, 30, 60, 0.25) 50%,
            rgba(42, 42, 78, 0.35) 100%
    );

    /* 核心毛玻璃效果 */
    backdrop-filter: blur(30px) saturate(180%) brightness(1.15);
    -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(1.15);

    /* 备用：如果浏览器不支持backdrop-filter */
    @supports not (backdrop-filter: blur(1px)) {
        background: rgba(42, 42, 78, 0.9);
    }

    border-right: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow:
            4px 0px 40px rgba(0, 0, 0, 0.4),
            inset -2px 0px 2px rgba(255, 255, 255, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    will-change: backdrop-filter;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    padding: 1rem 1.2rem;
    position: relative;
    line-height: 1.2;
    box-sizing: border-box;
    width: 100%;

    /* 圆角矩形装饰 */
    border-radius: 15px;
    border: 2px solid var(--neon-primary);
    background: rgba(123, 44, 191, 0.1);

    /* 霓虹发光效果 */
    text-shadow: 0 0 15px var(--neon-primary);
    box-shadow: 0 0 20px rgba(123, 44, 191, 0.2);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

.navigation .nav-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.navigation .nav-link:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(5px);
    color: #fff;
    border-color: rgba(255,255,255,0.1);
}

.navigation .nav-link.active {
    background: linear-gradient(90deg, rgba(123, 44, 191, 0.4), transparent);
    color: #fff;
    border-left: 3px solid var(--neon-secondary);
    text-shadow: 0 0 10px var(--neon-primary);
}

.sidebar-footer {
    margin-top: auto; /* 自动推到底部 */
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* --- 右侧主内容区 --- */
.main-content {
    flex-grow: 1; /* 占据剩余所有空间 */
    padding: 2rem 3rem;
    margin-left: 240px; /* 为左侧固定栏留出空间 */
    overflow-y: auto; /* 内容过多时可滚动 */
}

h2 {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

/* ★ 修改部分：标题下划线样式 ★ */
h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;

    /* 1. 变长：从 60% 改为 100%，使其与文字等宽 */
    width: 100%;

    height: 3px;
    background: linear-gradient(90deg, var(--neon-secondary), transparent);

    /* 2. 新增：发光眩晕效果 */
    box-shadow: 0 0 10px var(--neon-secondary);

    /* 3. 新增：呼吸灯动画，增强动感 */
    animation: lineGlow 2s infinite alternate;
}

/* ★ 新增：下划线发光动画的关键帧 ★ */
@keyframes lineGlow {
    from {
        box-shadow: 0 0 5px var(--neon-secondary);
        opacity: 0.7;
    }
    to {
        box-shadow: 0 0 15px var(--neon-secondary), 0 0 25px var(--neon-secondary);
        opacity: 1;
    }
}

/* --- 新增: 首页副标题 --- */
.sub-header {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

/* --- 首页顶部图片 --- */
.header-image-container {
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    background-color: var(--bg-dark-secondary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer;
    position: relative;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* 小尺寸图片容器 */
.header-image-container.image-small {
    height: 180px;
}

/* 图片内部容器 */
.header-image-container > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(123, 44, 191, 0.2);
}

/* --- 新增: 霓虹虚线 --- */
.neon-dashed-line {
    width: 100%;
    height: 0;
    border-bottom: 2px dashed rgba(0, 212, 255, 0.4); /* 呼应h2的青色 */
    margin: 2rem 0;
    opacity: 0.6;
}

/* --- 页面切换逻辑 --- */
.page-section {
    display: none; /* 默认隐藏所有页面 */
    animation: fadeIn 0.6s ease forwards;
}

.page-section.active {
    display: block; /* 仅显示激活的页面 */
}

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

/* --- 工具箱网格 --- */
.tool-grid {
    display: grid;
    /* "一行分五个部分" */
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

/* --- 链接卡片样式重置 --- */
a.tool-card,
a.tool-card:visited,
a.recent-item-card,
a.recent-item-card:visited {
    text-decoration: none; /* 移除下划线 */
    color: inherit; /* 继承父级颜色 */
}

.tool-card {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.2), rgba(0, 212, 255, 0.2));
    border-color: var(--neon-primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.tool-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: #fff; }
.tool-card p { font-size: 0.85rem; margin: 0; color: var(--text-secondary); }

/* --- 新增: 最近项目网格 --- */
.recent-projects-grid {
    display: grid;
    /* "一行两个项目" */
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* --- ★ 改进 2: "最近项目"液态玻璃效果 --- */
.recent-item-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.recent-item-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(123,44,191,0.15), rgba(0,212,255,0.1));
    border-color: rgba(255,255,255,0.3);
}

.recent-item-card h3 { color: #fff; margin-top: 0; }
.recent-item-card p { color: var(--text-primary); margin: 0; line-height: 1.4; }

/* --- 新增: 最近项目 - 空状态 --- */
.recent-empty-message {
    text-align: center;
    padding: 2rem;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 10px;
    color: var(--text-secondary);
}

/* =========================================
   ★★★ 重点修改：传输板块与按钮 ★★★
   ========================================= */
.transfer-container {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* 背景动效 */
.transfer-container::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.15) 0%, transparent 60%);
    animation: rotateBg 10s infinite linear;
    pointer-events: none;
    z-index: 0;
}
@keyframes rotateBg { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 增强型传输按钮 (流光效果) */
.transfer-btn-enhanced {
    position: relative;
    z-index: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 280px;
    height: 70px;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    border-radius: 35px;
    background: rgba(20, 20, 40, 0.6);
    border: 2px solid rgba(0, 212, 255, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.transfer-btn-enhanced .btn-text {
    position: relative;
    z-index: 2;
    transition: letter-spacing 0.3s ease;
}

/* 按钮内部流光 */
.transfer-btn-enhanced .btn-glitch {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.transfer-btn-enhanced:hover {
    transform: scale(1.05);
    border-color: var(--neon-secondary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4), inset 0 0 10px rgba(0, 212, 255, 0.2);
}

.transfer-btn-enhanced:hover .btn-text {
    letter-spacing: 2px;
    text-shadow: 0 0 8px #fff;
}

.transfer-btn-enhanced:hover .btn-glitch {
    left: 100%;
    transition: left 0.6s ease;
}


/* =========================================
   新增：留言板与弹窗样式
   ========================================= */

/* 首页标题区域布局 (标题 + 按钮) */
.section-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    flex-wrap: wrap; /* 手机端允许换行 */
    gap: 10px;
}

.section-header-wrapper .sub-header {
    margin: 0; /* 移除原有 margin */
    border-bottom: none; /* 移除原有边框，由 wrapper 承担 */
    padding-bottom: 0;
}

/* 留言板按钮组 */
.guestbook-controls {
    display: flex;
    gap: 10px;
}

.gb-btn {
    background: rgba(123, 44, 191, 0.2);
    border: 1px solid var(--neon-primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

.gb-btn:hover {
    background: var(--neon-primary);
    box-shadow: 0 0 10px var(--neon-primary);
}

/* 通用弹窗 (Modal) 样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, rgba(42, 42, 78, 0.9), rgba(30, 30, 60, 0.95));
    border: 1px solid var(--neon-secondary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.modal-close:hover { color: #fff; }

/* 留言输入框样式 */
.gb-textarea {
    width: 100%;
    height: 100px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 1rem;
    font-family: inherit;
    resize: none;
}
.gb-textarea:focus {
    outline: none;
    border-color: var(--neon-primary);
}

/* 留言列表样式 */
.gb-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
}
.gb-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 3px solid var(--neon-secondary);
}
.gb-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}
.gb-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    word-break: break-all; /* 防止长英文撑破容器 */
}


/* =========================================
   ★★★ 移动端布局重构 (修正版) ★★★
   ========================================= */
@media (max-width: 768px) {
    /* 1. 彻底禁止横向滚动 */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .container {
        flex-direction: column;
        width: 100%;
        overflow-x: hidden; /* 确保容器也不溢出 */
    }

    /* 2. 侧边栏 -> 顶部吸附导航 */
    .sidebar {
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        padding: 0.8rem 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 0 0 25px 25px; /* 底部圆角 */
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        flex-direction: column;
        align-items: center;
        box-sizing: border-box; /* 确保内边距不撑大宽度 */
        background: rgba(26, 26, 46, 0.95);
    }

    .logo {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        padding: 0.4rem 1rem;
        display: inline-block;
        width: auto;
    }

    .navigation ul {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        flex-wrap: wrap;
    }
    .navigation li { flex: 0 1 auto; }
    .navigation .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        border-radius: 12px;
        margin-bottom: 0;
    }
    .sidebar-footer { display: none; }

    /* 3. 主内容区域适配 */
    .main-content {
        margin-left: 0;
        width: 100%;
        box-sizing: border-box; /* 关键 */
        padding: 1.5rem;
        padding-top: 2rem;
    }

    /* 4. 适配“最近无打开项目”框 */
    .recent-empty-message {
        width: 90%; /* 缩小宽度 */
        margin: 2rem auto; /* 居中 */
        box-sizing: border-box;
        font-size: 0.9rem;
    }

    /* 工具网格和项目网格 */
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .recent-projects-grid {
        grid-template-columns: 1fr;
    }

    /* Serverless 按钮 */
    .transfer-btn-enhanced {
        width: 90%;
        height: 60px;
        font-size: 1.3rem;
    }

    /* 留言板头部适配 */
    .section-header-wrapper {
        flex-direction: row; /* 保持同一行，除非太挤 */
        align-items: center;
    }
    .sub-header {
        font-size: 1.3rem;
    }
}

/* =========================================
   视觉优化补丁 (背景延伸 + 字体适配)
   ========================================= */

/* 1. 设置网页视口外的背景色 (解决手机端回弹露白问题) */
html {
    background-color: #1a1a2e; /* 使用与主题一致的深蓝底色 */
}

/* 2. 手机端标题文字强制单行适配 */
@media (max-width: 768px) {
    .首页文字1 {
        font-size: clamp(0.8rem, 4vw, 1.2rem) !important;
        white-space: nowrap;
        display: block;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #home p {
        font-size: 0.9rem;
    }
}

/* --- 文本选中效果 --- */
::selection { background: var(--accent-primary); color: #fff; }

.text-selected {
    transform: scale(1.02);
    text-shadow: 0 0 10px var(--neon-primary);
    animation: textSelectPulse 0.4s ease-out;
}
@keyframes textSelectPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1.02); }
}

/* 部分字体设置 */
.首页文字1 { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: #fff; font-size: 1.8rem; }
.abourtme1 { font-size: 1.2rem; margin: 0.5rem 0; }
.abourtme2 { color: var(--text-secondary); margin: 0.3rem 0; }

/* * ★★★ 新增: 工具卡片多彩样式 ★★★ */

/* --- Tool 1 (主色: 紫色 - 匹配品牌) --- */
.tool-card.tool-1 {
    background: linear-gradient(135deg, hsla(273, 90%, 55%, 0.2), hsla(273, 90%, 55%, 0.1));
    border-color: hsla(273, 90%, 55%, 0.3);
}
.tool-card.tool-1:hover {
    background: linear-gradient(135deg, hsla(273, 90%, 55%, 0.3), hsla(273, 90%, 55%, 0.2));
    border-color: hsl(273, 90%, 55%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 25px hsl(273, 90%, 55%), inset 0 0 15px rgba(255, 255, 255, 0.2);
}
.tool-card.tool-1 h3 { text-shadow: 0 0 8px hsl(273, 90%, 55%); }

/* --- Tool 2 (主色: 青色 - 匹配品牌) --- */
.tool-card.tool-2 {
    background: linear-gradient(135deg, hsla(190, 90%, 55%, 0.2), hsla(190, 90%, 55%, 0.1));
    border-color: hsla(190, 90%, 55%, 0.3);
}
.tool-card.tool-2:hover {
    background: linear-gradient(135deg, hsla(190, 90%, 55%, 0.3), hsla(190, 90%, 55%, 0.2));
    border-color: hsl(190, 90%, 55%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 25px hsl(190, 90%, 55%), inset 0 0 15px rgba(255, 255, 255, 0.2);
}
.tool-card.tool-2 h3 { text-shadow: 0 0 8px hsl(190, 90%, 55%); }

/* --- Tool 3 (主色: 绿色) --- */
.tool-card.tool-3 {
    background: linear-gradient(135deg, hsla(130, 90%, 55%, 0.2), hsla(130, 90%, 55%, 0.1));
    border-color: hsla(130, 90%, 55%, 0.3);
}
.tool-card.tool-3:hover {
    background: linear-gradient(135deg, hsla(130, 90%, 55%, 0.3), hsla(130, 90%, 55%, 0.2));
    border-color: hsl(130, 90%, 55%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 25px hsl(130, 90%, 55%), inset 0 0 15px rgba(255, 255, 255, 0.2);
}
.tool-card.tool-3 h3 { text-shadow: 0 0 8px hsl(130, 90%, 55%); }

/* --- Tool 4 (主色: 品红/粉色) --- */
.tool-card.tool-4 {
    background: linear-gradient(135deg, hsla(310, 90%, 55%, 0.2), hsla(310, 90%, 55%, 0.1));
    border-color: hsla(310, 90%, 55%, 0.3);
}
.tool-card.tool-4:hover {
    background: linear-gradient(135deg, hsla(310, 90%, 55%, 0.3), hsla(310, 90%, 55%, 0.2));
    border-color: hsl(310, 90%, 55%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 25px hsl(310, 90%, 55%), inset 0 0 15px rgba(255, 255, 255, 0.2);
}
.tool-card.tool-4 h3 { text-shadow: 0 0 8px hsl(310, 90%, 55%); }

/* --- Tool 5 (主色: 橙色) --- */
.tool-card.tool-5 {
    background: linear-gradient(135deg, hsla(30, 100%, 55%, 0.2), hsla(30, 100%, 55%, 0.1));
    border-color: hsla(30, 100%, 55%, 0.3);
}
.tool-card.tool-5:hover {
    background: linear-gradient(135deg, hsla(30, 100%, 55%, 0.3), hsla(30, 100%, 55%, 0.2));
    border-color: hsl(30, 100%, 55%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 25px hsl(30, 100%, 55%), inset 0 0 15px rgba(255, 255, 255, 0.2);
}
.tool-card.tool-5 h3 { text-shadow: 0 0 8px hsl(30, 100%, 55%); }

/* --- Tool 6 (主色: 红色) --- */
.tool-card.tool-6 {
    background: linear-gradient(135deg, hsla(0, 90%, 55%, 0.2), hsla(0, 90%, 55%, 0.1));
    border-color: hsla(0, 90%, 55%, 0.3);
}
.tool-card.tool-6:hover {
    background: linear-gradient(135deg, hsla(0, 90%, 55%, 0.3), hsla(0, 90%, 55%, 0.2));
    border-color: hsl(0, 90%, 55%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 25px hsl(0, 90%, 55%), inset 0 0 15px rgba(255, 255, 255, 0.2);
}
.tool-card.tool-6 h3 { text-shadow: 0 0 8px hsl(0, 90%, 55%); }

/* --- Tool 7 (主色: 黄色) --- */
.tool-card.tool-7 {
    background: linear-gradient(135deg, hsla(55, 95%, 55%, 0.2), hsla(55, 95%, 55%, 0.1));
    border-color: hsla(55, 95%, 55%, 0.3);
}
.tool-card.tool-7:hover {
    background: linear-gradient(135deg, hsla(55, 95%, 55%, 0.3), hsla(55, 95%, 55%, 0.2));
    border-color: hsl(55, 95%, 55%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 25px hsl(55, 95%, 55%), inset 0 0 15px rgba(255, 255, 255, 0.2);
}
.tool-card.tool-7 h3 { text-shadow: 0 0 8px hsl(55, 95%, 55%); }

/* --- Tool 8 (主色: 蓝色) --- */
.tool-card.tool-8 {
    background: linear-gradient(135deg, hsla(230, 90%, 60%, 0.2), hsla(230, 90%, 60%, 0.1));
    border-color: hsla(230, 90%, 60%, 0.3);
}
.tool-card.tool-8:hover {
    background: linear-gradient(135deg, hsla(230, 90%, 60%, 0.3), hsla(230, 90%, 60%, 0.2));
    border-color: hsl(230, 90%, 60%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 25px hsl(230, 90%, 60%), inset 0 0 15px rgba(255, 255, 255, 0.2);
}
.tool-card.tool-8 h3 { text-shadow: 0 0 8px hsl(230, 90%, 60%); }

/* --- Tool 9 (主色: 靛蓝) --- */
.tool-card.tool-9 {
    background: linear-gradient(135deg, hsla(250, 90%, 60%, 0.2), hsla(250, 90%, 60%, 0.1));
    border-color: hsla(250, 90%, 60%, 0.3);
}
.tool-card.tool-9:hover {
    background: linear-gradient(135deg, hsla(250, 90%, 60%, 0.3), hsla(250, 90%, 60%, 0.2));
    border-color: hsl(250, 90%, 60%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 25px hsl(250, 90%, 60%), inset 0 0 15px rgba(255, 255, 255, 0.2);
}
.tool-card.tool-9 h3 { text-shadow: 0 0 8px hsl(250, 90%, 60%); }

/* --- Tool 10 (主色: 玫瑰红) --- */
.tool-card.tool-10 {
    background: linear-gradient(135deg, hsla(330, 90%, 60%, 0.2), hsla(330, 90%, 60%, 0.1));
    border-color: hsla(330, 90%, 60%, 0.3);
}
.tool-card.tool-10:hover {
    background: linear-gradient(135deg, hsla(330, 90%, 60%, 0.3), hsla(330, 90%, 60%, 0.2));
    border-color: hsl(330, 90%, 60%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 25px hsl(330, 90%, 60%), inset 0 0 15px rgba(255, 255, 255, 0.2);
}
.tool-card.tool-10 h3 { text-shadow: 0 0 8px hsl(330, 90%, 60%); }