﻿/* ============================================================
   全局样式重置
   ============================================================
   作用:清除浏览器默认样式,保证各浏览器一致
   可填值:margin / padding / box-sizing
   作用说明:这里一般不需要改,除非你想统一所有元素的默认间距
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
   全局字体与背景
   ============================================================
   作用:设置页面的整体字体、背景色和文字颜色
   可填值:font-family、background、color
   作用说明:font-family 决定整体字体风格,background 决定页面底色,color 决定默认文字颜色
   ============================================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;   /* ★ 全白背景,可替换为你需要的颜色 */
    color: #333333;        /* ★ 默认文字颜色,可替换 */
    overflow-x: hidden;    /* 防止横向滚动条 */
}

/* ============================================================
   顶部导航栏
   ============================================================ */
/* ============================================================
   区域一:欢迎页(Hero Section)
   ============================================================
   作用:控制第一屏欢迎区域的整体高度、排版和背景展示
   可填值:height、padding、justify-content、align-items
   作用说明:这里决定整个欢迎页在屏幕中的占位、居中方式、上下留白
   ============================================================ */
.hero {
    height: 100vh;                         /* 可填值:100vh 表示占满整屏,也可以改成 90vh / 80vh */
    display: flex;                         /* 作用:让内部内容按列排布 */
    flex-direction: column;               /* 作用:上下排列内容 */
    justify-content: center;              /* 可填值:center / flex-start / flex-end;作用:控制垂直居中 */
    align-items: center;                  /* 可填值:center / flex-start / flex-end;作用:控制水平居中 */
    text-align: center;                   /* 作用:让文字居中 */
    padding: 0 20px;                      /* 可填值:上下左右留白;作用:避免内容贴边 */
    position: relative;                   /* 作用:给内部绝对定位元素提供参考点 */
    overflow: hidden;                     /* 作用:隐藏溢出的内容 */
}

.hero-bg {
    position: absolute;                   /* 作用:把背景图固定在欢迎区底层 */
    inset: 0;                              /* 可填值:0 表示铺满整个区域,也可改成 10px / 20px */
    z-index: 0;                            /* 作用:设置层级,确保背景在最底层 */
}

.hero-bg img {
    width: 100%;                           /* 可填值:100% / 120% / 90%;作用:控制背景图宽度 */
    height: 100%;                          /* 作用:让背景图铺满整个欢迎区域 */
    object-fit: cover;                     /* 可填值:cover / contain / fill;作用:控制图片如何适配 */
    display: block;                        /* 作用:去掉图片默认底部空白 */
}

.hero-overlay {
    position: relative;                   /* 作用:作为 Logo 和文字内容层的定位容器 */
    z-index: 1;                            /* 作用:确保内容层在背景图上方 */
    height: 100%;
    padding-top: 60px;                    /* 作用:内容不被顶部导航栏遮挡 */
    display: flex;                         /* 作用:让 Logo、标题、说明文字纵向排布 */
    flex-direction: column;               /* 作用:上下排列 */
    align-items: center;                  /* 可填值:center / flex-start / flex-end;作用:让内容整体居中 */
    justify-content: center;              /* 作用:让内容垂直居中 */
    width: min(100%, 760px);               /* 可填值:760px / 900px;作用:控制内容区域最大宽度 */
    color: #ffffff;                        /* 可填值:颜色值;作用:设置文字颜色 */
   text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); /* 可填值:阴影参数;作用:提高文字可读性 */
}


/*.hero-overlay::before {
/*    content: "";                          /* 作用:生成一个不显示内容的遮罩层 */
/*    position: absolute;                   /* 作用:让遮罩层叠在内容后面 */
 /*   inset: -20px;                          /* 可填值:-20px / 0 / 10px;作用:控制遮罩层向外扩展的距离 */
 /*   background: rgba(0, 0, 0, 0.16);       /* 可填值:颜色和透明度;作用:给内容区域加浅遮罩 */
 /*   border-radius: 24px;                   /* 可填值:0 / 12px / 24px;作用:控制遮罩边角圆角 */
 /*   z-index: -1;                           /* 作用:让它位于内容层后方 */
