footer {
    background: #161719;  /* 使用与其他深色部分一致的背景色 */
    position: relative;
    padding: 20px 0;  /* 调整内边距 */
    color: #fff;
    font-size: 14px;
}

.container {
    max-width: 1200px;  /* 与主站 wrapper 宽度一致 */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.02);  /* 与其他卡片风格一致 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);  /* 统一边框风格 */
    border-radius: 6px;  /* 统一圆角大小 */
    padding: 2rem;
}

.links, .license {
    flex: 1;
    padding: 10px;
    min-width: 200px;
}

.links h3 {
    font-family: 'DingTalk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 300;
}

.links ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.links ul li {
    margin-bottom: 0.5rem;
}

.links ul li a {
    color: rgba(255, 255, 255, 0.7);  /* 降低对比度 */
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.links ul li a:hover {
    color: #fff;
    transform: translateX(5px);  /* 添加悬停动效 */
}

.license a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    line-height: 1.8;  /* 增加行高 */
    display: inline-block;
}

.license a:hover {
    color: #fff;
}

.gradient-background {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.gradient-background img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;  /* 稍微降低不透明度 */
    transition: opacity 0.3s ease;
}

.gradient-background img:hover {
    opacity: 1;
}

.image-container2 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    z-index: 2;
}

.image-container2 img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.image-container2 img:hover {
    opacity: 1;
}

/* 明亮模式适配 */
@media (prefers-color-scheme: light) {
    footer {
        background: #f8f8f8;
    }

    .container {
        background: rgba(255, 255, 255, 0.8);
        border-color: rgba(0, 0, 0, 0.1);
    }

    .links h3 {
        color: #1c1c1c;
    }

    .links ul li a,
    .license a {
        color: #666;
    }

    .links ul li a:hover,
    .license a:hover {
        color: #1c1c1c;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        margin: 0 1rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .links, 
    .license {
        width: 100%;
        padding: 1rem 0;
    }

    .links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .links ul li {
        margin: 0;
    }

    .gradient-background {
        padding: 1rem;
    }

    .gradient-background img {
        width: 280px;
    }
}
