/* 应用市场插件 - 前台样式 */

body {
    background: #f5f7fa;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #333;
}

.store-navbar {
    margin-bottom: 0;
    background: #2c3e50;
    border: none;
    border-radius: 0;
}

.store-navbar .navbar-brand {
    color: #fff;
    font-weight: 600;
}

.store-navbar .nav > li > a {
    color: #d7dce0;
}

.store-navbar .nav > li.active > a,
.store-navbar .nav > li > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.store-avatar-xs {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.store-container {
    padding-top: 25px;
    padding-bottom: 40px;
}

.store-footer {
    margin-top: 40px;
    padding: 25px 0;
    background: #fff;
    border-top: 1px solid #e8eaed;
    text-align: center;
}

.store-footer-tip {
    font-size: 12px;
}

/* Hero */
.store-hero {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: #fff;
    padding: 28px 0 45px;
    text-align: center;
}

.store-hero h1 {
    font-size: 32px;
    margin: 0 0 10px;
    font-weight: 600;
}

.store-hero p {
    font-size: 15px;
    opacity: .85;
    margin-bottom: 25px;
}

.store-search {
    max-width: 560px;
    margin: 0 auto;
}

/* 筛选栏 */
.store-filter {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 18px;
}

.store-filter .nav-tabs {
    border-bottom: none;
    margin-bottom: 8px;
}

.store-filter .nav-tabs > li > a {
    color: #666;
    border: none;
    padding: 4px 12px;
}

.store-filter .nav-tabs > li.active > a,
.store-filter .nav-tabs > li > a:hover {
    color: #18bc9c;
    background: transparent;
    border-bottom: none;
}

.store-filter .label-tag {
    color: #999;
    margin-right: 6px;
}

.store-sort {
    text-align: right;
    color: #999;
    font-size: 13px;
}

.store-sort a {
    margin-left: 12px;
    color: #666;
    text-decoration: none;
}

.store-sort a.active {
    color: #18bc9c;
    font-weight: 600;
}

/* 应用卡片 */
.store-app-grid {
    margin: 0 -8px;
}

.store-app-col {
    padding: 0 8px;
    margin-bottom: 16px;
}

.store-app-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    padding: 14px;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}

.store-app-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.store-app-card .store-app-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    float: left;
    background: #f2f4f7;
}

.store-app-card .store-app-nopic {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 12px;
}

.store-app-card .store-app-head {
    margin-left: 70px;
    min-height: 56px;
}

.store-app-card h4 {
    margin: 2px 0 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    max-height: 40px;
    overflow: hidden;
}

.store-app-card .store-app-intro {
    color: #888;
    font-size: 12px;
    line-height: 1.6;
    height: 38px;
    overflow: hidden;
    margin: 10px 0;
}

.store-app-card .store-app-meta {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 8px;
}

.store-app-card .store-app-meta span {
    margin-right: 10px;
}

.store-app-card .store-app-foot {
    border-top: 1px solid #f0f2f5;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.store-price-label {
    color: #e74c3c;
    font-weight: 600;
    font-size: 14px;
}

.store-price-free {
    color: #18bc9c;
    font-weight: 600;
}

/* 侧栏 */
.store-side-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    margin-bottom: 16px;
}

.store-side-card .head {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f5;
    font-weight: 600;
    font-size: 14px;
}

.store-side-card .body {
    padding: 10px 14px;
}

.store-rank-item {
    padding: 6px 0;
    border-bottom: 1px dashed #f0f2f5;
    font-size: 13px;
}

.store-rank-item:last-child {
    border-bottom: none;
}

.store-rank-num {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #eee;
    color: #999;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 6px;
}

.store-rank-item:nth-child(1) .store-rank-num {
    background: #e74c3c;
    color: #fff;
}

.store-rank-item:nth-child(2) .store-rank-num {
    background: #f39c12;
    color: #fff;
}

.store-rank-item:nth-child(3) .store-rank-num {
    background: #f1c40f;
    color: #fff;
}

.store-tag-cloud a {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 2px 10px;
    background: #f2f4f7;
    color: #666;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
}

.store-tag-cloud a:hover {
    background: #18bc9c;
    color: #fff;
}

/* 详情页 */
.store-detail-head {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
}

