
/* CONAN HOME TEMPLATE V3 */

.yu-home {
  --home-yellow: #ffdf38;
  --home-navy: #14233f;
}

.yu-home .yu-panel,
.yu-home .yu-record-entry {
  border-radius: 17px;
  border: 1px solid #edf0f5;
  box-shadow: 0 5px 20px rgba(25,48,80,.035);
}

.yu-home .yu-home-categories {
  padding: 23px 12px;
}

.yu-home .yu-category-grid {
  gap: 23px 8px;
}

.yu-home .yu-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.yu-home .yu-category {
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.yu-home .yu-recharge-entry {
  padding: 19px 17px;
  background: linear-gradient(110deg,#fff9da,#fff2b6);
  border-color: #f2df89;
  border-radius: 15px;
}

.yu-home .yu-common .yu-panel-head {
  padding: 19px 17px 12px;
}

.yu-home .yu-common .yu-panel-head h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--home-navy);
}

.yu-home .yu-common .yu-service-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 11px;
  padding: 8px 13px 16px;
}

.yu-home .yu-common .yu-service-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 11px;
  min-width: 0;
  min-height: 177px;
  padding: 14px;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  box-shadow: 0 3px 12px rgba(20,42,70,.025);
  transition: box-shadow .15s,transform .15s;
}

.yu-home .yu-common .yu-service-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 23px rgba(20,42,70,.085);
}

.yu-home .yu-common .yu-row-icon {
  width: 47px;
  height: 47px;
  border-radius: 12px;
  flex-shrink: 0;
}

.yu-home .yu-common .yu-row-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  width: 100%;
  gap: 6px;
}

.yu-home .yu-common .yu-row-copy strong {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 750;
  color: #17253f;
  overflow-wrap: anywhere;
}

.yu-home .yu-common .yu-row-copy small {
  font-size: 12px;
  line-height: 1.5;
  color: #8490a3;
}

.yu-home .yu-common .yu-service-row > svg:last-child {
  display: none;
}

.yu-home .yu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: auto;
  padding-top: 11px;
  font-size: 11px;
  color: #8995a5;
}

.yu-home .yu-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  background: #ffdf38;
  padding: 8px 13px;
  color: #202020;
  font-size: 12px;
  font-weight: 750;
}

@media(max-width:700px) {
  .yu-home .yu-home-categories {
    padding: 17px 8px;
  }

  .yu-home .yu-category-grid {
    gap: 19px 4px;
  }

  .yu-home .yu-category-icon {
    width: 39px;
    height: 39px;
  }

  .yu-home .yu-category {
    font-size: 11px;
    gap: 7px;
  }

  .yu-home .yu-common .yu-service-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
    padding: 8px 10px 13px;
  }

  .yu-home .yu-common .yu-service-row {
    padding: 11px;
    min-height: 180px;
    gap: 9px;
  }

  .yu-home .yu-common .yu-row-icon {
    width: 39px;
    height: 39px;
  }

  .yu-home .yu-common .yu-row-copy strong {
    font-size: 14px;
  }

  .yu-home .yu-common .yu-row-copy small {
    font-size: 11px;
  }

  .yu-home .yu-card-footer {
    flex-wrap: wrap;
  }

  .yu-home .yu-card-cta {
    font-size: 11px;
    padding: 7px 10px;
  }

  .yu-home .yu-common .yu-panel-head h2 {
    font-size: 18px;
  }
}


/* CONAN-HISTORY-STATS-V1 */
.yu-home .yu-card-stats {
  display: block;
  padding: 6px 0;
  font-size: 12px;
  line-height: 1.5;
  color: #78869a;
}

.yu-home .yu-card-footer {
  margin-top: auto;
}

@media(max-width:700px) {
  .yu-home .yu-card-stats {
    font-size: 11px;
  }
}

/* CONAN-CARD-FINAL-V1 */
.yu-home .yu-common .yu-service-row {
  min-height: 192px;
  padding: 14px;
  gap: 9px;
}

.yu-home .yu-card-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: #78869a;
}

.yu-home .yu-card-flame {
  font-size: 14px;
}

.yu-home .yu-card-stats small {
  font-size: 10px;
  color: #9aa3af;
}

.yu-home .yu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.yu-home .yu-card-category {
  font-size: 11px;
  color: #e34a38;
  font-weight: 700;
}

.yu-home .yu-card-cta {
  background: #ffe135;
  border-radius: 999px;
  padding: 8px 12px;
  color: #111;
  font-weight: 750;
}

@media(max-width:700px) {
  .yu-home .yu-common .yu-service-row {
    min-height: 184px;
    padding: 10px;
  }
  .yu-home .yu-card-stats {
    font-size: 11px;
  }
  .yu-home .yu-card-footer {
    gap: 5px;
  }
  .yu-home .yu-card-cta {
    padding: 7px 9px;
    font-size: 11px;
  }
}


