/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 基础样式 */
body {
    font-family: 'Inter', 'Canva Sans', 'Noto Sans Variable', 'Noto Sans', 'Noto', sans-serif;
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
    color: #FFFFFF;
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    zoom: 1.1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* 顶部导航栏样式 */
.header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: max(12px, env(safe-area-inset-top, 0px)) 0 12px;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #FF6B35;
    margin-top: -5px;  /* 添加这个属性，负值往上移动 */
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    background: linear-gradient(45deg, #FF6B35, #E74C3C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 搜索框样式 */
.nav-search {
    flex: 1;
    max-width: 500px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 25px;
    color: #FFFFFF;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.search-btn {
    position: absolute;
    right: 5px;
    background: transparent;
    border: none;
    border-radius: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #CCCCCC;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FF6B35;
    transform: scale(1.05);
}

/* 排序按钮样式 */
.sort-btn {
    padding: 8px 12px;
    min-height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.sort-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
}

.sort-btn.active {
    background: #FF6B35;
    border-color: #FF6B35;
    color: #FFFFFF;
}


/* 主要内容区域 */
.main-content {
    padding: 30px 0;
}

/* 筛选栏样式 */
.filter-bar {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.filter-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-bar > .filter-row:first-child {
    align-items: center;
}

.filter-btn--zone {
    font-size: 14px;
    padding: 10px 20px;
    min-height: 40px;
    font-weight: 500;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
}

.sort-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
}

.filter-label, .sort-label {
    font-weight: 500;
    color: #CCCCCC;
    font-size: 14px;
    min-width: 80px;
    flex-shrink: 0;
}

.filter-btn {
    padding: 8px 12px;
    min-height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
}

.filter-btn.active {
    background: #FF6B35;
    border-color: #FF6B35;
    color: #FFFFFF;
}

.filter-row--rental-tags {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 107, 53, 0.15);
}

.filter-item--rental-tags {
    gap: 10px;
}

.rental-tag-filter-btn {
    font-size: 12px;
    padding: 6px 14px;
    min-height: 32px;
}

.filter-row--rental-tags[hidden] {
    display: none !important;
}

.filter-row--rental-keywords {
    margin-top: 16px;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    border-top: none;
}

.filter-bar:has(#rentalKeywordFilterRow:not([hidden])) {
    padding-bottom: 10px;
}

.filter-item--rental-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.rental-keyword-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.rental-keyword-filter-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rental-keyword-filter-box {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(255, 107, 53, 0.55);
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.rental-keyword-filter-input:checked + .rental-keyword-filter-box {
    background: #FF6B35;
    border-color: #FF6B35;
}

.rental-keyword-filter-input:checked + .rental-keyword-filter-box::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0px;
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rental-keyword-filter-text {
    font-size: 12px;
    line-height: 1.35;
    color: #4b5563;
}

.rental-keyword-filter-item:hover .rental-keyword-filter-box {
    border-color: #FF6B35;
}

.filter-row--rental-keywords[hidden] {
    display: none !important;
}

/* 账号列表样式 */
/* 列表一行3个（你之前要的） */
.account-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* 单个卡片改成竖排 */
.account-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px;
  min-height: auto;
}
/* 图片区域放大，并取消小图模式 */
.account-image {
  width: 100%;
  aspect-ratio: 16 / 9;   /* 你也可以改成 4/3 */
  height: auto;
  border-radius: 12px;
  overflow: hidden;
}
/* 编号不要再绝对定位压在图上，放到图下 */
.account-id {
  position: static;
  width: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  font-size: 13px;
  color: #FFB08A;
  margin-bottom: 4px;
}
/* 内容区域 */
.account-info {
  flex: none;
  min-width: 0;
}
/* 标题 */
.account-description {
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 8px;
  -webkit-line-clamp: 4;
}
.account-desc-text {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Noto Sans SC', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #6b7280;
  margin: -2px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
/* 价格放到底部并左对齐（也可改右对齐） */
.account-price {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  text-align: left;
}
.price-main {
  font-size: 24px;
  font-weight: 700;
}
.price-unit {
  font-size: 12px;
}
@media (max-width: 768px) {
  .account-list {
    grid-template-columns: 1fr;
  }
}

.account-item:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.08);
}

