
/* ==========================================
   KUNYUAN ORIENTAL DESIGN V4.0
   THE FAN OF LIFE
   ========================================== */

:root {

    --oriental-paper: #f7f3e8;
    --oriental-gold: #bca477;
    --oriental-bamboo: #a8895d;
    --oriental-silk: #9b202b;
    --oriental-ink: #29251e;

}

/* 隐藏旧矩形卡片，保留原有数据结构 */

#track.oriental-mode > .card {
    display: none !important;
}

#track.oriental-mode {

    perspective: none;

    overflow: hidden;

    touch-action: none;
    user-select: none;

    min-width: 0;
    min-height: 0;

}

.oriental-fan-svg {

    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    overflow: hidden;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "PingFang SC",
        "Helvetica Neue",
        "Microsoft YaHei",
        sans-serif;

}

.oriental-title {

    fill: var(--oriental-ink);

    font-weight: 500;

    letter-spacing: -.025em;

    pointer-events: none;

}

.oriental-subtitle {

    fill: #746755;

    font-weight: 400;

    letter-spacing: .035em;

    pointer-events: none;

}

.oriental-leaf {

    -webkit-tap-highlight-color: transparent;

}

.oriental-leaf:focus-visible {

    outline: none;

    filter: drop-shadow(
        0 0 3px #ae8d53
    );

}

/* 横屏：左侧企业品牌，右侧东方折扇 */

@media (orientation:landscape)
       and (min-width:701px) {

    #track.oriental-mode {

        left: 38.2%;
        right: 0;

        top: 0;
        bottom: 0;

    }

    main nav {

        top: auto;
        bottom: 0;
        right: 6.18vw;

        display: flex;
        align-items: center;

    }

}

/* 竖屏：扩大折扇展示空间 */

@media (orientation:portrait),
       (max-width:700px) {

    main {

        grid-template-rows:
            minmax(min-content,28fr)
            minmax(0,72fr);

    }

    #track.oriental-mode {

        width: 100%;
        height: 100%;

        min-height: 0;

    }

    main nav {

        align-self: end;
        justify-self: start;

        display: flex;
        align-items: center;

        margin: 0 0 5px 6.18vw;

        gap: 10px;

    }

}

/* 短屏幕优先保证内容可读 */

@media (orientation:portrait)
       and (max-height:650px) {

    main {

        grid-template-rows:
            auto
            minmax(0,1fr);

    }

}

/* END KUNYUAN ORIENTAL DESIGN */

