html{
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
}
:root {
    --navy: #073b7d;
    --navy-deep: #062c62;
    --blue-text: #1e4f82;
    --paper: #fffcf6;
    --beige: #e8d4bb;
    --gold: #d6a44b;
}
html {
    transform: scale(1.25);
    transform-origin: top left;
    width: 80%;
    height: 80%;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--blue-text);
    background: var(--paper);
    font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
.wrap-container {
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 6%;
    color: #ffffff;
    background: var(--navy-deep);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.brand-badge,
.title-ornament {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: transparent;
    font-size: 0;
    border: none;
    border-radius: 0;
    background-image: url("../assets/images/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.main-nav {
    display: flex;
    gap: clamp(19px, 2.7vw, 44px);
    margin-left: auto;
    font-size: 13px;
}

.main-nav a {
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #f2c36d;
}

.menu-button {
    display: none;
    margin-left: auto;
    color: #ffffff;
    font-size: 24px;
    background: transparent;
    border: 0;
}

.hero-section {
    display: flex;
    align-items: center;
    aspect-ratio: 1619 / 945;
    min-height: 0;
    padding: 40px 12%;
    color: #ffffff;
    background-color: #053b83;
    background-image: url("../assets/images/bg/banner.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-content {
    width: 36%;
    min-width: 260px;
    text-align: left;
}

.hero-content h1 {
    margin: 0 0 15px;
    font-size: clamp(42px, 4.7vw, 70px);
    font-weight: 500;
    letter-spacing: 8px;
}

.hero-content p {
    margin: 0;
    font-size: 15px;
    letter-spacing: 2px;
}

.content-shell {
    width: min(1160px, 88%);
    margin: 0 auto;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.section-title h2 {
    position: relative;
    margin: 0;
    color: var(--blue-text);
    font-size: clamp(24px, 2.7vw, 36px);
    font-weight: 500;
    letter-spacing: 2px;
}

.section-title h2::after {
    display: block;
    width: 100%;
    height: 2px;
    margin: 7px auto 0;
    content: "";
    background: #1d4064;
}

.about-section {
    padding: 58px 0 48px;
}

.section-subtitle {
    margin: 40px 0 0px;
    color: #6581a0;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
}

.about-layout {
    display: grid;
    grid-template-columns: 0.82fr 1.55fr 0.82fr;
    gap: 26px;
    align-items: center;
}

.about-image {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;

}

.about-image img {
    width: 100%;
    height: auto;
}

.about-text {
    color: #245084;
    font-size: 13px;
    line-height: 1.85;
}

.about-text p {
    margin: 0 0 10px;
}

.patterns-section {
    padding: 46px 0 80px;
}

.pattern-group {
    margin-top: 48px;
}

.pattern-group h3 {
    margin: 0 0 16px;
    color: #53779c;
    font-size: 15px;
    font-weight: 400;
    text-align: center;
}

.pattern-carousel {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    gap: 12px;
}

.carousel-arrow {
    padding: 0;
    color: #3f75a8;
    font-size: 37px;
    line-height: 1;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.pattern-viewport {
    overflow: hidden;
    padding: 30px 0;
}

.pattern-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: transform 0.35s ease;
}

.pattern-card {
    flex: 0 0 185px;
    /* height: 250px; */
    aspect-ratio: 425 / 575; /* 强制比例575:342 */
    border-radius: 10px;
    box-shadow: 0 15px 10px 0px rgba(38, 52, 50, 0.58);
    overflow: hidden;
    transition: transform 0.28s ease;
    z-index: 1;
    margin-left: -55px;
    transform-origin: center center;
}
.pattern-card:first-child {
    margin-left: 0;

}

.pattern-card.level-far2 {
    transform:  scale(0.70);
   
}
.pattern-card.level-hidden{
    opacity:0;
    pointer-events:none;
    transform:scale(0.55);
}

.pattern-card.level-far1 {
    transform:  scale(0.84);
  
}


.pattern-card.level-near {
    transform:  scale(0.96);
  
}


.pattern-card.level-active {
    transform: translateY(0) scale(1.02);
    z-index: 5;
    flex-basis: 200px;
    /* height: 300px; */
}
.pattern-card:hover{
    transform: scale(1.06) translateY(0) !important;
    z-index: 10 !important;
}
.pattern-card img{
    width: 100%;
    height: 100%;
    transform: scale(1.03)
}

.taboo-section {
    padding-bottom: 68px;
}

.taboo-title-shell {
    padding: 54px 0 35px;
}

.taboo-copy {
    padding: 37px 9%;
    color: #ffffff;
    background: #174b91;
}

.taboo-copy p {
    width: min(1110px, 100%);
    margin: 0 auto;
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0.4px;
}

.totem-row {
    display: flex;
    justify-content: center;
    gap: clamp(45px, 12vw, 190px);
    padding: 47px 20px 0;
}

.totem-row img {
    width: clamp(130px, 16vw, 235px);
    height: clamp(130px, 16vw, 235px);
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 5px 4px rgba(81, 57, 27, 0.36));
}

.artisans-section {
    padding: 58px 0 86px;
}

.artisan-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 116px;
    max-width: 1010px;
    margin: 48px auto 0;
}

.artisan-card {
    overflow: hidden;
    background: #174b91;
    border-radius: 6px;
    box-shadow: 0 6px 12px rgba(31, 43, 58, 0.24);
    transition: transform .25s ease;
}
.artisan-card:hover{
    transform: translateY(-6px);
}

.artisan-card img {
    width: 100%;
    aspect-ratio: 1.4;
    object-fit: cover;
}

.artisan-card div {
    min-height: 126px;
    padding: 14px 17px 17px;
    color: #ffffff;
}

.artisan-card h3 {
    margin: 0 0 7px;
    font-size: 18px;
    font-weight: 500;
}

.artisan-card p {
    margin: 0;
    color: #dbe7f6;
    font-size: 12px;
    line-height: 1.7;
}

.craft-section {
    padding: 54px 0 65px;
}

.craft-title-shell {
    padding-bottom: 38px;
}

.craft-banner {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.craft-cards {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 26px;
    width: min(720px, 86%);
    margin: -70px auto 0;
}
.craft-card {
    display: flex;
    flex: 0 1 300px;
    flex-direction: column;
    color: #ffffff;
    box-shadow: 0 6px 11px rgba(46, 39, 26, 0.27);
    align-items: center;
    padding: 64px 4px 0;
}
.card-up{
    transform: translateY(-48px);
}
.card-down{
    transform: translateY(0);
}
.craft-card p {
    margin: 0;
    padding: 60px 0;
    font-size: 32px;
    line-height: 1.65;
    letter-spacing: 3px;
    writing-mode: vertical-rl;
    flex-grow:1;
    display:flex;
    align-items:center;
    justify-content:center;
}

.craft-card img {
    width: 142px;
    padding: 0;
    object-fit: contain;
    margin-top: auto;
    margin-bottom: -20px;
    display: block;
    transform-origin: center bottom;
}

.craft-card-blue img {
    transform: scale(1.15) translateX(0px) translateY(-17px);
}
.craft-card-gold img {
    transform: scale(1.15) translateX(0px) translateY(-17px);
}
.craft-card-red img {
    transform: scale(1.15) translateX(0px) translateY(-17px);
}
.craft-card-brown img {
    transform: scale(1.15) translateX(0px) translateY(-17px);
}

.craft-card-blue {
    background: #124684;
}
.craft-card-gold {
    background: #d29819;
}
.craft-card-red {
    background: #811419;
}
.craft-card-brown {
    background: #b47b3a;
}

.site-footer {
    display: grid;
    /* 调整第三列宽度，拉开【快速链接】【订阅通讯】间距 */
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 36px;
    padding: 45px 8%;
    color: #ffffff;
    background: #154a90;
}
.footer-col h3 {
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: 500;
}

.footer-col p,
.footer-col a {
    display: block;
    margin: 6px 0;
    color: #d8e5f6;
    font-size: 14px;
    line-height: 1.65;
}
.subscribe-box{
    display:flex;
    margin-top:10px;
}
.subscribe-box input{
    flex:1;
    height:36px;
    border:none;
    padding:0 10px;
    border-radius:4px 0 0 4px;
    outline:none;
}
.send-btn{
    width:44px;
    background:#775c3b;
    color:#fff;
    border:none;
    cursor:pointer;
    border-radius:0 4px 4px 0;
}

.contact-row {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 10px;
}
.contact-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.bg-about {
    width:100%;
    height: 100%;
    background-image: url("../assets/images/bg/bg_about.jpg");
    background-position: center ;
    background-size: cover;
}
.bg-patterns {
    width:100%;
    height: 100%;
    background-image: url("../assets/images/bg/bg_pattern.jpg");
    background-position: center ;
    background-size: contain;
}
.bg-totem {
    width:100%;
    height: 100%;
    background-image: url("../assets/images/bg/bg_totem.jpg");
    background-position: center ;
    background-size: contain;
}
.bg-artisan {
    width:100%;
    height: 100%;
    background-image: url("../assets/images/bg/bg_artisan.jpg");
    background-position: center ;
    background-size: contain;
}
.bg-craft {
    width:100%;
    height: 100%;
    background-image: url("../assets/images/bg/bg_craft.jpg");
    background-position: center ;
    background-size: contain;
}


@media (max-width:760px){
    html{
        transform:scale(0.42);
        transform-origin:top left;
        width:238%;
        height:238%;
    }
    body{
        min-width:1440px;
        overflow-x:auto;
    }

    .menu-button{display:none !important;}
   
    .main-nav{
        position:static; 
        display:flex !important;
        flex-direction:row !important; 
        padding:0;
        background:transparent;
    }
    .main-nav.is-open{display:flex;}
}
