:root {
    --primary: #3a86ff;
    --secondary: #8338ec;
    --accent: #06d6a0;
    --dark: #0f0f1a;
    --darker: #09090f;
    --light: #f8f9fa;
    --gray: #6c757d;
}
/* ===== 基本样式 ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
   
}

/* ===== 头部样式 ===== */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 0;
    position: relative;
}

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

.logo {
    height: 50px;
}

/* ===== 汉堡菜单按钮 ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== 导航菜单 ===== */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: block;
}

.nav-link:hover {
    color: #3498db; /* 改变字体颜色为蓝色 */
    /* 如果需要，可以保留 border-radius 属性 */
    /* border-radius: 5px; */
}

/* ===== 语言切换器 ===== */
.language-switcher {
    margin-left: 20px;
    position: relative;
}

.language-select {
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 120px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.language-switcher::after {
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 12px;
}

/* ===== 英雄区域 ===== */
.hero {
    background-color: #3498db;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-box input {
    padding: 10px;
    width: 300px;
    border: 2px solid #2980b9; /* 添加边框颜色 */
    border-right: none; /* 移除右侧边框，避免与按钮重叠 */
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    outline: none; /* 移除默认的聚焦边框 */
}

.search-box input:focus {
    border-color: #1c6ea4; /* 聚焦时边框颜色加深 */
}

.search-box button {
    padding: 10px 20px;
    background-color: #2980b9;
    color: #fff;
    border: 2px solid #2980b9; /* 添加与输入框一致的边框颜色 */
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
}

.search-box button:hover {
    background-color: #1c6ea4;
    border-color: #1c6ea4; /* 悬停时边框颜色同步变化 */
}


/* ===== 推荐域名 ===== */
.featured-domains {
    padding: 40px 0;
}

.featured-domains h2 {
    text-align: center;
    margin-bottom: 30px;
}

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

.domain-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.domain-suffix {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary);
}

.search-volume {
    font-size: 0.9em;
    color: #666;
}

.domain-meaning {
    font-size: 0.9em;
    color: #555;
    margin: 10px 0;
}

.domain-details {
    margin: 10px 0;
}

.domain-details p {
    margin: 10px 0;
    font-size: 0.9em;
    color: #444;
}

.domain-tags {
    margin: 10px 0;
}

.tag {
    display: inline-block;
    background: rgba(6, 214, 160, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-bottom: 5px;
    color: var(--accent);
}

.buy-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: 15px;
    margin-left: -10px;
}

.buy-button:hover {
    background-color: #2980b9;
}

/* ===== 平台优势 ===== */
.advantages {
    background-color: #f9f9f9;
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.advantage-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.advantage-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.advantage-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 0.9em;
    color: #555;
}

/* ===== 页脚 ===== */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 6px 0;
}

/* 默认布局（PC端） */
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 52px; /* 列之间的间距 */
    margin-bottom: 20px;
}

.footer-about {
    flex: 0 0 40%; /* 占比 40% */
    max-width: 40%;
}

.footer-links {
    flex: 0 0 30%; /* 占比 30% */
    max-width: 30%;
}

.footer-contact {
    flex: 0 0 30%; /* 占比 30% */
    max-width: 30%;
}

/* 手机端布局 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; /* 垂直排列 */
        gap: 0; /* 删除 gap */
    }

    .footer-about,
    .footer-links,
    .footer-contact {
        flex: 0 0 100%; /* 每个区块占满整行 */
        max-width: 100%;
        margin-bottom: 2px; /* 区块之间的间距 */
    }
}

/* 通用样式 */
.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 14px;
    color: #fff;
    line-height: 1.6;
}

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

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

.footer-links ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 14px;
    color: #fff;
    margin: 0 0 10px;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: #fff;
    /*border-top: 1px solid #ddd;*/
    /*padding-top: 20px;*/
}

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

.copyright a:hover {
    text-decoration: underline;
}


/* ===== 搜索结果样式 ===== */
.search-results {
    padding: 40px 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.result-item h3 {
    margin-top: 0;
    color: #2980b9;
}

.result-item p {
    margin: 10px 0;
    color: #666;
}

.purchase-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #2980b9;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.purchase-link:hover {
    background-color: #3498db;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .nav-menu li {
        margin: 1px 0;
    }

    .nav-menu.active {
        display: block;
    }

    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .language-switcher {
        display: none;
    }

    .hero h1 {
        font-size: 2em;
    }

    .search-box input {
        width: 70%;
    }
}
/* 筛选功能样式 */
.filter-section {
    margin-bottom: 30px;
    text-align: center;
}

.filter-button {
    padding: 10px 20px;
    margin: 5px;
    border: 1px solid #3498db;
    border-radius: 5px;
    background-color: transparent;
    color: #3498db;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-button.active {
    background-color: #3498db;
    color: #fff;
}

.filter-button:hover {
    background-color: #3498db;
    color: #fff;
}
/* 分页功能样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 50px; /* 增加与底部的距离 */
}

.pagination-button {
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #3498db;
    border-radius: 5px;
    background-color: transparent;
    color: #3498db;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination-button.active {
    background-color: #3498db;
    color: #fff;
}

.pagination-button:hover {
    background-color: #3498db;
    color: #fff;
}

.pagination-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-button.disabled:hover {
    background-color: transparent;
    color: #3498db;
}

