:root {
    --bg: #ffffff;
    --title: #3E3A35;
    --nav: #2F2433;
    --quote: #6B5E4A;
    --accent: #570E52;
}
 
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff;
    color: var(--title);
}

/* ================= HERO ================= */
.hero {
    height: 100vh;
    position: relative;
    background: url("../home/bg.png") center/cover no-repeat;
    z-index: 0;
}

/* overlay */
.overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        rgba(255,255,255,0.15),
        rgba(255,255,255,0.32)
    );
}
.logo-block,
.top-right,
.photo-strip-wrapper {
    position: relative;
    z-index: 10;
}

/* ================= LOGO ================= */
.logo-block {
    position: fixed;
    top: 12px;
    left: 35px;
    z-index: 101;
    display: flex;
    gap: 14px;
    align-items: center;
     z-index: 1000;
}

.logo-img {
    height: 64px;
}

.logo-line1 {
    font-size: 18px;
    font-weight: 700;
    color:#a4864e;
    position: relative;
    top: -2px;
}

.logo-line2 {
    font-size: 16.5px;
    font-weight: 500;
}

.logo-text {  /*logo两行间距*/
    display: flex;
    flex-direction: column;
    gap: 5px;
}
/* ================= NAV ================= */
.top-right {
    position: fixed;
    top: 25px;
    right: 40px;
    display: flex;
    gap: 24px;
    z-index: 1000;
}
.top-right a {
    text-decoration: none;
    color: var(--nav);
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
}

.top-right a:hover {
    color: #A63D1E;
    transform: scale(1.08);
}
.top-right a.active {
    color: #B85C1A;
    font-weight: 700;
}

/* ================= GLASS NAV ================= */
/* ：bar不挡按钮 */
.top-glass-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1;
    pointer-events: none;
}

/* ================= CENTER ================= */
.hero-center {
    position: absolute;
    top: 38%;
    left: clamp(38%, 32vw, 45%);
    transform: translate(-50%, -50%);
    text-align: center;
     z-index: 1000;
}

.lab-title {
    font-size: 60px;
    font-weight: 700;
    letter-spacing: 6px;
}

.hero-center h1 {
    font-size: 20px;
    font-weight: 500;
}

/* ================= PHOTO STRIP (AUTO LOOP) ================= */
.photo-strip-wrapper {
    position: absolute;
    bottom: clamp(5px, 8vh, 45px); /*控制整体上下位置*/
    left: 0;
    width: 100%;
    overflow-x: scroll;/*x轴能放大*/
    overflow-y: visible;/*y轴也能放大*/
    scrollbar-width: none;
    z-index: 10;
    padding: 30px 0;/*给hover预留空间*/
}
.photo-strip-wrapper::-webkit-scrollbar {
    display: none;
}

.photo-strip {
    display: flex;
    gap: 10px;       /*图片间距*/
    width: max-content;
}

.photo-strip img,
.photo-strip video {
    width: 240px;
    height: 220px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.photo-strip img:hover,
.photo-strip video:hover {
    transform: scale(1.35);     /*放大程度*/
    z-index: 20;
    position: relative;
}

/* ================= SCROLL ================= */
.scroll-down {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.circle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--quote);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow {
    font-size: 23px;
}

/* ================= CONTENT ================= */
.content {
    max-width: 1200px;
    margin: auto;
    padding: 80px 20px;
}

.home-img {
    display: block;
    width: 100%;
    max-width: 1150px;
    height: auto;
    margin: 20px auto 50px;
    border-radius: 14px;
}

/* 图片容器 */
.img-wrapper {
    display: flex;
    justify-content: center;
}

/* ================= TEXT ================= */
section {
    margin-bottom: 60px;
}

h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: var(--title);
}

p {
    line-height: 1.8;
    color: var(--quote);
    text-align: justify;
}

/* ================= CARDS ================= */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
}

.card h3 {
    margin-bottom: 12px;
    color: var(--title);
}

.card p {
    color: var(--quote);
}
