:root {
    /* 柔和的配色方案 - 饱和度降低，更专业 */
    --data-color: #4caf50;      /* 数据处理 - 柔和的绿色 */
    --text-color: #2196f3;      /* 文本工具 - 柔和的蓝色 */
    --image-color: #9c27b0;     /* 图像处理 - 柔和的紫色 */
    --manage-color: #607d8b;    /* 管理系统 - 柔和的灰色 */
    --security-color: #f44336;  /* 安全工具 - 柔和的红色 */
    
    /* 对应的浅色变体 - 用于渐变和悬停 */
    --data-light: #81c784;
    --text-light: #64b5f6;
    --image-light: #ba68c8;
    --manage-light: #90a4ae;
    --security-light: #ef5350;
    
    /* 中性色 */
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --light-gray: #f5f7fa;
    --border-color: #e3e8f0;
    --medium-gray: #6c7a8c;
    --dark-text: #37474f;
    --card-bg: #ffffff;
    
    /* 效果 - 使用更柔和的阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 12px;
    --radius-sm: 6px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 简洁的头部 */
header {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: var(--white);
    text-align: center;
    padding: 3rem 1rem;
    position: relative;
    margin-bottom: 2rem;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--data-color), 
        var(--text-color), 
        var(--image-color),
        var(--manage-color),
        var(--security-color)
    );
    opacity: 0.8;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 主要内容区 */
main {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    flex: 1;
    width: 100%;
}

/* 链接容器 */
.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

/* 优雅的卡片设计 - 更简洁 */
.link-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* 卡片顶部装饰条 - 更细更柔和 */
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.7;
}

.data-card::before { background: var(--data-color); }
.text-card::before { background: var(--text-color); }
.image-card::before { background: var(--image-color); }
.manage-card::before { background: var(--manage-color); }
.security-card::before { background: var(--security-color); }

/* 卡片头部 - 使用柔和的背景色 */
.card-header {
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    color: var(--dark-text);
    border-bottom: 1px solid var(--border-color);
}

/* 卡片头部标题 - 使用对应颜色 */
.data-card .card-header h2 { color: var(--data-color); }
.text-card .card-header h2 { color: var(--text-color); }
.image-card .card-header h2 { color: var(--image-color); }
.manage-card .card-header h2 { color: var(--manage-color); }
.security-card .card-header h2 { color: var(--security-color); }

/* 卡片主体 */
.card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
}

/* 整个卡片内容作为链接 */
.card-link-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
}

.card-link-container:hover {
    transform: translateY(-1px);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-text);
    line-height: 1.4;
    position: relative;
    padding-bottom: 0.75rem;
    transition: color 0.3s ease;
}

/* 标题下方装饰线 */
.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    border-radius: 1px;
    transition: width 0.3s ease;
    opacity: 0.6;
}

.data-card .card-title::after { background: var(--data-color); }
.text-card .card-title::after { background: var(--text-color); }
.image-card .card-title::after { background: var(--image-color); }
.manage-card .card-title::after { background: var(--manage-color); }
.security-card .card-title::after { background: var(--security-color); }

.card-link-container:hover .card-title::after {
    width: 50px;
}

.card-description {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
}

/* 访问链接按钮 - 简洁设计 */
.visit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    margin-top: auto;
    position: relative;
    border: 1px solid;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
}

/* 按钮颜色 - 边框样式，更简洁 */
.data-card .visit-link {
    color: var(--data-color);
    border-color: var(--data-color);
    background: rgba(76, 175, 80, 0.05);
}

.text-card .visit-link {
    color: var(--text-color);
    border-color: var(--text-color);
    background: rgba(33, 150, 243, 0.05);
}

.image-card .visit-link {
    color: var(--image-color);
    border-color: var(--image-color);
    background: rgba(156, 39, 176, 0.05);
}

.manage-card .visit-link {
    color: var(--manage-color);
    border-color: var(--manage-color);
    background: rgba(96, 125, 139, 0.05);
}

.security-card .visit-link {
    color: var(--security-color);
    border-color: var(--security-color);
    background: rgba(244, 67, 54, 0.05);
}

/* 悬停效果 - 填充背景色 */
.data-card .visit-link:hover {
    background: var(--data-color);
    color: white;
    border-color: var(--data-color);
}

.text-card .visit-link:hover {
    background: var(--text-color);
    color: white;
    border-color: var(--text-color);
}

.image-card .visit-link:hover {
    background: var(--image-color);
    color: white;
    border-color: var(--image-color);
}

.manage-card .visit-link:hover {
    background: var(--manage-color);
    color: white;
    border-color: var(--manage-color);
}

.security-card .visit-link:hover {
    background: var(--security-color);
    color: white;
    border-color: var(--security-color);
}

.visit-link::after {
    content: '→';
    font-weight: normal;
    transition: transform 0.3s ease;
}

.card-link-container:hover .visit-link::after {
    transform: translateX(4px);
}

/* 鼠标手型光标 */
.card-link-container,
.card-link-container *:not(.visit-link) {
    cursor: pointer;
}

.visit-link {
    cursor: pointer;
}

/* 简洁的页脚 */
footer {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--data-color), 
        var(--text-color), 
        var(--image-color),
        var(--manage-color),
        var(--security-color)
    );
    opacity: 0.8;
}

.footer-text {
    font-size: 1.1rem;
    font-weight: 400;
}

.footer-text a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.footer-text a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .links-container {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .links-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    header {
        padding: 2.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    main {
        padding: 0 1.25rem;
        margin-bottom: 2rem;
    }
    
    .card-body {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 2rem 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .card-header {
        padding: 1.25rem;
        height: 65px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .visit-link {
        padding: 0.7rem 1.25rem;
    }
}

/* 平滑动画 */
html {
    scroll-behavior: smooth;
}

/* 卡片进入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }
.link-card:nth-child(5) { animation-delay: 0.5s; }