/* ============================================================
   信言方兴 · 体育用品设备租赁信息发布平台 — 首页样式 v2.0
   运动蓝（主） + 活力橙（辅） · 前缀 xy_
   依赖 layouts/app.blade.php 中定义的 --xy-* 变量与通用类
   ============================================================ */

/* ============ 1 · Hero ============ */
.xy_hero {
    position: relative;
    background-image: var(--xy-hero-img);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: clamp(440px, 44vw, 580px);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.xy_hero::before {
    /* 中部柔白光晕，保证文字在 banner 上清晰 */
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(58% 70% at 50% 46%, rgba(255,255,255,.92) 0%, rgba(255,255,255,.74) 38%, rgba(255,255,255,.30) 66%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.xy_hero_inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.xy_hero_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--xy-primary-deep);
    background: rgba(255,255,255,.78);
    border: 1px solid var(--xy-border-strong);
    padding: 7px 18px;
    border-radius: var(--xy-radius-pill);
    margin-bottom: 22px;
    box-shadow: var(--xy-shadow-sm);
}
.xy_hero_badge i { color: var(--xy-accent); }
.xy_hero_title {
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.16;
    color: var(--xy-text);
    margin: 0 0 18px;
    letter-spacing: 1px;
}
.xy_hero_title em {
    font-style: normal;
    display: inline;
    background: var(--xy-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.xy_hero_desc {
    font-size: clamp(15px, 1.4vw, 17px);
    color: #33425C;
    line-height: 1.9;
    margin: 0 auto 24px;
    max-width: 680px;
}
.xy_hero_chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}
.xy_hero_chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--xy-primary-deep);
    background: rgba(255,255,255,.7);
    border: 1px solid var(--xy-border);
    padding: 7px 16px;
    border-radius: var(--xy-radius-pill);
}
.xy_hero_chip i {
    color: #fff;
    background: var(--xy-gradient-accent);
    width: 16px; height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 9px;
}
.xy_hero_cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
}
.xy_hero_mini {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 36px;
    padding: 20px 36px;
    background: rgba(255,255,255,.66);
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius-lg);
    backdrop-filter: blur(6px);
    box-shadow: var(--xy-shadow-sm);
}
.xy_hero_mini_item { text-align: center; }
.xy_hero_mini_item strong {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--xy-primary);
    font-family: var(--xy-font-num);
    line-height: 1.1;
}
.xy_hero_mini_item strong em { font-style: normal; font-size: 15px; margin-left: 2px; color: var(--xy-accent); }
.xy_hero_mini_item span { font-size: 12.5px; color: var(--xy-text-body); }

/* ============ 2 · 器材类型速览 ============ */
.xy_types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.xy_type_card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius-lg);
    box-shadow: var(--xy-shadow-card);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.xy_type_card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--xy-gradient-accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .3s ease;
}
.xy_type_card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 18px 38px rgba(22,104,227,.16);
}
.xy_type_card:hover::before { transform: scaleY(1); }
.xy_type_icon {
    flex-shrink: 0;
    width: 60px; height: 60px;
    border-radius: var(--xy-radius-md);
    background: var(--xy-primary-soft);
    color: var(--xy-primary);
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 24px;
    transition: all .3s ease;
}
.xy_type_card:hover .xy_type_icon {
    background: var(--xy-gradient-primary);
    color: #fff;
    transform: rotate(-6deg) scale(1.05);
}
.xy_type_body { flex: 1; min-width: 0; }
.xy_type_body h3 { font-size: 17px; font-weight: 700; color: var(--xy-text); margin: 0 0 5px; }
.xy_type_body p { font-size: 13px; color: var(--xy-text-body); margin: 0; line-height: 1.6; }
.xy_type_arrow { color: var(--xy-text-muted); font-size: 13px; transition: all .3s ease; flex-shrink: 0; }
.xy_type_card:hover .xy_type_arrow { color: var(--xy-accent); transform: translateX(4px); }

