:root {
    --primary-color: #4a90e2;
    --secondary-color: #45b983;
    --background-color: #f5f7fa;
    --card-background: #ffffff;
    --text-color: #2c3e50;
    --border-radius: 8px;
    --highlight-color: #ff6b6b;
    --gradient-start: #4a90e2;
    --gradient-end: #45b983;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 更新卡片的新样式 */
.update-card {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
    color: white;
}

.update-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--highlight-color);
    animation: pulse 2s infinite;
}

.update-count-label {
    font-size: 1.1em;
    opacity: 0.9;
}

.update-count {
    font-size: 2em;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    position: relative;
    transition: transform 0.3s ease;
}

.update-count:hover {
    transform: scale(1.05);
}

.update-button {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.update-button:hover {
    background-color: var(--highlight-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* 其他样式保持不变 */
.category-section {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.mod-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.mod-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.mod-info {
    margin-bottom: 15px;
}

.mod-info p {
    margin-bottom: 5px;
}

.mod-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mod-button {
    padding: 8px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.view-button {
    background-color: var(--primary-color);
    color: white;
}

.view-button:hover {
    background-color: #357abd;
}

.copy-button {
    background-color: var(--secondary-color);
    color: white;
}

.copy-button:hover {
    background-color: #3a9d6f;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .update-card {
        text-align: center;
        padding: 20px;
    }

    .update-info {
        width: 100%;
        justify-content: center;
    }

    .update-button {
        width: 100%;
    }

    .mod-grid {
        grid-template-columns: 1fr;
    }
}

.header {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 2rem;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;  /* 按钮之间的间距 */
}

.update-button {
    width: 100%;  /* 确保按钮填充容器宽度 */
}

.announcement-card {
    margin-top: 2rem;
    margin-bottom: 2rem;  /* 添加下边距 */
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.announcement-content {
    line-height: 1.6;
    color: #4a5568;
}

.update-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.count-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.version-info {
    font-size: 0.7rem;
    color: #4a5568;
}

.category-count {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

/* 保留原有的所有CSS，只在最后添加或修改媒体查询部分 */
/* ... 前面的CSS保持不变 ... */

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .update-card {
        text-align: center;
        padding: 20px;
    }

    .update-info {
        width: 100%;
        justify-content: center;
    }

    /* 修改更新信息布局 */
    .count-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .count-section > * {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .update-count-label {
        margin-bottom: 0.5rem;
    }

    /* 调整按钮容器样式 */
    .button-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .update-button {
        width: 80%;
        margin: 0 auto;
    }

    .version-info {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .mod-grid {
        grid-template-columns: 1fr;
    }
}

/* 确保在大屏幕上保持原有布局 */
@media (min-width: 769px) {
    .update-info {
        flex: 1;
    }

    .count-section {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .button-container {
        flex-direction: row;
        justify-content: flex-end;
        gap: 1rem;
    }

    .update-button {
        width: auto;
    }
}