/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f7f5;
}
#home{
	padding-top:0;
	display:block;
}
/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    z-index: 999;
    transition: all 0.3s ease;
}

.nav-container {
    width: 85%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #c89f78;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #c89f78;
}

/* 通用板块样式 */
.section-container {
    width: 85%;
    margin: 0 auto;
    padding: 4rem 0;
}

section {
    padding-top: 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #c89f78;
    margin: 0.8rem auto;
}

p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* 首页轮播样式 */
.carousel {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size:contain;
    background-position:center;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-item.active {
    opacity: 1;
}

.home-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.home-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.slogan {
    font-size: 1.5rem;
    color: #fff;
}

/* 工作室故事样式 */
.artist-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.artist-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
}

.avatar-img {
    background-image: url(../img/shouzuoshi.jpg); /* 手作师头像（免费商用） */
}

/* 成品案例样式 */
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.product-name {
    font-size: 1.2rem;
    padding: 1rem;
    text-align: center;
}

.product-scent {
    font-size: 0.9rem;
    color: #888;
    padding: 0 1rem 1.5rem;
    text-align: center;
    margin-bottom: 0;
}

/* 定制服务样式 */
.custom-container {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.custom-categories {
    flex: 1;
    min-width: 280px;
}

.category-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5eee6;
    color: #c89f78;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.custom-form {
    flex: 1;
    min-width: 280px;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    background-color: #c89f78;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #b58c66;
}

.scent-game {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.scent-game a {
    color: #c89f78;
    text-decoration: none;
}

/* 体验课程样式 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.course-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.course-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.course-content {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.course-info {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* 制作工艺样式（补充图片） */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 100px;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f5eee6;
    color: #c89f78;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.step-img1 {
    background-image: url(../img/rongla.jpg); /* 融蜡工艺图 */
}

.step-img2 {
    background-image: url(../img/tiaoxiang.jpg); /* 调香工艺图 */
}

.step-img3 {
    background-image: url(../img/daomo.jpg); /* 倒模工艺图 */
}

.step-img4 {
    background-image: url(../img/baozhuang.jpg); /* 包装工艺图 */
}

.step-name {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.process-line {
    height: 2px;
    background-color: #eee;
    flex: 1;
}

/* 联系我们样式 */
.contact-container {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 280px;
}

.contact-info h3 {
    color: #c89f78;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0;
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #c89f78;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-content h1 {
        font-size: 2.5rem;
    }

    .slogan {
        font-size: 1.2rem;
    }

    .artist-info {
        flex-direction: column;
        text-align: center;
    }

    .process-steps {
        flex-direction: column;
    }

    .process-line {
        width: 80%;
        height: 2px;
    }
}
