/* 全局样式重置，消除默认边距和内边距 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root {
    --bg-base: #071022;
    --bg-base-2: #0d1a33;
    --surface: rgba(12, 24, 48, 0.72);
    --surface-strong: rgba(10, 22, 44, 0.92);
    --text-main: #e8f1ff;
    --text-sub: #9ab0d4;
    --brand: #19d3ff;
    --brand-2: #2d7bff;
    --accent: #1ff0c6;
    --danger: #ff5b7d;
    --line: rgba(121, 175, 255, 0.25);
    --glow: 0 10px 35px rgba(33, 144, 255, 0.35);
}

/* 页面背景，浅蓝 */
body {
    background:
        radial-gradient(1200px 800px at 5% -10%, rgba(20, 158, 255, 0.2), transparent 60%),
        radial-gradient(900px 700px at 95% 5%, rgba(31, 240, 198, 0.14), transparent 60%),
        linear-gradient(140deg, var(--bg-base) 0%, var(--bg-base-2) 100%);
    /* padding: 20px; */
    padding-top: var(--header-height, 80px);
    min-height: 100vh;
    color: var(--text-main);
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(70px);
    z-index: -1;
    pointer-events: none;
}

body::before {
    left: -120px;
    top: 120px;
    background: rgba(25, 211, 255, 0.18);
}

body::after {
    right: -140px;
    bottom: 80px;
    background: rgba(45, 123, 255, 0.2);
}

/* 米表容器，全屏响应式 */
.domain-mitab {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    /* 固定一行4个卡片 */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
}

/* 响应式布局 - 大屏幕4列 */
@media (max-width: 1400px) {
    .domain-mitab {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .domain-mitab {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .domain-mitab {
        grid-template-columns: 1fr;
    }
}

/* 核心：域名卡片样式 */
.domain-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(17, 33, 63, 0.95), rgba(11, 23, 45, 0.92));
    border-radius: 16px;
    padding: 20px;
    padding-top: 32px;
    min-height: 180px;
    box-shadow: 0 4px 18px rgba(0, 8, 28, 0.45);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--line);
    position: relative;
    animation: cardFadeIn 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
    user-select: none;
}

/* 卡片入场动画 */
@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 初始加载卡片的交错动画延迟 */
.domain-mitab .domain-card:nth-child(1) {
    animation-delay: 0s;
}

.domain-mitab .domain-card:nth-child(2) {
    animation-delay: 0.08s;
}

.domain-mitab .domain-card:nth-child(3) {
    animation-delay: 0.16s;
}

.domain-mitab .domain-card:nth-child(4) {
    animation-delay: 0.24s;
}

.domain-mitab .domain-card:nth-child(5) {
    animation-delay: 0.32s;
}

.domain-mitab .domain-card:nth-child(6) {
    animation-delay: 0.4s;
}

.domain-mitab .domain-card:nth-child(7) {
    animation-delay: 0.48s;
}

.domain-mitab .domain-card:nth-child(8) {
    animation-delay: 0.56s;
}

.domain-mitab .domain-card:nth-child(9) {
    animation-delay: 0.64s;
}

.domain-mitab .domain-card:nth-child(10) {
    animation-delay: 0.72s;
}

.domain-mitab .domain-card:nth-child(11) {
    animation-delay: 0.8s;
}

.domain-mitab .domain-card:nth-child(12) {
    animation-delay: 0.88s;
}

/* 卡片悬浮效果 */
.domain-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--glow);
    border-color: rgba(71, 196, 255, 0.75);
}

/* 卡片点击效果 */
.domain-card:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 5px 16px rgba(30, 144, 255, 0.3);
}

.domain-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 25%, rgba(25, 211, 255, 0.08) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.domain-card:hover::before {
    transform: translateX(120%);
}

/* 网站名称 - 顶部全宽白色背景栏 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(8, 20, 40, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100;
    box-shadow: 0 8px 28px rgba(0, 8, 24, 0.45);
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(137, 184, 255, 0.25);
}

.site-header-inner {
    width: 100%;
    max-width: 1400px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.site-name {
    font-size: 28px;
    font-weight: 800;
    flex-shrink: 0;
    white-space: nowrap;
}

.site-name span {
    background: linear-gradient(120deg, #9de9ff, #39b5ff 45%, #4d76ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    text-shadow: 0 0 18px rgba(57, 181, 255, 0.35);
}

/* 筛选器区域 */
.filter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    margin-left: 0;
    width: auto;
    order: 0;
    min-width: 0;
    overflow: hidden;
    max-width: none;
    padding: 0;
}

/* 搜索框 */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 210px;
    min-width: 170px;
    max-width: 240px;
}

.header-search-box {
    margin-left: 4px;
}

.header-sort-select {
    flex: 0 1 138px;
    min-width: 124px;
    max-width: 150px;
    margin-left: 0;
}