.pagination-ellipsis {
    padding: 10px 15px;
    margin: 0 5px;
    color: #3498db;
    cursor: default;
}

/* 平台优势部分 */
.advantages {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center; /* 标题和内容居中 */
}



.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.advantage-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.advantage-icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #34495e; /* 深灰色，适合子标题 */
    font-weight: 500; /* 中等加粗 */
}

.advantage-card p {
    font-size: 1rem;
    color: #7f8c8d; /* 浅灰色，适合正文 */
    line-height: 1.6;
}
.lm-title {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #2c3e50; /* 深蓝色，适合标题 */
    font-weight: 600; /* 加粗字体 */
     text-align: center; /* 标题和内容居中 */
}

/* 联系我们部分 */
.contact {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}



.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contact-icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #34495e;
    font-weight: 500;
}

.contact-card p {
    font-size: 1rem;
    color: #7f8c8d;
    line-height: 1.6;
}

/* 在线客服链接样式 */
.support-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.support-link:hover {
    color: #2980b9;
}
.lm-description {
    font-size: 16px; /* 设置字体大小 */
    line-height: 1.6; /* 设置行高，提升可读性 */
    color: #333; /* 设置字体颜色为深灰色 */
    margin-bottom: 20px; /* 设置下边距，与其他内容保持距离 */
    text-align: center; /* 文本两端对齐 */
    max-width: 95%; /* 设置最大宽度，避免文本过长 */
    margin-left: auto; /* 水平居中 */
    margin-right: auto; /* 水平居中 */
    padding: 10px; /* 添加内边距，使文本与背景有一定距离 */
    background-color: #f9f9f9; /* 设置背景色为浅灰色 */
    border-radius: 8px; /* 添加圆角效果 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加轻微的阴影效果 */
}
/* 固定按钮样式 */
.fixed-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background-color: #2980b9;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.fixed-btn:hover {
    background-color: #1c6ea4;
    transform: scale(1.1);
}

/* 在线咨询按钮的位置调整 */
#online-chat {
    bottom: 90px; /* 与返回顶部按钮保持一定距离 */
}

/* 返回顶部按钮的隐藏与显示 */
#back-to-top {
    display: none; /* 默认隐藏 */
}
/* 在线咨询固定面板样式 */
.chat-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 250px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none; /* 默认隐藏 */
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #2980b9;
    color: #fff;
    border-radius: 10px 10px 0 0;
}

.panel-header h4 {
    margin: 0;
    font-size: 16px;
}

#close-panel {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

#close-panel:hover {
    color: #ddd;
}

.panel-content {
    padding: 10px;
}

.contact-option {
    margin-bottom: 15px;
    text-align: center;
}

.contact-option i {
    font-size: 24px;
    color: #2980b9;
    margin-bottom: 5px;
}

.contact-option p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

.contact-option a {
    color: #2980b9;
    text-decoration: none;
    font-size: 14px;
}

.contact-option a:hover {
    text-decoration: none; /* 去掉下划线 */
}

#start-chat {
    padding: 8px 16px;
    background-color: #2980b9;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#start-chat:hover {
    background-color: #1c6ea4;
}
/* 全局超链接样式 */
a {
    color: #007BFF; /* 默认颜色 */
    text-decoration: none; /* 去掉下划线 */
    transition: color 0.3s ease, text-decoration 0.3s ease; /* 添加过渡效果 */
}

/* 鼠标悬停样式 */
a:hover {
    color: #0056b3; /* 悬停颜色 */
    text-decoration: none; /* 去掉下划线 */
}



/* 活动链接样式（点击时） */
a:active {
    color: #ff0000; /* 活动链接颜色 */
}

/* 按钮样式超链接 */
a.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

a.button:hover {
    background-color: #0056b3;
    text-decoration: none; /* 去掉下划线 */
}

/* 页脚超链接样式 */
footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #ccc;
}

/* 禁用超链接样式 */
a.no-style {
    color: inherit; /* 继承父元素颜色 */
    text-decoration: none; /* 去掉下划线 */
}

a.no-style:hover {
    color: inherit; /* 继承父元素颜色 */
    text-decoration: none; /* 去掉下划线 */
}
/* 404 页面样式 */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 200px); /* 减去头部和底部高度 */
    text-align: center;
    padding: 20px;
}

.error-page h1 {
    font-size: 120px;
    color: #007BFF;
    margin: 0;
}

.error-page p {
    font-size: 24px;
    color: #555;
    margin: 20px 0;
}

.error-page .search-box {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.error-page .search-box input {
    width: 300px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.error-page .search-box button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #2980b9;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.error-page .search-box button:hover {
    background-color: #0056b3;
}

.error-page .links {
    margin-top: 20px;
}

.error-page .links a {
    margin: 0 10px;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    text-decoration: none;
}

.error-page .links .btn-primary {
    background-color: #2980b9;
    color: #fff;
}

.error-page .links .btn-primary:hover {
    background-color: #0056b3;
}

.error-page .links .btn-secondary {
    background-color: #fff;
    color: #007BFF;
    border: 1px solid #007BFF;
}

.error-page .links .btn-secondary:hover {
    background-color: #f0f0f0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .error-page h1 {
        font-size: 80px;
    }

    .error-page p {
        font-size: 18px;
    }

    .error-page .search-box input {
        width: 200px;
    }

    .error-page .links a {
        display: block;
        margin: 10px 0;
    }
}