/* CONAN-UNIFIED-HERO-V3 */
.conan-unified-hero{
  background:linear-gradient(110deg,#ffe139,#fff0a0);
  padding:24px;
  border-radius:18px;
  margin-bottom:16px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 20px;
  align-items:center;
}
.conan-unified-brand{
  grid-column:1;
  font-weight:700;
  font-size:13px;
  color:#18294a;
}
.conan-unified-hero h1{
  grid-column:1;
  margin:0;
  font-size:32px;
  color:#112548;
  font-weight:900;
}
.conan-unified-hero p{
  grid-column:1;
  margin:0;
  color:#645216;
  font-size:14px;
}
.conan-unified-search{
  grid-column:2;
  grid-row:1 / span 3;
  background:#fff;
  border-radius:999px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px;
}
.conan-unified-search input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  padding:10px;
  background:none;
}
.conan-unified-search button{
  border:0;
  background:#ffdf32;
  border-radius:999px;
  padding:11px 18px;
  font-weight:800;
}
.yu-home .yu-card-footer{
  justify-content:flex-end;
}
@media(max-width:700px){
  .conan-unified-hero{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    padding:17px;
    gap:9px;
  }
  .conan-unified-hero h1{font-size:23px}
  .conan-unified-hero p{font-size:12px}
  .conan-unified-search input{font-size:12px}
}


/* IPHONE-LAYOUT-REPAIR-V3 */
@media (max-width:700px) {
  .yu-home .yu-common .yu-service-list {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    align-items:stretch !important;
    padding:8px 10px 14px !important;
  }

  .yu-home .yu-common .yu-service-row {
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    min-height:190px !important;
    margin:0 !important;
    padding:12px !important;
    gap:8px !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
  }

  .yu-home .yu-common .yu-service-row .yu-row-icon {
    position:static !important;
    flex-shrink:0 !important;
    margin:0 !important;
  }

  .yu-home .yu-common .yu-service-row .yu-row-copy {
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    min-width:0 !important;
    flex:1 1 auto !important;
  }

  .yu-home .yu-common .yu-card-footer {
    position:static !important;
    display:flex !important;
    justify-content:flex-end !important;
    align-items:center !important;
    width:100% !important;
    margin-top:auto !important;
    padding-top:8px !important;
  }

  .yu-home .yu-common .yu-card-cta {
    position:static !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 !important;
    white-space:nowrap !important;
  }
}


/* CONAN-HEADER-FIX-V2 */

/* iPhone 隐藏重复的旧顶部 */
@media (max-width:700px) {

  body[data-yellow-route="home"] #header,
  body[data-yellow-route="services"] #header,
  body[data-yellow-route="history"] #header,
  body[data-yellow-route="messages"] #header {
    display:none !important;
  }

  body:not([data-yellow-route="mine"]) .conan-unified-hero {
    margin-top:0 !important;
    margin-bottom:14px !important;
    border-radius:14px !important;
    padding:18px 16px !important;
  }

  .conan-unified-hero h1 {
    font-size:23px !important;
    line-height:1.25 !important;
  }

  .conan-unified-search {
    width:100% !important;
    box-sizing:border-box !important;
  }
}



/* CONAN-HEADER-FINAL-V1 */

/* 删除重复黄色横条，保留电脑白色导航 */
@media (min-width:701px) {
  body[data-yellow-route="home"] #header,
  body[data-yellow-route="services"] #header,
  body[data-yellow-route="history"] #header,
  body[data-yellow-route="messages"] #header {
    display:none !important;
  }
}

/* 手机端：旧顶部继续隐藏 */
@media (max-width:700px) {
  body[data-yellow-route="home"] #header,
  body[data-yellow-route="services"] #header,
  body[data-yellow-route="history"] #header,
  body[data-yellow-route="messages"] #header {
    display:none !important;
  }
}

/* 黄色头图 */
.conan-unified-hero {
  position:relative !important;
}

/* 右上角操作区 */
.conan-hero-actions {
  position:absolute;
  top:14px;
  right:16px;
  z-index:5;
  display:flex;
  align-items:center;
  gap:12px;
}

.conan-hero-actions button {
  border:0;
  background:transparent;
  color:#17233d;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}

@media(max-width:700px) {
  .conan-hero-actions {
    top:12px;
    right:12px;
    gap:9px;
  }

  .conan-hero-actions button {
    font-size:12px;
  }

  .conan-unified-brand {
    padding-right:105px;
  }
}



/* CONAN-HERO-ACTIONS-V4 */

/* 非“我的”页面隐藏旧顶部 */
body[data-yellow-route="home"] #header,
body[data-yellow-route="services"] #header,
body[data-yellow-route="history"] #header,
body[data-yellow-route="messages"] #header {
  display:none !important;
}

/* 新黄色顶部的品牌与按钮 */
.conan-hero-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}

.conan-unified-hero .conan-hero-top {
  grid-column:1 / -1;
  grid-row:1;
}

.conan-hero-actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}

.conan-hero-actions button {
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.38);
  padding:7px 12px;
  color:#17233d;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
}

.conan-hero-actions button:active {
  background:rgba(255,255,255,.7);
}

@media(max-width:700px) {
  .conan-hero-top {
    width:100%;
  }

  .conan-hero-actions {
    gap:6px;
  }

  .conan-hero-actions button {
    padding:6px 9px;
    font-size:12px;
  }

  .conan-unified-brand {
    padding-right:0 !important;
  }
}



