﻿:root {
    --primary-color: #4285f4;
    --secondary-color: #343a40;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

/* 快速开始模块样式 */
.quick-start-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
    font-size: 24px;
}

    .section-title:after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: var(--primary-color);
    }

.app-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    background: white;
}

    .app-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

.app-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.app-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.app-card:hover .app-img {
    transform: scale(1.08);
}

.app-name {
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 20px;
    background: white;
}

/* 博客推荐模块样式 */
.blog-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    /* padding-bottom: 15px; */
}

.category-tab {
    padding: 0px 18px;
    margin-right: 12px;
    margin-bottom: 12px;
    /* border-radius: 6px; */
    cursor: pointer;
    /* transition: all 0.3s ease; */
    font-size: 18px;
    color: #555;
    /* background-color: var(--light-gray); */
    display: flex;
    align-items: center;
    /* border: 1px solid #e0e0e0; */
    border: none;
    background: transparent;
    position: relative;
}

    .category-tab.active span:after {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 58%;
        transform: translateX(-50%);
        width: 40%;
        height: 4px;
        background: #FC5356;
        border-radius: 5px;
    }

.category-tab-img {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.blog-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 25px;
    background: white;
    height: 380px;
}

    .blog-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

.blog-img-container {
    height: 224px;
    overflow: hidden;
    position: relative;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.blog-content {
    padding: 20px;
    background: white;
}

.blog-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.4;
    max-height: 55px;
    overflow: hidden;
}

.blog-desc {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
    max-height: 55px;
    overflow: hidden;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .app-img-container {
        height: 130px;
    }

    .blog-img-container {
        height: 180px;
    }
}

@media (max-width: 767.98px) {
    .app-img-container {
        height: 120px;
    }

    .blog-img-container {
        height: 160px;
    }

    .category-tab {
        padding: 6px 12px;
        font-size: 13px;
        margin-right: 8px;
        margin-bottom: 8px;
    }

    .category-tab-img {
        width: 16px;
        height: 16px;
    }
}

/* 添加空状态样式 */
.empty-state {
    background-color: #fafafa;
    border-radius: 8px;
    padding: 40px 20px;
    margin: 20px 0;
    /* border: 1px dashed #e0e0e0; */
}

.empty-icon img {
    filter: grayscale(100%);
    opacity: 0.5;
}

.empty-state h4 {
    font-weight: 500;
    color: #666;
}

.empty-state p {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* 新增标签选择样式 */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag-option {
    padding: 8px 16px;
    background-color: #f5f7fa;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

    .tag-option:hover {
        background-color: #e9ecef;
    }

    .tag-option.selected {
        background-color: #4285f4;
        color: white;
        border-color: #4285f4;
    }

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.qrcode-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border: 1px solid #eee;
    padding: 10px;
}

/* 弹窗样式调整 */
#tagSelectionModal .modal-content {
    border-radius: 12px;
    padding: 20px;
}

#tagSelectionModal .modal-title {
    font-weight: 600;
    color: #333;
}

/* 添加在原有样式后面 */
.text-muted {
    color: #6c757d !important;
    font-size: 14px;
}

/* 禁用按钮样式 */
.btn-primary:disabled {
    background-color: #b3d1ff;
    border-color: #b3d1ff;
    cursor: not-allowed;
}

/* 订阅区域 */
.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.bg-primary\/5 {
    background-color: rgb(22 93 255 / 0.05);
}
