/* Global CSS Variables for Design System */
:root {
  /* base */
  --bg-page: #131212;
  --text-primary: #EAECEF;   /* 主文 */
  --text-secondary: #B3BAC5; /* 次级 */
  --text-muted: #8A9099;     /* 禁用/说明 */
  --line-subtle: #2A2A2A;
  --focus-outer: #FFFFFF33;  /* 外层焦点环 */

  /* single-accent hues (HSL for alpha blends) */
  --dir: 210 100% 72%; /* Direction 单一主色：#7AB8FF */
  --thm: 42 100% 69%;  /* Theme    单一主色：#FFD166 */
}

/* Direction color variants */
.dir-bg-b8 { background-color: hsl(var(--dir) / 0.08); }
.dir-bg-b14 { background-color: hsl(var(--dir) / 0.14); }
.dir-bg-b24 { background-color: hsl(var(--dir) / 0.24); }
.dir-border-bd45 { border-color: hsl(var(--dir) / 0.45); }
.dir-border-bd80 { border-color: hsl(var(--dir) / 0.80); }

/* Theme color variants */
.thm-bg-b8 { background-color: hsl(var(--thm) / 0.08); }
.thm-bg-b14 { background-color: hsl(var(--thm) / 0.14); }
.thm-bg-b24 { background-color: hsl(var(--thm) / 0.24); }
.thm-border-bd45 { border-color: hsl(var(--thm) / 0.45); }
.thm-border-bd80 { border-color: hsl(var(--thm) / 0.80); }

/* Hover states */
.hover\:dir-bg-b14:hover { background-color: hsl(var(--dir) / 0.14); }
.hover\:thm-bg-b14:hover { background-color: hsl(var(--thm) / 0.14); }
.hover\:scale-102:hover { transform: scale(1.02); }

/* Text colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* Focus ring */
.focus-ring:focus {
  box-shadow: 0 0 0 2px var(--focus-outer), 0 0 0 4px currentColor;
  outline: none;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
}

@font-face {
    font-family: "Austin";
    src: url(/resource/AustinCy-Roman-Web.woff2) format("woff2");
}

body {
    background-color: #131212;
    margin: 0;
    font-family: Arial;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: max-content;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
}

.index-bottom-copyright,
.contact,
.experience,
.photo-name,
.project-container,
.top-brief,
.top-description,
.top-name {
    position: absolute;
}

.project-container p,
.photo-name p,
.contact,
.top-brief,
.top-description,
.index-bottom-copyright,
.experience {
    font-family: 'Inter';
    font-size: 13px;
    font-variation-settings: "wght" 350;
    letter-spacing: -0.2px;
    color: rgba(225, 222, 219, 1);
    -webkit-font-smoothing: antialiased;
}

#page-container {
    width: 1024px;
    height: max-content;
}

.top-name {
    left: 30px;
    top: 8.45px;
    width: 577px;
    height: 128px;
    padding-bottom: 1px;
    font-family: 'Austin';
    font-size: 68px;
    font-weight: 400;
    line-height: 64px;
    text-transform: uppercase;
    overflow-wrap: break-word;
    color: rgba(225, 222, 219, 1);
    -webkit-font-smoothing: antialiased;
}

.top-name a:hover {
    color: rgba(225, 222, 219, 0.1);
}

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

.top-brief {
    left: 816px;
    top: 17px;
    width: 178px;
    height: 15px;
    text-align: right;
}

.top-description {
    left: 255px;
    top: 200px;
    width: 510px;
    height: max-content;
    line-height: 21px;
    font-weight: 400;
    text-align: center;
}

.project-container {
    width: 314px;
    height: 225px;
    object-fit: cover; /* 使图片保持比例并填满容器 */
    object-position: center;
}

.project-container:hover {
    transform: translate(0, -10px);
}

.project-container a {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 使图片保持比例并填满容器 */
    object-position: center; /* 居中显示 */
}

.project-container p,
.photo-name p {
    margin: 0;
}

.experience-contact-photo-name {
    display: flex;
    position: absolute;
    left: 30px;
    top: 1585px;
    width: 964px;
    /*height: max-content;*/
    height: auto;
}

.experience-contact {
    position: relative;
    flex-direction: column;
    display: flex;
    float: left;
    left: 0;
    top: 0;
    width: 477px;
}

