/*全布局*/
*,*::before, *::after{
	box-sizing: border-box;/*内边距和边框会“向内挤压”，不会撑大元素*/
    margin: 0;
    padding: 0;
}
:root{
    --paper: #F5EDE3;/*1号色*/
    --ink: #1c1c18;
	--greycolor:#6F6C67;/*5号色*/
	--greencolor:#A3B18A;/*3号色*/
    --muted: #67675f;
    --line: #A8B19B;/*4号色*/
    --display: Georgia, "Times New Roman", serif;
    --bodyH1: Arial, sans-serif;
	--bodyP: 'Cormorant Garamond', serif;
	--bodyH2: 'Cormorant Garamond', Georgia, serif;
}
html {
    scroll-behavior: smooth;
}
 
 /*accessibility features for keyboard users*/
:focus-visible { 
	outline: 2px solid #c84b31; 
	outline-offset: 4px; 
}

body{
	margin: 0; 
	background: var(--paper); 
	color: var(--ink); 
	font-family: var(--bodyP); 
	line-height: 1.55;	
}
.shell { /*限制宽度和居中*/
	width: min(calc(100% - 40px), 1320px); 
	margin-inline: auto; 
}
/*body具体项目:pictures*/
figure{
	margin:0;
	overflow: hidden;
}
img { 
	display: block; 
	/*把图片从默认的行内元素（inline）变成块级元素（block），从而消除图片底部多余的空隙。*/ 
	width: 100%; 
	height: 100%; 
	object-fit: contain; 
}
/*body具体项目:h1 h2*/
h1{
	margin: 0 0 100px; 
	font-family:var(--bodyH1); 
	font-size: clamp(44px, 5vw, 72px); 
	font-weight: 400; 
	line-height: 1;
}
h2{
	margin: 0 0 24px; 
	font-family:var(--bodyH2); 
	font-size: clamp(44px, 5vw, 72px); 
	font-weight: 400; 
	line-height: 1;
}
/*body具体项目:links*/
a { 
	color: inherit; 
	text-decoration: none; 
}
a:hover{
	color:#1c1c1899;
}

/*header*/
.siteHeader { 
	width: 100%; 
	border-bottom: 1px solid var(--line);		
}
.headerDiv{
	width: 100%; 
	height: 120px; 
	padding: 24px 64px;  
	display: flex; 
	justify-content: space-between; 
	align-items: center;
}
.headerLogo { 
	font-family: var(--display); 
	font-size: 28px; 
	letter-spacing: 0.15em; 
	font-weight: 500;
}
.headerNav { 
	display: flex; 
	gap: 32px; 
}
.headerNav a, .footerNav a { 
	min-height: 44px; 
	display: inline-flex; 
	align-items: center; 
	font-size: 14px; 
	text-transform: uppercase; 
	letter-spacing: .12em; 
}

/*main: hero*/
.visuallyHidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.homeHeroSection{
	padding: 56px 0 70px; 
}
.heroImage{
	aspect-ratio: 7 / 4;
}
.heroTxt { 
	margin: 30px 0 ; 
	font-family: var(--bodyP); 
	font-size: clamp(24px, 3vw, 40px); 
	line-height: 1.35; 
}

/*main sections: products and about*/
.mainTxtImgSections{
	padding: 100px 0 100px;
}
.mainTxtDiv{
	max-width: 980px; 
	margin-top: 48px;
}
.mainTxtDiv p{
	font-size: 20px; 
	line-height: 1.5; 
	margin: 0;
}
p + P { 
	margin-top: 16px; 
}
.seeMore{
	display: inline-flex; 
	align-items: center; 
	margin-top: 24px; 
	border-bottom: 1px solid var(--line); 
	padding: 10px 0; 
	font-size: 12px; 
	text-transform: uppercase; 
	letter-spacing: .14em;
}
/*products*/
.productsImageDiv{
	display: grid; 
	grid-template-columns: repeat(2, minmax(0, 1fr)); 
	gap: 24px; 
	align-items: start; 
}
.productsImageDiv figure{
	aspect-ratio: 1122 / 1402;
}
/*about*/
.aboutImageDiv{
	display: grid; 
	grid-template-columns: 2fr 1fr; 
	gap: 24px; 
	align-items: start;
}
.aboutImageDiv figure:first-child { 
	aspect-ratio: 1; 
}
.aboutImageDiv figure:last-child { 
	aspect-ratio: 3 / 4; 
}

