
h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 500;
}

.device-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
    background: white;
    border: 1px solid #0e84b5 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .device-selector {
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
    }
}

.device-selector select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    font-size: 16px;
    width: 100%;
    transition: border-color 0.3s;
}

.device-selector select:focus {
    outline: none;
    border-color: #3498db;
}

.fua-container {
    margin-top: 20px;
    /*padding: 20px;*/
    /*border-radius: 10px;*/
    background-color: white;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);*/

    position: relative;
}

.fua-container h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 500;
}

.fua-table {
    width: 100%;
    border-collapse: collapse;
    /*margin-bottom: 20px;*/
    position: relative;
}

.fua-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
}

.fua-table td {
    padding: 12px 15px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
}

@media (min-width: 768px) {
    .fua-table td:last-child {
        width: 10%;
    }
}

.fua-table tr:hover td {
    background-color: #f8f9fa;
    transform: scale(1.02);
}

.fua-table tr.selected td {
    background-color: #5a6268;
    color: white;
}

.table-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.mask-text {
    background-color: #34495e;
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
}

.selected-devices-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    max-height: 150px;
    overflow-y: auto;
    padding: 10px 0;
}


/* ================================
   方案3：JS Masonry（已选设备标签"补空位"排版）
   - 目的：第三个放不下时，后续短标签可回填到上一行空位
   - 注意：会打散视觉顺序（属于"瀑布流"效果）
   ================================ */
.selected-devices-container.is-masonry{
    display: block;          /* 覆盖 flex */
    position: relative;      /* 让 absolute 子元素以此为定位参考 */
    overflow-x: hidden;      /* 避免横向滚动条 */
}
.selected-devices-container.is-masonry .selected-device-tag{
    position: absolute;      /* JS 计算 left/top */
}
.selected-device-tag{
    white-space: nowrap;     /* 统一单行，避免高度不一致 */
}
.selected-device-tag{
    background-color: #3498db;
    color: #fff;
    /* × 改为右上角悬浮，不占位，不影响 tag 宽度 */
    padding: 8px 12px; /* 不再为×预留宽度（×改为右上角悬浮） */
    border-radius: 6px;
    font-size: 14px;
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.selected-device-tag .close-btn{
    position: absolute;
    top: -8px;
    right: 2px;
    transform: none;

    /* 不占位：悬浮在右上角 */
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    border-radius: 999px;

    background-color: #5a6268;
    color: #fff;
    font-size: 12px;
    line-height: 16px;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    /* 去掉手机点击高亮 */
    -webkit-tap-highlight-color: transparent;
}
@media (max-width: 420px){
    .selected-device-tag{
        padding: 8px 10px;
        font-size: 13px;
    }
    .selected-device-tag .close-btn{
        top: 1px;
        right: 1px;
        width: 14px;
        height: 14px;
        font-size: 11px;
        line-height: 14px;
    }
}


.submit-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin-top: 15px;*/
    border: 1px solid #0e84b5;
    padding: 0 10px;
}

@media (max-width: 767px) {
    .submit-section {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 10px; /* mobile: 给按钮留呼吸空间 */
    }

    .selected-devices-container {
        order: 1;
    }

    .submit-btn {
        order: 2;
        width: 100%;          /* 窄屏占满 */
        align-self: stretch;  /* 不再靠右 */
        display: block;
    }
}

.submit-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.submit-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.no-devices {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

.table-container {
    position: relative;
}
.fua-container h4{
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 500;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
}

/* 同一型号选择 >=2 个故障时显示 */
.fua-discount-tip{
    font-size:12px;
    font-weight:400;
    color:#e67e22;
    text-align:right;
    margin-left:auto;
}
@media (max-width:768px){
    .fua-discount-tip{width:100%;text-align:left;margin-left:0;}
}

/* ================================
   list-4 UI polish (方案4：原生下拉闭合态优化)
   说明：展开下拉(option列表)仍由系统控制，这里只优化闭合态观感与可读性
   ================================ */

.device-selector{
    padding: 14px;
    border: 1px solid rgba(14,132,181,.18);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,252,253,0.96));
}

