/* 站点统一布局样式（与 index.html 一致） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f7fa;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

.custom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.el-card {
    border-radius: 16px !important;
    transition: all 0.3s ease;
}

.el-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.card-title-custom {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    border-left: 4px solid #409EFF;
    padding-left: 12px;
    line-height: 1.4;
}

.more-link-custom {
    color: #409EFF;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.more-link-custom:hover {
    color: #66b1ff;
    text-decoration: underline;
}

.product-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #fafafa;
    padding: 16px;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.02);
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: #303133;
    text-align: center;
    margin: 12px 0 16px 0;
    padding: 0 8px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-break: break-word;
    white-space: normal;
}

.sidebar-card {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
}

/* 侧栏通用模块：扫码关注 + 热门推荐 */
.sidebar-module {
    width: 100%;
}

.sidebar-qrcode-img {
    width: 100%;
    max-width: 240px;
    border-radius: 12px;
    margin: 8px 0;
}

.sidebar-qrcode-tip {
    font-size: 12px;
    color: #909399;
    margin-top: 12px;
    line-height: 1.5;
}

.sidebar-hot-header {
    font-weight: 600;
}

.qr-tag {
    display: inline-block;
    background: #ecf5ff;
    color: #409EFF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.copyright-footer {
    text-align: center;
    padding: 24px 20px;
    background-color: #ffffff;
    border-top: 1px solid #e4e7ed;
    margin-top: 40px;
    font-size: 13px;
    color: #909399;
}

.copyright-footer a {
    color: #409EFF;
    text-decoration: none;
}

.copyright-footer a:hover {
    text-decoration: underline;
}

.el-main {
    padding: 24px 0 40px;
}

.el-card__header {
    border-bottom: 1px solid #EBEEF5;
    padding: 14px 20px;
}

.el-card__body {
    padding: 16px;
}

.content-card {
    margin-bottom: 24px;
}

.verify-guard {
    background: #fafafa;
    border: 1px dashed #dcdfe6;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    color: #606266;
}

.verify-guard h3 {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
    margin: 12px 0;
    line-height: 1.5;
}

.verify-guard img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    margin: 8px 0;
}

.verify-guard form {
    margin-top: 16px;
}

.hot-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #ebeef5;
    padding: 12px 0;
    transition: background 0.2s;
}

.hot-item:last-child {
    border-bottom: none;
}

.hot-item:hover {
    background: #f5f7fa;
}

.hot-item-title {
    font-size: 13px;
    color: #303133;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.module-list-card {
    margin-bottom: 16px;
    cursor: pointer;
}

.module-list-card .module-list-img {
    width: 100%;
    border-radius: 8px;
    background: #fafafa;
    padding: 8px;
}

.module-list-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
    margin: 0;
    line-height: 1.4;
}

.module-list-card a {
    text-decoration: none;
    color: inherit;
}

.el-carousel__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.el-carousel__container {
    border-radius: 12px;
}

.el-input-group__prepend {
    background-color: #409EFF;
    color: #FFF;
}

.page-iframe {
    width: 100%;
    min-height: 720px;
    border: none;
    border-radius: 12px;
    display: block;
}

@media (max-width: 768px) {
    .custom-container {
        padding: 0 16px;
    }
    .card-title-custom {
        font-size: 16px;
    }
    .product-title {
        font-size: 12px;
        margin: 8px 0 12px;
    }
}

@supports not (-webkit-line-clamp: 2) {
    .product-title {
        max-height: 2.8em;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
