/* =========================================================
   ASTRANEX WEBSITE
   Version: 0.1

   设计方向：
   白色极简 / 现代主义 / 几何 / 哲学感
========================================================= */

/* ==================== 本地品牌字体 ==================== */

/* 注册字体 */
@font-face {
    font-family: "LanternMingA";
    src: url("../font/LanternMingA.ttf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "CJgaodeguomh";
    src: url("../font/CJgaodeguomh.ttf") format("opentype");
    font-weight: 550;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "blanka";
    src: url("../font/blanka-regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}





/* ==================== 全局变量 ==================== */

:root {

    /* 颜色 */
    --color-background: #f7f7f5;
    --color-white: #ffffff;

    --color-text: #111111;
    --color-secondary: #666666;
    --color-muted: #999999;

    --color-border: #dddddd;

    --color-accent: #b84650;


    /* 字体 */
    --font-display: "Space Grotesk", sans-serif;

    --font-cn: "Noto Sans SC", "Noto Sans TC", sans-serif;

    --font-mono: "IBM Plex Mono", monospace;


    /* 页面尺寸 */
    --page-padding: 5.2vw;

    --header-height: 100px;

    /* 中文字号独立调整；断点只选择配置，不重复覆盖 font-size */
    --brand-cn-size-desktop: 24px;
    --brand-cn-size-tablet: 20px;
    --brand-cn-size-mobile: 12px;

    --max-width: 1800px;


    /* 动画 */
    --transition-fast: 0.2s ease;

    --transition-normal: 0.35s ease;

}


/* ==================== 基础重置 ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}


body {

    background: var(--color-background);

    color: var(--color-text);

    font-family: var(--font-display), var(--font-cn);

    font-size: 14px;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

}


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


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


button,
select {
    font: inherit;
}


::selection {
    background: #dddddd;
    color: #111111;
}


/* 屏幕阅读器专用文本 */
.sr-only {

    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;

}


/* ==================== 顶部导航 ==================== */

.site-header {

    width: 100%;

    padding: 0 var(--page-padding);

    background: var(--color-background);

}


.header-inner {

    max-width: var(--max-width);

    height: var(--header-height);

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    border-bottom: 1px solid var(--color-border);

}


/* 品牌标识 */

.brand {

    display: flex;

    align-items: center;

    gap: 22px;

    flex-shrink: 0;

}


.brand-logo {

    width: 54px;

    height: 58px;

    object-fit: contain;
    /* 不允许图片被 Flexbox 压缩 */
    flex-shrink: 0;

}


.brand-text {
    display: flex;
    flex-direction: column;
    --brand-word-width: 190px;
    --brand-cn-size: var(--brand-cn-size-desktop);
    width: var(--brand-word-width);
    align-items: flex-start;
    gap: 1px;
    transform: translateY(-6px);
    /* 不允许整个容器被压缩 */
    flex-shrink: 0;

}


/* ASTRANEX 英文 SVG 字标：尺寸独立于中文字号 */

.brand-en-logo {
    display: block;
    width: var(--brand-word-width);
    height: auto;
    max-width: none;
    flex-shrink: 0;
}


.brand-cn {

    font-family: "CJgaodeguomh", sans-serif;

    font-size: var(--brand-cn-size);

    font-weight: 550;

    /* 与英文 SVG 共用宽度，三个字自动分布到左右两端 */
    display: flex;
    justify-content: space-between;
    width: var(--brand-word-width);
    letter-spacing: 0;
    white-space: nowrap;

}


/* 导航链接 */

.main-nav {

    display: flex;

    align-items: center;

    gap: 55px;

    margin-left: auto;

}


.main-nav a {

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 0.25em;

    transition: opacity var(--transition-fast);

}


.main-nav a:hover {
    opacity: 0.45;
}


/* 语言选择 */

.language-switcher {
    margin-left: 25px;
}


.language-switcher select {

    background: transparent;

    border: none;

    border-bottom: 1px solid var(--color-border);

    color: var(--color-text);

    padding: 8px 4px;

    font-size: 12px;

    cursor: pointer;

    outline-offset: 4px;

}


/* ==================== HERO ==================== */

.hero {

    min-height: 650px;

    padding: 0 var(--page-padding);

    overflow: hidden;

}


.hero-inner {

    position: relative;

    max-width: var(--max-width);

    min-height: 650px;

    margin: auto;

    display: grid;

    grid-template-columns: 30% 48% 22%;

    align-items: stretch;

}


/* ==================== 左侧 ==================== */

.hero-left {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding-top: 45px;

    padding-bottom: 55px;

}


.section-index {

    display: flex;

    align-items: center;

    gap: 15px;

    width: 130px;

    font-family: var(--font-mono);

    font-size: 12px;

}


.index-line {

    flex: 1;

    height: 1px;

    background: #aaaaaa;

}


.eyebrow {

    max-width: 170px;

    margin-top: 15px;

    font-size: 11px;

    letter-spacing: 0.22em;

    line-height: 1.8;

}


.hero-title {

    margin-top: auto;

    font-family: var(--font-display);

    font-size: clamp(52px, 5.1vw, 90px);

    font-weight: 500;

    line-height: 0.99;

    letter-spacing: -0.065em;

    white-space: nowrap;

}


.accent-line {

    width: 42px;

    height: 2px;

    background: var(--color-accent);

    margin-top: 35px;

    margin-bottom: 20px;

}


.hero-title-cn {

    font-family: var(--font-cn);

    font-size: 21px;

    letter-spacing: 0.15em;

}


.hero-subtitle {

    margin-top: 8px;

    font-family: var(--font-mono);

    font-size: 11px;

    letter-spacing: 0.08em;

    color: var(--color-secondary);

}


.hero-description {

    margin-top: 4px;

    font-size: 13px;

    letter-spacing: 0.1em;

}


/* ==================== 中央三维素材 ==================== */

.hero-visual {

    position: relative;

    z-index: 1;

    display: flex;

    align-items: flex-end;

    justify-content: center;

    min-width: 0;

    overflow: visible;

}


.hero-3d-image {

    width: 115%;

    max-width: none;

    max-height: 610px;

    object-fit: contain;

    object-position: center bottom;

    /*
       如果图片具有透明背景，
       可以直接与网页背景融合。

       如果图片背景不透明，
       建议后续替换为透明 PNG / WebP。
    */

}


/* ==================== 右侧 ==================== */

.hero-right {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding-top: 70px;

    padding-bottom: 55px;

}


.established {

    display: flex;

    flex-direction: column;

    font-family: var(--font-mono);

    font-size: 12px;

    letter-spacing: 0.15em;

}


.hero-intro {

    margin-top: 65px;

}


.hero-intro {
    --brand-word-width: 190px;
    --brand-cn-size: var(--brand-cn-size-desktop);
}


.intro-brand-logo {
    display: block;
    width: var(--brand-word-width);
    height: auto;
    max-width: none;
}


.intro-brand-cn {
    display: flex;
    justify-content: space-between;
    width: var(--brand-word-width);
    margin: 0;
    font-family: "CJgaodeguomh", sans-serif;
    font-size: var(--brand-cn-size);
    font-weight: 550;
    line-height: 1.6;
    white-space: nowrap;
}


.intro-description {

    max-width: 240px;

    margin-top: 28px;

    font-size: 13px;

    line-height: 2;

    letter-spacing: 0.04em;

    color: var(--color-secondary);

}


.scroll-indicator {

    margin-top: auto;

    margin-left: auto;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 15px;

    font-family: var(--font-mono);

    font-size: 10px;

    letter-spacing: 0.12em;

}


.scroll-arrow {

    font-size: 28px;

    font-weight: 300;

    transition: transform var(--transition-normal);

}


.scroll-indicator:hover .scroll-arrow {
    transform: translateY(8px);
}


/* ==================== 通用章节 ==================== */

.about-section,
.work-section,
.contact-section {

    padding: 45px var(--page-padding) 100px;

    border-top: 1px solid var(--color-border);

}


.section-heading {

    max-width: var(--max-width);

    margin: 0 auto 75px;

    display: flex;

    align-items: center;

    gap: 25px;

    font-family: var(--font-mono);

    font-size: 11px;

    letter-spacing: 0.2em;

}


.section-number {

    width: 125px;

    padding-bottom: 6px;

    border-bottom: 1px solid #999999;

}


/* ==================== ABOUT ==================== */

.about-content {

    max-width: var(--max-width);

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

}


.about-title h2 {

    font-family: var(--font-display);

    font-size: clamp(40px, 4.2vw, 76px);

    font-weight: 500;

    line-height: 1.1;

    letter-spacing: -0.055em;

}


.about-description {

    max-width: 490px;

    padding-top: 8px;

}


.about-description p {

    margin-bottom: 25px;

    font-size: 15px;

    line-height: 2.2;

    color: #444444;

}


.about-signature {

    display: block;

    margin-top: 50px;

    font-family: var(--font-mono);

    font-size: 11px;

    letter-spacing: 0.12em;

    color: var(--color-muted);

}


/* ==================== WORK ==================== */

.project-card {

    max-width: var(--max-width);

    min-height: 430px;

    margin: auto;

    display: grid;

    grid-template-columns: 40% 60%;

    background: #efefed;

}


/* 项目文字 */

.project-info {

    padding: 55px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


.project-number {

    font-family: var(--font-mono);

    font-size: 11px;

    letter-spacing: 0.12em;

}


.project-heading {

    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: 30px;

}


.project-name-group {

    min-width: 0;

}


.project-app-icon {

    width: 72px;
    height: 72px;
    border: 1px solid #d7d7d4;
    border-radius: 16px;
    background: #e4e4e2;
    object-fit: cover;
    flex: 0 0 auto;

}


.project-info h2 {

    margin-top: 0;

    font-size: 36px;

    font-weight: 600;

    letter-spacing: 0.02em;

}


.project-en-name {

    margin-top: 5px;

    font-family: var(--font-display);

    font-size: 16px;

    letter-spacing: 0.12em;

}


.project-description {

    max-width: 320px;

    margin-top: 28px;

    font-size: 14px;

    line-height: 2;

    color: var(--color-secondary);

}


.project-status {

    margin-top: auto;

    padding-bottom: 6px;

    border-bottom: 1px solid var(--color-text);

    font-family: var(--font-mono), var(--font-cn);

    font-size: 11px;

    letter-spacing: 0.08em;

}


/* 项目图片 */

.project-preview {
    /* 不随 Grid 行高拉伸，容器高度由图片原始比例决定 */
    align-self: center;
    min-width: 0;
    overflow: hidden;
    background: #e4e4e2;
}


.project-preview img {
    display: block;
    width: 100%;
    height: auto;
}


/* 未来项目 */

.future-project {

    max-width: var(--max-width);

    margin: 0 auto;

    padding: 35px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--color-border);

    font-family: var(--font-mono);

    font-size: 11px;

    letter-spacing: 0.12em;

    color: var(--color-secondary);

}


/* ==================== CONTACT ==================== */

.contact-content {

    max-width: var(--max-width);

    margin: auto;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

}


.contact-content h2 {

    font-size: clamp(30px, 3.5vw, 58px);

    font-weight: 500;

    letter-spacing: -0.045em;

}


.contact-content p {

    margin-top: 15px;

    font-size: 14px;

    color: var(--color-secondary);

}


.contact-placeholder {

    display: flex;

    align-items: center;

    gap: 45px;

    padding-bottom: 8px;

    border-bottom: 1px solid var(--color-text);

    font-size: 13px;

}


/* ==================== FOOTER ==================== */

.site-footer {

    min-height: 100px;

    padding: 30px var(--page-padding);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid var(--color-border);

    font-family: var(--font-mono), var(--font-cn);

    font-size: 11px;

    letter-spacing: 0.08em;

    color: var(--color-secondary);

}


.footer-left {

    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;

}


/* =========================================================
   RESPONSIVE / 平板
========================================================= */

@media (max-width: 1100px) {

    :root {
        --page-padding: 4vw;
    }

    .hero-inner {
        grid-template-columns: 33% 43% 24%;
    }

    .hero-title {
        font-size: clamp(46px, 5.3vw, 70px);
    }

    .hero-3d-image {
        width: 125%;
    }

    .main-nav {
        gap: 25px;
    }

    .brand-text {
        --brand-word-width: 165px;
        --brand-cn-size: var(--brand-cn-size-tablet);
    }

    .hero-intro {
        --brand-word-width: 165px;
        --brand-cn-size: var(--brand-cn-size-tablet);
    }

    .project-info {
        padding: 35px;
    }

}


/* =========================================================
   RESPONSIVE / 手机
========================================================= */

@media (max-width: 768px) {

    :root {
        --header-height: auto;
        --page-padding: 24px;
    }


    /* 导航 */

    .header-inner {

        min-height: 90px;

        height: auto;

        padding: 18px 0;

        flex-wrap: wrap;

        gap: 18px;

    }

    .brand-logo {
        width: 40px;
        height: 45px;
    }

    .brand-text {
        --brand-word-width: 145px;
        --brand-cn-size: var(--brand-cn-size-mobile);
    }

    .hero-intro {
        --brand-word-width: 145px;
        --brand-cn-size: var(--brand-cn-size-mobile);
    }

    .main-nav {

        order: 3;

        width: 100%;

        margin-left: 0;

        justify-content: space-between;

        gap: 12px;

    }

    .main-nav a {
        font-size: 10px;
    }

    .language-switcher {
        margin-left: auto;
    }


    /* Hero 改成纵向布局 */

    .hero-inner {

        min-height: auto;

        display: flex;

        flex-direction: column;

    }

    .hero-left {

        padding-top: 35px;

        padding-bottom: 0;

    }

    .hero-title {

        margin-top: 65px;

        font-size: clamp(52px, 12vw, 78px);

    }

    .hero-title-cn {
        font-size: 18px;
    }


    /* 三维素材 */

    .hero-visual {

        width: 100%;

        min-height: 320px;

        margin-top: 30px;

    }

    .hero-3d-image {

        width: 100%;

        max-height: 420px;

    }


    /* 右侧信息改为下方 */

    .hero-right {

        padding-top: 20px;

        padding-bottom: 45px;

        flex-direction: row;

        justify-content: space-between;

        gap: 25px;

    }

    .hero-intro {
        margin-top: 0;
    }

    .intro-description {
        margin-top: 15px;
    }

    .scroll-indicator {
        display: none;
    }


    /* About */

    .about-section,
    .work-section,
    .contact-section {

        padding-top: 35px;

        padding-bottom: 65px;

    }

    .section-heading {
        margin-bottom: 45px;
    }

    .about-content {

        grid-template-columns: 1fr;

        gap: 35px;

    }

    .about-title h2 {
        font-size: 46px;
    }


    /* Work */

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-info {

        min-height: 330px;

        padding: 35px;

    }


    /* Contact */

    .contact-content {

        flex-direction: column;

        align-items: flex-start;

    }


    /* Footer */

    .site-footer {

        flex-direction: column;

        align-items: flex-start;

    }

}


/* ==================== 减少动态效果 ==================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        transition-duration: 0.01ms !important;

    }

}