/* =============================================================
   分类信息首页 · 经典橙色门户（单站版）
   对齐 template/news/city.html 的 class 结构：
   cy-hero / cy-quick / cy-sections / cy-products /
   cy-service-board / cy-tel-strip / cy-links / cy-fabs
   主色橙 #ff6600，仅作用于首页 .cy-home
   ============================================================= */

body.is-index { background: #f4f6f9; }

.cy-home {
    --cy-main: #ff6600;
    --cy-main-2: #e85a00;
    --cy-red: #e4393c;
    --cy-text: #333;
    --cy-text-2: #555;
    --cy-muted: #999;
    --cy-border: #e5e5e5;
    padding: 14px 0 36px;
    font-size: 14px;
    color: var(--cy-text);
    line-height: 1.5;
}
.cy-home .container { max-width: 1250px; padding-left: 10px; padding-right: 10px; }
.cy-home a { text-decoration: none; transition: color .18s, background .18s, border-color .18s, box-shadow .18s, transform .18s; }
.cy-home ul { margin: 0; padding: 0; list-style: none; }

/* ============================ Hero：左分类面板 + 右横幅 ============================ */
.cy-hero {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 14px;
    align-items: stretch;
}
.cy-hero-panel {
    background: #fff;
    border: 1px solid var(--cy-border);
    overflow: hidden;
}
.cy-panel-head {
    height: 42px;
    padding: 0 14px;
    line-height: 42px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff8a3d, var(--cy-main));
}
.cy-panel-body { padding: 6px 0 10px; max-height: 460px; overflow-y: auto; }
.cy-cat-group { padding: 7px 14px; border-bottom: 1px dashed #f0f0f0; }
.cy-cat-group:last-child { border-bottom: 0; }
.cy-cat-title {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    color: var(--cy-text);
}
.cy-cat-title:hover { color: var(--cy-main); }
.cy-cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin-top: 3px;
}
.cy-cat-links a {
    font-size: 12px;
    color: var(--cy-text-2);
}
.cy-cat-links a:hover { color: var(--cy-main); }

.cy-hero-ad {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px 34px;
    color: #fff;
    background:
        radial-gradient(560px 280px at 88% -20%, rgba(255, 170, 60, .5), transparent 60%),
        linear-gradient(120deg, #ff6600 0%, #ff7a00 46%, #ff9500 100%);
    overflow: hidden;
    isolation: isolate;
}
.cy-hero-ad::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    z-index: -1;
}
.cy-ad-tag {
    width: fit-content;
    padding: 3px 12px;
    margin-bottom: 14px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(0, 0, 0, .16);
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
}
.cy-ad-title {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
}
.cy-ad-title em { font-style: normal; color: #fff9e6; }
.cy-ad-sub {
    margin: 0 0 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
}
.cy-ad-lines {
    margin: 0 0 20px;
    display: grid;
    gap: 7px;
}
.cy-ad-lines li {
    position: relative;
    padding-left: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, .9);
}
.cy-ad-lines li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
}
.cy-ad-actions { display: flex; gap: 12px; }
.cy-ad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
}
.cy-ad-btn--main { background: #fff; color: var(--cy-main); }
.cy-ad-btn--main:hover { background: #ffe9d6; }
.cy-ad-btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .75); }
.cy-ad-btn--ghost:hover { background: rgba(255, 255, 255, .16); }