/* 列表缩略图 */
.account-image {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: rgba(1020, 1020, 1020, 3.2);
    border: 1px solid rgba(1020, 1020, 1020, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.account-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.account-role {
    font-size: 13px;
    color: #FF6B35;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.account-role-empty {
    color: #666;
    font-weight: 400;
}

.account-item:hover .account-image {
    background: rgba(1020, 1020, 1020, 0.48);
    border-color: rgba(1020, 1020, 1020, 0.8);
}


/* 账号信息样式 */
.account-info {
    flex: 1;
    min-width: 0;
}

.account-id {
    position: absolute;
    bottom: 0; /* 贴底对齐 */
    left: 0;
    width: 100%;
    font-size: 12px;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.6); /* 略浅一点，避免过重 */
    padding: 5px 6px; /* 调整内边距适应较小尺寸 */
    border-radius: 0 0 10px 10px; /* 仅底部圆角，与容器一致 */
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(6px);
    border: none; /* 去边框，减少割裂感 */
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); /* 微内阴影提升质感 */
}

.account-description {
    color: #CCCCCC;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 0;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.account-desc-text {
    color: #999999;
    font-size: 13px;
    line-height: 1.4;
    margin: 4px 0 0;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}


/* 价格区域样式 */
.account-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    text-align: center;
}

.price-main {
    font-size: 20px;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 2px;
}

.price-unit {
    font-size: 11px;
    color: #CCCCCC;
    margin-bottom: 0;
}


/* 底部样式 */
.footer {
    margin-top: 50px;
    padding: 30px 0;
    background: rgba(26, 26, 26, 0.8);
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FF6B35;
}

/* 响应式设计 · H5 */
@media (max-width: 768px) {
    .container {
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }

    .main-content {
        padding: 16px 0 max(24px, env(safe-area-inset-bottom, 0px));
    }

    .header .container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .nav-brand .logo {
        font-size: 20px;
        margin-top: 0;
    }

    .logo-icon {
        font-size: 24px;
    }

    .nav-search {
        max-width: none;
        width: 100%;
        order: 2;
    }

    .nav-brand {
        order: 1;
    }

    .search-input {
        font-size: 16px;
        padding: 12px 48px 12px 16px;
    }

    .filter-bar {
        margin-bottom: 16px;
        padding: 12px 12px;
        overflow-x: visible;
    }

    .filter-bar:has(#rentalKeywordFilterRow:not([hidden])) {
        padding-bottom: 8px;
    }

    .filter-row--rental-keywords {
        margin-top: 14px;
    }

    .filter-row {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 10px;
        align-items: stretch;
        min-width: 0;
        padding-bottom: 0;
    }

    .filter-item,
    .sort-item {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex: 1 1 auto;
    }

    .filter-item {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .sort-item {
        flex-wrap: nowrap;
        margin-left: 0;
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        gap: 6px;
    }

    .filter-label,
    .sort-label {
        min-width: auto;
        font-size: 13px;
        flex-shrink: 0;
    }

    .sort-item .sort-label {
        font-size: 12px;
    }

    .filter-btn {
        min-height: 40px;
        padding: 8px 14px;
        font-size: 13px;
    }

    .filter-btn--zone {
        min-height: 38px;
        padding: 8px 16px;
        font-size: 13px;
    }

    .rental-tag-filter-btn {
        min-height: 32px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .rental-keyword-filter-text {
        font-size: 11px;
    }

    .sort-item .sort-btn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 36px;
        padding: 7px 4px;
        font-size: 12px;
    }

    .account-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* 小屏保持横滑卡片：左图、中文案、右价，便于扫读 */
    .account-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 12px 14px;
        gap: 12px;
        min-height: 72px;
    }

    .account-image {
        width: 64px;
        height: 64px;
        align-self: center;
        flex-shrink: 0;
    }

    .account-info {
        text-align: left;
        min-width: 0;
    }

    .account-role {
        font-size: 12px;
        -webkit-line-clamp: 3;
    }

    .account-description {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .account-price {
        margin-top: 0;
        min-width: 4.5em;
        flex-shrink: 0;
    }

    .price-main {
        font-size: 17px;
    }

    .price-unit {
        font-size: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-brand .logo {
        font-size: 18px;
    }

    .price-main {
        font-size: 16px;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .sort-item .sort-btn {
        padding: 7px 2px;
        font-size: 11px;
    }

    .search-input {
        padding: 11px 46px 11px 14px;
    }

   

    .account-item {
        padding: 10px 12px;
    }
}

/* 加载动画 */
.account-list-loading,
.account-list-empty {
    text-align: center;
    color: #888;
    padding: 48px 16px;
    font-size: 15px;
}

.account-item {
    animation: fadeInUp 0.28s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 53, 0.5) rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.7);
}
/* ===== 账号卡片：一行4个 + 上图下文 ===== */
/* 每行4个 */
.account-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; /* 缩小间距，视觉上每张卡更饱满 */
}
/* 卡片竖排 */
.account-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px;   /* 减小内边距，给图片让空间 */
  gap: 8px;
}
/* 图片放大（关键） */
.account-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* 主图 16:9 */
  border-radius: 12px;
  overflow: hidden;
}
.account-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 编号放图片下方 */
.account-id {
  position: static;
  width: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  margin-bottom: 2px;
}
/* 价格下方更显眼 */
.account-price {
  justify-content: flex-start;
  text-align: left;
}
.price-main {
  font-size: 22px;
}