/*} 


/* ★ 可替换:欢迎页主标题样式 */
.hero h1 {
    font-size: clamp(2rem, 6vw, 4rem);    /* 可填值:2rem / 3rem / 4rem;作用:控制主标题大小 */
    margin-bottom: 16px;                  /* 可填值:0 / 10px / 20px;作用:控制标题和下面内容的距离 */
    color: #ffffff;                       /* 可填值:颜色值;作用:设置主标题颜色 */
    font-weight: 700;                     /* 可填值:400 / 600 / 700;作用:控制字重 */
}

/* ★ 可替换:欢迎页副标题样式 */
.hero p {
    font-size: clamp(1rem, 3vw, 1.5rem);  /* 可填值:1rem / 1.2rem / 1.5rem;作用:控制副标题大小 */
    color: rgba(255, 255, 255, 0.9);      /* 可填值:颜色值;作用:设置副标题颜色 */
    margin-bottom: 40px;                  /* 可填值:20px / 40px / 60px;作用:控制副标题和下方提示的间距 */
}

/* ============================================================
   Logo 组合 — 宽屏基准
   结构:
     logo-group (relative, 居中容器)
       └─ logo-icon-wrapper (absolute, 包含 logo-icon + logo-text)
       └─ logo-text2 (absolute, 放在图标容器下方)
   各元素自己管大小和位置，互不依赖
   ============================================================ */

.logo-group {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;                    /* 铺满欢迎页宽度 */
    height: 100%;                   /* 铺满欢迎页高度，与欢迎页同形状 */
}

/* ★ 子元素：全部相对于 logo-group 的 %，统一缩放速度 */
.logo-icon-wrapper {
    position: absolute;
    left: 40%;
    top: 45%;                            /* ★ 可调：垂直位置，值越大越靠下 */
    width: 70%;                          /* ★ 可调：logo-group 宽度的 65% */
    transform: translate(-50%, -50%);
}

.logo-icon {
    width: 50%;
    height: auto;
    display: block;
}

.logo-text {
    position: absolute;
    left: 14%;
    right: 20%;
    top: 30%;
    bottom: 0;
    width: 25%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.logo-text2 {
    position: absolute;
    left: 70%;                           /* ★ 可调：水平位置，50% = 居中 */
    top: 40%;                           /* ★ 可调：logo-group 高度的 110%（紧贴下方） */
    transform: translate(-50%, 0);
    width: 50%;                          /* ★ 可调：logo-group 宽度的 55% */
}

/* studio 副标题：横屏时在 六边形和 Chimney Pot 下方中间，竖屏时在 Chimney Pot 下面；字号调大，随视口缩放 */
.logo-studio {
    position: absolute;
    left: 55%;                          /* 六边形(40%)和Chimney Pot(70%)的中间 */
    top: 60%;                           /* 两者下方 */
    transform: translate(-50%, 0);
    font-size: 5vmin;                   /* ★ 字号调大，随视口缩放 */
    letter-spacing: 3vmin;              /* ★ 字母间距随视口缩放 */
    color: #ffffff;
    text-transform: uppercase;
    translate: no;
    white-space: nowrap;
}

/* 竖屏/窄屏模式：studio 在 Chimney Pot 下面（复用项目已有的 max-aspect-ratio: 1/1） */
@media (max-aspect-ratio: 1/1) {
    .logo-studio {
        left: 50%;                      /* 与 Chimney Pot 水平对齐 */
        top: 80%;                       /* Chimney Pot 下方 */
        font-size: 4vmin;               /* 字号随视口缩放 */
        letter-spacing: 2.5vmin;        /* 字母间距随视口缩放 */
    }
}

.logo-part {
    height: auto;
    display: block;
    max-width: 100%;
}

/* ============================================================
   向下滚动提示(箭头动画)
   ============================================================
   ★ 可替换:箭头颜色和位置
   ============================================================ */
.scroll-hint {
    position: absolute;
    bottom: -600%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 300px;                /* ★ 往下推整个内容（替代 margin-top） */
    color: rgba(255, 255, 255, 0.9);     /* ★ 提示文字颜色,可替换 */
    font-size: 0.9rem;
}

/* 双线箭头 - 用 ::before 和 ::after 画两个叠放的箭头 */
.scroll-hint .arrow {
    width: 28px;
    height: 60px;                          /* 两条线的总高度 + 间距 */
    position: relative;
    animation: bounceArrow 2s infinite;    /* 动画加在容器上，整体上下移 */
}

/* 上面那条线 */
.scroll-hint .arrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border-left: 2px solid #d1d1d1;        /* ★ 箭头颜色,可替换 */
    border-bottom: 2px solid #d1d1d1;      /* ★ 箭头颜色,可替换 */
    transform: rotate(-45deg);             /* 旋转固定在这里，动画只移动位置 */
}

