* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Press Start 2P', monospace;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 顶部导航 */
.header {
    background-color: #ffffff;
    border-bottom: 2px solid #333;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #333, transparent);
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    text-shadow: 2px 2px 0 #000;
}

.admin-link {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid #333;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background: #333;
    color: #fff;
}

/* 主要内容 */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 统计卡片 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    padding: 1.5rem;
    border: 2px solid #333;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 #333;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0,0,0,0.05), transparent);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0 #333;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-shadow: 2px 2px 0 #000;
}

/* 域名列表 */
.domain-list {
    background: #ffffff;
    border: 2px solid #333;
    padding: 1.5rem;
    box-shadow: 4px 4px 0 #333;
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.filter-section {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid #333;
    display: inline-block;
    box-shadow: 2px 2px 0 #333;
}

.title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #ffffff;
    border: 2px solid #333;
    box-shadow: 2px 2px 0 #333;
}

.title-image {
    height: 60px;
    border: 2px solid #333;
    box-shadow: 2px 2px 0 #333;
}

.contact-info {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid #333;
    box-shadow: 1px 1px 0 #333;
    transition: all 0.3s ease;
    background: #ffffff;
    cursor: pointer;
    min-width: 120px;
    justify-content: center;
}

.contact-item:hover {
    transform: translateY(2px);
    box-shadow: 0 0 0 #333;
}

.contact-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.contact-icon {
    width: 16px;
    height: 16px;
}

.contact-text {
    font-size: 0.7rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-button {
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 2px solid #333;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', monospace;
    box-shadow: 2px 2px 0 #333;
}

.filter-button:hover {
    background: #333;
    color: #fff;
    transform: translateY(2px);
    box-shadow: 0 0 0 #333;
}

.filter-button.active {
    background: #333;
    color: #fff;
    transform: translateY(2px);
    box-shadow: 0 0 0 #333;
}

/* 域名卡片 */
.domain-card {
    background: #ffffff;
    border: 2px solid #333;
    padding: 1rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 0 #333;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0,0,0,0.05), transparent);
    pointer-events: none;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 0 #333;
}

.domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.domain-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-shadow: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.5px;
}

.domain-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.3rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.domain-status {
    padding: 0.25rem 0.75rem;
    border: 2px solid #333;
    font-size: 0.8rem;
}

.status-available {
    color: #333;
}

.status-sold {
    color: #ff0000;
    border-color: #ff0000;
}

.domain-info {
    color: #666;
    font-size: 0.8rem;
    margin: 0.5rem 0;
}

.buy-button {
    background: #ffffff;
    color: #333;
    border: 2px solid #333;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', monospace;
    box-shadow: 2px 2px 0 #333;
    display: inline-block;
    text-decoration: none;
}

.price {
    font-weight: bold;
    color: #e53e3e;
}

.buy-button:hover {
    background: #333;
    color: #fff;
    transform: translateY(2px);
    box-shadow: 0 0 0 #333;
}

/* 友情链接 */
.footer {
    background: #ffffff;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    border-top: 2px solid #333;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid #333;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 0 #333;
}

.footer-link:hover {
    background: #333;
    color: #fff;
    transform: translateY(2px);
    box-shadow: 0 0 0 #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .domain-grid {
        grid-template-columns: 1fr;
    }

    .filter-section {
        flex-wrap: wrap;
    }

    .footer-links {
        gap: 1rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
    }

    .contact-text {
        font-size: 0.65rem;
    }

    .contact-text-15 {
        font-size: 15px;
    }
}

/* 像素动画效果 */
@keyframes pixelGlow {
    0% { text-shadow: 1px 1px 0 #000; }
    50% { text-shadow: 2px 2px 0 #000; }
    100% { text-shadow: 1px 1px 0 #000; }
}

.pixel-glow {
    animation: pixelGlow 2s infinite;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.language-btn {
    padding: 0.3rem 0.8rem;
    border: 1px solid #333;
    background: #ffffff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    box-shadow: 1px 1px 0 #333;
}

.language-btn:hover {
    background: #333;
    color: #fff;
    transform: translateY(2px);
    box-shadow: 0 0 0 #333;
}

.language-btn.active {
    background: #333;
    color: #fff;
    transform: translateY(2px);
    box-shadow: 0 0 0 #333;
}