/*footer*/
.siteFooter { 
	margin-top: 190px; 
	width: 100%;
}
.siteFooter::before { 
	content: "";
	display: block; 
	width: 100%;
	margin: 0 auto clamp(64px, 7vw, 100px); 
	border-top: 1px solid var(--line); 
	}
.footerDiv{
	text-align: center; 
	padding: 0 24px;
}
.footerLogo { 
	margin: 0; 
	font-family: var(--bodyH2); 
	font-size: clamp(80px, 15vw, 180px); 
	font-weight: 400; 
	line-height: 0.9; 
	letter-spacing: 0.05em; 
	white-space: nowrap; 
}
.footerNav { 
	display: flex; 
	justify-content: center; 
	gap: clamp(20px, 4vw, 64px); 
	margin-top: clamp(38px, 5vw, 64px); 
}
.footerMeta { 
	margin: clamp(64px, 8vw, 110px) auto 0; 
	border-top: 1px solid var(--line);
	padding: 10px 24px; 
	text-align: center; 
	font-size: 11px; 
	text-transform: uppercase; 
	letter-spacing: .08em; 
}

/*About page*/
.contactButton{
	display: inline-block;
    margin-top: 40px;
    background-color: #A3B18A; /* Warm pale yellow tint */
    color: #F5EDE3;
    padding: 16px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.contactButton:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background-color: #D4A373;
}
.aboutTxtDiv{
	margin-top: 96px;
}
.aboutTxtDiv p{
	font-size: 32px;
}