/* 下面那条线 */
.scroll-hint .arrow::after {
    content: '';
    position: absolute;
    left: 0;
    top: 22px;                             /* 两线间距 */
    width: 16px;
    height: 16px;
    border-left: 2px solid #d1d1d1;        /* ★ 箭头颜色,可替换 */
    border-bottom: 2px solid #d1d1d1;      /* ★ 箭头颜色,可替换 */
    transform: rotate(-45deg);             /* 旋转固定在这里，动画只移动位置 */
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }   /* 只有 Y 轴移动，不带旋转 */
}



/* ============================================================
   区域二:滚动翻页区域(Gallery Section)
   ============================================================
   外层 wrapper:提供滚动空间
   ★ 可替换:height 控制有多少屏的滚动空间
     - 如果 5 张图:300vh  → 每张图占 60vh 的滚动距离
     - 如果 8 张图:480vh  → 按比例增加
   ============================================================ */
.gallery-wrapper {
    height: 300vh;                        /* ★ 滚动空间,图片数 × 60vh 左右 */
    position: relative;
}

/* 内层 sticky:固定在视口,制造"定格"效果 */
.gallery-sticky {
    position: sticky;
    top: 0;
    height: 100vh;                        /* 固定占满一屏 */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    /* ★ 可替换:画廊区域背景色 */
    background: #ffffff;                   /* 当前全白,可改 */
}

/* 画廊内容容器 */
.gallery-content {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    position: relative;
}

/* ★ 可替换:画廊标题文字样式 */
.gallery-title {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #222222;                        /* ★ 标题颜色,可替换 */
    font-weight: 600;
    text-align: center;
    width: 100%;
}

/* ============================================================
   图片舞台 - 全屏铺满,无圆角
   ============================================================ */
.image-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    /* ★ 背景随页切换：默认浅色（白），深色页加 .theme-dark */
    background: var(--stage-bg, #ffffff);
    color: var(--stage-fg, #2b2418);
    transition: background 0.6s ease, color 0.6s ease;
}

/* 深色页：黑底 + 浅色前景 */
.image-stage.theme-dark {
    --stage-bg: #000000;
    --stage-fg: #ffffff;
}

/* 浅色页：白底 + 深色前景 */
.image-stage.theme-light {
    --stage-bg: #ffffff;
    --stage-fg: #2b2418;
}

.image-container {
    width: 100%;
    height: 100%;
}

/* ★ 原来的图片替换为介绍语卡片
   —— 淡入淡出特效（opacity/transform transition）完全保留不变 */
.intro-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12vh 10vw 16vh;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.intro-card-inner {
    max-width: 62rem;
    width: 100%;
    text-align: left;                /* 居中改左对齐，配合左上角品牌区 */
}

/* ---- 第一页：左上角偏下的品牌区 ---- */
.intro-brand {
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 1.2vh, 1rem);
    margin-bottom: clamp(1.2rem, 3vh, 2.4rem);
}

.intro-brand-hex {
    height: clamp(4.2rem, 10vw, 7.2rem);  /* ★ 放大：随视口缩放 */
    width: auto;
    display: block;
}

/* ★ 定位基准：容器尺寸由六边形决定 */
.intro-brand-mark {
    position: relative;
    display: block;
    line-height: 0;
}

