/* 通用样式重置（减少冗余，统一浏览器表现） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", sans-serif;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #CD2626; /* 强调色朱红 */
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn:hover {
    transform: scale(1.05);
    background-color: #b82020;
}
.btn-secondary {
    background-color: transparent;
    border: 2px solid #CD2626;
    color: #CD2626;
}
.btn-secondary:hover {
    background-color: #CD2626;
    color: #fff;
}
.section {
    padding: 80px 0;
}
.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #333333; /* 墨黑 */
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #8B5A2B; /* 雅致棕 */
}
.section-desc {
    font-size: 16px;
    color: #333333;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.8;
}
/* 顶部导航样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #F5F2EB; /* 米白 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    transition: background-color 0.3s ease;
}
.header.scroll {
    background-color: rgba(245, 242, 235, 0.95);
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 50px;
	border-radius: 50px;
    margin-right: 10px;
}
.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #8B5A2B; /* 雅致棕 */
}
.logo-desc {
    font-size: 12px;
    color: #333333;
    margin-top: 2px;
}
.nav-menu {
    display: flex;
    align-items: center;
}
.nav-item {
    margin: 0 15px;
    font-size: 16px;
    color: #333333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}
.nav-item:hover {
    color: #8B5A2B;
}
.nav-item::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8B5A2B;
    transition: width 0.3s ease;
}
.nav-item:hover::after {
    width: 100%;
}
.nav-search {
    position: relative;
    margin: 0 15px;
}
.nav-search input {
    width: 200px;
    padding: 8px 15px;
    border: 1px solid #E5E5E5; /* 浅灰 */
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}
.nav-search i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}
.nav-download {
    margin-left: 15px;
}
/* 汉堡菜单样式（手机端显示） */
.hamburger {
    display: none;
    font-size: 24px;
    color: #333333;
    cursor: pointer;
}
.mobile-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #F5F2EB;
    z-index: 998;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
}
.mobile-menu.active {
    left: 0;
}
.mobile-item {
    font-size: 18px;
    color: #333333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E5E5E5;
}
.mobile-search {
    margin: 20px 0;
    position: relative;
}
.mobile-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #E5E5E5;
    border-radius: 20px;
    outline: none;
}
.mobile-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}
.mobile-download {
    margin-top: 20px;
    text-align: center;
}
/* 首屏Banner样式（仅首页） */
.banner {
    margin-top: 80px;
    height: 600px;
    background-color: #F5F2EB;
    background-image: url("images/bg-guji.png"); /* 古籍纹理背景，实际替换 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}
.banner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.banner-text {
    width: 50%;
    animation: fadeInLeft 1s ease;
}
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.banner-title {
    font-size: 36px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.5;
}
.banner-subtitle {
    font-size: 22px;
    color: #8B5A2B;
    margin-bottom: 30px;
}
.banner-features {
    margin-bottom: 40px;
}
.banner-feature {
    font-size: 16px;
    color: #333333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.banner-feature i {
    color: #8B5A2B;
    margin-right: 10px;
}
.banner-btns {
    display: flex;
    gap: 20px;
}
.banner-img {
    width: 45%;
    animation: fadeInRight 1s ease;
}
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.banner-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #8B5A2B;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.scroll-down i {
    font-size: 24px;
    margin-bottom: 5px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}
/* 产品亮点板块（仅首页） */
.features {
    background-color: #fff;
}
.features-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.feature-card {
    text-align: center;
    padding: 30px 20px;
    background-color: #F5F2EB;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
}
.feature-icon {
    font-size: 40px;
    color: #8B5A2B;
    margin-bottom: 20px;
}
.feature-title {
    font-size: 20px;
    font-weight: bold;
    color: #8B5A2B;
    margin-bottom: 15px;
}
.feature-desc {
    font-size: 16px;
    color: #333333;
    line-height: 1.8;
}
.features-btn {
    text-align: center;
    margin-top: 50px;
}
/* 功能介绍页样式 */
.function-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}
.function-card {
    display: flex;
    align-items: center;
    gap: 40px;
}
.function-card:nth-child(even) {
    flex-direction: row-reverse;
}
.function-img {
    width: 45%;
    border-radius: 8px;
    overflow: hidden;
}
.function-text {
    width: 55%;
}
.function-title {
    font-size: 22px;
    font-weight: bold;
    color: #8B5A2B;
    margin-bottom: 20px;
}
.function-desc {
    font-size: 16px;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 20px;
}
.function-list {
    margin-bottom: 25px;
}
.function-list li {
    font-size: 16px;
    color: #333333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.function-list li i {
    color: #8B5A2B;
    margin-right: 10px;
}
/* 大师介绍页样式 */
.master-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.master-card {
    background-color: #F5F2EB;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.master-card:hover {
    transform: translateY(-10px);
}
.master-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.master-info {
    padding: 25px;
}
.master-name {
    font-size: 20px;
    font-weight: bold;
    color: #8B5A2B;
    margin-bottom: 5px;
}
.master-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}
.master-desc {
    font-size: 14px;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 20px;
}
.master-detail {
    display: none;
    padding-top: 15px;
    border-top: 1px solid #E5E5E5;
    margin-top: 15px;
}
.master-detail.active {
    display: block;
}
.master-btn {
    font-size: 14px;
    color: #8B5A2B;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.master-btn i {
    transition: transform 0.3s ease;
}
.master-btn.active i {
    transform: rotate(180deg);
}
.master-qualification {
    margin-top: 60px;
    text-align: center;
}
.master-qualification img {
    display: inline-block;
    width: 200px;
    margin: 0 15px;
}
/* 起名知识页样式 */
.knowledge-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.knowledge-nav-item {
    padding: 8px 20px;
    background-color: #F5F2EB;
    color: #333333;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.knowledge-nav-item.active,
.knowledge-nav-item:hover {
    background-color: #8B5A2B;
    color: #fff;
}
.knowledge-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.knowledge-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.knowledge-card:hover {
    transform: translateY(-5px);
}
.knowledge-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.knowledge-info {
    padding: 20px;
}
.knowledge-title {
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
    line-height: 1.5;
}
.knowledge-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.knowledge-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}
.knowledge-more {
    text-align: center;
    margin-top: 50px;
}
/* 下载中心页样式 */
.download-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}
.download-card {
    text-align: center;
    padding: 40px 20px;
    background-color: #F5F2EB;
    border-radius: 8px;
}
.download-icon {
    font-size: 60px;
    color: #8B5A2B;
    margin-bottom: 20px;
}
.download-title {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
}
.download-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}
.download-qrcode {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border: 10px solid #fff;
    border-radius: 8px;
}
.download福利 {
    font-size: 14px;
    color: #CD2626;
    font-weight: bold;
    margin-top: 15px;
}
.download-faq {
    background-color: #F5F2EB;
    padding: 40px;
    border-radius: 8px;
}
.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 20px;
}
.faq-question {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.faq-question i {
    color: #8B5A2B;
    transition: transform 0.3s ease;
}
.faq-question.active i {
    transform: rotate(180deg);
}
.faq-answer {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    display: none;
}
.faq-answer.active {
    display: block;
}
/* 关于我们/联系我们页样式 */
.about-container,
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #F5F2EB;
    padding: 40px;
    border-radius: 8px;
}
.about-content,
.contact-content {
    font-size: 16px;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 30px;
}
.about-content p,
.contact-content p {
    margin-bottom: 15px;
}
.about-list {
    margin-bottom: 30px;
}
.about-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.about-list li i {
    color: #8B5A2B;
    margin-right: 10px;
}
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.contact-icon {
    font-size: 24px;
    color: #8B5A2B;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-text {
    font-size: 16px;
    color: #333333;
}
.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    display: block;
    font-size: 14px;
    color: #333333;
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    outline: none;
    font-size: 16px;
    font-family: "微软雅黑", sans-serif;
}
.form-group textarea {
    height: 150px;
    resize: none;
}
/* 信任背书板块（所有页面底部通用） */
.trust {
    background-color: #F5F2EB;
    padding: 60px 0;
}
.trust-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.trust-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}
.trust-number {
    font-size: 36px;
    font-weight: bold;
    color: #8B5A2B;
    margin-bottom: 10px;
}
.trust-text {
    font-size: 16px;
    color: #333333;
}
.trust-cert {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.trust-cert img {
    width: 120px;
    height: auto;
}
/* 底部样式（所有页面通用） */
.footer {
    background-color: #333333;
    color: #F5F2EB;
    padding: 60px 0 20px;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.footer-logo img {
    height: 40px;
    margin-right: 10px;
}
.footer-logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #F5F2EB;
}
.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.footer-social {
    display: flex;
    gap: 15px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #8B5A2B;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.footer-social a:hover {
    background-color: #CD2626;
}
.footer-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #8B5A2B;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav a {
    font-size: 14px;
    color: #ccc;
    transition: color 0.3s ease;
}
.footer-nav a:hover {
    color: #8B5A2B;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.footer-contact-item i {
    color: #8B5A2B;
}
.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding-top: 20px;
    border-top: 1px solid #444;
}
/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #8B5A2B;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    display: none;
}
.back-to-top.active {
    display: flex;
}
/* 自适应样式（手机端） */
@media (max-width: 992px) {
    .features-container,
    .master-container,
    .knowledge-container,
    .download-container,
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .function-card,
    .function-card:nth-child(even) {
        flex-direction: column;
    }
    .function-img,
    .function-text {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .nav-menu,
    .nav-search,
    .nav-download {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .banner {
        height: auto;
        padding: 40px 0;
    }
    .banner-container {
        flex-direction: column;
        text-align: center;
    }
    .banner-text,
    .banner-img {
        width: 100%;
        margin-bottom: 30px;
    }
    .banner-btns {
        justify-content: center;
    }
    .features-container,
    .master-container,
    .knowledge-container,
    .download-container,
    .footer-container {
        grid-template-columns: 1fr;
    }
    .trust-container {
        flex-direction: column;
    }
    .trust-item {
        width: 100%;
    }
    .contact-form {
        grid-template-columns: 1fr;
    }
    .about-container,
    .contact-container {
        padding: 20px;
    }
}
@media (max-width: 576px) {
    .banner-title {
        font-size: 28px;
    }
    .banner-subtitle {
        font-size: 18px;
    }
    .section-title {
        font-size: 24px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .footer-container {
        gap: 20px;
    }
}