.search-input {
    padding: 6px 12px 6px 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    background: rgba(9, 22, 42, 0.9);
    color: var(--text-main);
    width: 100%;
    min-width: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-input:hover {
    border-color: rgba(90, 190, 255, 0.8);
}

.search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(25, 211, 255, 0.18);
}

.search-input::placeholder {
    color: #81a1cf;
}

.search-icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    fill: #81a1cf;
    pointer-events: none;
}

.search-box:focus-within .search-icon {
    fill: var(--brand);
}

.clear-search {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
}

.clear-search.show {
    display: flex;
}

.clear-search:hover {
    color: #1e90ff;
}

.filter-select {
    padding: 5px 6px;
    padding-right: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    background: rgba(9, 22, 42, 0.9);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 78px;
    max-width: 114px;
    flex: 0 1 92px;
    white-space: nowrap;
}

#sort-order {
    min-width: 114px;
    max-width: 140px;
    flex: 0 1 122px;
}

#filter-price,
#filter-status,
#filter-registrar,
#filter-registeryear,
#filter-char {
    min-width: 112px;
    max-width: 160px;
    flex: 0 1 132px;
}

#filter-price,
#filter-registrar {
    min-width: 124px;
    max-width: 176px;
    flex-basis: 146px;
}

#filter-status,
#filter-registeryear {
    min-width: 86px;
    max-width: 118px;
    flex-basis: 96px;
}

#filter-suffix,
#filter-price,
#filter-status,
#filter-registeryear {
    min-width: 112px;
    max-width: 156px;
    flex-basis: 130px;
}

#filter-suffix {
    min-width: 104px;
    max-width: 146px;
    flex-basis: 122px;
}

#filter-price {
    min-width: 118px;
    max-width: 164px;
    flex-basis: 138px;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
}

.filter-select:hover {
    border-color: rgba(90, 190, 255, 0.8);
}

.filter-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(25, 211, 255, 0.18);
}

.filter-select option {
    padding: 5px;
}

.clear-filter {
    padding: 6px 10px;
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    white-space: nowrap;
    position: static;
    z-index: auto;
}

.theme-toggle-btn {
    position: static;
    z-index: auto;
}

.clear-filter:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 18px rgba(30, 144, 255, 0.35);
}

/* 手机端排序和筛选按钮 */
.mobile-header-btns {
    display: none;
    gap: 8px;
}

.mobile-sort-btn,
.mobile-filter-btn,
.mobile-search-btn {
    display: flex;
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    align-items: center;
    gap: 5px;
}

.theme-toggle-btn,
.mobile-theme-btn {
    padding: 5px 8px;
    border: 1px solid rgba(123, 196, 255, 0.45);
    border-radius: 8px;
    background: rgba(13, 32, 62, 0.75);
    color: #cbe8ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 42px;
}

.theme-toggle-btn:hover,
.mobile-theme-btn:hover {
    border-color: rgba(127, 213, 255, 0.95);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(36, 156, 255, 0.32);
    transform: translateY(-1px);
}

.mobile-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    background: rgba(10, 27, 51, 0.88);
}

.theme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.theme-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

/* 排序弹出层 */
.sort-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    justify-content: center;
    align-items: flex-end;
}

.sort-popup.show {
    display: flex;
}

.sort-popup-content {
    background: linear-gradient(170deg, #132746, #0d1f3b);
    width: 100%;
    max-width: 400px;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    animation: slideUp 0.3s ease;
}

.sort-popup-content.closing {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%);
    }
}

.sort-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.sort-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.sort-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.sort-option {
    padding: 15px;
    margin: 5px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    color: var(--text-main);
}

.sort-option:hover {
    background: rgba(62, 146, 255, 0.22);
}

.sort-option.active {
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    color: white;
}

/* 筛选弹出层 */
.filter-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    justify-content: center;
    align-items: flex-end;
}

.filter-popup.show {
    display: flex;
}

.filter-popup-content {
    background: linear-gradient(170deg, #132746, #0d1f3b);
    width: 100%;
    max-width: 400px;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.filter-popup-content.closing {
    animation: slideDown 0.3s ease forwards;
}

.filter-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid rgba(138, 179, 235, 0.25);
    position: sticky;
    top: 0;
    background: rgba(19, 39, 70, 0.96);
    z-index: 10;
}

.filter-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.filter-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.filter-section {
    margin-bottom: 20px;
    padding: 0 20px;
}

.filter-section:first-of-type {
    padding-top: 20px;
}

.filter-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 10px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(11, 23, 45, 0.7);
    color: var(--text-main);
}

.filter-chip:hover {
    border-color: rgba(90, 190, 255, 0.8);
}

.filter-chip.active {
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    color: white;
    border-color: transparent;
}

.filter-popup-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 10;
}

.filter-popup-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-popup-btn.reset {
    background: #f3f4f6;
    color: #666;
}

