/* ===== 全局变量 & 重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root {
    --body-bg: #eee;
    --card-bg: #f6f3ec;
    --text-main: #666;
    --text-sub: #888;
    --brand-blue: #06c;
    --yellow-light: #ffece4;
    --yellow-lighter: #fff9f5;
    --pink-light: #fff2f2;
    --border-light: #EEE;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.06);
    --header-height: 100px;
}

/* 卡片底色循环 */
.tone-1 { background: #f6f3ec; }
.tone-2 { background: #f0ecff; }  /* 淡紫 */
.tone-3 { background: #fff7d5; }  /* 淡黄 */
.tone-4 { background: #e9fbf3; }  /* 淡绿 */

a {
    color: var(--brand-blue);
    text-decoration: none;
}

body {
    background: var(--body-bg);
    padding-top: var(--header-height);
    min-height: 100vh;
    color: var(--text-main);
}

/* ===== 顶部导航 - 毛玻璃 ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    height: var(--header-height);
    display: flex;
    justify-content: center;
}

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

/* Logo 区域（可点击跳转首页） */
.site-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}
.site-logo:hover {
    opacity: 0.8;
}
.logo-icons {
    display: flex;
    gap: 2px;
    margin-bottom: 2px;
}
.logo-icon {
    width: 54px;
    height: 54px;
    display: block;
}
.logo-email {
    font-size: 0.8rem;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* 筛选下拉容器 */
.filter-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    display: none;
}

.filter-select {
    padding: 5px 10px;
    padding-right: 24px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 8px center;
    background-size: 10px;
    color: var(--text-main);
    cursor: pointer;
    appearance: none;
    white-space: nowrap;
    min-width: 70px;
    max-width: 130px;
    flex: 0 1 auto;
    transition: border-color 0.2s;
}
.filter-select:hover {
    border-color: var(--brand-blue);
}
.filter-select:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.08);
}

/* ===== 主内容容器 ===== */
.main-wrapper {
    max-width: 768px; /*定义页面宽度，建议窄屏2列768px,宽屏3列1024px,如果媒体查询在480以下，则为1列即可*/
    margin: 0 auto;
    padding:20px;
    background: #fff;
}

/* ===== 统计卡片 ===== */
.dnsilo-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.stat-card {
    padding: 12px 8px;
    text-align: center;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    border: 1px solid var(--border-light);
    background: var(--yellow-lighter);
    user-select: none;
    color: var(--text-main);
    display: block;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    border-color: var(--brand-blue);
}
.stat-card.active {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 2px var(--brand-blue), 0 4px 12px rgba(0, 102, 204, 0.1);
    background: #e6f0ff;
}
.stat-card .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}
.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-sub);
    font-weight: 500;
}

/* ===== 说明横幅 ===== */
.info-banner {
    background: var(--pink-light);
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-sub);
    border: 1px solid var(--border-light);

}

/* ===== 卡片网格 ===== */
.domain-mitab {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ===== 域名卡片（保留原有风格，内部改为居中+时间线） ===== */
.domain-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 24px 20px 16px;
    min-height: 220px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: cardFadeIn 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
    user-select: none;
    overflow: hidden;
}
.domain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

@keyframes cardFadeIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- 左上角注册商标签（沿用原 age-badge 的圆角风格） ---- */
.card-top-left {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sub);
    color: var(--brand-blue);
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 8px;
    border-radius: 16px 0 24px 0;
    z-index: 5;
    letter-spacing: 0.3px;
    white-space: nowrap;
    background: transparent;  /* 确保没有默认背景 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}


/* 新注册 → 绿色 */
.card-top-left.badge-new {
    background: darkgreen;
    color: #fff;
}

/* 年老米 → 紫色 */
.card-top-left.badge-old {
    background: #e8d5f5;
    color: #4a1a6b;
}



/* ---- 右上角状态标签（保持原先斜角设计） ---- */
.domain-status {
    position: absolute;
    right: -32px;
    width: 127px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 0;
    color: #333;
    text-align: center;
    transform: rotate(45deg);
    transform-origin: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 15;
    letter-spacing: 1px;
    line-height: 1.4;
    border-radius: 2px;
}
.status-sold {
    background: var(--yellow-light);
    color: #b8860b;
}
.status-selling {
    background: #d4edda;
    color: #155724;
}
.status-display {
    background: #cce5ff;
    color: #004085;
}
.status-expired {
    background: #f8d7da;
    color: #721c24;
}

/* ---- 域名（居中、大写） ---- */
.domain-name-center {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
     color: var(--brand-blue);
    color: #fd94ac;
   
    letter-spacing: 1px;
    margin-top: 32px;
    margin-bottom: 12px;
    word-break: break-all;
}
.domain-name-center .tld {
    color: var(--brand-blue);
    color: var(--text-sub);
}

/* ---- 说明（居中） ---- */
.domain-meaning-center {
    text-align: center;
    font-size: 14px;
    color: var(--text-sub);
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* ===== 时间线（替换原先的进度条） ===== */
.timeline-wrapper {
    display: none;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 12px;
    padding: 0 4px;
}
.timeline-bar {
    position: relative;
    height: 2px;
    background: #e0e0e0;
    background: var(--brand-blue);
    border-radius: 2px;
    margin-bottom: 8px;
}
.timeline-track {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: transparent;
}
.timeline-dot {
    position: absolute;
    top: -4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transform: translateX(-50%);
    z-index: 2;
}
.timeline-dot.register {
    background: #28a745; /* 绿色 */
}
.timeline-dot.today {
    background: #dc3545; /* 红色 */
}
.timeline-dot.expire {
    background: #ffc107; /* 黄色 */
}
.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-sub);
    line-height: 1.3;
    flex-wrap: wrap;
    gap: 2px;
}
.timeline-label {
    display: inline-block;
}
.register-label {
    color: #28a745;
}
.expire-label {
    color: #dc3545;
}

/* 卡片 Tags 样式 */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 8px;
}

.card-tags .tag {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-sub);
    border: 1px solid var(--border-light);
}

/* ===== 底部操作按钮（沿用原有样式） ===== */
.domain-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    flex-wrap: wrap;
}
.domain-actions .btn {
    flex: 1;
    min-width: 70px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.15s;
    border: 1px solid transparent;
    background: rgba(0,0,0,0.04);
    color: var(--text-main);
    cursor: pointer;
}
.domain-actions .btn-buy {
    background: var(--yellow-light);
    color: #b8860b;
    border-color: #f0d5b0;
}
.domain-actions .btn-buy:hover:not(.disabled) {
    background: #fadbc8;
}
.domain-actions .btn-site {
    background: #e7f3ff;
    color: var(--brand-blue);
    border-color: #cce5ff;
}
.domain-actions .btn-site:hover:not(.disabled) {
    background: #d4e8ff;
}
.domain-actions .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.3);
}

/* ===== 空状态 & 加载 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-sub);
    grid-column: 1 / -1;
}
.empty-state svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
    margin-bottom: 12px;
    fill: var(--text-sub);
}
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-sub);
    grid-column: 1 / -1;
}
.loading-state svg {
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
    fill: var(--text-sub);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== 底部 ===== */
.site-footer {
    text-align: center;
    padding: 24px;
    font-size: 0.8rem;
    color: var(--text-sub);
    border-top: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.6);

    backdrop-filter: blur(8px);
}
.site-footer a {
    color: var(--brand-blue);
    font-weight: 600;
}

/* ================================================================
   响应式（保持原有风格，适配新元素）
   ================================================================ */
@media (max-width: 480px) {
    .domain-mitab {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
}