/**
 * ymcs.cn - 域名超市
 * 简洁展示版样式
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f59e0b;
    --success: #10b981;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.logo-text span {
    color: var(--secondary);
}

.header-search {
    flex: 1;
    max-width: 500px;
}

.search-box {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 50px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 15px;
    outline: none;
}

.search-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-size: 14px;
    font-weight: 500;
}

.header-contact i {
    font-size: 18px;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.banner h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.banner p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 25px;
}

.banner p strong {
    color: #fef08a;
}

.banner-tags {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.banner-tags span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.banner-tags i {
    color: #86efac;
}

/* 内容区域 */
.section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-light);
}

/* 域名网格 */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.domain-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.domain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.domain-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    word-break: break-all;
}

.domain-price {
    margin-bottom: 18px;
}

.domain-price .currency {
    font-size: 16px;
    color: #ef4444;
    font-weight: 600;
}

.domain-price .amount {
    font-size: 28px;
    font-weight: 800;
    color: #ef4444;
}

.domain-action .btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.domain-card:hover .btn-buy {
    background: var(--primary-dark);
}

.domain-action i {
    font-size: 12px;
}

/* 信息区域 */
.info-section {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.info-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.info-item {
    text-align: center;
}

.info-item i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.info-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* 底部 */
.footer {
    background: #1f2937;
    color: white;
    padding: 40px 0 20px;
}

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

.footer-brand .logo-text {
    color: white;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 14px;
    color: #9ca3af;
}

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

.footer-links a {
    color: #d1d5db;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #9ca3af;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .header-contact {
        display: none;
    }
    
    .banner {
        padding: 40px 0;
    }
    
    .banner h1 {
        font-size: 26px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .banner-tags {
        gap: 15px;
    }
    
    .domain-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .domain-card {
        padding: 18px 12px;
    }
    
    .domain-name {
        font-size: 16px;
    }
    
    .domain-price .amount {
        font-size: 22px;
    }
    
    .domain-action .btn-buy {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .info-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

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