html {
    line-height: 1.15;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%
}

body {
    margin: 0;
    padding: 0;
    font-size: 100%;
    line-height: 1.5;
    color: #555;
    font-family: sans-serif;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav {
    display: block
}

section {
    width: 100% !important;
    /* 强制宽度 100% */
    max-width: none !important;
    /* 取消最大宽度限制 */
    margin: 0 !important;
    /* 取消外边距 */
    padding: 0px;
    /* 清除默认间距 */
}

h1 {
    font-size: 2em;
    margin: .67em 0
}

figure {
    margin: 1em 40px
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible
}

code,
kbd,
pre,
samp {
    font-family: monospace, monospace;
    font-size: 1em
}

a {
    background-color: transparent;
    -webkit-text-decoration-skip: objects
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline dotted
}

b,
strong {
    font-weight: bolder
}

dfn {
    font-style: italic
}

mark {
    background-color: #ff0;
    color: #000
}

small {
    font-size: 80%
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline
}

sub {
    bottom: -.25em
}

sup {
    top: -.5em
}

audio,
canvas,
video {
    display: inline-block
}

audio:not([controls]) {
    display: none;
    height: 0
}

img {
    border-style: none
}

svg:not(:root) {
    overflow: hidden
}

button,
input,
optgroup,
select,
textarea {
    font-family: sans-serif;
    font-size: 100%;
    line-height: 1.15;
    margin: 0
}

button,
input {
    overflow: visible
}

button,
select {
    text-transform: none
}


fieldset {
    padding: .35em .75em .625em
}

legend {
    color: inherit;
    display: table;
    max-width: 100%;
    white-space: normal
}

progress {
    display: inline-block;
    vertical-align: baseline
}

textarea {
    overflow: auto
}

summary {
    display: list-item
}

[hidden],
template {
    display: none
}

article,
aside,
figcaption,
figure,
footer,
header,
nav,
section {
    display: block
}

h1,
h2,
h3,
stong {
    margin-top: 1em;
    padding-top: 1em;
    line-height: 1.25;
    color: #333
}

h1 {
    font-size: 2.5rem
}

h2 {
    font-size: 2rem
}

h3 {
    font-size: 1.5rem
}

h4 {
    font-size: 1rem
}

ol,
ul {
    padding-left: 40px
}

figure,
ol,
p,
ul {
    margin: 1em 0
}

a img {
    border: none
}

sub,
sup {
    line-height: 0
}

@-webkit-keyframes pulse {

    0%,
    to {
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
        filter: alpha(opacity=40);
        opacity: .4;
        top: 0
    }

    50% {
        -ms-filter: none;
        -webkit-filter: none;
        filter: none;
        opacity: 1;
        top: -10px
    }
}

@keyframes pulse {

    0%,
    to {
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
        filter: alpha(opacity=40);
        opacity: .4;
        top: 0
    }

    50% {
        -ms-filter: none;
        -webkit-filter: none;
        filter: none;
        opacity: 1;
        top: -10px
    }
}

#particles-js {
    background: #1a222c;
    display: flex;
    vertical-align: bottom;
    width: 100%;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed
}

#particles-js .particles-js-canvas-el {
    width: 100% !important;
    height: 100vh !important
}

.header {
    z-index: 1;
    text-align: center;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0 auto;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%)
}

.header .site-title {
    font-size: 50px;
    display: block;
    line-height: 1;
    color: #fff
}

@media only screen and (min-width:768px) {
    .header .site-title {
        margin: 0;
        font-size: 100px
    }
}

.header .site-description {
    font-size: 20px;
    display: block;
    line-height: 1;
    color: #fff;
    margin-top: 10px
}

@media only screen and (min-width:768px) {
    .header .site-description {
        font-size: 40px
    }
}

.header-links {
    width: 100%;
    text-align: center;
    position: absolute;
    margin: 10px;
    bottom: 100px;
    margin: 0 auto;
}

.header-links .link {
    color: #fff;
    opacity: 0.5;
    text-decoration: none;
    font-size: 14px;
    margin: 10px
}

@media only screen and (min-width:768px) {
    .header-links .link {
        font-size: 18px
    }
}

.header-icons {
    display: flex;
    justify-content: center;
    text-align: center
}

.down,
.header-icons .icon {
    color: #fff;
    text-align: center
}

.header-icons .icon {
    height: 20px;
    padding: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    transition: all .7s;
    width: 20px;
    font-size: 20px;
    margin: 10px;
    display: inline-flex;
    /* 开启弹性布局 */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
}

.header-icons .icon:active,
.header-icons .icon:hover {
    color: #1a222c;
    background: #fff
}

@media only screen and (min-width:768px) {
    .header-icons .icon {
        width: 35px;
        height: 35px;
        font-size: 35px
    }
}