/* ============================ 快捷入口 ============================ */
.cy-quick {
    background: #fff;
    border: 1px solid var(--cy-border);
    margin-bottom: 14px;
    padding: 14px 12px;
}
.cy-quick-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}
.cy-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    text-align: center;
}
.cy-quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    border-radius: 50%;
}
.cy-quick-item:nth-child(8n+1) .cy-quick-icon { background: linear-gradient(135deg, #ff8a3d, #ff6600); }
.cy-quick-item:nth-child(8n+2) .cy-quick-icon { background: linear-gradient(135deg, #5aa2ff, #1f6bd8); }
.cy-quick-item:nth-child(8n+3) .cy-quick-icon { background: linear-gradient(135deg, #5bc76d, #2ea043); }
.cy-quick-item:nth-child(8n+4) .cy-quick-icon { background: linear-gradient(135deg, #b57bff, #7c3aed); }
.cy-quick-item:nth-child(8n+5) .cy-quick-icon { background: linear-gradient(135deg, #ff6b8a, #e4393c); }
.cy-quick-item:nth-child(8n+6) .cy-quick-icon { background: linear-gradient(135deg, #43c6d6, #0e8aa6); }
.cy-quick-item:nth-child(8n+7) .cy-quick-icon { background: linear-gradient(135deg, #f5b83d, #e88b00); }
.cy-quick-item:nth-child(8n+8) .cy-quick-icon { background: linear-gradient(135deg, #7a8ba8, #4c5d7d); }
.cy-quick-name {
    font-size: 13px;
    color: var(--cy-text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.cy-quick-item:hover .cy-quick-name { color: var(--cy-main); }
.cy-quick-item:hover .cy-quick-icon { transform: translateY(-2px); }

/* ============================ 双栏分类信息流 ============================ */
.cy-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}
.cy-section {
    background: #fff;
    border: 1px solid var(--cy-border);
    min-width: 0;
}
.cy-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    border-bottom: 2px solid hsl(var(--h, 24), 72%, 90%);
    background: linear-gradient(180deg, #fff, hsl(var(--h, 24), 80%, 98%));
}
.cy-section-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    border-radius: 6px;
    background: hsl(var(--h, 24), 78%, 54%);
}
.cy-section-head h2 {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--cy-text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.cy-section-more { flex: none; font-size: 12px; color: var(--cy-muted); }
.cy-section-more:hover { color: var(--cy-main); }

.cy-list { padding: 6px 0; }
.cy-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px dashed #f0f0f0;
}
.cy-list li:last-child { border-bottom: 0; }
.cy-list-tag {
    flex: none;
    min-width: 44px;
    padding: 2px 8px;
    text-align: center;
    font-size: 12px;
    border-radius: 3px;
    white-space: nowrap;
    color: hsl(var(--h, 24), 70%, 42%);
    background: hsl(var(--h, 24), 82%, 94%);
    border: 1px solid hsl(var(--h, 24), 70%, 82%);
}
.cy-list-tag:hover {
    color: #fff;
    background: hsl(var(--h, 24), 72%, 52%);
    border-color: hsl(var(--h, 24), 72%, 52%);
}
.cy-list-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--cy-text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.cy-list-title:hover { color: var(--cy-main); }
.cy-list time { flex: none; font-size: 12px; color: var(--cy-muted); }

.cy-sec-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
}
.cy-sec-subs a {
    padding: 4px 12px;
    font-size: 13px;
    color: var(--cy-text-2);
    background: #fff7f0;
    border: 1px solid #ffdcc2;
    border-radius: 3px;
}
.cy-sec-subs a:hover { color: #fff; background: var(--cy-main); border-color: var(--cy-main); }

/* ============================ 推荐商品 / 推荐信息 ============================ */
.cy-products {
    background: #fff;
    border: 1px solid var(--cy-border);
    margin-bottom: 14px;
}
.cy-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 16px;
    border-bottom: 1px solid var(--cy-border);
    background: linear-gradient(180deg, #fffdfb, #fdf6f0);
}
.cy-products-head h2 {
    position: relative;
    margin: 0;
    padding-left: 12px;
    font-size: 16px;
    font-weight: 800;
    color: var(--cy-text);
}
.cy-products-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--cy-main), var(--cy-main-2));
}
.cy-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}
.cy-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cy-border);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cy-product-card:hover {
    border-color: #ffd0b3;
    box-shadow: 0 10px 24px rgba(255, 102, 0, .12);
    transform: translateY(-2px);
}
.cy-product-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: #f5f7fa;
    overflow: hidden;
}
.cy-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cy-product-thumb--txt {
    font-size: 32px;
    font-weight: 800;
    color: var(--cy-main);
    background: linear-gradient(135deg, #fff1e6, #ffe2cc);
}
.cy-product-name {
    padding: 10px 12px 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cy-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cy-product-card:hover .cy-product-name { color: var(--cy-main); }
.cy-product-price {
    padding: 0 12px 12px;
    font-size: 16px;
    font-weight: 800;
    color: var(--cy-red);
}

/* ============================ 便民服务 + 二维码 + 热线 ============================ */
.cy-service-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 14px;
    margin-bottom: 14px;
}
.cy-service-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.cy-service-col {
    background: #fff;
    border: 1px solid var(--cy-border);
    padding: 16px;
}
.cy-service-col h3 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--cy-text);
    border-bottom: 2px solid var(--cy-main);
}
.cy-service-col ul li { padding: 4px 0; }
.cy-service-col ul a { font-size: 13px; color: var(--cy-text-2); }
.cy-service-col ul a:hover { color: var(--cy-main); }

.cy-service-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cy-service-side > div { background: #fff; border: 1px solid var(--cy-border); }
.cy-qr-row {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding: 18px 12px;
}
.cy-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cy-qr img { display: block; width: 76px; height: 76px; }
.cy-qr span { font-size: 12px; color: var(--cy-muted); }
.cy-hotline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}
.cy-hotline-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    font-size: 20px;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8a3d, var(--cy-main));
}
.cy-hotline span { display: flex; flex-direction: column; line-height: 1.25; }
.cy-hotline em { font-style: normal; font-size: 12px; color: var(--cy-muted); }
.cy-hotline strong { font-size: 20px; font-weight: 800; color: var(--cy-main); letter-spacing: .5px; }

/* ============================ 便民电话 ============================ */
.cy-tel-strip {
    background: #fff;
    border: 1px solid var(--cy-border);
    margin-bottom: 14px;
    padding: 0 0 8px;
}
.cy-tel-strip h3 {
    margin: 0;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 800;
    border-bottom: 1px solid var(--cy-border);
}
.cy-tel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 14px;
    padding: 6px 16px;
}
.cy-tel-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    font-size: 13px;
    border-bottom: 1px dashed #f0f0f0;
}
.cy-tel-grid span { color: var(--cy-text-2); }
.cy-tel-grid b { font-size: 14px; color: var(--cy-main); letter-spacing: .5px; }
.cy-tel-grid a:hover b { color: var(--cy-main-2); }

/* ============================ 友情链接 ============================ */
.cy-links {
    background: #fff;
    border: 1px solid var(--cy-border);
    padding-bottom: 14px;
}
.cy-links h3 {
    margin: 0;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 800;
    border-bottom: 1px solid var(--cy-border);
}
.cy-links-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px 0;
}
.cy-links-body a {
    padding: 5px 14px;
    font-size: 13px;
    color: var(--cy-text-2);
    background: #f7f9fc;
    border: 1px solid var(--cy-border);
    border-radius: 3px;
}
.cy-links-body a:hover { color: var(--cy-main); border-color: var(--cy-main); background: #fff5ee; }

/* ============================ 空态 ============================ */
.cy-empty { padding: 28px 16px; text-align: center; font-size: 13px; color: var(--cy-muted); }
.cy-empty a { color: var(--cy-main); }

/* ============================ 悬浮操作 ============================ */
.cy-fabs {
    position: fixed;
    right: 18px;
    bottom: 84px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cy-fab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 52px;
    height: 52px;
    font-size: 12px;
    color: #fff;
    background: rgba(43, 43, 43, .86);
    border-radius: 4px;
}
.cy-fab i { font-style: normal; font-size: 18px; line-height: 1; }
.cy-fab:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .3); color: #fff; }
.cy-fab--user { background: linear-gradient(135deg, #ff8a3d, var(--cy-main)); }
.cy-fab--chat { background: linear-gradient(135deg, #5aa2ff, #1f6bd8); }
.cy-fab--tel { background: linear-gradient(135deg, #5bc76d, #2ea043); }
.cy-fab--top { background: rgba(43, 43, 43, .86); }

/* ============================ 响应式 ============================ */
@media (max-width: 1000px) {
    .cy-hero { grid-template-columns: 220px minmax(0, 1fr); }
    .cy-quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cy-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cy-service-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cy-tel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cy-service-board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .cy-hero { grid-template-columns: minmax(0, 1fr); }
    .cy-hero-panel { order: 1; }
    .cy-hero-ad { order: 0; }
    .cy-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cy-sections { grid-template-columns: minmax(0, 1fr); }
    .cy-list li { flex-wrap: wrap; }
    .cy-list time { margin-left: auto; }
    .cy-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cy-service-cols { grid-template-columns: minmax(0, 1fr); }
    .cy-tel-grid { grid-template-columns: minmax(0, 1fr); }
    .cy-ad-title { font-size: 26px; }
    .cy-hero-ad { padding: 20px 20px; }
    .cy-fabs { right: 12px; bottom: 76px; }
}