.intro-brand-hex {
    height: clamp(4.2rem, 10vw, 7.2rem);  /* ★ 放大：随视口缩放 */
    width: auto;
    display: block;
}

/* ★ cpsl.svg 绝对居中于六边形 —— 左偏移用百分比，
   与六边形同比例缩放，任何分辨率下都稳定在中部 */
.intro-brand-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: clamp(1.9rem, 4.6vw, 3.2rem); /* ★ 同步放大 */
    width: auto;
    display: block;
}

/* ---- 主题适配：SVG 与按钮 ----
   黑底（theme-dark）时：深色 SVG 反白、按钮改描边浅色
   白底（theme-light）时：默认深色 + 实底按钮 */
.image-stage.theme-dark .intro-brand-hex,
.image-stage.theme-dark .intro-brand-text {
    filter: brightness(0) invert(1);
}

.image-stage.theme-light .intro-brand-hex,
.image-stage.theme-light .intro-brand-text {
    filter: none;
}

.image-stage.theme-dark .intro-cta {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
}
.image-stage.theme-dark .intro-cta:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.85);
}

/* ---- 三个关键词 ---- */
.intro-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.8rem, 2.4vw, 2rem);
    margin-bottom: clamp(1.2rem, 3vh, 2.2rem);
}

.intro-keyword {
    font-size: clamp(1.4rem, 3.6vw, 2.6rem);
    font-weight: 600;
    letter-spacing: 0.28em;              /* 关键词拉开字距 */
    color: var(--stage-fg, #2b2418);     /* 跟随背景主题（黑底白字/白底黑字） */
    padding: 0.1em 0.15em;
    border-bottom: 2px solid currentColor;   /* 下划线跟随文字色 */
    opacity: 1;
    transition: color 0.6s ease, border-color 0.6s ease;
}

/* ---- 待填桩：后续把省略号换成实际文字即可 ---- */
.intro-notes {
    font-size: clamp(1rem, 2.2vw, 1.5rem);
    line-height: 2.1;
    color: var(--stage-fg, #2b2418);
    opacity: 0.6;                        /* 用透明度区分层次，颜色仍跟随主题 */
    transition: color 0.6s ease, opacity 0.6s ease;
}

.intro-notes p {
    margin: 0;
}


/* ★ 跳转按钮：opacity 淡入出现，带轻微上移动画 */
.intro-cta {
    display: inline-block;
    margin-top: clamp(1.6rem, 4vh, 2.6rem);
    padding: 0.85em 2.4em;
    font-family: inherit;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #ffffff;
    text-decoration: none;
    background: #8a5a2b;
    border: 1px solid #6f461f;
    border-radius: 0;
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease, background 0.2s ease, border-color 0.2s ease;
}

.intro-cta:hover {
    background: #6f461f;
    border-color: #573617;
}

/* JS 切换内容后加上此类，触发淡入 */
.intro-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-copy {
    text-align: left;
}

/* 小标语（原图注上方的引导词） */
.intro-card-kicker {
    font-size: clamp(0.8rem, 1.6vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--stage-fg, #2b2418);
    opacity: 0.65;
    margin-bottom: 2rem;
    transition: color 0.6s ease, opacity 0.6s ease;
}

/* 正文介绍语 */
.intro-card-body {
    font-size: clamp(1.25rem, 3.2vw, 2.4rem);
    line-height: 1.75;
    font-weight: 500;
    color: var(--stage-fg, #2b2418);
    letter-spacing: 0.02em;
    transition: color 0.6s ease;
}

/* 深色文字下保持纸纹可读 */
.intro-card-body::selection,
.intro-card-kicker::selection {
    background: rgba(138, 90, 43, 0.2);
}

/* 小屏收紧留白 */
@media (max-width: 768px) {
    .intro-card {
        padding: 14vh 7vw 18vh;
    }
    .intro-card-body {
        line-height: 1.65;
    }
}

/* ============================================================
   图片标题
   ============================================================ */
.image-caption {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #222222;
    font-weight: 500;
    text-align: center;
    padding: 10px 30px;
}

/* ============================================================
   进度条
   ============================================================ */
.progress-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.progress-label {
    font-size: 0.9rem;
    color: #666666;
}

.progress-track {
    width: 240px;
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #333333;
    width: 0%;
    transition: width 0.05s linear;
    border-radius: 4px;
}

.image-counter {
    font-size: 0.9rem;
    color: #333333;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* ============================================================
   画廊内滚动提示
   ============================================================ */
.gallery-scroll-hint {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #999999;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.gallery-scroll-hint .arrow-small {
    width: 20px;
    height: 20px;
    border-left: 1.5px solid #999999;
    border-bottom: 1.5px solid #999999;
    transform: rotate(-45deg);
}

/* ============================================================
   响应式 - 窄屏
   ============================================================ */
@media (max-aspect-ratio: 1/1) {
    .progress-track {
        width: 160px;
    }
    .image-caption {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        bottom: 120px;
    }
    .gallery-scroll-hint {
        bottom: 160px;
    }
}

/* ============================================================
   区域三:结束页(Footer Section)
   ============================================================
   ★ 可替换:背景色、文字内容、布局
   ============================================================ */
.footer {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;                   /* ★ 结束页背景色,可替换 */
}

/* 结束页内容 */
.footer-content {
    text-align: center;
}

/* ★ 可替换:结束页标题 */
.footer-content h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: #222222;                        /* ★ 标题颜色,可替换 */
    margin-bottom: 20px;
}

/* ★ 可替换:结束页描述文字 */
.footer-content p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: #666666;                        /* ★ 描述颜色,可替换 */
}

/* ============================================================
   响应式适配 - 超窄屏
   ============================================================
   条件: max-aspect-ratio: 9/21
     → 宽÷高 ≤ 0.43 时触发（超细长手机，如 9:20 / 9:21）
   ============================================================ */
@media (max-aspect-ratio: 9/21) {
    /* ---- Logo（超窄屏） ---- */
    /* logo-group 已铺满欢迎页，无需改大小 */
    .logo-icon-wrapper {
        top: -400% !important;               /* ★ 超窄屏：图标上移，给下方文字留空间 */
        left: 102% !important;             /* ★ 超窄屏：水平居中 */
        width: 210% !important;           /* ★ 超窄屏：相对整页更窄 */
    }

    .logo-text2 {
        top: 10% !important;              /* ★ 超窄屏：紧贴图标下方 */
        left: 49% !important;             /* ★ 超窄屏：水平居中 */
        width: 90% !important;           /* ★ 超窄屏：文字相对更窄 */
    }
}

/* ============================================================
   响应式适配 - 手机端
   ============================================================
   条件: max-aspect-ratio: 1/1
     → 宽÷高 ≤ 1.0 时触发（竖屏 / 正方形）
     → 横向（宽 > 高）→ 不触发，保持基准样式
   ============================================================ */
@media (max-aspect-ratio: 1/1) {
    /* ============================================================
       ★ 窄屏 / 手机端覆盖规则
       ============================================================
       条件: max-aspect-ratio: 1/1
         → 宽 ÷ 高 ≤ 1.0 时触发（宽不超过高 = 竖屏 / 正方形）
         → 横向屏幕（宽 > 高）→ 不触发，保持基准样式（宽屏）
       ============================================================ */

    /* ---- Logo（窄屏，排版与宽屏不同） ---- */
    .logo-icon-wrapper {
        top: 40%;                          /* ★ 竖屏：图标上移，给下方文字留空间 */
        left: 72%;                            /* ★ 竖屏：水平居中 */
        width: 93%;                        /* ★ 竖屏：相对整页更窄 */
    }
    .logo-text2 {
        top: 60%;                         /* ★ 竖屏：紧贴图标下方 */
        left: 50%;                            /* ★ 竖屏：水平居中 */
        width: 70%;                        /* ★ 竖屏：文字相对更窄 */
    }

    /* ---- 欢迎页遮罩（窄屏） ---- */
    .hero-overlay::before {
        inset: -12px;
        border-radius: 18px;
    }
}