.down {
    position: absolute;
    bottom: 25px;
    width: 100%;
    margin: 0 auto;
    display: block;
    font-size: 30px;
    cursor: pointer
}

.down .icon {
    position: absolute;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    fill: #fff;
    -webkit-animation: pulse 1.3s infinite;
    animation: pulse 1.3s infinite
}

.down .icon:active,
.down .icon:hover,
.footer a:active,
.footer a:hover {
    color: #4b5664
}

.user-details {
    text-align: center;
    margin: 5px auto
}

#projects {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 960px;
    margin: 0 auto
}

.user-projects {
    margin: 20px 5% 60px 5%;
    display: flex;
    flex-direction: column;
    /* 手机端垂直排列 */
    gap: 20px;
}

@media only screen and (min-width: 768px) {
    .user-projects {
        flex-direction: row-reverse;
        /* PC端让 images-right 在右，contents 在左 */
        align-items: flex-start;
        justify-content: space-between;
    }

    .contents {
        width: 60% !important;
        /* 强制覆盖之前的 float 宽度 */
        float: none !important;
        /* 抛弃 float */
    }

    .images-right {
        width: 35% !important;
        float: none !important;
    }
}

.user-projects li {
    color: #1a222c;
    font-size: 1.1rem;
    line-height: 2;
}

.user-projects p {
    margin-right: 5px
}

.project-link {
    width: auto !important;
    display: inline-block;
    margin: 10px 0;
    padding: 15px 30px;
    color: #1a222c;
    background-color: transparent;
    border: 2px solid #1a222c;
    border-radius: 10px;
    text-align: center;
    outline: none;
    text-decoration: none;
    cursor: pointer;
    transition: color .3s ease-out, background-color .3s ease-out, border-color .3s ease-out
}

.project-link:active,
.project-link:hover {
    background-color: #1a222c;
    border-color: #1a222c;
    color: #fff;
    transition: color .3s ease-in, background-color .3s ease-in, border-color .3s ease-in
}

/* --- 视频与图片居中处理 --- */
.images-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 内部元素水平居中 */
}

.images-right img {
    width: 100%;
    /* 图片撑满 */
    margin-bottom: 20px;
}

.project-video {
    position: relative;
    /* 核心修改：通过 width 和 margin 实现左右 Padding 效果 */
    width: 90%;
    margin: 0 auto;

    /* 重新计算比例：90% width * 56.25% height ratio = 50.625% */
    padding-bottom: 50.625%;
    height: 0;
    overflow: hidden;
    border-radius: 5px;
    /* 保持与图片风格一致 */
}

.project-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer {
    background-color: #1a222c;
    color: #ffffff;
    padding: 40px 5%;
    /* 核心布局：左右分布 */
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    /* 让左右两边高度等高，方便底部对齐 */
}

/* 左侧公司信息 */
.company-info {
    display: flex;
    flex-direction: column;
}

.company-info h4 {
    font-size: 24px;
    margin: 0 0 25px 0;
    font-weight: 500;
}

.info-table {
    border-collapse: collapse;
    font-size: 16px;
    line-height: 2;
}

.info-table .label {
    padding-right: 40px;
    opacity: 0.5;
    white-space: nowrap;
}

/* 右侧合并区域 */
.right-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* 关键：社交图标在上，版权在下 */
    align-items: flex-end;
    /* 内容靠右对齐 */
    text-align: right;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    /* 稍微下移，对齐标题中心线或根据视觉调整 */
}

.social-links a {
    color: white;
    font-size: 30px;
    text-decoration: none;
    opacity: 0.8;
    transition: color .3s ease-out, background-color .3s ease-out, border-color .3s ease-out
}

.social-links a:hover {
    opacity: 1;
}

.copyright {
    font-size: 14px;
    opacity: 0.4;
    letter-spacing: 0.05em;
    text-wrap: nowrap;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        gap: 40px;
    }

    .right-section {
        align-items: flex-start;
        gap: 20px;
    }
}


.lang-switch {
    position: absolute;
    top: 25px;
    right: 5%;
    z-index: 9999; /* 确保在所有元素之上 */
    font-family: sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
}

.lang-link {
    text-decoration: none;
    color: white; /* 与你正文颜色一致 */
    opacity: 0.5;
    /* font-weight: bold; */
    transition: all 0.3s ease;
}

.lang-link:hover {
    opacity: 1;
}

/* 高亮当前语言 */
/* 在 jp/index.html 里给 JP 加这个 class；在 en/index.html 里给 EN 加 */
.lang-link.active {
    opacity: 1;
    pointer-events: none; /* 当前语言不可重复点击 */
}

.separator {
    color: #ccc;
    margin: 0 5px;
    user-select: none;
}