.filter-popup-btn.reset:hover {
    background: #e5e7eb;
}

.filter-popup-btn.confirm {
    background: #1e90ff;
    color: white;
}

.filter-popup-btn.confirm:hover {
    background: #1873cc;
}

/* 搜索弹出层 */
.search-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    justify-content: center;
    align-items: flex-end;
}

.search-popup.show {
    display: flex;
}

.search-popup-content {
    background: linear-gradient(170deg, #132746, #0d1f3b);
    width: 100%;
    max-width: 400px;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    animation: slideUp 0.3s ease;
}

.search-popup-content.closing {
    animation: slideDown 0.3s ease forwards;
}

.search-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.search-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.search-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.mobile-search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.mobile-search-input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 16px;
    background: rgba(9, 22, 42, 0.9);
    color: var(--text-main);
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--brand);
}

.mobile-search-input::placeholder {
    color: #81a1cf;
}

.mobile-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #81a1cf;
}

.mobile-clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #e5e7eb;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-clear-search.show {
    display: flex;
}

.search-popup-footer {
    display: flex;
    gap: 10px;
}

.search-popup-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-popup-btn.reset {
    background: #f3f4f6;
    color: #666;
}

.search-popup-btn.reset:hover {
    background: #e5e7eb;
}

.search-popup-btn.confirm {
    background: #1e90ff;
    color: white;
}

.search-popup-btn.confirm:hover {
    background: #1873cc;
}

/* 页面标题 */
.page-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #1e3a5f;
}

/* 顶部信息行 - 注册商和状态 */
.domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    margin-bottom: 8px;
}

/* 确保注册商和状态与下方内容精确对齐 */
.domain-registrar-top {
    margin-left: 0;
}

.domain-status {
    margin-right: 0;
}

/* 状态标签 - 右上角斜角显示 */
.domain-status {
    position: absolute;
    top: 12px;
    right: -32px;
    width: 115px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 0;
    color: white;
    text-align: center;
    transform: rotate(45deg);
    transform-origin: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 15;
    letter-spacing: 1px;
    line-height: 1.4;
}