.experience {
    flex: 1;
    position: relative;
    margin-left: 0;
    top: 0;
    width: 460px;
    line-height: 21px;
}

.contact {
    flex: 1;
    position: relative;
    left: 0;
    width: 314px;
    line-height: 15px;
    align-content: end;
}

.contact-item {
    display: flex;
    margin-bottom: 5px;
}

.contact-item i {
    display: initial;
    margin-right: 10px;
    font-size: 17px;
}

.photo-name {
    position: relative;
    float: right;
    right: 0;
    top: 0;
    width: 477px;
}

.photo-name a {
    display: flex;
    width: 477px;
    height: 330px;
}

.index-bottom-copyright {
    left: 30px;
    top: 1980px;
    width: 152px;
    height: 10px;
    font-size: 9px;
    color: rgba(225, 222, 219, 0.5);
}

/* Detail pages */

.detail-cover {
    position: static;
    margin-top: 150px;
    width: 964px;
    margin-left: 30px;
    height: max-content;
}

.detail-cover-text {
    margin-top: 5px;
    width: 100%;
    height: max-content;
}

.detail-cover-text::after {
    content: "";
    display: table;
    clear: both;
}

.detail-cover-left {
    width: 47.5%;
    float: left;
}

.detail-cover-title,
.detail-cover-title-nocap {
    font-family: 'Austin';
    font-size: 68px;
    font-weight: 400;
    line-height: 64px;
    overflow-wrap: break-word;
    color: rgba(225, 222, 219, 1);
    -webkit-font-smoothing: antialiased;
}

.detail-cover-title {
    text-transform: uppercase;
}

.detail-cover-brief {
    margin-top: 10px;
    line-height: 20px;

    font-family: 'Inter';
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: rgba(225, 222, 219, 1);
    -webkit-font-smoothing: antialiased;
}

.detail-cover-detail {
    line-height: 1.2;

    font-family: 'Inter';
    font-size: 10px;
    font-variation-settings: "wght" 500;
    letter-spacing: -0.2px;
    color: rgba(225, 222, 219, 1);
    -webkit-font-smoothing: antialiased;
}

.detail-cover-right {
    width: 45%;
    float: right;
    text-align: right;
}

.detail-cover-authors {
    margin-top: 10px;
    line-height: 1.2;

    font-family: 'Inter';
    font-size: 13px;
    font-variation-settings: "wght" 500;
    letter-spacing: -0.2px;
    color: rgba(225, 222, 219, 1);
    -webkit-font-smoothing: antialiased;
}

.video-demo {
    position: static;
    width: 964px;
    margin-left: 30px;
    height: max-content;

    line-height: 28px;
    font-family: 'Inter';
    font-size: 24px;
    font-weight: 400;
    font-variation-settings: "wght" 500;
    letter-spacing: -0.2px;
    color: rgba(225, 222, 219, 1);
    -webkit-font-smoothing: antialiased;
}

.video-demo iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.section-title-small {
    font-family: 'Inter';
    font-size: 18px;
    font-weight: 400;
    font-variation-settings: "wght" 500;
    letter-spacing: -0.2px;
    color: rgba(225, 222, 219, 1);
    -webkit-font-smoothing: antialiased;
    line-height: 24px;
}

.section-title-extra-small {
    font-family: 'Inter';
    font-size: 14px;
    font-weight: 400;
    font-variation-settings: "wght" 400;
    letter-spacing: -0.1px;
    color: rgba(225, 222, 219, 0.8);
    -webkit-font-smoothing: antialiased;
    line-height: 20px;
}

.text-title {
    position: static;
    width: 964px;
    margin-left: 30px;
    height: max-content;

    line-height: 28px;
    font-family: 'Inter';
    font-size: 24px;
    font-weight: 400;
    font-variation-settings: "wght" 500;
    letter-spacing: -0.2px;
    color: rgba(225, 222, 219, 1);
    -webkit-font-smoothing: antialiased;
}

/* 项目主标题样式 */
.project-main-title {
    font-family: 'Inter';
    font-size: 32px;
    font-weight: 700;
    font-variation-settings: "wght" 700;
    color: rgba(225, 222, 219, 1);
    margin-bottom: 8px; /* 主标题和副标题间距更小 */
    letter-spacing: -0.3px;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
}

