打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:Index2026/AR/styles.css

来自EaseCation Wiki
.ar-card {
    width: 100%;
    /* 核心修改:移除固定高度,改为自适应 */
    min-height: 200px; /* 设置最小高度 */
    height: auto; /* 高度根据内容自适应 */
    background: url('https://ec-wiki.oss-cn-hangzhou.aliyuncs.com/images/7/7a/%E4%B8%BB%E5%9F%8E2025-11-08_19.12.10.png') center/cover no-repeat;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-sizing: border-box; /* 确保padding包含在宽度内 */
}

.ar-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.ar-card-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px; /* 稍微减小间距 */
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    align-self: flex-start;
}

.ar-card-text {
    font-size: 1rem;
    color: #f0f0f0;
    line-height: 1.5; /* 稍微紧凑的行高 */
    margin-bottom: 15px; /* 减小间距,给按钮更多空间 */
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    align-self: flex-start;
    /* 确保文本正常换行 */
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%; /* 确保宽度100% */
}

.ar-button {
    padding: 8px 24px;
    background: #ffffff;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    align-self: flex-end;
    /* 确保按钮在底部 */
    margin-top: auto;
}

.ar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    background: #f8fafc;
}

.ar-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .ar-card {
        min-height: 180px; /* 移动端最小高度稍小 */
        padding: 20px 15px; /* 增加上下内边距 */
    }
    
    .ar-card-title {
        font-size: 1.4rem; /* 标题适当缩小 */
        margin-bottom: 12px; /* 间距更紧凑 */
        line-height: 1.3; /* 更好的行高 */
    }
    
    .ar-card-text {
        font-size: 0.95rem; /* 正文稍微缩小 */
        line-height: 1.4; /* 紧凑的行高 */
        margin-bottom: 20px; /* 确保与按钮有足够间距 */
    }
    
    .ar-button {
        padding: 6px 20px;
        font-size: 0.9rem;
    }
}

/* 超小屏幕额外优化(可选) */
@media (max-width: 480px) {
    .ar-card {
        min-height: 160px; /* 最小高度进一步减小 */
        padding: 15px 12px;
    }
    
    .ar-card-title {
        font-size: 1.2rem;
    }
    
    .ar-card-text {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}