/*Products page*/
/*Products page hero picture*/
.productsHeroTxtImgSections{
	position: relative;        /* 为内部绝对定位的子元素提供参照 */
    min-height: 60vh;          /* 至少占视口高度的 60%，你可以调大调小 */
    display: flex;             /* 弹性布局，方便内容居中 */
    align-items: center;       /* 垂直居中（上下居中） */
    justify-content: center;   /* 水平居中（左右居中） */
    overflow: hidden;          /* 防止背景图溢出圆角或边界 */
    margin: 30px 0 150px;       /* 与下方内容的间距 */
}
.productsHeroImgDiv{
	position: absolute;   /* position: absolute + inset: 0 → 铺满父元素的全部区域 */
    inset: 0;             /* 等同于 top:0; right:0; bottom:0; left:0; */
    z-index: 1;
}
.productsHeroImgDiv img{
	display: block;       /*消除图片底部的空隙*/
    width: 100%;
    height: 100%;
    object-fit: cover;    /* 图片会铺满容器，可能会裁切边缘，但不会变形 */
}
.productsHeroOverlay{
	position: absolute;
    inset: 0;             /*让背景图容器铺满父元素的上下左右*/
    background-color: rgba(245, 237, 227, 0.7);  /* 使用 --paper 颜色，60% 不透明度 */
    z-index: 2;                   /* 在图片上层 */
}
/*Products page hero txt*/
.productsHeroTxtDiv{
	position: relative;           /* 让 z-index 生效 */
    z-index: 3;                   /* 在叠加层之上 */
    text-align: center;           /* 文字左右居中 */
    padding: 40px 20px;           /* 上下左右内边距，防止文字贴边 */
    
    /* .shell 已经提供了 width 和 margin-inline: auto，这里不再重复 */
}
.productsHeroTxtDiv h2{
	/*margin-bottom: 320px;           标题下方间距 */
	margin: 0 auto;               /*与<p>居中对齐*/
	max-width: 650px;
    font-family: var(--bodyH2);   /*全局 h2 也有 */
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
}
.productsHeroTxtDiv p{
    font-size: clamp(18px, 2.3vw, 32px);
    max-width: 100%;
    margin: 0 auto;          /* 水平居中（因为父级是 text-align:center） */
    line-height: 1.6;
    opacity: 0.85;           /* 稍微柔和一点 */
    color: var(--ink);
}
/*Products page cards*/
.productsGridSections{
	margin: 0 auto 120px auto;
    display: grid;
    grid-template-columns: repeat(3, 400px);  /*固定每列 400px，不再伸缩 */
    gap: 40px;
	overflow-x: auto; /*水平溢出时显示滚动条*/
	padding: 8px 4px 20px 4px; /*给滚动条留空间，防止被裁切 */
	scroll-snap-type: x mandatory; /*滚动时自动吸附到卡片*/
	-webkit-overflow-scrolling: touch; /*iOS 平滑滚动*/
	justify-content: center; /*当容器够宽时，内容居中*/
}
.productCardA{
	scroll-snap-align: start; /*滚动时卡片对齐到开始位置*/
	text-decoration: none; /*无下划线*/
    color: inherit;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 12px; 
	padding:20px;
	box-shadow:0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
	width: 400px; /*卡片宽度固定，与 grid 列宽一致*//*min-width: 0; 防止溢出*/
}
.productCardA:hover{
	transform: translateY(-8px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.12);  /* 阴影变大变深，强化悬浮感 */
    background: #fcfaf8; /* 悬停时背景轻微变化，增加互动反馈 */
}
.productImageDiv{
	width: 100%;
	height: 380px;
    background-color: #eee9df;
    overflow: hidden;
    margin-bottom: 20px;
	border-radius: 8px;
}
.productImageDiv img{
	width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.productInfoDiv{
	display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.productTagSpan{
	display: inline-block;
    background-color: #A3B18A; 
    color: var(--paper);
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    font-weight: 400;
}
.productName{
	font-family: var(--bodyH2);
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 500;
}
/*Contact page*/
.contactInfoSection{
	width: 85%;
    max-width: 700px;
    margin: 100px auto 120px auto;
}
.contactTitleH1{
	font-family: var(--bodyH2);
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 40px;
}
.contactInfoListDiv{
	display: flex;
    flex-direction: column;
    gap: 24px;
}
.contactItemDiv{
	display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    color: var(--ink);
    font-weight: 300;
}
.contactItemDiv span{
	font-size: 28px;
}
.contactIconDiv{
	width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    flex-shrink: 0;
}
.contactIconDiv svg{
	width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}



@media (max-width: 767px) {
	.shell { 
		width: min(calc(100% - 32px), 1320px); 
	}
    .headerDiv { 
		min-height: 76px; 
		height: auto; 
		padding-block: 12px; 
		gap: 20px; 
		padding: 0 20px; 
	}
    .headerNav { 
		gap: 12px; 
		flex-wrap: wrap; 
		justify-content: flex-end;
	}
    .headerNav a { 
		font-size: 10px; 
		letter-spacing: .08em; 
	}
    .homeHero { 
		padding-top: 32px; 
	}
    .heroTxt { 
		margin-top: 52px; 
	}
    .mainTxtImgSections { 
		padding-top: 120px; 
	}
    .productsImageDiv, .aboutImageDiv { 
		grid-template-columns: 1fr; 
		gap: 16px; 
	}
    .mainTxtDiv { 
		margin-top: 32px; 
	}
    .mainTxtDiv p { 
		font-size: 17px; 
	}
    .footerNav { 
		gap: 16px; 
	}
    .footerNav a { 
		font-size: 11px; 
		letter-spacing: .1em; 
	}
	/*products page*/
	.productsGridSections {
        grid-template-columns: 1fr;  /* 手机上变成一列 */
		overflow-x: visible;  /* 不需要滚动 */
        scroll-snap-type: none;  /* 不需要吸附 */
		padding: 0;
        gap: 24px;
    }
    .productCardA {
        width: 100%;
		scroll-snap-align: none;
    }
}
