/* ============================================================
   70KA礼品网 - 标签聚合页样式
   适用场景：标签聚合、分类展示、卡片布局
   ============================================================ */

/* ---------- 全局重置 & 基础 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 13px;
    color: #95a5a6;
}
.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}
.breadcrumb span {
    margin: 0 8px;
    color: #ddd;
}

/* ---------- 容器 ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ---------- 区块卡片 ---------- */
.section {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-bar {
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
    border-radius: 2px;
}

.section-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2d3d;
}

.section-desc {
    font-size: 13px;
    color: #8a96a3;
    margin-left: 12px;
}

/* ---------- 热门标签 ---------- */
.hot-tags-wrap {
    position: relative;
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hot-tags.collapsed {
    max-height: 154px;
    overflow: hidden;
}

.hot-tag-item {
    padding: 10px 22px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%);
    border-radius: 24px;
    border: 1px solid #d8e2ec;
    font-size: 14px;
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.4;
}

.hot-tag-item:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ---------- 展开/收起按钮 ---------- */
.expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding: 6px 16px;
    background: #f5f7fa;
    border-radius: 16px;
    border: 1px solid #eef1f5;
    font-size: 12px;
    color: #3498db;
    cursor: pointer;
    transition: all 0.3s;
}

.expand-btn:hover {
    background: #e3f2fd;
    border-color: #3498db;
}

.expand-btn::after {
    content: '\25BC';
    font-size: 10px;
    transition: transform 0.3s;
}

.expand-btn.expanded::after {
    transform: rotate(180deg);
}

/* ---------- 行为分类（服务行为） ---------- */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.action-card {
    padding: 24px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #eef1f5;
    transition: all 0.3s;
}

.action-card:hover {
    border-color: #bcd4ea;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.08);
}

.action-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.action-icon.blue {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}
.action-icon.green {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}
.action-icon.orange {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}
.action-icon.purple {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
}

.action-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.action-header .tag-num {
    font-size: 12px;
    color: #95a5a6;
    margin-left: auto;
    padding: 4px 12px;
    background: #fff;
    border-radius: 12px;
    flex-shrink: 0;
}

.action-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-tags.collapsed {
    max-height: 84px;
    overflow: hidden;
}

.action-tag {
    padding: 8px 16px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eef1f5;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    line-height: 1.4;
}

.action-tag:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* ---------- 卡券类型分类 ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    padding: 24px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #eef1f5;
    transition: all 0.3s;
}

.category-card:hover {
    background: #fff;
    border-color: #bcd4ea;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.08);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.category-icon.blue {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}
.category-icon.green {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}
.category-icon.orange {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}
.category-icon.purple {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
}
.category-icon.red {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
}
.category-icon.cyan {
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
}
.category-icon.pink {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
}
.category-icon.yellow {
    background: linear-gradient(135deg, #fffde7, #fff9c4);
}
.category-icon.gray {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.category-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.category-header .tag-num {
    font-size: 12px;
    color: #95a5a6;
    margin-left: auto;
    flex-shrink: 0;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tags.collapsed {
    max-height: 132px;
    overflow: hidden;
}

.category-tag {
    padding: 8px 16px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eef1f5;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    line-height: 1.4;
}

.category-tag:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* ---------- 页脚 ---------- */
.footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 32px 24px 16px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 24px;
}

.footer-brand h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #3498db;
}

.footer-brand p {
    font-size: 12px;
    color: #bdc3c7;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
}

.footer-col a {
    display: block;
    font-size: 12px;
    color: #bdc3c7;
    margin-bottom: 6px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #3498db;
}

.footer-bottom {
    max-width: 1280px;
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid #34495e;
    text-align: center;
    font-size: 12px;
    color: #7f8c8d;
}

.footer-bottom a {
    color: #3498db;
    text-decoration: none;
}
.footer-bottom a[style*="color: #7f8c8d"] {
    color: #7f8c8d;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .action-grid {
        grid-template-columns: 1fr;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .hot-tag-item {
        padding: 8px 18px;
        font-size: 13px;
    }
    .hot-tags {
        gap: 12px;
    }
    .hot-tags.collapsed {
        max-height: 140px;
    }

    .action-tag {
        padding: 7px 14px;
    }
    .action-tags.collapsed {
        max-height: 76px;
    }

    .category-tag {
        padding: 7px 14px;
    }
    .category-tags.collapsed {
        max-height: 98px;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 12px 16px;
        font-size: 12px;
    }

    .container {
        padding: 0 16px 16px;
        gap: 16px;
    }

    .section {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .section-title h2 {
        font-size: 18px;
    }
    .section-header {
        margin-bottom: 16px;
    }

    .hot-tag-item {
        padding: 7px 14px;
        font-size: 13px;
    }
    .hot-tags {
        gap: 10px;
    }
    .hot-tags.collapsed {
        max-height: 126px;
    }

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

    .action-card {
        padding: 16px;
    }
    .category-card {
        padding: 16px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .action-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    .action-tags {
        gap: 8px;
    }
    .action-tags.collapsed {
        max-height: 68px;
    }

    .category-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    .category-tags {
        gap: 8px;
    }
    .category-tags.collapsed {
        max-height: 88px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px 12px;
        gap: 12px;
    }

    .section {
        padding: 16px 12px;
    }

    .section-title h2 {
        font-size: 16px;
    }
    .section-desc {
        display: none;
    }

    .hot-tag-item {
        padding: 6px 12px;
        font-size: 12px;
    }
    .hot-tags {
        gap: 8px;
    }
    .hot-tags.collapsed {
        max-height: 108px;
    }

    .action-header {
        gap: 8px;
    }
    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .action-header h3 {
        font-size: 15px;
    }

    .action-tag {
        padding: 5px 10px;
        font-size: 12px;
    }
    .action-tags.collapsed {
        max-height: 60px;
    }

    .category-tag {
        padding: 5px 10px;
        font-size: 12px;
    }
    .category-tags.collapsed {
        max-height: 78px;
    }

    .category-header h3 {
        font-size: 15px;
    }
}