body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Header 样式 */
header {
    background: #0f0f1a;
    padding: 10px 20px;
    position: relative;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
}

.hamburger {
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    display: none; /* 默认隐藏，移动端显示 */
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
}




:root {
    --primary: #3a86ff;
    --secondary: #8338ec;
    --accent: #06d6a0;
    --dark: #0f0f1a;
    --darker: #09090f;
    --light: #f8f9fa;
    --gray: #6c757d;
}

/* 重置基本样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 粒子背景 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, var(--dark) 0%, var(--darker) 100%);
    z-index: -2;
}

.particles::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(58, 134, 255, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 70% 60%, rgba(6, 214, 160, 0.1) 0%, transparent 25%);
    animation: particleMove 15s infinite alternate;
}

@keyframes particleMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* 导航栏 */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    font-size: 2rem; /* 使用rem单位以便自适应 */
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}
/* 汉堡图标的样式响应 */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* 默认隐藏 */
        flex-direction: column; /* 纵向排列 */
        position: absolute;
        top:100px;
        right: 0;
        background-color: rgba(15, 15, 26, 0.9);
        width: 100%;
    }
    
    .nav-links.active {
        display: flex; /* 激活状态显示 */
    }
    
    .hamburger {
        display: block; /* 在移动设备上显示 */
    }
}
/* 导航链接 */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem; /* 使用rem单位 */
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* CTA按钮 */
.cta-button {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    padding: 10px 1.5rem; /* 使用rem单位 */
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 主视觉区 */
.hero {
    height: auto; /* 允许高度自动调整 */
    display: flex;
    align-items: center;
    justify-content: center; /* 居中内容 */
    position: relative;
    overflow: hidden;
    padding: 20px; /* 添加上下内边距 */
}

.hero-content {
    max-width: 100%; /* 确保内容在小屏幕上的最大宽度 */
    text-align: center; /* 文本居中 */
}

.hero h1 {
    font-size: 2.5rem; /* 在手机上减小字体大小 */
    margin-bottom: 10px; /* 减小底部边距 */
    background: linear-gradient(45deg, var(--light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1rem; /* 减小段落字体大小 */
    margin-bottom: 20px; /* 减小底部边距 */
    opacity: 0.9;
}

/* 搜索容器 */
.search-container {
    display: flex; /* 使用flexbox布局 */
    justify-content: center; /* 居中对齐 */
    align-items: center; /* 垂直居中对齐 */
    max-width: 100%; /* 确保搜索容器宽度为100% */
    margin: 0 auto; /* 居中 */
}

.search-input {
    padding: 15px 10px; /* 调整内边距 */
    border: none;
    border-radius: 30px; /* 圆角 */
    font-size: 1rem; /* 确保合适的字体大小 */
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
    width: 300px; /* 自定义宽度 */
    margin-right: 10px; /* 添加右边距 */
}

.search-input:focus {
    outline: none; /* 去掉焦点边框 */
    background-color: rgba(255, 255, 255, 0.15); /* 聚焦时颜色变化 */
}

.search-button {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 20px; /* 调整内边距 */
    border-radius: 30px; /* 圆角 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100px; /* 可以自定义宽度 */
}

.search-button:hover {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column; /* 纵向排列 */
        align-items: stretch; /* 使输入框和按钮宽度相同 */
    }

    .search-input {
        width: 100%; /* 宽度设定为100% */
        margin-bottom: 10px; /* 添加底部间隙 */
    }

    .search-button {
        width: 100%; /* 宽度设定为100% */
    }
}


/* 内容区块通用样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

/* 域名展示区 */
.domains-section {
    padding: 80px 0;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.domain-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.domain-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.domain-suffix {
    background-color: rgba(58, 134, 255, 0.2);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-volume {
    font-size: 0.8rem;
    opacity: 0.7;
}

.domain-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--light);
}

.domain-meaning {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.domain-tags {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background-color: rgba(6, 214, 160, 0.2);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.buy-button {
    display: block;
    text-align: center;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 20px;
}

.buy-button:hover {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
}

/* 优势区块样式 */
.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(15,15,26,0.8) 0%, rgba(9,9,15,0.9) 100%);
}

.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
}

.feature-card {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(58, 134, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

.feature-card p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.6;
}

/* 联系我们区块 */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(15,15,26,0.9) 0%, rgba(9,9,15,0.95) 100%);
}

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

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-title {
    font-size: 2.2rem;
    color: var(--light);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.contact-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 三栏卡片布局 */
.contact-cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.contact-card {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(58, 134, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

.contact-card p, 
.contact-card a {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.6;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-card a:hover {
    color: var(--accent);
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #0f0f1a 0%, #09090f 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 200px;
}

footer h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3a86ff, #06d6a0);
}

.footer-about p {
    line-height: 1.6;
    margin-top: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #3a86ff;
    transform: translateX(5px);
}

.footer-contact p {
    margin-bottom: 12px;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.footer-contact p::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #3a86ff;
    border-radius: 50%;
    margin-right: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; /* 隐藏链接 */
    }

    .search-container {
        flex-direction: column;
        width: 100%; /* 确保宽度为100% */
    }

    .search-input,
    .search-button {
        border-radius: 30px;
        width: 100%; /* 确保宽度为100% */
    }

    .search-input {
        margin-bottom: 10px;
    }

    .domains-grid {
        grid-template-columns: 1fr; /* 单列布局 */
    }

    .features-grid {
        flex-direction: column; /* 垂直排列 */
        gap: 15px;
    }

    .feature-card,
    .contact-card {
        width: 100%; /* 卡片宽度为100% */
        max-width: none; /* 取消最大宽度限制 */
        margin: 0 auto; /* 居中 */
    }

    footer h3 {
        font-size: 1.2rem;
    }

    .footer-content {
        flex-direction: column; /* 垂直排列 */
        gap: 30px;
    }
}

/* 汉堡菜单样式 */
.hamburger {
    display: none; /* 默认隐藏 */
    font-size: 28px;
    color: var(--light);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* 默认隐藏 */
    }
    
    .hamburger {
        display: block; /* 在小屏幕上显示 */
    }

    .nav-links.active {
        display: flex; /* 显示导航链接 */
        flex-direction: column; /* 垂直排列 */
    }
}