.device-selector select{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    width: 100%;
    font-size: 16px;
    color: #043A5E;

    line-height: 1.2;
    padding: 12px 56px 12px 14px;
    min-height: 52px;

    border: 1px solid rgba(14,132,181,.25);
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);

    background-image:
            linear-gradient(45deg, transparent 50%, #0a4d5b 50%),
            linear-gradient(135deg, #0a4d5b 50%, transparent 50%),
            linear-gradient(to right, #e8f3f6, #e8f3f6);
    background-position:
            calc(100% - 20px) 50%,
            calc(100% - 14px) 50%,
            calc(100% - 42px) 50%;
    background-size: 6px 6px, 6px 6px, 1px 60%;
    background-repeat: no-repeat;

    transition: box-shadow .18s ease, border-color .18s ease;
}

.device-selector select:hover{
    border-color: rgba(14,132,181,.45);
}

.device-selector select:focus{
    outline: none;
    border-color: rgba(14,132,181,.85);
    box-shadow: 0 0 0 4px rgba(14,132,181,.12), 0 10px 24px rgba(0,0,0,.06);
}

.device-selector select:disabled{
    cursor: not-allowed;
    opacity: .65;
    background-color: #f7fafb;
    background-image: none;
    box-shadow: none;
    padding-right: 14px;
}

.fua-table tr:hover td{
    transform: none;
    background-color: #f7fbff;
}

.fua-table tr.selected td{
    background-color: rgba(14,132,181,.92);
    color: #fff;
}

/* ================================
   list-4 顶部引导区（新布局：标题+步骤同排，卖点/留言在select上方）
   ================================ */

.list4{
    max-width: 1220px;
    margin: 10px auto 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

/* left: icon + title */
.list4__left{
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0; /* 允许 title 省略号 */
    flex: 1 1 auto;
}

.list4__icon{
    height: 44px;
    width: auto;
    flex: 0 0 auto;
}

.list4__h1{
    margin: 0;
    padding: 0;
    font-size: 26px;
    font-weight: 800;
    color: #043A5E;
    text-align: left; /* 覆盖你文件里 h1 的居中 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 标题很长就隐藏 */
}

/* right: steps */
.list4__right{
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* steps (轻量 pill) */
.list4 .steps{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.list4 .step{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0,48,60,.12);
    color: rgba(0,48,60,.72);
    font-size: 13px;
    white-space: nowrap;
}

.list4 .step .num{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,48,60,.08);
    color: rgba(0,48,60,.92);
    font-size: 12px;
    line-height: 1;
}

.list4 .step.is-active{
    border-color: rgba(0,165,230,.35);
    background: rgba(0,165,230,.07);
    color: #043A5E;
    font-weight: 800;
}

.list4 .step.is-active .num{
    background: #0679D4;
    color: #fff;
}

/* meta row above selects */
.list4-meta{
    max-width: 1220px;
    margin: 6px auto 10px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.list4-meta__note{
    font-size: 12px;
    color: rgba(0,48,60,.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.list4-meta__cta{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(0,48,60,.55) !important;
    /*background: rgba(0,165,230,.08);*/
    /*border: 1px solid rgba(0,165,230,.20);*/
    /*color: #043A5E;*/
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
}

.list4-meta__cta:hover{ opacity: .92; color: #D9251D !important; }

/* align selects with same max-width */
.device-selector{
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 960px){
    .list4 .steps{ flex-wrap: nowrap; justify-content: center; }
}

/* mobile: stack */
@media (max-width: 768px){
    .list4{
        flex-direction: column;
        align-items: center;
    }
    .list4__left{
        justify-content: center;
    }
    .list4__h1{
        font-size: 20px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .list4__right{ justify-content: center; }
    .list4 .steps{ justify-content: center; }
    .list4-meta{
        flex-direction: column;
        align-items: stretch;
    }
    .list4-meta__note{
        text-align: center;
        white-space: normal;
    }
    .list4-meta__cta{
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* ================================
   list-4 选择区与故障表合并为一体（面板）
   需求：
   - 去掉"设备详细信息"标题行
   - 优惠提示放到"故障内容"表头同行右侧
   - 三个 select 与故障表共用同一外边框/圆角（看起来是一个整体）
   ================================ */

.fua-panel{
    border: 1px solid rgba(14,132,181,.18);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(0,0,0,.06);
}

/* 选择区变成面板的"表头"，取消自身外框，改用底部分隔线 */
.fua-panel .device-selector{
    margin: 0 !important;

    box-shadow: none !important;
    background: transparent !important;
    padding: 14px 14px 12px !important;
    border-bottom: 1px solid rgba(14,132,181,.12) !important;
}

/* 故障区取消上边距，让它贴着面板 */
.fua-panel .fua-container{
    margin-top: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* 表格容器补一点内边距，让表头不贴边 */
.fua-panel .table-container{
    padding: 0;
}

/* 表头"故障内容 + 优惠提示"同一行 */
.fua-th__wrap{
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    width: 100%;
    flex-wrap: nowrap; /* 关键：表头高度保持稳定，不因为提示而换行 */
}

/* 方案B：优惠提示改成"徽章 + 气泡"，避免出现/消失导致表格整体下移 */
.fua-th__title{
    font-weight: 600;
    padding-right: 110px; /* 预留右侧徽章空间（徽章绝对定位，不占高度） */
    min-width: 0;
}

.fua-discount-badge{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgb(33, 141, 186);
    background: rgba(217, 37, 29, .006);
    color: #218dba;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}


/* 方案B-1：去掉按钮默认的 focus/tap 高亮（避免手机端点击出现不协调的长方形高亮） */
.fua-discount-badge{
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* 鼠标/触摸点击后不显示默认轮廓 */
.fua-discount-badge:focus{
    outline: none;
    box-shadow: none;
}

/* 键盘导航时仍保留可访问性的高亮（仅在 focus-visible 时出现） */
.fua-discount-badge:focus-visible{
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 141, 186, .18);
}

.fua-discount-badge::-moz-focus-inner{
    border: 0;
    padding: 0;
}

.fua-discount-badge:active{
    transform: translateY(-50%) scale(.98);
}

.fua-discount-badge__i{
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 800;
    background: rgba(33, 141, 186, .16);
    border: 1px solid rgba(33, 141, 186, .30);
    color: #218dba;
}

.fua-discount-pop{
    position: absolute;
    right: 12px;
    top: calc(100% + 8px);
    z-index: 50;

    max-width: 320px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
    box-shadow: 0 14px 30px rgba(0,0,0,.12);

    color: rgba(0,48,60,.92);
    font-size: 12px;
    line-height: 1.55;
}

.fua-discount-pop::before{
    content: "";
    position: absolute;
    top: -6px;
    right: 18px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid rgba(0,0,0,.10);
    border-top: 1px solid rgba(0,0,0,.10);
    transform: rotate(45deg);
}

@media (max-width: 420px){
    .fua-th__title{ padding-right: 92px; }
    .fua-discount-badge{ right: 8px; padding: 6px 8px; }
    .fua-discount-pop{ right: 8px; max-width: 280px; }
}


.fua-th__title{
    font-weight: 600;
}

.fua-discount-tip{
    font-size: 12px;
    font-weight: 400;
    color: #218dba;
    margin-left: auto;
    text-align: right;
    line-height: 1.2;
}

/* 移动端：提示自动换行，避免挤压 */
@media (max-width: 768px){
    .fua-discount-tip{
        width: 100%;
        margin-top: 6px;
        text-align: left;
    }
}

/* ================================
   list-4：金额列尽量窄（单元格不带「円」，单位放在表头）
   目标：右侧列按内容"收缩"，并设置一个可读的最小宽度
   ================================ */

.fua-table th:last-child,
.fua-table td:last-child{
    /* 让金额列尽量窄：按内容收缩 */
    width: 1%;
    white-space: nowrap;

    /* 视觉：数字靠右更像价格列 */
    text-align: right;
    font-variant-numeric: tabular-nums;

    /* 右列更窄一点（减少无效空白） */
    padding-left: 10px;
    padding-right: 10px;

    /* 保底宽度：避免太挤 */
    min-width: 76px;
}

@media (max-width: 420px){
    .fua-table th:last-child,
    .fua-table td:last-child{
        padding-left: 8px;
        padding-right: 8px;
        min-width: 72px;
    }
}

@media (min-width: 768px){
    .fua-table th:last-child,
    .fua-table td:last-child{
        min-width: 100px;
    }
}

/* 左列允许更自然换行，避免被窄列挤出横向滚动 */
.fua-table td:first-child{
    overflow-wrap: anywhere;
}





/* phone grid (shared) */
.phone-index{max-width:1220px;margin:0 auto;padding:10px 16px 30px;}
.phone-group{margin:28px 0 42px;}
.phone-group-title{margin:0 0 14px;font-size:18px;font-weight:700;line-height:1.2;}

.phone-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:22px;}
.phone-item{display:block;text-decoration:none;color:inherit;}
.phone-card{border:0px solid rgba(0,0,0,.08);border-radius:16px;background:#fff;padding:14px 12px 12px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
.phone-thumb{width:100%;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;border-radius:14px;background:transparent;overflow:hidden;}
.phone-thumb img{width:100%;height:100%;object-fit:contain;display:block;}
.phone-name{margin-top:10px;text-align:center;font-size:14px;line-height:1.25;min-height:2.5em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}

@media (hover:hover){.phone-item:hover .phone-card{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.10);border-color:rgba(0,0,0,.14);}}

/* 宽屏逐步变少列 */
@media (max-width:1200px){.phone-grid{grid-template-columns:repeat(5,minmax(0,1fr));}}
@media (max-width:992px){.phone-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;}}

/* 手机端：默认 4 列 + 缩小卡片/间距，减少"空白感" */
@media (max-width:768px){
    .phone-index{padding:8px 10px 22px;}
    .phone-group{margin:18px 0 26px;}
    .phone-group-title{margin-bottom:10px;font-size:16px;}

    .phone-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
    .phone-card{border-radius:14px;padding:10px 8px 8px;}
    .phone-thumb{border-radius:12px;}
    .phone-name{margin-top:6px;font-size:12px;min-height:2.2em;}
}

/* 超窄屏再紧一点（仍然 4 列） */
@media (max-width:360px){
    .phone-index{padding-left:8px;padding-right:8px;}
    .phone-grid{gap:8px;}
    .phone-card{padding:9px 7px 7px;border-radius:13px;}
    .phone-name{font-size:11px;}
}







/* content card (shared) */
.bcom-contentcard{
    max-width:1220px;
    margin:22px auto 0;
    padding:18px 18px;
    border:1px solid rgba(0,0,0,.08);
    border-radius:18px;
    background:#fff;
    display:grid;
    grid-template-columns: 1.25fr .75fr;
    gap:28px;
    align-items:start;
}
.bcom-rt{
    font-size:15px;
    line-height:1.9;
    word-break:break-word;
}
.bcom-rt p{margin:0 0 10px;}
.bcom-rt ul,.bcom-rt ol{margin:10px 0 0;padding-left:1.2em;}
.bcom-rt li{margin:6px 0;}
.bcom-rt h2,.bcom-rt h3{margin:14px 0 10px;line-height:1.35;}

.bcom-contentcard__media{
    border-radius:16px;

    overflow:hidden;
    background:rgba(0,0,0,.03);
    aspect-ratio: 4/3;
}
.bcom-contentcard__media img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;     /* 关键：完整展示 */
    object-position:center; /* 居中 */
}


/* mobile: 一列，图片在下面（HTML顺序=文字在前） */
@media (max-width:768px){
    .bcom-contentcard{
        grid-template-columns:1fr;
        padding:14px 14px;
        gap:14px;
    }
    .bcom-contentcard__media{aspect-ratio:16/9;}
}















/* 6つの理由 区块整体 */
.reasons {
    max-width: 1220px;
    margin: 60px auto 80px;
    padding: 0;
}

.reasons-title {
    font-size: 22px;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 32px;
}


.reasons-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px; /* 行间距 / 列间距 */
}


.reason-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 26px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .04);
    text-align: center;
}


.reason-badge {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 999px;
    background: #008ec0;  /* 按你站的蓝色调整 */
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.reason-text {
    font-size: 14px;
    line-height: 1.8;
    color: #333333;
}


@media (max-width: 768px) {
    .reasons-list {
        grid-template-columns: 1fr;
    }
    .reason-item {
        text-align: center;
    }
}