/* ===== 本页字体（与 about 相同；若已全局引入可删） ===== */
@font-face {
    font-family: "Inter";
    src: url("../font/inter/Inter_24pt-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../font/inter/Inter_24pt-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../font/inter/Inter_24pt-SemiBold.ttf")format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../font/inter/Inter_28pt-ExtraBold.ttf")format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../font/inter/Inter_28pt-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --fs-body: clamp(14px, 1.1vw, 20px);
    --fs-h1: clamp(40px, 5vw, 80px);
    --fs-h2: clamp(24px, 2.4vw, 40px);
    --fs-lead: clamp(16px, 1.4vw, 22px);
    --fs-sub: clamp(13px, 1.1vw, 18px);

    --pad-x: clamp(20px, 4vw, 96px);

    /* Hero 圆点配色 */
    --c-lg: #dadada;
    --c-md: #c6c6c6;
    --c-sm: #ececec;
    --c-xs: #bfbfbf;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #111;
    background: #fff;
    line-height: 1.6;
}

/* 容器与段落（与 about 完全一致） */
.wrapper {
    max-width: clamp(1040px, 74vw, 1560px);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.section-full {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* ===== Hero ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    gap: clamp(16px, 3vw, 40px);
}

.hero-text {
    width: min(100%, 46rem);
    text-align: left;
}

.hero-title {
    font-size: var(--fs-h1);
    font-weight: 900;
    letter-spacing: -.01em;
    margin: 0 0 .5rem;
}

.hero-lead {
    font-size: var(--fs-lead);
    margin: 0 0 8px;
    line-height: 1.35;
}

.hero-sub {
    font-size: var(--fs-sub);
    color: #333;
    max-width: 42rem;
}

/* 新的多圆点装饰 + 动效 */
.hero-ornaments {
    position: relative;
    width: clamp(260px, 28vw, 420px);
    height: clamp(260px, 28vw, 420px);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: saturate(.95);
}

.orb-lg {
    width: 65%;
    height: 65%;
    left: 18%;
    top: 28%;
    background: var(--c-lg);
    animation: float 10s ease-in-out infinite alternate;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.orb-md {
    width: 34%;
    height: 34%;
    right: 6%;
    top: 4%;
    background: var(--c-md);
    animation: float 7s ease-in-out infinite alternate-reverse;
}

.orb-sm {
    width: 22%;
    height: 22%;
    left: 0;
    top: 6%;
    background: var(--c-sm);
    animation: float 6s ease-in-out infinite alternate;
}

.orb-xs {
    width: 16%;
    height: 16%;
    right: 12%;
    bottom: 6%;
    background: var(--c-xs);
    animation: float 5s ease-in-out infinite alternate-reverse;
}

/* 细环：增加层次 */
.orb-ring {
    width: 52%;
    height: 52%;
    left: 26%;
    top: 12%;
    border: 1.5px solid #bdbdbd;
    border-radius: 50%;
    background: transparent;
    animation: pulse 4.5s ease-in-out infinite;
}

@keyframes float {
    from {
        transform: translateY(0) translateX(0);
    }

    to {
        transform: translateY(-8%) translateX(4%);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .7;
    }

    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .orb,
    .orb-ring {
        animation: none;
    }
}

/* ===== Recently Projects（删除灰线 & 背景） ===== */
.section-title {
    font-weight: 800;
    font-size: var(--fs-h2);
    margin: 0 0 18px;
}

.projects-intro {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.intro-copy {
    width: min(760px, 100%);
    font-size: var(--fs-sub);
    color: #202020;
    display: grid;
    gap: .8rem;
}

/* ===== 项目卡片 ===== */
.project-section {
    justify-content: center;
}

.project-card {
    width: 100%;
    aspect-ratio: 16/6;
    max-height: 560px;
    min-height: 360px;
    display: flex;
    border-radius: 22px;
    overflow: hidden;
    background: #bfbfbf;
}

.card-left,
.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-left {
    padding: clamp(24px, 4.4vw, 60px);
    gap: 10px;
}

.pill {
    display: inline-block;
    font-size: 12px;
    background: #ffdfe0;
    border-radius: 999px;
    padding: 4px 10px;
    width: fit-content;
}

.card-title {
    font-size: clamp(22px, 2.2vw, 34px);
    font-weight: 800;
    line-height: 1.25;
}

.card-desc {
    font-size: var(--fs-sub);
    color: #202020;
    max-width: 48ch;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.tags span {
    display: inline-block;
    background: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
}

.card-right {
    background: #666 center/cover no-repeat;
    background-image: var(--bg, url("../img/index/sample1.png"));
    min-width: 40%;
    filter: saturate(.95);
}

/* ===== 弹窗（与 about 一致） ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .48);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99;
    padding: 16px;
}

.modal.show {
    display: flex;
}

.modal-inner {
    background: #fff;
    border-radius: 16px;
    padding: 24px 24px 20px;
    width: min(92vw, 420px);
}

.modal-inner h3 {
    font-size: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.modal-btn:hover {
    background: #f4f4f4;
}

/* ===== 响应式（与 about 统一使用 768px） ===== */
@media (max-width:768px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-ornaments {
        order: 2;
        width: clamp(220px, 60vw, 360px);
        height: auto;
        aspect-ratio: 1/1;
    }

    .project-card {
        aspect-ratio: auto;
        flex-direction: column;
        min-height: unset;
    }

    .card-right {
        order: -1;
        width: 100%;
        min-width: 0;
        height: clamp(220px, 45vw, 360px);
        background-position: bottom center;
        background-size: cover;
    }

    .card-left {
        padding: 24px clamp(20px, 5vw, 40px);
    }
}