/* 项目副标题样式 */
.project-subtitle {
    font-family: 'Inter';
    font-size: 18px;
    font-weight: 400;
    font-variation-settings: "wght" 400;
    color: rgba(225, 222, 219, 0.7);
    margin-bottom: 20px;
    letter-spacing: -0.2px;
    line-height: 1.3;
    font-style: italic;
    -webkit-font-smoothing: antialiased;
}

/* 项目主标题中的链接样式 */
.project-main-title a {
    color: rgba(74, 144, 226, 0.9); /* 默认就是蓝色，让用户知道可点击 */
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

/* 添加外部链接图标 */
.project-main-title a::after {
    content: '↗';
    font-size: 0.7em;
    margin-left: 8px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.project-main-title a:hover {
    color: rgba(74, 144, 226, 1);
    text-decoration: none;
    transform: translateY(-1px); /* 轻微上移效果 */
}

.project-main-title a:hover::after {
    opacity: 1;
    transform: translate(2px, -2px); /* 图标也稍微移动 */
}

.single-pic {
    position: static;
    width: 964px;
    margin-left: 30px;
}

.pic-caption {
    margin-top: 2px;

    font-family: 'Inter';
    font-size: 9px;
    font-variation-settings: "wght" 500;
    letter-spacing: -0.2px;
    color: rgba(225, 222, 219, 1);
    -webkit-font-smoothing: antialiased;
}

.single-pic .pic-caption,
.double-pic-left .pic-caption,
.double-pic-right .pic-caption {
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.single-pic:hover .pic-caption,
.double-pic-left:hover .pic-caption,
.double-pic-right:hover .pic-caption {
    opacity: 1;
}

.double-pic {
    position: static;
    width: 964px;
    margin-left: 30px;
    height: max-content;
    overflow: hidden;
}

.double-pic::after {
    content: "";
    display: table;
    clear: both;
}

.double-pic .double-pic-left {
    width: 477px;
    float: left;
}

/* Right image always have the same height as left, enforced in javascript*/
.double-pic .double-pic-right {
    width: 477px;
    float: right;
}

.slideshow {
    width: 642px;
    margin-left: auto;
    margin-right: auto;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 642px;
    height: 480px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.1);
}

.swiper-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: scale-down;
    object-position: center;
}

.swiper-pagination {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 20px;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}

.swiper-button-prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' width='40' height='40' style='fill: rgb(255, 255, 255);'%3E%3Ccircle cx='20' cy='20' r='20' style='fill: rgba(162, 162, 162, 0.75);'%3E%3C/circle%3E%3Cpath d='M23.5 11.5 L15.5 19.5 L23.5 27.5' stroke-linejoin='round' stroke-linecap='round' style='fill:none; stroke:%23ffffff; stroke-width:3px'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    width: 40px;
    height: 40px;
}

.swiper-button-next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' width='40' height='40' style='fill: rgb(255, 255, 255);'%3E%3Ccircle cx='20' cy='20' r='20' style='fill: rgba(162, 162, 162, 0.75);'%3E%3C/circle%3E%3Cpath d='M16.5 11.5 L24.5 19.5 L16.5 27.5' stroke-linejoin='round' stroke-linecap='round' style='fill:none; stroke:%23ffffff; stroke-width:3px'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    width: 40px;
    height: 40px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    content: "";
}

.detail-bottom-copyright {
    position: static;
    margin-left: 30px;
    height: max-content;

    line-height: 28px;
    font-family: 'Inter';
    font-size: 9px;
    font-weight: 400;
    font-variation-settings: "wght" 500;
    letter-spacing: -0.2px;
    color: rgba(225, 222, 219, 0.5);
    -webkit-font-smoothing: antialiased;
}

.full-width-image {
    width: 964px;
    margin-left: 30px;
    height: auto;
}

.full-width-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.pdf-viewer {
    width: 964px;
    margin-left: 30px;
}

