
/* [模块] 基础全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', serif;
    /*letter-spacing: 1px; !* 添加字符间距 *!*/
    word-spacing: 2px; /* 添加单词间距 */
}

body {
    color: #333;
    background-color: #f8f8f8;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

/* [模块] 通用组件样式 */
.section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.section.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-title,
.index-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 300;
}

.common-title-underline::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #c89f63;
    margin: 15px auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #c89f63;
    border: 1px solid #c89f63;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background: #c89f63;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #c89f63;
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* [模块] 导航栏样式 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 35px;
    z-index: 999;
    background-color: transparent;
    transition: all 0.3s ease;
}

#header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.nav-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    padding: 0;
    margin: 0;
    height: 100%;
}

.nav-brand a,
.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 15px;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.nav-menu a {
    color: #fff;
}

.nav-menu a:hover {
    color: #c89f63;
}

#header.header-scrolled .nav-brand a,
#header.header-scrolled .nav-menu a {
    color: #333;
}

.header-scrolled .nav-menu a:hover {
    color: #c89f63;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #fff;
    background: none;
    border: none;
    padding: 0;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
}

.header-scrolled .mobile-menu-btn {
    color: #333;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    transform: translateX(-300px);
}

#header.scrolled .logo-img {
    height: 35px;
}

.logo h1 {
    color: #d0cac2;
    font-size: 28px;
    letter-spacing: 3px;
    font-weight: 300;
}

/* [模块] 英雄区域样式 */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    padding-top: 80px;
    box-sizing: border-box;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
    z-index: 10;
    color: white;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 20px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.7s;
}

.hero-content .btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    margin: 0 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: none;
    animation: fadeInUp 1s forwards 0.5s;
    padding: 10px 25px;
    border-radius: 15px;
}

.hero-content .btn:hover {
    border-color: black;
    background-color: black;
    color: white;
}

.hero-content .btn:active {
    background-color: black;
    color: white;
    transform: translateY(2px);
}

.hero-logo {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
}

.hero-logo img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(23, 21, 21, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: white;
}

.centered-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* [模块] 页脚样式 */
footer {
    background: #000;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #c89f63;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 400;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background: #c89f63;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: #c89f63;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #444;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #c89f63;
    border-color: #c89f63;
    color: #000;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #777;
}


/* [模块] 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 上滑动画关键帧 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* [模块] 响应式设计 */
@media (max-width: 768px) {

    .hero {
        padding-top: 60px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
        max-width: 200px;
    }

    .hero-logo img {
        max-height: 100px;
    }

    .header-inner {
        padding: 0.5rem 0;
    }

    /* 替换原有的 .nav-menu 样式 */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.96);
        width: 100%;
        height: 100vh;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease, transform 0.3s ease;
        z-index: 1000;
        /* 移除 padding-top */
        margin: 0;
        transform: translateY(100%);
        /* 添加以下属性实现内容垂直居中 */
        justify-content: center;
        align-items: center;
    }


    .nav-menu.active {
        left: 0;
        transform: translateY(0);
    }

    /* 导航项动画 */
    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
    }

    /* 确保只有在菜单激活时才应用动画 */
    .nav-menu.active li {
        animation: slideUp 0.3s forwards;
    }

    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }


    /* 修复：当导航栏激活时，应该设置 left: 0 */
    .nav-menu.active {
        left: 0; /* 修正：使用 left 而不是 right */
    }

    .nav-menu li {
        margin: 15px 0;
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-menu a {
        padding: 15px 0;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        /* 添加字体大小和间距 */
        font-size: 1.3rem;
        letter-spacing: 1.5px;
        font-family: "Montserrat", sans-serif;
        color: rgba(23, 21, 21, 0.5);
        transition: all 0.3s ease;
        border-radius: 4px;
    }


    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    /* 替换 L573-L577 的代码为：*/
    .mobile-menu-btn {
        z-index: 1001;
        position: relative;
    }

    /* 新增：当导航菜单激活时，改变按钮颜色 */
    .nav-menu.active ~ .mobile-menu-btn,
    .nav-menu.active ~ * .mobile-menu-btn {
        color: #333;
    }


    .nav-brand {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        z-index: 1001;
        text-align: center;
    }

    .nav-brand a {
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-btn {
        color: #fff;
    }


    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .nav-brand {
        position: absolute;
        top: 50%;
        left: 5px; /* 改为距离左侧15px */
        transform: translateY(-50%); /* 只在Y轴上居中 */
        margin: 0;
        z-index: 1001;
        text-align: left; /* 左对齐 */
        order: -2;
    }

    .nav-brand a {
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        font-weight: 700;
    }

    #header.header-scrolled .nav-brand a {
        color: #333;
    }
}