/* 手机：一行1个（如果你想手机也3个，我再给你另一版） */
@media (max-width: 480px) {
  .account-list {
    grid-template-columns: 1fr;
  }

  .account-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

/* ===== 4列下极限放大（保持16:9） ===== */

/* 1) 容器尽量放宽 */
.container {
  max-width: 1680px; /* 可在1600~1800间微调 */
  padding-left: 12px;
  padding-right: 12px;
}

/* 2) 列表固定4列，间距压到最小 */
.account-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

/* 3) 卡片竖排，留白压缩 */
.account-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 6px;
  border-radius: 12px;
  min-height: auto;
}

/* 4) 图片保持16:9，但吃满可用宽度 */
.account-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* 比例不变 */
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1px;
}

/* 图片真正铺满 */
.account-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 5) 编号、标题、价格压缩行高，减少占位 */
.account-id {
  position: static;
  width: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
}

.account-info {
  flex: none;
  min-width: 0;
}

.account-description {
  font-size: 13px;
  line-height: 1.25;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1; /* 极限放大建议1行；想保留2行可改回2 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.account-desc-text {
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.account-price {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.price-main {
  font-size: 20px;
  line-height: 1;
}

.price-unit {
  font-size: 10px;
  line-height: 1;
  margin: 0;
}

/* ===== 最终覆盖：主图统一 16:9（PC/手机一致） ===== */
.account-image {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  background: #e8edf2 !important;
  margin-bottom: 8px !important;
  display: block !important;
  align-items: unset !important;
  justify-content: unset !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.account-thumb {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: #e8edf2 !important;
}

.account-image.is-loading {
  background: linear-gradient(110deg, #e8edf2 8%, #f5f7fa 18%, #e8edf2 33%) !important;
  background-size: 200% 100% !important;
  animation: account-image-shimmer 1.2s linear infinite !important;
}

.account-image.is-loaded {
  animation: none !important;
  background: #e8edf2 !important;
}

@keyframes account-image-shimmer {
  to {
    background-position-x: -200%;
  }
}

.account-id {
  font-size: 13px !important;
  margin-top: 6px !important;
}

.account-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 6px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
  font-weight: 600 !important;
  vertical-align: middle !important;
}

.account-status-badge.status-onsale {
  color: #2ecc71 !important;
  background: rgba(46, 204, 113, 0.18) !important;
  border: 1px solid rgba(46, 204, 113, 0.35) !important;
}

.account-status-badge.status-sold {
  color: #ff9f7f !important;
  background: rgba(231, 76, 60, 0.18) !important;
  border: 1px solid rgba(231, 76, 60, 0.35) !important;
}

/* 前台兜底：无论缓存到旧JS与否，都不显示代售/已售角标 */
.account-status-badge {
  display: none !important;
}

.account-guarantee-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  color: #7ee2ff;
  background: rgba(42, 134, 255, 0.2);
  border: 1px solid rgba(126, 226, 255, 0.35);
  vertical-align: middle;
}

.account-description {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
  line-clamp: 4 !important;
  overflow: hidden !important;
  line-height: 1.35 !important;
}

.account-item--rental .account-description {
  display: block !important;
  -webkit-box-orient: unset !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  line-height: 1.45 !important;
  color: #2563eb !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  margin-bottom: 0 !important;
}

.account-item--rental .account-description .account-title-tag {
  color: #c2410c !important;
  font-weight: 400 !important;
}

.account-item--rental .account-description .account-title-em {
  color: #c2410c !important;
  font-weight: 400 !important;
}

.account-item--rental:hover .account-description,
.account-item--rental:focus-within .account-description {
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
}

.account-price {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  text-align: left !important;
}

.price-main {
  font-size: 19px !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.price-unit {
  font-size: 9px !important;
  display: inline !important;
  white-space: nowrap !important;
  margin: 0 !important;
  line-height: 1 !important;
}

/* ===== 最终响应式覆盖：手机1列，平板2列 ===== */
.account-list {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.account-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
}

/* 平板：一行2个 */
@media (min-width: 768px) and (max-width: 1024px) {
  .account-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

/* 手机：一行1个，主图仍强制 16:9 */
@media (max-width: 767px) {
  .account-list {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .account-item {
    flex-direction: column !important;
    padding: 10px !important;
    animation: none !important;
  }

  .account-image {
    width: 100% !important;
    align-self: stretch !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .account-thumb {
    position: absolute !important;
    inset: 0 !important;
    object-fit: cover !important;
  }
}

/* ===== Light theme override ===== */
:root {
  --theme-bg-start: #f8fbff;
  --theme-bg-end: #edf4ff;
  --theme-text-main: #1f2937;
  --theme-text-muted: #4b5563;
  --theme-text-subtle: #6b7280;
  --theme-orange-1: #f9a15b;
  --theme-orange-2: #f07d2d;
  --theme-orange-3: #de6720;
  --theme-orange-4: #bd561d;
  --theme-orange-5: #7d3a1a;
  --theme-orange-border: rgba(240, 125, 45, 0.36);
  --theme-orange-soft: rgba(240, 125, 45, 0.15);
  --theme-orange-glow: rgba(240, 125, 45, 0.27);
}

body {
  background: linear-gradient(135deg, var(--theme-bg-start) 0%, var(--theme-bg-end) 100%) !important;
  color: var(--theme-text-main) !important;
}

.header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(255, 107, 53, 0.24) !important;
}

.filter-bar,
.account-item,
.footer {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(255, 107, 53, 0.2) !important;
}

.search-input,
.filter-btn,
.sort-btn {
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--theme-text-main) !important;
  border-color: rgba(255, 107, 53, 0.35) !important;
}

.search-input::placeholder {
  color: rgba(75, 85, 99, 0.75) !important;
}

.filter-label,
.sort-label,
.account-description,
.account-desc-text,
.footer-link,
.price-unit {
  color: var(--theme-text-muted) !important;
}

.account-id {
  color: #b45309 !important;
}

.account-item:active {
  background: rgba(255, 255, 255, 0.96) !important;
}

/* 保证“找回包赔”在亮色主题下清晰可见 */
.account-guarantee-tag {
  color: #1d4ed8 !important;
  background: rgba(59, 130, 246, 0.16) !important;
  border: 1px solid rgba(37, 99, 235, 0.45) !important;
}

.account-item--rental .account-guarantee-tag {
  color: #c2410c !important;
  background: rgba(255, 237, 213, 0.95) !important;
  border: 1px solid rgba(234, 88, 12, 0.42) !important;
}

/* 顶部与筛选区：增强橙色主题辨识度 */
.header {
  background: linear-gradient(180deg, rgba(255, 246, 238, 0.98) 0%, rgba(255, 255, 255, 0.93) 100%) !important;
  border-bottom: 1px solid var(--theme-orange-border) !important;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.12) !important;
}

.logo-text {
  background: linear-gradient(45deg, var(--theme-orange-1), var(--theme-orange-2)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.filter-bar {
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.82) 0%, rgba(255, 255, 255, 0.9) 100%) !important;
  border: 1px solid rgba(249, 115, 22, 0.36) !important;
}

.search-input {
  border-color: rgba(249, 115, 22, 0.5) !important;
}

.search-input:focus {
  border-color: var(--theme-orange-2) !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.22) !important;
  background: #ffffff !important;
}

.search-btn {
  color: var(--theme-orange-3) !important;
}

.search-btn:hover {
  background: var(--theme-orange-soft) !important;
  color: var(--theme-orange-4) !important;
}

.filter-btn,
.sort-btn {
  border-color: rgba(249, 115, 22, 0.46) !important;
}

.filter-btn:hover,
.sort-btn:hover {
  background: rgba(249, 115, 22, 0.2) !important;
  border-color: var(--theme-orange-2) !important;
  color: var(--theme-orange-5) !important;
}

.filter-btn.active,
.sort-btn.active {
  background: linear-gradient(180deg, var(--theme-orange-1) 0%, var(--theme-orange-2) 100%) !important;
  border-color: var(--theme-orange-3) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px var(--theme-orange-glow) !important;
}

/* 卡片悬停：明确提示“当前正在查看此卡片” */
.account-item {
  position: relative;
  border: 1px solid rgba(240, 125, 45, 0.14) !important;
  transform: translateY(0) scale(1);
  transform-origin: center;
  will-change: transform, box-shadow;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease,
    background-color 0.24s ease;
}

.account-item:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 125, 45, 0.5) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12), 0 0 0 3px rgba(240, 125, 45, 0.14) !important;
}

