/* ===== 3Cvip 手機規格總覽 V3 ===== */
.cvip-phones,
.cvip-phones *{
  box-sizing:border-box;
}

.cvip-phones{
  --green:#8A9B82;
  --green-dark:#647B5E;
  --orange:#E98B17;
  --text:#292F2C;
  --muted:#707870;
  --border:#E4E9E2;
  --light:#F4F6F1;
  width:100%;
  max-width:1180px;
  margin:0 auto 36px;
  font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif;
  line-height:1.6;
  color:var(--text);
}

/* ===== 頁面標題 ===== */
.cvip-phones .cp-head{
  padding:30px;
  border-radius:17px;
  background:var(--light);
  margin-bottom:22px;
}

.cvip-phones .cp-eyebrow{
  color:#758B70;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
}

.cvip-phones .cp-head h2{
  margin:7px 0 10px;
  font-size:30px;
  line-height:1.35;
  color:var(--text);
  font-weight:750;
}

.cvip-phones .cp-head p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

/* ===== 搜尋與篩選 ===== */
.cvip-phones .cp-filters{
  display:grid;
  grid-template-columns:1fr 1.8fr 1fr;
  gap:12px;
  margin-bottom:12px;
}

.cvip-phones .cp-field{
  position:relative;
  min-width:0;
}

.cvip-phones .cp-field label{
  display:block;
  font-size:12px;
  font-weight:700;
  color:#647363;
  margin-bottom:7px;
}

.cvip-phones .cp-field input,
.cvip-phones .cp-field select{
  display:block;
  width:100%;
  height:51px;
  min-width:0;
  margin:0;
  border:1px solid #D9E2D6;
  border-radius:11px;
  background:#fff;
  color:var(--text);
  font-family:inherit;
  font-size:15px;
  line-height:1.4;
  box-shadow:none;
  outline:none;
}

.cvip-phones .cp-field select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding:11px 41px 11px 15px;
  cursor:pointer;
  background-image:none;
}

.cvip-phones .cp-field input{
  padding:11px 15px 11px 44px;
}

.cvip-phones .cp-field input::placeholder{
  color:#929A91;
  opacity:1;
}

.cvip-phones .cp-field input:focus,
.cvip-phones .cp-field select:focus{
  border-color:var(--green-dark);
  box-shadow:0 0 0 3px #8A9B8226;
}

/* 下拉箭頭 */
.cvip-phones .cp-select-wrap{
  position:relative;
}

.cvip-phones .cp-select-wrap::after{
  content:"";
  position:absolute;
  right:18px;
  top:20px;
  width:8px;
  height:8px;
  border-right:2px solid #61755D;
  border-bottom:2px solid #61755D;
  transform:rotate(45deg);
  pointer-events:none;
}

/* 搜尋放大鏡 */
.cvip-phones .cp-search-wrap{
  position:relative;
}

.cvip-phones .cp-search-icon{
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  width:19px;
  height:19px;
  color:#71816D;
  pointer-events:none;
}

.cvip-phones .cp-search-icon svg{
  display:block;
  width:100%;
  height:100%;
}

/* 清除篩選 */
.cvip-phones .cp-filter-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:3px 0 22px;
}

.cvip-phones .cp-filter-note{
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.cvip-phones .cp-clear{
  padding:5px 0;
  background:transparent;
  color:var(--green-dark);
  border:0;
  font-family:inherit;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* ===== 結果資訊 ===== */
.cvip-phones .cp-info{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 14px;
  color:var(--muted);
  font-size:13px;
}

.cvip-phones .cp-count{
  font-weight:650;
  color:#526B4E;
}

.cvip-phones .cp-test-label{
  font-size:11px;
  background:var(--light);
  color:#6F806A;
  border-radius:20px;
  padding:4px 10px;
}

/* ===== 手機卡片 ===== */
.cvip-phones .cp-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;
}

.cvip-phones .cp-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  transition:border-color .2s,box-shadow .2s;
}

.cvip-phones .cp-card:hover{
  border-color:#BCCAB6;
  box-shadow:0 5px 18px #0000000A;
}

.cvip-phones .cp-card.is-selected{
  border-color:var(--orange);
  box-shadow:0 0 0 1px var(--orange);
}

/* 手機圖片 */
.cvip-phones .cp-image{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height:170px;
  background:#F5F7F3;
}

.cvip-phones .cp-image svg{
  width:55px;
  height:75px;
  color:var(--green);
}

.cvip-phones .cp-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:16px;
}

.cvip-phones .cp-brand{
  position:absolute;
  top:12px;
  left:12px;
  background:#fff;
  border-radius:20px;
  padding:4px 10px;
  font-size:11px;
  font-weight:700;
  color:#526B4E;
}

/* 卡片內容 */
.cvip-phones .cp-body{
  display:flex;
  flex:1;
  flex-direction:column;
  gap:11px;
  padding:17px;
}

.cvip-phones .cp-model{
  font-size:18px;
  font-weight:750;
  line-height:1.4;
  color:var(--text);
}

.cvip-phones .cp-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.cvip-phones .cp-tag{
  padding:3px 9px;
  border-radius:20px;
  background:#EDF3E9;
  color:#567052;
  font-size:11px;
  font-weight:600;
}

.cvip-phones .cp-status{
  color:var(--muted);
  font-size:12px;
}

/* 價格 */
.cvip-phones .cp-price-label{
  color:var(--muted);
  font-size:11px;
  margin-bottom:1px;
}

