/* --- 全局设置 --- */
:root {
    /* 背景不变 */
    --bg-url: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    --card-bg-color: rgba(255, 255, 255, 0.15);
    --card-border-color: rgba(255, 255, 255, 0.2);
    --backdrop-blur: 10px;
    --text-color: #ffffff;
    --text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    --link-hover-color: rgba(255, 255, 255, 0.3);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- body 居中 (不变) --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-image: var(--bg-url);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center; 
    min-height: 100vh;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- links-grid 居中 (不变) --- */
.links-grid {
    display: flex;
    justify-content: center;
}

/* --- link-card (不变) --- */
.link-card {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--card-border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    width: 100%;
    max-width: 450px; 
}

.link-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: var(--text-shadow);
    border-bottom: 1px solid var(--card-border-color);
    padding-bottom: 0.5rem;
}

.link-card h2 i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* --- 链接按钮样式 (不变) --- */
.links-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 基础2列网格 */
    gap: 1rem;
}

/*
 *
 * --- 1-2-1 布局规则已被移除 ---
 *
 * (移除了 .link-item:first-child 和 .link-item:last-child 规则)
 *
 */


.link-item {
    display: flex;
    align-items: center;
    justify-content: center; /* 让文本和图标在按钮内居中 */
    padding: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.2s ease;
    text-shadow: var(--text-shadow);
}

.link-item:hover {
    background: var(--link-hover-color);
    transform: translateY(-2px);
}

.link-item i {
    margin-right: 0.75rem;
    width: 18px;
    text-align: center;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    /* 媒体查询不再需要特殊规则 */
}