.status-selling {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.status-sold {
    background: linear-gradient(135deg, #DAA520, #c9941d);
}

.status-display {
    background: linear-gradient(135deg, #808080, #666666);
}

.status-expired {
    background: linear-gradient(135deg, #ff6666, #e55555);
}

/* 域名年龄标识样式 - 卡片左上角 */
.domain-age-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px 0 12px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    line-height: 1;
    white-space: nowrap;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.domain-card:hover .domain-age-badge {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 移动端米龄标识圆角适配 */
@media (max-width: 480px) {
    .domain-age-badge {
        border-radius: 10px 0 10px 0;
        font-size: 9px;
        padding: 3px 8px;
        height: 20px;
    }

    .domain-status {
        font-size: 9px;
        padding: 3px 0;
        top: 6px;
        right: -24px;
        width: 82px;
        line-height: 1.2;
    }
}

.domain-name-wrapper {
    display: block;
}

/* 新米 - 绿色系 */
.badge-new {
    background: linear-gradient(135deg, #00C853, #00E676);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 200, 83, 0.3);
}

/* 1月米 - 浅绿色 */
.badge-month-1 {
    background: linear-gradient(135deg, #69F0AE, #00E676);
    color: #fff;
    box-shadow: 0 2px 4px rgba(105, 240, 174, 0.3);
}

/* 2月米 - 青色 */
.badge-month-2 {
    background: linear-gradient(135deg, #64FFDA, #1DE9B6);
    color: #fff;
    box-shadow: 0 2px 4px rgba(100, 255, 218, 0.3);
}

/* 3月米 - 浅蓝色 */
.badge-month-3 {
    background: linear-gradient(135deg, #82B1FF, #448AFF);
    color: #fff;
    box-shadow: 0 2px 4px rgba(130, 177, 255, 0.3);
}

/* 4月米 - 蓝色 */
.badge-month-4 {
    background: linear-gradient(135deg, #4FC3F7, #29B6F6);
    color: #fff;
    box-shadow: 0 2px 4px rgba(79, 195, 247, 0.3);
}

/* 5月米 - 深蓝色 */
.badge-month-5 {
    background: linear-gradient(135deg, #42A5F5, #1E88E5);
    color: #fff;
    box-shadow: 0 2px 4px rgba(66, 165, 245, 0.3);
}

/* 半年米 - 紫色 */
.badge-half-year {
    background: linear-gradient(135deg, #B388FF, #7C4DFF);
    color: #fff;
    box-shadow: 0 2px 4px rgba(179, 136, 255, 0.3);
}

/* 1年米 - 浅蓝色系 */
.badge-year-1 {
    background: linear-gradient(135deg, #4FC3F7, #29B6F6);
    color: #fff;
    box-shadow: 0 2px 4px rgba(79, 195, 247, 0.3);
}

/* 2年米 - 深蓝色系 */
.badge-year-2 {
    background: linear-gradient(135deg, #42A5F5, #1E88E5);
    color: #fff;
    box-shadow: 0 2px 4px rgba(66, 165, 245, 0.3);
}

/* 3年米 - 紫色系 */
.badge-year-3 {
    background: linear-gradient(135deg, #AB47BC, #8E24AA);
    color: #fff;
    box-shadow: 0 2px 4px rgba(171, 71, 188, 0.3);
}

/* 4年米 - 粉紫色系 */
.badge-year-4 {
    background: linear-gradient(135deg, #EC407A, #D81B60);
    color: #fff;
    box-shadow: 0 2px 4px rgba(236, 64, 122, 0.3);
}

/* 5年米 - 橙色系 */
.badge-year-5 {
    background: linear-gradient(135deg, #FFA726, #FB8C00);
    color: #fff;
    box-shadow: 0 2px 4px rgba(255, 167, 38, 0.3);
}

/* 6年米 - 深橙色系 */
.badge-year-6 {
    background: linear-gradient(135deg, #FF7043, #F4511E);
    color: #fff;
    box-shadow: 0 2px 4px rgba(255, 112, 67, 0.3);
}

/* 7年米 - 青色系 */
.badge-year-7 {
    background: linear-gradient(135deg, #26C6DA, #00ACC1);
    color: #fff;
    box-shadow: 0 2px 4px rgba(38, 198, 218, 0.3);
}

/* 8年米 - 靛蓝色系 */
.badge-year-8 {
    background: linear-gradient(135deg, #5C6BC0, #3949AB);
    color: #fff;
    box-shadow: 0 2px 4px rgba(92, 107, 192, 0.3);
}

/* 9年米 - 蓝紫色系 */
.badge-year-9 {
    background: linear-gradient(135deg, #7E57C2, #5E35B1);
    color: #fff;
    box-shadow: 0 2px 4px rgba(126, 87, 194, 0.3);
}

/* 10年以上老米 - 金色系 */
.badge-old {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: #5D4037;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.4);
    border: 1px solid #FFC107;
}

/* 注册商 - 顶部样式 */
.domain-registrar-top {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 600;
}

.domain-registrar-top label {
    background: rgba(25, 211, 255, 0.15);
    color: #9de9ff;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    margin-right: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    line-height: 1;
}

/* 中间内容区域 - 左右布局 */
.domain-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 0;
    /* 允许收缩 */
}

/* 左侧信息 - 域名和含义 */
.domain-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}

/* 域名名称 */
.domain-name {
    font-size: 23px;
    font-weight: 900;
    color: #d9e8ff;
    letter-spacing: 0.5px;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.3;
    transition: color 0.3s ease, transform 0.3s ease;
    text-shadow: 0 6px 18px rgba(68, 149, 255, 0.2);
}

.domain-card:hover .domain-name {
    color: #9de9ff;
    transform: translateX(3px);
}

/* 已出售域名的删除线效果 */
.domain-name.sold-strike {
    text-decoration: line-through;
    color: #999;
}

/* 已出售状态的价格和日期删除线效果 */
.domain-price.sold-strike,
.domain-expire.sold-strike,
.domain-progress-days.sold-strike,
.domain-age-badge.sold-strike,
.domain-registrar-top.sold-strike,
.domain-renewal-price.sold-strike,
.domain-register.sold-strike {
    text-decoration: line-through;
    color: #999;
}

.domain-price.sold-strike span {
    color: #999;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.domain-price.sold-strike span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: #999;
    transform: translateY(-50%);
}

/* 域名含义 */
.domain-meaning {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.4;
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* 右侧信息 - 价格和续费 */
.domain-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 销售价格 */
.domain-price {
    font-size: 28px;
    font-weight: 900;
    color: #ff8ea5;
    line-height: 1;
    text-shadow: 0 8px 20px rgba(255, 91, 125, 0.3);
    transition: transform 0.3s ease;
}

.domain-card:hover .domain-price {
    transform: scale(1.05);
}

.domain-price span {
    font-size: 14px;
    margin-left: 2px;
    color: #ffb5c4;
}

/* 续费价格 */
.domain-renewal-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
    line-height: 1;
}

.domain-renewal-price span {
    font-size: 12px;
    margin-left: 2px;
    color: #7d98bf;
}

/* 底部信息区域 */
.domain-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 20px;
    margin-top: auto;
    /* 确保页脚保持在底部 */
}

.domain-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

/* 注册时间 */
.domain-register {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 600;
}

.domain-register label {
    background: rgba(25, 211, 255, 0.15);
    color: #9de9ff;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    margin-right: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    line-height: 1;
}

/* 到期时间 */
.domain-expire {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 600;
}

.domain-expire label {
    background: rgba(25, 211, 255, 0.15);
    color: #9de9ff;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    margin-right: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    line-height: 1;
}

/* 响应式适配 - 平板 */
@media (max-width: 768px) {
    .site-header {
        padding: 0;
    }

    .site-header-inner {
        padding: 10px 15px;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .site-name {
        font-size: 22px;
    }

    .filter-container {
        gap: 5px;
        flex-wrap: nowrap;
    }

    .search-box {
        min-width: 160px;
        max-width: 180px;
    }

    .header-sort-select,
    #sort-order {
        min-width: 104px;
        max-width: 122px;
        flex-basis: 110px;
    }

    #filter-price,
    #filter-status,
    #filter-registrar,
    #filter-registeryear,
    #filter-char {
        min-width: 98px;
        max-width: 132px;
        flex-basis: 108px;
    }

    #filter-price,
    #filter-registrar {
        min-width: 112px;
        max-width: 146px;
        flex-basis: 120px;
    }

    #filter-status,
    #filter-registeryear {
        min-width: 80px;
        max-width: 104px;
        flex-basis: 86px;
    }

    #filter-suffix,
    #filter-price,
    #filter-status,
    #filter-registeryear {
        min-width: 102px;
        max-width: 120px;
        flex-basis: 114px;
    }

    #filter-suffix {
        min-width: 94px;
        max-width: 124px;
        flex-basis: 104px;
    }

    #filter-price {
        min-width: 153px;
        max-width: 164px;
        flex-basis: 142px;
    }

    .filter-select {
        font-size: 12px;
        padding: 4px 5px;
        min-width: 68px;
        max-width: 92px;
        flex-basis: 74px;
    }

    .clear-filter {
        font-size: 13px;
        padding: 5px 8px;
    }

    .theme-toggle-btn {
        font-size: 12px;
        padding: 4px 7px;
    }

    .search-input {
        width: 100%;
    }

    .domain-mitab {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .domain-card {
        padding: 15px;
        padding-top: 28px;
        min-height: 160px;
    }

    .domain-header {
        margin-bottom: 8px;
    }

    .domain-content {
        min-height: 0;
    }

    .domain-left {
        flex: 1;
        min-width: 0;
        padding-right: 8px;
    }

    .domain-right {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .domain-name {
        font-size: 18px;
    }

    .domain-status {
        font-size: 11px;
        padding: 4px 0;
        top: 10px;
        right: -30px;
        width: 100px;
        line-height: 1.4;
    }

    .domain-meaning {
        font-size: 11px;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .domain-price {
        font-size: 22px;
    }

    .domain-renewal-price {
        font-size: 10px;
    }

    .domain-footer {
        margin-top: auto;
        padding-top: 16px;
    }

    .domain-registrar-top {
        font-size: 12px;
    }

    .domain-registrar-top label {
        font-size: 10px;
        padding: 0 6px;
        height: 18px;
    }

    .domain-register {
        font-size: 12px;
    }

    .domain-register label {
        font-size: 10px;
        padding: 0 6px;
        height: 18px;
    }

    .domain-expire {
        font-size: 12px;
    }

    .domain-expire label {
        font-size: 10px;
        padding: 0 6px;
        height: 18px;
    }
}

/* 响应式适配 - 手机 */
@media (max-width: 640px) {
    .site-header {
        padding: 0;
    }

    .site-header-inner {
        padding: 8px 10px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .site-name {
        font-size: 20px;
    }

    .mobile-header-btns {
        display: flex;
    }

    .filter-actions {
        display: none;
    }

    .header-search-box {
        display: none;
    }

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

    .filter-container {
        display: none;
    }

    /* 手机端隐藏桌面端排序下拉框 */
    #sort-order {
        display: none;
    }

    .domain-mitab {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 10px;
    }

    .domain-card {
        padding: 12px;
        padding-top: 26px;
        min-height: 150px;
        border-radius: 10px;
    }

    .domain-card::before {
        height: 3px;
    }

    .domain-header {
        margin-bottom: 8px;
    }

    .domain-content {
        min-height: 0;
    }

    .domain-left {
        flex: 1;
        min-width: 0;
        padding-right: 8px;
    }

    .domain-right {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .domain-footer {
        margin-top: auto;
        padding-top: 8px;
    }

    .domain-status {
        font-size: 10px;
        padding: 4px 0;
        top: 8px;
        right: -26px;
        width: 88px;
        line-height: 1.2;
    }

    .card-copy-toast {
        top: -45px;
        padding: 5px 10px;
        font-size: 10px;
    }

    .card-copy-toast.show {
        top: 6px;
    }

    .card-copy-toast svg {
        width: 10px;
        height: 10px;
    }

    .domain-name {
        font-size: 19px;
    }

    .domain-name.sold-strike {
        font-size: 18px;
    }

    .domain-meaning {
        font-size: 13px;
        line-height: 1.3;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .domain-price {
        font-size: 22px;
    }

    .domain-price span {
        font-size: 12px;
    }

    .domain-renewal-price {
        font-size: 12px;
    }

    .domain-renewal-price span {
        font-size: 10px;
    }

    .domain-footer {
        margin-top: auto;
        padding-top: 14px;
    }

    .domain-registrar-top {
        font-size: 12px;
    }

    .domain-register {
        font-size: 12px;
    }

    .domain-expire {
        font-size: 12px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .domain-mitab {
        gap: 8px;
    }

    .domain-card {
        padding: 10px;
        padding-top: 24px;
        min-height: 140px;
    }

    .card-copy-toast {
        top: -40px;
        padding: 4px 8px;
        font-size: 9px;
    }

    .card-copy-toast.show {
        top: 5px;
    }

    .card-copy-toast svg {
        width: 9px;
        height: 9px;
    }

    .domain-header {
        margin-bottom: 8px;
    }

    .domain-content {
        min-height: 0;
    }

    .domain-name {
        font-size: 13px;
    }

    .domain-name.sold-strike {
        font-size: 12px;
    }

    .domain-meaning {
        font-size: 9px;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .domain-price {
        font-size: 18px;
    }
}

/* 加载更多样式 */
.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    padding: 0 20px;
}

.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 40px;
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(24, 140, 255, 0.35);
}

.load-more-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(24, 140, 255, 0.42);
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.load-more-btn.loading .btn-text {
    display: none;
}

.load-more-btn.loading .loading-spinner {
    display: flex !important;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.load-more-info {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-sub);
}

.load-more-info span {
    color: #9de9ff;
    font-weight: 600;
}

.no-more-data {
    font-size: 14px;
    color: #999;
    margin: 20px 0;
}

/* 加载更多响应式适配 */
@media (max-width: 640px) {
    .load-more-container {
        margin: 30px 0;
    }

    .load-more-btn {
        padding: 10px 30px;
        font-size: 14px;
    }

    .load-more-info {
        font-size: 12px;
    }
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2F80ED 0%, #56CCF2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(47, 128, 237, 0.5);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* 手机端回到顶部按钮适配 */
@media (max-width: 640px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* 联系我按钮 */
.contact-btn {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(47, 128, 237, 0.35);
    transition: all 0.3s ease;
    z-index: 99;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #2F80ED 0%, #56CCF2 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(47, 128, 237, 0.45);
}

.contact-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* 联系方式弹出层 */
.contact-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.contact-popup.show {
    display: flex;
}

.contact-popup-content {
    background: white;
    width: 90%;
    max-width: 360px;
    border-radius: 16px;
    overflow: hidden;
    animation: popupFadeIn 0.3s ease;
    position: relative;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.contact-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
}

.contact-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.contact-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    line-height: 1;
}

.contact-popup-body {
    padding: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item:hover {
    background: linear-gradient(135deg, #e8f4ff 0%, #f0f7ff 100%);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(47, 128, 237, 0.15);
}

.contact-item:active {
    transform: translateX(3px) scale(0.98);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.contact-icon.wechat {
    background: linear-gradient(135deg, #07C160, #0dd868);
}

.contact-icon.qq {
    background: linear-gradient(135deg, #12B7F5, #4fc3f7);
}

.contact-icon.email {
    background: linear-gradient(135deg, #EA4335, #f6685e);
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    word-break: break-all;
}


/* 手机端联系按钮适配 */
@media (max-width: 640px) {
    .contact-btn {
        width: 44px;
        height: 44px;
        bottom: 74px;
        right: 20px;
    }

    .contact-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* 复制成功提示 - 从右上角滑入 */
.copy-toast {
    position: absolute;
    top: 76px;
    right: -200px;
    background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(47, 128, 237, 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.copy-toast.show {
    right: 10px;
}

.copy-toast svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* 卡片内复制提示 - 从卡片顶部往下滑动 */
.card-copy-toast {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(47, 128, 237, 0.3);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    white-space: nowrap;
}

.card-copy-toast.show {
    top: 8px;
}

.card-copy-toast svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* 复制提示 - 统一使用协调的青蓝色系 */
.card-copy-toast {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.4);
}

/* 域名进度条样式 */
.domain-progress-container {
    width: 100%;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.domain-progress-bar {
    flex: 1;
    height: 6px;
    background: #e8f1ff;
    border-radius: 3px;
    overflow: hidden;
}

.domain-progress-fill {
    height: 100%;
    background: #1e90ff;
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* 进度条颜色分类 */
.domain-progress-fill.progress-normal {
    background: #10b981;
    /* 绿色 */
}

.domain-progress-fill.progress-warning {
    background: #f59e0b;
    /* 橙色 */
}

.domain-progress-fill.progress-urgent {
    background: #ef4444;
    /* 红色 */
}

.domain-progress-fill.progress-expired {
    background: #9ca3af;
    /* 灰色 */
}

.domain-progress-days {
    font-size: 11px;
    font-weight: 600;
    color: #1e90ff;
    white-space: nowrap;
}

/* 天数文字颜色分类 */
.domain-progress-days.progress-normal {
    color: #10b981;
    /* 绿色 */
}

.domain-progress-days.progress-warning {
    color: #f59e0b;
    /* 橙色 */
}

.domain-progress-days.progress-urgent {
    color: #ef4444;
    /* 红色 */
}

.domain-progress-days.progress-expired {
    color: #9ca3af;
    /* 灰色 */
}

/* 响应式适配 */
@media (max-width: 768px) {
    .domain-progress-container {
        margin-top: 6px;
        gap: 8px;
    }

    .domain-progress-bar {
        height: 5px;
    }

    .domain-progress-days {
        font-size: 10px;
    }
}

@media (max-width: 640px) {
    .domain-progress-container {
        margin-top: 5px;
        gap: 6px;
    }

    .domain-progress-bar {
        height: 4px;
    }

    .domain-progress-days {
        font-size: 9px;
    }
}

body.theme-light {
    background:
        radial-gradient(1200px 800px at 5% -10%, rgba(53, 140, 255, 0.18), transparent 60%),
        radial-gradient(900px 700px at 95% 5%, rgba(51, 203, 180, 0.16), transparent 60%),
        linear-gradient(140deg, #f7fbff 0%, #eaf3ff 60%, #f8fcff 100%);
    color: #163152;
}

body.theme-light::before {
    background: rgba(94, 171, 255, 0.22);
}

body.theme-light::after {
    background: rgba(63, 210, 191, 0.18);
}

body.theme-light .site-header {
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 8px 28px rgba(90, 136, 198, 0.2);
    border-bottom: 1px solid rgba(103, 156, 226, 0.28);
}

body.theme-light .site-name span {
    background: linear-gradient(120deg, #1e5fce, #1aa8d7 50%, #20ba9e 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

body.theme-light .domain-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 255, 0.95));
    border: 1px solid rgba(126, 174, 236, 0.38);
    box-shadow: 0 12px 28px rgba(102, 153, 221, 0.16);
}

body.theme-light .domain-card:hover {
    border-color: rgba(69, 149, 255, 0.72);
    box-shadow: 0 15px 34px rgba(80, 137, 225, 0.25);
}

body.theme-light .domain-card::before {
    background: linear-gradient(120deg, transparent 25%, rgba(43, 155, 255, 0.12) 45%, transparent 70%);
}

body.theme-light .search-input,
body.theme-light .filter-select,
body.theme-light .mobile-search-input {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(111, 162, 228, 0.45);
    color: #1a3a61;
}

body.theme-light .search-input::placeholder,
body.theme-light .mobile-search-input::placeholder {
    color: #6e8db6;
}

body.theme-light .search-icon,
body.theme-light .mobile-search-icon {
    fill: #6e8db6;
}

body.theme-light .clear-filter,
body.theme-light .mobile-sort-btn,
body.theme-light .mobile-filter-btn,
body.theme-light .mobile-search-btn,
body.theme-light .load-more-btn,
body.theme-light .search-popup-btn.confirm,
body.theme-light .filter-popup-btn.confirm,
body.theme-light .sort-option.active {
    background: linear-gradient(120deg, #2e80ff, #16b3e6);
}

body.theme-light .theme-toggle-btn,
body.theme-light .mobile-theme-btn {
    background: rgba(255, 255, 255, 0.92);
    color: #225c93;
    border: 1px solid rgba(90, 151, 229, 0.52);
}

body.theme-light .sort-popup-content,
body.theme-light .filter-popup-content,
body.theme-light .search-popup-content {
    background: linear-gradient(170deg, #ffffff, #edf5ff);
}

body.theme-light .filter-popup-header {
    background: rgba(255, 255, 255, 0.95);
}

body.theme-light .sort-popup-title,
body.theme-light .filter-popup-title,
body.theme-light .search-popup-title,
body.theme-light .sort-option,
body.theme-light .filter-chip,
body.theme-light .domain-name {
    color: #1a3a61;
}

body.theme-light .filter-section-title,
body.theme-light .domain-meaning,
body.theme-light .domain-register,
body.theme-light .domain-expire,
body.theme-light .domain-renewal-price,
body.theme-light .domain-registrar-top,
body.theme-light .load-more-info {
    color: #5a7ea8;
}

body.theme-light .domain-price {
    color: #ff5b7d;
    text-shadow: 0 8px 18px rgba(255, 91, 125, 0.2);
}

body.theme-light .domain-registrar-top label,
body.theme-light .domain-register label,
body.theme-light .domain-expire label {
    background: rgba(52, 150, 255, 0.12);
    color: #2270cf;
}

body.theme-light .filter-chip {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(112, 163, 227, 0.45);
}

body.theme-light .filter-chip.active {
    background: linear-gradient(120deg, #1e6fff, #0f95d4);
    color: #ffffff;
    border-color: #1e6fff;
    box-shadow: 0 4px 12px rgba(30, 111, 255, 0.28);
}

.site-footer {
    margin-top: 52px;
    padding: 40px 20px 18px;
    border-top: 1px solid rgba(132, 180, 248, 0.26);
    background:
        radial-gradient(880px 300px at 10% 0%, rgba(34, 156, 255, 0.18), transparent 62%),
        radial-gradient(760px 280px at 92% 15%, rgba(26, 214, 182, 0.12), transparent 65%),
        rgba(7, 20, 40, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.site-footer::before,
.site-footer::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(56px);
    pointer-events: none;
}

.site-footer::before {
    top: -170px;
    left: -90px;
    background: rgba(35, 150, 255, 0.22);
}

.site-footer::after {
    right: -100px;
    bottom: -180px;
    background: rgba(24, 206, 180, 0.16);
}

.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 18px;
    position: relative;
    z-index: 1;
}

.footer-block {
    background: linear-gradient(165deg, rgba(13, 31, 57, 0.84), rgba(9, 23, 44, 0.7));
    border: 1px solid rgba(120, 183, 255, 0.28);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 14px 30px rgba(2, 16, 36, 0.32), inset 0 1px 0 rgba(195, 230, 255, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.footer-block:hover {
    transform: translateY(-2px);
    border-color: rgba(140, 209, 255, 0.62);
    box-shadow: 0 16px 34px rgba(6, 30, 58, 0.38), inset 0 1px 0 rgba(214, 241, 255, 0.15);
}

.footer-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #d7ecff;
    margin-bottom: 14px;
    text-transform: uppercase;
}

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

.footer-links a {
    color: #d7f0ff;
    text-decoration: none;
    border: 1px solid rgba(114, 193, 255, 0.4);
    background: linear-gradient(140deg, rgba(20, 56, 92, 0.78), rgba(16, 40, 68, 0.55));
    padding: 6px 12px;
    border-radius: 999px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    font-size: 13px;
    font-weight: 600;
}

.footer-links a:hover {
    color: #ffffff;
    border-color: rgba(156, 225, 255, 0.95);
    background: linear-gradient(135deg, rgba(47, 137, 244, 0.7), rgba(34, 189, 214, 0.62));
    box-shadow: 0 8px 18px rgba(34, 143, 240, 0.32);
    transform: translateY(-1px);
}

.footer-contact-list p {
    color: #b6d5f3;
    font-size: 13px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(18, 45, 76, 0.54);
    border: 1px solid rgba(121, 175, 255, 0.22);
}

.footer-contact-list p:last-child {
    margin-bottom: 0;
}

.footer-copyright {
    max-width: 1400px;
    margin: 18px auto 0;
    color: #8daed4;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid rgba(130, 183, 245, 0.2);
    padding-top: 12px;
    position: relative;
    z-index: 1;
}

@media (max-width: 640px) {
    .site-footer {
        padding: 28px 12px 14px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-title {
        font-size: 15px;
    }

    .footer-block {
        padding: 14px;
    }

    .footer-links a {
        font-size: 12px;
        padding: 5px 10px;
    }

    .footer-contact-list p {
        font-size: 12px;
        padding: 7px 9px;
    }
}

body.theme-light .site-footer {
    background:
        radial-gradient(900px 300px at 5% 0%, rgba(88, 165, 255, 0.22), transparent 62%),
        radial-gradient(760px 280px at 95% 10%, rgba(55, 201, 180, 0.16), transparent 68%),
        rgba(248, 253, 255, 0.88);
    border-top: 1px solid rgba(116, 170, 238, 0.3);
}

body.theme-light .footer-block {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.88));
    border: 1px solid rgba(117, 171, 238, 0.34);
    box-shadow: 0 12px 26px rgba(92, 149, 214, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.theme-light .footer-title {
    color: #1f4c7e;
}

body.theme-light .footer-links a {
    color: #225b93;
    border-color: rgba(89, 154, 231, 0.42);
    background: linear-gradient(140deg, rgba(234, 245, 255, 0.95), rgba(222, 238, 255, 0.86));
}

body.theme-light .footer-links a:hover {
    color: #ffffff;
    border-color: rgba(68, 141, 231, 0.75);
    background: linear-gradient(135deg, rgba(49, 129, 234, 0.82), rgba(38, 182, 208, 0.74));
}

body.theme-light .footer-contact-list p {
    color: #4f74a1;
    background: rgba(233, 245, 255, 0.9);
    border-color: rgba(109, 169, 236, 0.32);
}

body.theme-light .footer-contact-list p,
body.theme-light .footer-copyright {
    color: #5b7fa8;
}