/* ============ 3 · 关于平台 ============ */
.xy_about_inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}
.xy_about_title {
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 800;
    color: var(--xy-text);
    line-height: 1.4;
    margin: 8px 0 20px;
}
.xy_about_title em { font-style: normal; color: var(--xy-primary); }
.xy_about_desc { font-size: 14.5px; color: var(--xy-text-body); line-height: 1.95; margin: 0 0 22px; }
.xy_about_list { list-style: none; margin: 0 0 28px; padding: 0; }
.xy_about_list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 14.5px;
    color: var(--xy-text);
    margin-bottom: 13px;
    line-height: 1.6;
}
.xy_about_list li i {
    flex-shrink: 0;
    margin-top: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--xy-accent-soft);
    color: var(--xy-accent);
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 10px;
}
.xy_about_actions { display: flex; flex-wrap: wrap; gap: 14px; }

.xy_about_media { position: relative; }
.xy_about_media_frame {
    border-radius: var(--xy-radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(11,27,58,.18);
    border: 6px solid #fff;
    position: relative;
    z-index: 1;
}
.xy_about_media_frame img { width: 100%; height: auto; display: block; }
.xy_about_media::after {
    content: "";
    position: absolute;
    right: -22px; bottom: -22px;
    width: 60%; height: 70%;
    background: var(--xy-gradient-accent);
    opacity: .12;
    border-radius: var(--xy-radius-lg);
    z-index: 0;
}
.xy_about_floats {
    position: absolute;
    left: -22px; top: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 2;
}
.xy_about_float {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 16px 11px 11px;
    background: #fff;
    border-radius: var(--xy-radius-md);
    box-shadow: var(--xy-shadow-md);
}
.xy_about_float_icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--xy-gradient-primary);
    color: #fff;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 15px;
}
.xy_about_float strong { display: block; font-size: 14px; color: var(--xy-text); }
.xy_about_float span { font-size: 10px; color: var(--xy-text-muted); letter-spacing: 1px; }

/* ============ 4 · 精选 / 最新信息 ============ */
.xy_feat_layout {
    display: grid;
    grid-template-columns: 1.05fr 1.35fr;
    gap: 26px;
    align-items: stretch;
}
.xy_thumb_ph {
    width: 100%; height: 100%;
    display: flex;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--xy-primary-soft), var(--xy-bg-soft));
    color: var(--xy-primary);
    font-size: 46px;
}
.xy_info_cat {
    position: absolute;
    left: 12px; top: 12px;
    z-index: 2;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(11,27,58,.62);
    backdrop-filter: blur(4px);
    padding: 4px 11px;
    border-radius: var(--xy-radius-pill);
}
.xy_info_hot {
    position: absolute;
    right: 12px; top: 12px;
    z-index: 2;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--xy-gradient-accent);
    padding: 4px 11px;
    border-radius: var(--xy-radius-pill);
}

/* 大卡 */
.xy_feat_big {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius-lg);
    overflow: hidden;
    box-shadow: var(--xy-shadow-card);
    transition: all .3s ease;
}
.xy_feat_big:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(22,104,227,.18); }
.xy_feat_big_thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--xy-bg-soft); }
.xy_feat_big_thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.xy_feat_big:hover .xy_feat_big_thumb img { transform: scale(1.04); }
.xy_feat_big_tag {
    position: absolute;
    right: 12px; bottom: 12px;
    z-index: 2;
    font-size: 12px;
    font-weight: 700;
    color: var(--xy-primary-deep);
    background: rgba(255,255,255,.9);
    padding: 5px 12px;
    border-radius: var(--xy-radius-pill);
}
.xy_feat_big_tag i { color: var(--xy-accent); }
.xy_feat_big_body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.xy_feat_big_body h3 { font-size: 20px; font-weight: 700; color: var(--xy-text); margin: 0 0 12px; line-height: 1.45; }
.xy_feat_big_body p { font-size: 14px; color: var(--xy-text-body); line-height: 1.8; margin: 0 0 18px; flex: 1; }
.xy_feat_big_meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; }
.xy_feat_big_meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--xy-text-muted); }
.xy_feat_big_meta i { color: var(--xy-primary); }
.xy_feat_big_link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--xy-accent); }
.xy_feat_big:hover .xy_feat_big_link i { transform: translateX(4px); }
.xy_feat_big_link i { transition: transform .3s ease; }

