/* style.css - 用于新的 index.html */

/* 基本重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* 平滑滚动效果 */
}

body {
    font-family: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px; /* 基础字号调大一点 */
    line-height: 1.7;
    color: #444; /* 深灰色文字 */
    background-color: #f0f2f5; /* 稍深的背景色 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 页眉样式 */
.landing-header {
    background: linear-gradient(135deg, #4a69bd, #6a89cc); /* 渐变背景 */
    color: white;
    padding: 40px 20px 30px 20px; /* 增加内边距 */
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.landing-header h1 {
    font-size: 2.5em; /* 大标题 */
    font-weight: 700; /* 粗体 */
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.landing-header p {
    font-size: 1.1em;
    font-weight: 300; /* 细体 */
    opacity: 0.9;
}

/* 主内容容器 */
.landing-container {
    width: 100%;
    max-width: 1200px; /* 限制最大宽度 */
    margin: 40px auto; /* 上下外边距，左右自动居中 */
    padding: 0 20px; /* 左右内边距 */
    flex-grow: 1; /* 让内容区占据剩余空间 */
}

/* 卡片网格布局 */
.card-grid {
    display: grid;
    /* 响应式网格：自动调整列数，最小宽度280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* 网格间距 */
}

/* 卡片样式 */
.card {
    background-color: #ffffff;
    border-radius: 10px; /* 更大圆角 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 稍明显阴影 */
    overflow: hidden; /* 防止内容溢出 */
    display: flex;
    flex-direction: column; /* 内容垂直排列 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* 鼠标悬停时轻微上移 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* 悬停时阴影加深 */
}

.card-content {
    padding: 25px; /* 卡片内容内边距 */
    flex-grow: 1; /* 让内容区占据卡片剩余空间 */
}

.card h3 {
    font-size: 1.4em;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.card p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 卡片链接/按钮样式 */
.card-link {
    display: block;
    background-color: #5a7dcb; /* 主题色 */
    color: white;
    text-align: center;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    border-top: 1px solid #e0e0e0; /* 顶部 subtle 分隔线 */
    transition: background-color 0.2s ease;
    margin-top: auto; /* 将按钮推到底部 */
}

.card-link:hover {
    background-color: #4a69bd; /* 悬停颜色加深 */
}

/* 占位符卡片样式 */
.card.placeholder {
    opacity: 0.7;
    background-color: #f8f8f8;
}

.card.placeholder .card-link {
    background-color: #ccc;
    cursor: not-allowed;
}
.card.placeholder .card-link:hover {
    background-color: #ccc;
}
.card.placeholder .card-link.disabled {
    pointer-events: none; /* 禁用点击 */
}


/* 页脚样式 */
.landing-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px; /* 与上方内容间距 */
    color: #888;
    font-size: 0.85em;
    background-color: #e9ebee; /* 页脚背景色 */
    border-top: 1px solid #d0d3d6;
}

/* 简单的响应式调整 */
@media (max-width: 600px) {
    .landing-header h1 {
        font-size: 2em;
    }
    .landing-header p {
        font-size: 1em;
    }
    .card-grid {
        gap: 20px;
    }
    .card h3 {
        font-size: 1.2em;
    }
}