:root {
    --primary-color: #f5f5f5; /* 主背景色：浅米白 */
    --secondary-color: #ffffff; /* 次背景色：纯白 */
    --card-bg: #fdfdfd; /* 卡片背景色：奶油色 */
    --text-color: #333333; /* 主文字颜色：深灰 */
    --accent-color: #f0f4f8; /* 强调色：浅灰蓝 */
    --hover-color: #e0e7ee; /* 悬停色：淡灰 */
    --hover-bg: #e8f0f5; /* 悬停背景色：浅灰蓝 */
    --card-hover: #f9f9f9; /* 卡片悬停背景色 */
}

[data-theme="dark"] {
    --primary-color: #1a1a1a; /* 深灰背景 */
    --secondary-color: #2d2d2d; /* 次级背景 */
    --card-bg: #252525; /* 卡片深色背景 */
    --text-color: #e0e0e0; /* 浅色文字 */
    --accent-color: #3d4c53; /* 深色强调色 */
    --hover-color: #4a5d66; /* 深色悬停 */
    --hover-bg: #2f3b42; /* 深色悬停背景 */
    --card-hover: #2a2a2a; /* 卡片深色悬停 */
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

main {
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid #e0e7ee;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    /*position: relative;*/
    z-index: 1;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.accelerate-tag {
    position: absolute;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #52c41a, #389e0d);
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.4);
    z-index: 10;
    pointer-events: none;
    animation: pulse 2s infinite;
    bottom: 0;
    right: 0;
    border-radius: 12px 0 12px 0;
    padding: 6px 12px;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: var(--card-hover);
    cursor: pointer;
}

.card:hover .accelerate-tag {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(82, 196, 26, 0.4);
    }
    50% {
        box-shadow: 0 2px 12px rgba(82, 196, 26, 0.6);
    }
}

.card h2 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    width: 100%;
    font-weight: 600;
}

.card p {
    flex: 1;
    margin: 0;
    color: #666666;
    line-height: 1.6;
    min-width: 200px;
}

.card img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}

footer {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    color: #888888;
    font-size: 0.9rem;
    width: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    pointer-events: none;
}

.card:hover::before {
    opacity: 0.3;
}

[data-theme="dark"] .card {
    border-color: #444;
}

[data-theme="dark"] header {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    nav {
        margin-top: 0.5rem;
    }

    .card {
        padding: 1rem;
    }
}