/* 小卡网格 */
.xy_feat_small_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.xy_info_card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius);
    overflow: hidden;
    box-shadow: var(--xy-shadow-card);
    transition: all .3s ease;
}
.xy_info_card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(22,104,227,.16); border-color: transparent; }
.xy_info_thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--xy-bg-soft); }
.xy_info_thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.xy_info_card:hover .xy_info_thumb img { transform: scale(1.05); }
.xy_info_body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.xy_info_body h4 { font-size: 14.5px; font-weight: 600; color: var(--xy-text); margin: 0 0 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; }
.xy_info_meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.xy_info_meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--xy-text-muted); overflow: hidden; }
.xy_info_meta i { color: var(--xy-primary); }

/* ============ 5 · 平台优势 ============ */
.xy_adv_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.xy_adv_card {
    background: #fff;
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius-lg);
    padding: 32px 26px;
    box-shadow: var(--xy-shadow-card);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.xy_adv_card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--xy-gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.xy_adv_card:hover { transform: translateY(-6px); box-shadow: 0 20px 42px rgba(22,104,227,.16); }
.xy_adv_card:hover::after { transform: scaleX(1); }
.xy_adv_icon {
    width: 64px; height: 64px;
    border-radius: var(--xy-radius-md);
    background: var(--xy-primary-soft);
    color: var(--xy-primary);
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    transition: all .3s ease;
}
.xy_adv_card:hover .xy_adv_icon { background: var(--xy-gradient-accent); color: #fff; }
.xy_adv_card h3 { font-size: 17.5px; font-weight: 700; color: var(--xy-text); margin: 0 0 12px; }
.xy_adv_card p { font-size: 13.5px; color: var(--xy-text-body); line-height: 1.85; margin: 0; }

/* ============ 6 · KPI 深色条 ============ */
.xy_kpi {
    background: var(--xy-gradient-deep);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.xy_kpi::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,106,19,.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .6;
}
.xy_kpi > .xy_container { position: relative; z-index: 1; }
.xy_kpi_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.xy_kpi_item { text-align: center; padding: 14px; }
.xy_kpi_icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    border-radius: var(--xy-radius-md);
    background: rgba(255,106,19,.14);
    border: 1px solid rgba(255,106,19,.32);
    color: var(--xy-accent);
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 22px;
}
.xy_kpi_num { font-size: 42px; font-weight: 800; color: #fff; font-family: var(--xy-font-num); line-height: 1; margin-bottom: 8px; }
.xy_kpi_num em { font-style: normal; font-size: 18px; color: var(--xy-accent); margin-left: 3px; }
.xy_kpi_label { font-size: 14px; color: var(--xy-dark-muted); }

/* ============ 7 · 入驻流程 ============ */
.xy_steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
.xy_steps::before {
    content: "";
    position: absolute;
    top: 36px; left: 12%; right: 12%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--xy-border-strong) 0 10px, transparent 10px 20px);
    z-index: 0;
}
.xy_step { text-align: center; position: relative; z-index: 1; padding: 0 10px; }
.xy_step_dot {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--xy-primary-soft);
    color: var(--xy-primary);
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 26px;
    box-shadow: var(--xy-shadow-card);
    transition: all .3s ease;
}
.xy_step:hover .xy_step_dot { background: var(--xy-gradient-primary); color: #fff; border-color: transparent; transform: translateY(-4px); }
.xy_step h4 { font-size: 17px; font-weight: 700; color: var(--xy-text); margin: 0 0 9px; }
.xy_step p { font-size: 13px; color: var(--xy-text-body); line-height: 1.7; margin: 0; }

/* ============ 8 · 服务商 ============ */
.xy_merchant_grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.xy_merchant_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 16px 22px;
    background: #fff;
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius);
    box-shadow: var(--xy-shadow-card);
    transition: all .3s ease;
}
.xy_merchant_card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(22,104,227,.16); border-color: transparent; }
.xy_merchant_logo {
    width: 70px; height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 14px;
    border: 2px solid var(--xy-primary-soft);
    background: var(--xy-bg-soft);
    display: flex;
    align-items: center; justify-content: center;
}
.xy_merchant_logo img { width: 100%; height: 100%; object-fit: cover; }
.xy_merchant_logo_ph { color: var(--xy-primary); font-size: 26px; }
.xy_merchant_name { font-size: 14.5px; color: var(--xy-text); margin-bottom: 6px; }
.xy_merchant_count { font-size: 12px; color: var(--xy-text-muted); margin-bottom: 12px; }
.xy_merchant_badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--xy-success);
    background: rgba(22,163,74,.1);
    padding: 4px 11px;
    border-radius: var(--xy-radius-pill);
}
.xy_merchant_empty { opacity: .72; }
.xy_merchant_empty .xy_merchant_logo { border-style: dashed; }
.xy_merchant_empty .xy_merchant_logo_ph { color: var(--xy-text-muted); }
.xy_merchant_empty .xy_merchant_badge { color: var(--xy-accent); background: var(--xy-accent-soft); }