.account-item:focus-within {
  transform: translateY(-3px);
  border-color: rgba(240, 125, 45, 0.5) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.11), 0 0 0 3px rgba(240, 125, 45, 0.14) !important;
}

.account-item:hover .account-description {
  color: #1f2937 !important;
}

.account-item:hover .account-desc-text {
  color: #4b5563 !important;
}

.account-item:hover .price-main {
  color: var(--theme-orange-3) !important;
}

.account-item .account-image,
.account-item .account-thumb {
  transition: filter 0.24s ease;
}

.account-item:hover .account-thumb {
  filter: saturate(1.06) contrast(1.03);
}

.account-item:hover .account-role {
  color: var(--theme-orange-4) !important;
}

/* ===== 租号区前台卡片（按卡片 class，不依赖 body） ===== */
.account-item--rental .account-role {
  color: #ea580c !important;
  font-weight: 700 !important;
  -webkit-line-clamp: 1 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  display: block !important;
  overflow: hidden !important;
}

.account-item--rental .account-rent-min {
  display: block !important;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.3;
  margin-bottom: 2px;
}

.account-item--rental .account-price--rental .price-main {
  color: #ea580c !important;
  font-size: 16px !important;
  font-weight: 400 !important;
}

.account-item--rental .account-price--rental .price-unit {
  color: #c2410c !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.account-item--rental {
  border-color: rgba(249, 115, 22, 0.2) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

.account-item--rental:hover {
  border-color: rgba(234, 88, 12, 0.48) !important;
  box-shadow: 0 14px 26px rgba(234, 88, 12, 0.12), 0 0 0 3px rgba(249, 115, 22, 0.12) !important;
}

/* ===== 租号区长条列表布局 ===== */
body.front-zone-rental .account-list,
.account-list.account-list--rental {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: unset !important;
  gap: 10px !important;
  max-width: 100%;
}

.account-item--rental {
  display: block !important;
  flex-direction: unset !important;
  align-items: stretch !important;
  padding: 12px 16px !important;
  gap: 0 !important;
  border-radius: 10px !important;
  min-height: 0 !important;
}

.account-item--rental .account-rental-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.account-item--rental .account-rental-no {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.2;
  font-weight: 400;
}

.account-item--rental .account-rental-no-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: copy;
  text-align: left;
  line-height: inherit;
}