.pdf-container {
    width: 100%;
    height: 700px;
    border: 1px solid rgba(225, 222, 219, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.pdf-container embed {
    width: 100%;
    height: 100%;
}

.pdf-fallback {
    display: none;
    padding: 20px;
    text-align: center;
    background-color: rgba(225, 222, 219, 0.1);
    color: rgba(225, 222, 219, 1);
}

.pdf-fallback a {
    color: #4A90E2;
    text-decoration: underline;
}

/* Detail pages */

/* 新增：主要内容包装器 */
.main-content-wrapper {
    width: 1024px;
    display: flex;
    margin-top: 0;
    gap: 20px;
}

/* 左侧导航栏样式 */
.sidebar-nav {
    width: 220px; /* 约22% */
    margin-left: 30px;
    position: sticky;
    top: 20px;
    height: fit-content;
    padding: 0 20px;
    box-sizing: border-box;
}

.nav-title {
    font-family: 'Inter';
    font-size: 16px;
    font-weight: 500;
    color: rgba(225, 222, 219, 1);
    margin-bottom: 15px;
    margin-top: 2px;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 8px;
}

.nav-menu a {
    font-family: 'Inter';
    font-size: 12px;
    font-weight: 350;
    color: rgba(225, 222, 219, 0.8);
    text-decoration: none;
    padding: 6px 0;
    display: block;
    transition: color 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

.nav-menu a:hover {
    color: rgba(225, 222, 219, 1);
}

.nav-menu a.active {
    color: rgba(225, 222, 219, 1);
    font-weight: 400;
}

/* 右侧主要内容区域 */
.main-content {
    width: 754px; /* 约78% */
    margin-right: 30px;
}

.content-section {
    scroll-margin-top: 20px;
}

/* 压缩版的单图布局 */
.single-pic-compact {
    width: 100%;
    height: auto;
}

.single-pic-compact img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.single-pic-compact .pic-caption {
    margin-top: 2px;
    font-family: 'Inter';
    font-size: 9px;
    font-variation-settings: "wght" 500;
    letter-spacing: -0.2px;
    color: rgba(225, 222, 219, 1);
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.single-pic-compact:hover .pic-caption {
    opacity: 1;
}

/* 压缩版的双图布局 */
.double-pic-compact {
    position: static;
    width: 100%;
    height: max-content;
    overflow: hidden;
}

.double-pic-compact::after {
    content: "";
    display: table;
    clear: both;
}

.double-pic-compact .double-pic-left-compact {
    width: 47%;
    float: left;
}

.double-pic-compact .double-pic-right-compact {
    width: 47%;
    float: right;
}

.double-pic-left-compact .pic-caption,
.double-pic-right-compact .pic-caption {
    margin-top: 2px;
    font-family: 'Inter';
    font-size: 9px;
    font-variation-settings: "wght" 500;
    letter-spacing: -0.2px;
    color: rgba(225, 222, 219, 1);
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.double-pic-left-compact:hover .pic-caption,
.double-pic-right-compact:hover .pic-caption {
    opacity: 1;
}

/* 压缩版的全宽图片 */
.full-width-image-compact {
    width: 100%;
    height: auto;
}

.full-width-image-compact img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 压缩版的幻灯片 */
.slideshow-compact {
    width: 100%;
    max-width: 580px;
    margin: 15px auto;
}

/* 全宽统一高度幻灯片 */
.slideshow-fullwidth {
    width: 100%;
    margin: 15px 0;
}

.slideshow-fullwidth .swiper-slide {
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-fullwidth .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 文本内容样式 */
.text-content {
    font-family: 'Inter';
    font-size: 11px;
    font-weight: 400;
    line-height: 18px;
    color: rgba(225, 222, 219, 0.9);
    -webkit-font-smoothing: antialiased;
    margin-bottom: 20px;
}

.text-content strong {
    font-weight: 500;
    color: rgba(225, 222, 219, 1);
}

.text-content em {
    font-style: italic;
    color: rgba(225, 222, 219, 1);
}

/* 高亮问题样式 */
.highlight-question {
    font-style: italic;
    color: rgba(255, 215, 0, 1);
    background-color: rgba(255, 215, 0, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* 调整视频在紧凑布局中的大小 */
.content-section iframe {
    width: 100%;
    max-width: 580px;
    height: 326px;
    display: block;
    margin: 0 auto;
}

/* 全宽视频样式 */
.video-fullwidth {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
}

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

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* Project Tools Styling */
.project-tools {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(225, 222, 219, 0.2);
}

.tools-title {
    font-family: 'Inter';
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.1px;
    color: rgba(225, 222, 219, 0.8);
    margin-bottom: 8px;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

.tools-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.tool-tag {
    font-family: 'Inter';
    font-size: 10px;
    font-weight: 400;
    letter-spacing: -0.1px;
    color: rgb(134, 239, 172);
    background-color: rgba(34, 197, 94, 0.25);
    border: 1px solid rgba(34, 197, 94, 0.5);
    padding: 3px 8px;
    border-radius: 12px;
    -webkit-font-smoothing: antialiased;
    white-space: nowrap;
}

/* Portfolio Tagging System Integration */
.portfolio-section {
    margin: 40px auto;
    max-width: none;
    width: calc(100% - 60px); /* Account for 30px left + 30px right margin */
    margin-left: 30px; /* Match top-name left margin */
    margin-right: 30px; /* Match right margin */
    position: relative;
    top: 450px; /* Position after description - moved up 90px */
}

/* Remove Tailwind overrides - let Tailwind handle these classes */

.loading-message {
    color: #666;
    font-size: 1.1rem;
    padding: 2rem;
    text-align: center;
}

/* Adjust layout for tagging system */
.experience-contact-photo-name {
    top: 2010px; /* Move down to accommodate tagging system - adjusted up 90px */
}

.index-bottom-copyright {
    top: 2410px; /* Move down accordingly - adjusted up 90px */
}

/* Responsive adjustments for tagging system */
@media (max-width: 768px) {
    /* Overall container adjustments */
    #page-container {
        width: 100% !important;
        max-width: 100vw;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    /* Header section mobile optimization */
    .top-name {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        font-size: 36px !important;
        line-height: 38px !important;
        text-align: center;
        margin: 20px 0;
        padding: 0;
    }
    
    .top-brief {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        text-align: center !important;
        margin: 10px 0;
        font-size: 14px;
    }
    
    .top-description {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        text-align: center;
        margin: 20px 0;
        padding: 0 10px;
        font-size: 12px;
        line-height: 18px;
    }
    
    /* Portfolio section mobile optimization */
    .portfolio-section {
        position: relative !important;
        margin: 40px 0 !important;
        top: auto !important;
        width: 100%;
    }
    
    .portfolio-section .px-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Footer section mobile optimization */
    .experience-contact-photo-name {
        position: relative !important;
        top: auto !important;
        width: 100%;
        margin: 40px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .experience-contact {
        width: 100%;
        max-width: none;
        padding: 0 10px;
    }
    
    .experience {
        width: 100%;
        margin-bottom: 30px;
        text-align: center;
        font-size: 12px;
        line-height: 18px;
    }
    
    .contact {
        width: 100%;
        text-align: center;
    }
    
    .contact-item {
        margin: 10px 0;
        font-size: 12px;
    }
    
    .photo-name {
        width: 100%;
        text-align: center;
        margin: 30px 0;
    }
    
    .photo-name img {
        max-width: 200px;
        height: auto;
    }
    
    .index-bottom-copyright {
        position: relative !important;
        top: auto !important;
        width: 100%;
        text-align: center;
        margin: 30px 0;
        font-size: 11px;
    }
    
    /* Tag system mobile optimization */
    .tag-button {
        font-size: 9px !important;
        padding: 2px 6px !important;
        margin: 2px !important;
    }
    
    /* Project cards mobile optimization */
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    /* General text improvements for mobile */
    body {
        font-size: 12px;
        overflow-x: hidden;
    }
    
    h1, h2, h3 {
        font-size: 16px !important;
    }
    
    /* Ensure all content fits within screen */
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Swiper mobile optimization */
    .swiper {
        width: 100% !important;
        height: auto !important;
    }
    
    .swiper-slide img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }
    
    /* 项目主标题移动端样式 */
    .project-main-title {
        font-size: 24px !important;
        font-weight: 700 !important;
        margin-bottom: 6px !important; /* 主副标题间距更小 */
        text-align: center;
    }
    
    /* 项目副标题移动端样式 */
    .project-subtitle {
        font-size: 14px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    
    /* 视频标签移动端样式 */
    .video-label {
        font-size: 10px !important; /* 移动端更小 */
        text-align: center !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    #page-container {
        padding: 0 15px;
    }
    
    .top-name {
        font-size: 28px !important;
        line-height: 32px !important;
    }
    
    .top-description {
        font-size: 11px;
        line-height: 16px;
        padding: 0 5px;
    }
    
    /* 项目主标题小屏幕样式 */
    .project-main-title {
        font-size: 20px !important;
        margin-bottom: 5px !important; /* 主副标题间距更小 */
    }
    
    /* 项目副标题小屏幕样式 */
    .project-subtitle {
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }
    
    /* 视频标签小屏幕样式 */
    .video-label {
        font-size: 9px !important; /* 小屏幕最小 */
    }
    
    .portfolio-section {
        margin: 30px 0 !important;
    }
    
    .tag-button {
        font-size: 8px !important;
        padding: 1px 4px !important;
    }
    
    .photo-name img {
        max-width: 150px;
    }
    
    /* Project pages mobile optimization */
    .detail-cover {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px 0;
    }
    
    .detail-cover img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }
    
    .detail-cover-text {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 20px 10px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .detail-cover-left,
    .detail-cover-right {
        position: relative !important;
        width: 100% !important;
        left: auto !important;
        top: auto !important;
    }
    
    .detail-cover-title {
        font-size: 24px !important;
        line-height: 28px !important;
        margin-bottom: 15px;
    }
    
    .detail-cover-brief {
        font-size: 12px !important;
        line-height: 18px !important;
        margin-bottom: 20px;
    }
    
    .detail-cover-authors {
        font-size: 11px !important;
        line-height: 16px !important;
        margin-bottom: 15px;
    }
    
    .tools-title {
        font-size: 12px !important;
        margin-bottom: 10px;
    }
    
    .tool-tag {
        font-size: 9px !important;
        padding: 2px 6px !important;
        margin: 2px !important;
    }
}

/* 视频展示样式 */
.video-showcase-container {
    margin: 40px 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.video-section {
    width: 100%;
}

.video-title {
    font-family: 'Inter';
    font-size: 16px; /* 从20px改为16px，与mobile-videos-title一致 */
    font-weight: 700; /* 改为700加粗 */
    color: rgba(225, 222, 219, 0.9); /* 从rgba(225, 222, 219, 1)改为rgba(225, 222, 219, 0.9)，与mobile-videos-title一致 */
    margin-bottom: 25px;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}

/* 桌面端视频 */
.desktop-video {
    margin-bottom: 40px;
}

.video-label {
    font-family: 'Inter';
    font-size: 12px; /* 从14px减少到12px */
    font-weight: 400;
    color: rgba(225, 222, 219, 0.8);
    margin-bottom: 10px;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.video-player.desktop {
    width: 100%;
    height: 400px; /* 设置为420px高度，左右撑满 */
    object-fit: cover; /* 改为cover让视频填满容器 */
    display: block;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
}

.video-player.mobile {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
}

/* iPhone 14视频特殊样式 */
.video-player.mobile.iphone14-video {
    max-height: none;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

/* 视频覆盖层 - 显示播放按钮 */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 8px;
}

.video-wrapper:hover .video-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.play-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.video-wrapper:hover .play-icon {
    font-size: 52px;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* 移动端播放图标 */
.mobile-video .play-icon {
    font-size: 32px;
}

.mobile-video .video-wrapper:hover .play-icon {
    font-size: 36px;
}

/* 视频播放状态 - 更明显的指示 */
.video-item.playing {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.video-item.playing .video-wrapper {
    box-shadow: 0 0 25px rgba(74, 144, 226, 0.5);
    border: 2px solid rgba(74, 144, 226, 0.3);
}

/* hover时的视觉提示 */
.video-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* iPhone 14特殊hover效果 */
.iphone14-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* 去掉占位符相关样式 */
.video-placeholder {
    display: none;
}

.play-button {
    font-family: 'Inter';
    font-size: 16px;
    font-weight: 500;
    color: rgba(74, 144, 226, 1);
    padding: 12px 20px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

.play-button:hover {
    background: rgba(74, 144, 226, 0.2);
    color: rgba(255, 255, 255, 1);
}

/* 手机端视频容器 */
.mobile-videos-container {
    margin-top: 30px;
}

.mobile-videos-title {
    font-family: 'Inter';
    font-size: 16px;
    font-weight: 700; /* 从400改为700加粗 */
    color: rgba(225, 222, 219, 0.9);
    margin-bottom: 20px;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}

.mobile-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
}

.mobile-video {
    text-align: left;
}

/* iPhone 14 尺寸框架 */
.iphone14-frame {
    width: 200px;
}

.iphone14-wrapper {
    width: 200px;
    height: 432px; /* iPhone 14 比例：390x844 缩放到200x432 */
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.iphone14-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

/* Mobile Demo 2和3的特殊样式 - 更宽的边框和更大的圆角 */
#mobile-video-2 .iphone14-wrapper,
#mobile-video-3 .iphone14-wrapper {
    width: 214px; /* 从200px增加到220px */
    border-radius: 35px; /* 从25px增加到35px */
}

#mobile-video-2 .iphone14-frame,
#mobile-video-3 .iphone14-frame {
    width: 214px; /* 保持一致 */
}

#mobile-video-2 .iphone14-video,
#mobile-video-3 .iphone14-video {
    border-radius: 35px; /* 视频本身的圆角也要增加 */
}

/* 播放控制 */
.video-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* 视频进度条容器 */
.video-progress-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: none; /* 默认隐藏，hover时显示 */
    z-index: 10;
}

.video-wrapper:hover .video-progress-container {
    display: block;
}

/* 进度条样式 */
.video-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: visible; /* 改为visible让圆点可以显示在外面 */
    user-select: none; /* 防止拖拽时选中文本 */
}

.video-progress-bar {
    height: 100%;
    background: rgba(74, 144, 226, 0.9);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

/* 进度条拖拽圆点 */
.video-progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: rgba(74, 144, 226, 1);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer; /* 改为普通指针 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.video-progress:hover .video-progress-bar::after {
    opacity: 1;
}

.video-progress:hover {
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
}

.video-progress:hover .video-progress-bar {
    background: rgba(74, 144, 226, 1);
}

/* 移动端进度条适配 */
.mobile-video .video-progress-container {
    bottom: 8px;
    left: 8px;
    right: 8px;
}

.mobile-video .video-progress {
    height: 3px;
}

.mobile-video .video-progress:hover {
    height: 5px;
}

/* 移动端拖拽圆点 */
.mobile-video .video-progress-bar::after {
    width: 10px;
    height: 10px;
    right: -5px;
    border: 1px solid rgba(255, 255, 255, 0.9); /* 移动端圆点边框稍细 */
}

/* 触摸设备上始终显示圆点 */
@media (hover: none) and (pointer: coarse) {
    .video-progress-bar::after {
        opacity: 1;
    }
}

.control-btn {
    font-family: 'Inter';
    font-size: 14px;
    font-weight: 400;
    color: rgba(225, 222, 219, 1);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 播放中状态 */
.video-item.playing {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.video-item.playing .video-wrapper {
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
}

/* 视频加载优化 */
.video-player {
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.video-player:not([data-loaded="true"]) {
    opacity: 0.8;
}

/* 悬停效果增强 */
.video-wrapper:not(:hover) {
    transition: all 0.3s ease;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .video-showcase-container {
        margin: 20px 0;
        padding: 0;
    }
    
    .mobile-videos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        justify-items: center;
    }
    
    /* 移动端iPhone 14尺寸调整 */
    .iphone14-frame {
        width: 160px;
    }
    
    .iphone14-wrapper {
        width: 160px;
        height: 346px; /* 保持比例 */
        border-radius: 20px;
    }
    
    .iphone14-video {
        border-radius: 20px;
    }
    
    /* 移动端视频优化 */
    .video-player.desktop {
        max-height: 300px;
    }
    
    /* 移动端播放图标调整 */
    .play-icon {
        font-size: 36px;
    }
    
    .video-wrapper:hover .play-icon {
        font-size: 40px;
    }
    
    .mobile-video .play-icon {
        font-size: 28px;
    }
    
    .mobile-video .video-wrapper:hover .play-icon {
        font-size: 32px;
    }
    
    /* 移动端hover效果调整 */
    .video-wrapper:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    
    .iphone14-wrapper:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    
    /* 移动端播放状态调整 */
    .video-item.playing .video-wrapper {
        box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
    }
}