.store-detail-icon {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    float: left;
    background: #f2f4f7;
}

.store-detail-info {
    margin-left: 108px;
}

.store-detail-info h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
}

.store-detail-meta {
    color: #999;
    font-size: 13px;
    margin-top: 8px;
}

.store-detail-meta span {
    margin-right: 14px;
}

.store-detail-actions {
    margin-top: 14px;
}

.store-detail-extra-links {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.store-detail-extra-links a {
    display: block;
    margin: 4px 0;
    color: #67c23a;
    text-decoration: underline;
    font-size: 13px;
}

.store-detail-extra-links a:hover {
    color: #4e9a29;
}

.store-detail-body {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    padding: 18px 20px;
    min-height: 260px;
}

.store-detail-body img {
    max-width: 100%;
}

.store-section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 16px 0 10px;
    padding-left: 8px;
    border-left: 3px solid #18bc9c;
}

/* 开发者卡片 */
.store-dev-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}

.store-dev-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

/* 评价 */
.store-comment-item {
    padding: 12px 0;
    border-bottom: 1px dashed #f0f2f5;
}

.store-comment-item:last-child {
    border-bottom: none;
}

.store-comment-reply {
    background: #f7f9fa;
    border-left: 3px solid #18bc9c;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.store-score {
    color: #f39c12;
}

/* 通用卡片（开发者中心） */
.store-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    margin-bottom: 16px;
}

.store-card-head {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
    font-weight: 600;
    overflow: hidden;
}

.store-card-body {
    padding: 16px;
}

.store-stat-card {
    border: 1px solid #e8eaed;
    border-radius: 6px;
    padding: 16px;
    background: #fff;
    margin-bottom: 16px;
}

.store-stat-card .num {
    font-size: 24px;
    font-weight: 600;
}

.store-stat-card .label {
    color: #999;
    font-size: 12px;
    margin-top: 2px;
}

.store-empty {
    padding: 40px 0;
    text-align: center;
    color: #bbb;
}

.store-thumb-sm {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.store-nopic {
    background: #f2f4f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 11px;
}

.store-images-box {
    margin-bottom: 8px;
}

.store-upload-item {
    display: inline-block;
    position: relative;
    margin: 0 8px 8px 0;
}

.store-upload-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: 4px;
}

.store-upload-del {
    position: absolute;
    right: -6px;
    top: -6px;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

/* 提示 toast */
.store-toast {
    position: fixed;
    left: 50%;
    top: 60px;
    transform: translateX(-50%) translateY(-12px);
    padding: 10px 22px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all .25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.store-toast.in {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.store-toast-success {
    background: #18bc9c;
}

.store-toast-error {
    background: #e74c3c;
}

/* 分页 */
.store-pagination {
    text-align: center;
    margin-top: 20px;
}

/* 表格间隔行（斑马纹）
   前台已加载完整 bootstrap.min.css（含 .table-striped / .table-hover），这里只需写规则并压过
   bootstrap 的 .table-hover 优先级即可，无需改模板。
   说明：
   1) 作用于 td 而非 tr —— 与 bootstrap 的 .table-hover 实现保持一致；
   2) hover 写在斑马纹之后 —— 两者特异性相同(0,4,4)，后声明者胜；
   3) 排除 .table-plain（kv 详情表，逐行可读，不需要）；
   4) 排除 .zebra-even —— 该档表格把表头写成第一行 <tr><th>，需从偶数行起算，见下一条。 */
.store-container table.table:not(.table-plain):not(.zebra-even) > tbody > tr:nth-of-type(odd) > td {
    background-color: #fafbfc;
}

.store-container table.table:not(.table-plain) > tbody > tr:hover > td {
    background-color: #f2f6fa;
}

/* 表头写在首行（无 <thead>）的表格：从偶数行起算，避免把表头行也染灰 */
.store-container table.zebra-even > tbody > tr:nth-of-type(even) > td {
    background-color: #fafbfc;
}

@media (max-width: 767px) {
    .store-hero {
        padding: 18px 0 28px;
    }

    .store-hero h1 {
        font-size: 24px;
    }

    .store-detail-icon {
        float: none;
        margin-bottom: 12px;
    }

    .store-detail-info {
        margin-left: 0;
    }
}