.cvip-phones .cp-price{
  color:#BF710B;
  font-size:22px;
  font-weight:800;
  line-height:1.4;
}

.cvip-phones .cp-price-unknown{
  color:#858C84;
  font-size:13px;
}

/* 查看規格與比較 */
.cvip-phones .cp-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  flex-wrap:wrap;
  padding-top:12px;
  border-top:1px solid var(--border);
  margin-top:auto;
}

.cvip-phones .cp-detail{
  display:inline-flex;
  align-items:center;
  background:transparent;
  border:0;
  padding:3px 0;
  color:var(--green-dark);
  font-family:inherit;
  font-size:13px;
  line-height:1.5;
  font-weight:700;
  cursor:pointer;
}

.cvip-phones .cp-check{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:13px;
  cursor:pointer;
  color:var(--text);
}

.cvip-phones .cp-check input{
  width:17px;
  height:17px;
  margin:0;
  accent-color:var(--green-dark);
  cursor:pointer;
}

.cvip-phones .cp-check input:disabled{
  cursor:not-allowed;
}

.cvip-phones .cp-check:has(input:disabled){
  opacity:.5;
}

/* ===== 比較操作列 ===== */
.cvip-phones .cp-compare-bar{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-top:24px;
  padding:15px 18px;
  border:1px solid #DBE5D7;
  border-radius:12px;
  background:#fff;
  box-shadow:0 4px 16px #0000000B;
}

.cvip-phones .cp-selection{
  font-size:13px;
  font-weight:650;
  color:#526B4E;
}

.cvip-phones .cp-selection-names{
  display:block;
  margin-top:3px;
  font-size:12px;
  color:var(--muted);
  font-weight:400;
}

.cvip-phones .cp-compare-btn{
  min-height:44px;
  border:0;
  border-radius:9px;
  background:var(--orange);
  color:#fff;
  padding:11px 19px;
  font-family:inherit;
  font-size:14px;
  font-weight:750;
  cursor:pointer;
}

.cvip-phones .cp-compare-btn:disabled{
  background:#CAD2C7;
  cursor:not-allowed;
}

/* 無搜尋結果 */
.cvip-phones .cp-empty{
  margin:18px 0;
  padding:30px 16px;
  border:1px dashed #D7E0D3;
  border-radius:12px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}

.cvip-phones .cp-footnote{
  margin:16px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
}

.cvip-phones [hidden]{
  display:none !important;
}

/* ===== 平板 ===== */
@media(max-width:900px){
  .cvip-phones .cp-filters{
    grid-template-columns:1fr 1.4fr 1fr;
    gap:9px;
  }

  .cvip-phones .cp-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* ===== 手機 ===== */
@media(max-width:600px){
  .cvip-phones{
    margin-bottom:26px;
  }

  .cvip-phones .cp-head{
    padding:22px 18px;
    margin-bottom:19px;
  }

  .cvip-phones .cp-head h2{
    font-size:24px;
  }

  .cvip-phones .cp-head p{
    font-size:13px;
  }

  .cvip-phones .cp-filters{
    grid-template-columns:1fr;
    gap:10px;
  }

  .cvip-phones .cp-field input,
  .cvip-phones .cp-field select{
    height:48px;
    font-size:16px;
  }

  .cvip-phones .cp-filter-bottom{
    gap:8px;
    margin-bottom:18px;
  }

  .cvip-phones .cp-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }

  .cvip-phones .cp-image{
    height:115px;
  }

  .cvip-phones .cp-image svg{
    width:37px;
    height:55px;
  }

  .cvip-phones .cp-brand{
    top:8px;
    left:8px;
    padding:3px 7px;
    font-size:10px;
  }

  .cvip-phones .cp-body{
    padding:12px;
    gap:9px;
  }

  .cvip-phones .cp-model{
    font-size:14px;
  }

  .cvip-phones .cp-price{
    font-size:17px;
  }

  .cvip-phones .cp-price-unknown{
    font-size:12px;
  }

  .cvip-phones .cp-actions{
    align-items:flex-start;
    flex-direction:column;
    gap:7px;
  }

  .cvip-phones .cp-compare-bar{
    flex-direction:column;
    align-items:stretch;
    padding:13px;
    margin-top:18px;
  }

  .cvip-phones .cp-compare-btn{
    width:100%;
  }
}

/* 超窄手機 */
@media(max-width:360px){
  .cvip-phones .cp-body{
    padding:10px;
  }

  .cvip-phones .cp-model{
    font-size:13px;
  }

  .cvip-phones .cp-tag{
    font-size:10px;
    padding:2px 6px;
  }
}
.cvip-phones .cp-pagination{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin:20px 0}
.cvip-phones .cp-pagination a,.cvip-phones .cp-pagination strong{padding:6px 10px;border:1px solid #D9E2D6;border-radius:7px;text-decoration:none}
.cvip-phones a.cp-detail{text-decoration:none}
.cvip-phones .cp-filters{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) minmax(0,1.15fr) minmax(0,1fr)}
@media(max-width:900px){.cvip-phones .cp-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.cvip-phones .cp-filters{grid-template-columns:1fr}}

/* C.4：僅調整總覽搜尋按鈕。 */
.cvip-phones .cp-filter-bottom button[type=submit]{min-height:44px;padding:10px 18px;background:#8A9B82;color:#fff;border:0;border-radius:8px;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer}
.cvip-phones .cp-filter-bottom button[type=submit]:hover,.cvip-phones .cp-filter-bottom button[type=submit]:focus{background:#647B5E;color:#fff}
