/* 定义设计系统的颜色和变量 */
:root {
    --bg-color: #f4f6f8; /* 非常淡的灰底色，凸显卡片 */
    --card-bg: #ffffff;
    --text-title: #1e293b; /* 深蓝色标题 */
    --text-subtitle: #94a3b8; /* 浅灰色副标题 */
    --btn-bg: #1a2035; /* 按钮的深海军蓝 */
    --btn-bg-hover: #0f172a; /* 悬停时更深的颜色 */
    --btn-text: #ffffff;
    --border-color: #e2e8f0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shadow-default: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-title);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 3rem 1.5rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 页面主容器 */
.container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* 卡片之间的间距 */
}

/* 卡片样式 */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px; /* 圆润的边角 */
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-default);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

/* 卡片信息区（左侧） */
.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-title);
}

.card-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-subtitle);
}

/* 按钮操作区（右侧） */
.card-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap; /* 在小屏幕上允许换行 */
}

/* 按钮基础样式 */
.btn {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px; /* 按钮的圆角 */
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn:hover {
    background-color: var(--btn-bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 响应式设计：在平板和手机屏幕上的适配 */
@media (max-width: 768px) {
    .card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .card-actions {
        width: 100%;
        justify-content: flex-start; /* 按钮靠左对齐 */
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%; /* 在极小屏幕上，按钮占满整行 */
    }
}