/* ============ 9 · CTA ============ */
.xy_cta {
    background: var(--xy-gradient-primary);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}
.xy_cta::before {
    content: "";
    position: absolute;
    right: -80px; top: -80px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(255,106,19,.35) 0%, transparent 70%);
    pointer-events: none;
}
.xy_cta_inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.xy_cta_text h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; color: #fff; margin: 0 0 12px; line-height: 1.35; }
.xy_cta_text h2 em { font-style: normal; color: #FFD9C0; }
.xy_cta_text p { font-size: 15px; color: rgba(255,255,255,.9); margin: 0 0 18px; line-height: 1.8; }
.xy_cta_chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; }
.xy_cta_chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #fff; }
.xy_cta_chips li i { color: #FFD9C0; }
.xy_cta_actions { display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
    .xy_feat_layout { grid-template-columns: 1fr; }
    .xy_feat_small_grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .xy_types { grid-template-columns: repeat(2, 1fr); }
    .xy_adv_grid { grid-template-columns: repeat(2, 1fr); }
    .xy_merchant_grid { grid-template-columns: repeat(3, 1fr); }
    .xy_about_inner { grid-template-columns: 1fr; gap: 48px; }
    .xy_about_floats { left: 12px; top: 12px; }
}
@media (max-width: 768px) {
    .xy_types { grid-template-columns: 1fr; }
    .xy_feat_small_grid { grid-template-columns: repeat(2, 1fr); }
    .xy_adv_grid { grid-template-columns: 1fr; }
    .xy_kpi_grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
    .xy_steps { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
    .xy_steps::before { display: none; }
    .xy_merchant_grid { grid-template-columns: repeat(2, 1fr); }
    .xy_cta_inner { flex-direction: column; text-align: center; align-items: stretch; }
    .xy_cta_chips { justify-content: center; }
    .xy_hero_mini { gap: 12px 24px; padding: 16px 22px; }
    .xy_hero_mini_item strong { font-size: 24px; }
}
@media (max-width: 480px) {
    .xy_feat_small_grid { grid-template-columns: 1fr; }
    .xy_kpi_num { font-size: 34px; }
}