/* CONAN-ACTIONS-ICONS-V1 */
.conan-hero-actions button {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.46) !important;
  padding:7px 11px !important;
  color:#17233d !important;
}

.conan-hero-actions button svg {
  width:14px !important;
  height:14px !important;
  flex-shrink:0;
}

.conan-hero-actions button span {
  white-space:nowrap;
}

@media(max-width:700px) {
  .conan-hero-actions {
    gap:5px !important;
  }
  .conan-hero-actions button {
    padding:6px 8px !important;
    font-size:11px !important;
  }
  .conan-hero-actions button svg {
    width:13px !important;
    height:13px !important;
  }
}



/* CONAN-CARD-LAYOUT-CLEANUP-V1 */

/* 最新上架卡片重新排版 */
.yu-home .yu-common .yu-service-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  padding:8px 12px 14px;
}

.yu-home .yu-common .yu-service-row{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  min-width:0;
  min-height:210px;
  padding:14px;
  border:1px solid #eceff3;
  border-radius:16px;
  background:#fff;
  box-shadow:0 1px 4px rgba(20,35,90,.04);
  gap:0;
}

.yu-home .yu-common .yu-row-icon{
  width:48px;
  height:48px;
  border-radius:14px;
  display:grid;
  place-items:center;
  flex-shrink:0;
  margin-bottom:12px;
}

.yu-home .yu-common .yu-row-copy{
  display:flex;
  flex-direction:column;
  width:100%;
  min-width:0;
  flex:1;
}

.yu-home .yu-common .yu-row-copy strong{
  font-size:16px;
  line-height:1.35;
  font-weight:800;
  color:#18233d;
  margin:0;
}

.yu-home .yu-common .yu-row-copy small{
  display:block;
  margin-top:8px;
  font-size:12px;
  line-height:1.55;
  color:#7f8898;
  min-height:38px;
  word-break:break-word;
}

.yu-home .yu-common .yu-card-stats{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:14px;
  font-size:13px;
  line-height:1.45;
  color:#6f7888;
  white-space:normal;
}

.yu-home .yu-common .yu-card-flame{
  font-size:18px;
  line-height:1;
  flex-shrink:0;
}

.yu-home .yu-common .yu-card-footer{
  margin-top:auto;
  padding-top:16px;
  width:100%;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.yu-home .yu-common .yu-card-category{
  display:none !important;
}

.yu-home .yu-common .yu-card-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:86px;
  height:36px;
  padding:0 16px;
  border-radius:999px;
  background:#f3d51f;
  color:#17233d;
  font-size:14px;
  font-weight:700;
  line-height:1;
  box-shadow:0 4px 10px rgba(243,213,31,.22);
}

.yu-home .yu-common .yu-service-row > svg:last-child{
  display:none !important;
}

@media (min-width:900px){
  .yu-home .yu-common .yu-service-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:700px){
  .yu-home .yu-common .yu-service-list{
    gap:10px;
    padding:8px 10px 14px;
  }

  .yu-home .yu-common .yu-service-row{
    min-height:192px;
    padding:12px;
    border-radius:14px;
  }

  .yu-home .yu-common .yu-row-icon{
    width:42px;
    height:42px;
    margin-bottom:10px;
  }

  .yu-home .yu-common .yu-row-copy strong{
    font-size:15px;
  }

  .yu-home .yu-common .yu-row-copy small{
    margin-top:7px;
    min-height:36px;
    font-size:12px;
  }

  .yu-home .yu-common .yu-card-stats{
    margin-top:12px;
    font-size:12.5px;
  }

  .yu-home .yu-common .yu-card-cta{
    min-width:80px;
    height:34px;
    padding:0 14px;
    font-size:13px;
  }
}


/* CONAN-CARD-HEIGHT-FINAL */

/* 卡片内容从顶部依次排列 */
.yu-home .yu-common .yu-service-row {
  min-height: 0 !important;
  height: auto !important;
  padding: 12px !important;
  gap: 5px !important;
  justify-content: flex-start !important;
}

.yu-home .yu-common .yu-row-icon {
  margin-bottom: 3px !important;
}

.yu-home .yu-common .yu-row-copy {
  min-height: 0 !important;
  gap: 4px !important;
  flex: 0 1 auto !important;
}

.yu-home .yu-common .yu-row-copy > small {
  min-height: 0 !important;
  margin-top: 2px !important;
}

.yu-home .yu-common .yu-card-stats {
  margin-top: 5px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.yu-home .yu-common .yu-card-footer {
  margin-top: 7px !important;
  padding-top: 0 !important;
  min-height: 0 !important;
  justify-content: flex-end !important;
}

.yu-home .yu-common .yu-service-list {
  align-items: stretch !important;
}

@media (max-width:700px) {
  .yu-home .yu-common .yu-service-list {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 9px !important;
  }

  .yu-home .yu-common .yu-service-row {
    padding: 10px !important;
    gap: 4px !important;
  }

  .yu-home .yu-common .yu-card-footer {
    margin-top: 6px !important;
  }
}