.account-item--rental .account-rental-no-copy-hint {
  font-size: 11px;
  color: #d97706;
  opacity: 0.85;
}

.account-item--rental .account-rental-no-copy:hover .account-rental-no-copy-hint {
  color: #c2410c;
  opacity: 1;
}

.account-item--rental .account-rental-no-copy.is-copied .account-rental-no-copy-hint {
  display: none;
}

.account-item--rental .account-rental-no-copy:hover {
  color: #c2410c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-item--rental .account-rental-no-copy.is-copied {
  color: #16a34a;
  text-decoration: none;
}

.account-item--rental .account-rental-no-copy:focus-visible {
  outline: 2px solid rgba(234, 88, 12, 0.45);
  outline-offset: 2px;
  border-radius: 2px;
}

.account-item--rental .account-rental-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.account-item--rental .account-image--rental {
  position: relative;
  flex: 0 0 92px;
  width: 92px !important;
  height: 92px !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  max-height: none !important;
  align-self: center !important;
  border-radius: 8px !important;
  overflow: hidden;
  background: #f3f4f6;
}

.account-item--rental .account-image--rental .account-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-item--rental .account-info--rental {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.account-item--rental .account-description,
.account-item--rental .account-description--rental {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #2563eb !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}

.account-item--rental .account-description .account-title-tag,
.account-item--rental .account-description--rental .account-title-tag {
  color: #c2410c !important;
  font-weight: 400 !important;
}

.account-item--rental .account-description .account-title-em,
.account-item--rental .account-description--rental .account-title-em {
  color: #c2410c !important;
  font-weight: 400 !important;
}

.account-item--rental .account-description .account-title-search-hit,
.account-item--rental .account-description--rental .account-title-search-hit,
.account-item:not(.account-item--rental) .account-description .account-title-search-hit {
  color: #fff !important;
  background: #dc2626;
  font-weight: 700;
  padding: 0 4px;
  margin: 0 1px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(127, 29, 29, 0.35);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.account-item--rental .account-description .account-title-search-hit .account-title-em,
.account-item--rental .account-description .account-title-search-hit .account-title-tag,
.account-item--rental .account-description--rental .account-title-search-hit .account-title-em,
.account-item--rental .account-description--rental .account-title-search-hit .account-title-tag {
  color: #fff !important;
  font-weight: 700;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.account-item--rental .account-rental-rank {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.account-item--rental .account-rental-promos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.account-item--rental .account-rental-promo {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.35;
  border-radius: 4px;
  color: #b45309;
  background: rgba(255, 247, 237, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.45);
  white-space: nowrap;
}

.account-item--rental:hover .account-description,
.account-item--rental:focus-within .account-description,
.account-item--rental:hover .account-description--rental,
.account-item--rental:focus-within .account-description--rental {
  color: #2563eb !important;
}

.account-item--rental .account-rental-price-col {
  flex: 0 0 auto;
  text-align: right;
  align-self: center;
  padding-left: 16px;
  white-space: nowrap;
}

.account-item--rental .account-rent-min {
  display: block !important;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.3;
  margin-bottom: 4px;
  text-align: right;
}

.account-item--rental .account-price--rental {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 0 !important;
  min-width: 0;
  text-align: right;
}

.account-item--rental .account-price--rental .price-main {
  color: #ea580c !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.2;
}

.account-item--rental .account-price--rental .price-unit {
  color: #ea580c !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.account-item--rental:hover .account-price--rental .price-main,
.account-item--rental:hover .account-price--rental .price-unit {
  font-weight: 400 !important;
}

@media (max-width: 767px) {
  body.front-zone-rental .account-item--rental,
  .account-item--rental {
    padding: 10px 12px !important;
    display: block !important;
  }

  .account-item--rental .account-rental-row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .account-item--rental .account-image--rental {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: stretch !important;
    border-radius: 8px;
    overflow: hidden;
  }

  .account-item--rental .account-image--rental .account-thumb {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .account-item--rental .account-info--rental {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .account-item--rental .account-description,
  .account-item--rental .account-description--rental {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: unset !important;
  }

  .account-item--rental .account-rental-price-col {
    width: 100%;
    flex: 0 0 100%;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-left: 0;
    padding-top: 8px;
    margin-top: 2px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
  }

  .account-item--rental .account-rent-min {
    text-align: left;
    margin-bottom: 0;
  }
}