/* ========== 移动端精简优化 - 去除外观性交互 ========== */

/* ========== 基础移动端设置 ========== */
@media (max-width: 768px) {
    :root {
        --section-padding: 2.5rem 0;
        --container-padding: 0 1rem;
    }

    .container {
        padding: var(--container-padding);
    }

    body {
        font-size: 15px;
    }

    /* 防止横向滚动 */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* 禁用所有动画 */
    *,
    *::before,
    *::after {
        animation: none !important;
    }

    /* 禁用复杂过渡，但保留 opacity 变化 */
    * {
        transition-property: color, background-color, border-color, opacity !important;
        transition-duration: 0.2s !important;
        transition-timing-function: ease !important;
    }

    /* 允许作品卡片直接可见，避免首屏空白 */
    .work-card-v2 {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========== 导航栏移动端 ========== */
@media (max-width: 768px) {
    .navbar {
        height: 56px;
    }

    .navbar .container {
        height: 56px;
        padding: 0 0.75rem;
    }

    /* Logo字符 - 保留但缩小 */
    .logo-characters {
        display: flex !important;
        gap: -5px;
        align-items: center;
    }

    .logo-characters .character {
        transform: scale(0.35) !important;
        margin-right: -28px;
    }

    .logo-text {
        font-size: 1rem;
        margin-left: 0;
    }

    /* 汉堡菜单按钮 */
    .menu-toggle {
        width: 24px;
        height: 18px;
    }

    .menu-toggle span {
        height: 2px;
    }

    /* 移动端导航菜单 - 简洁版 */
    .nav-links {
        width: 80%;
        max-width: 280px;
        padding: 4rem 1rem 1.5rem;
        gap: 0.75rem;
        background: var(--white);
        border-left: 2px solid var(--black);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.875rem 1rem;
        border: 2px solid var(--black);
        display: block;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        box-shadow: none !important;
    }

    .nav-links a:hover,
    .nav-links a:active {
        background: var(--purple);
        color: var(--white);
    }
}

@media (max-width: 380px) {
    .logo-text {
        font-size: 0.875rem;
    }

    .logo-characters .character {
        transform: scale(0.3) !important;
        margin-right: -30px;
    }
}

/* ========== Hero区域移动端 ========== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }
}

/* ========== 作品集页面移动端 ========== */
@media (max-width: 768px) {
    .page-header-v2 {
        padding: 4rem 0 1.5rem;
    }

    .header-content {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .page-label {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
        color: var(--purple);
        font-weight: 600;
    }

    .page-title {
        font-size: 1.75rem !important;
        font-weight: 700;
        line-height: 1.3;
    }

    .title-underline {
        height: 8px;
        bottom: -2px;
    }

    .page-desc {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .page-desc br {
        display: none;
    }

    /* 统计卡片 */
    .stats-cards {
        flex-direction: row;
        gap: 0.625rem;
    }

    .stat-card {
        padding: 0.875rem 1rem;
        border-width: 2px;
        box-shadow: none !important;
        border-radius: 8px;
        flex: 1;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* 筛选标签 */
    .filter-section {
        padding-top: 1.25rem;
    }

    .filter-label {
        font-size: 0.9375rem;
        margin-bottom: 0.75rem;
    }

    .filter-tags {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .filter-tag {
        padding: 0.375rem 0.875rem;
        font-size: 0.8125rem;
        border-width: 2px;
        border-radius: 20px;
        box-shadow: none !important;
    }

    .filter-tag.active {
        background: var(--purple);
        color: var(--white);
    }

    .tag-icon {
        font-size: 0.875rem;
    }

    /* 作品网格 */
    .portfolio-masonry {
        padding: 1.5rem 0 3rem;
    }

    .masonry-container {
        padding: 0 0.5rem;
        gap: 1rem;
        display: flex;
        flex-direction: column;
    }

    .work-card-v2 {
        border-radius: 12px;
        border-width: 2px;
        box-shadow: none !important;
    }

    .work-image-wrapper-v2 {
        border-radius: 12px 12px 0 0;
    }

    .work-content-v2 {
        padding: 1rem;
    }

    .work-meta {
        margin-bottom: 0.5rem;
    }

    .work-category-v2 {
        font-size: 0.75rem;
    }

    .work-date {
        font-size: 0.75rem;
    }

    .work-title-v2 {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }

    .work-description-v2 {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
        line-height: 1.5;
    }

    .work-footer {
        margin-top: 0.625rem;
        padding-top: 0.625rem;
    }

    .work-tag {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }

    .work-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    /* 隐藏装饰角色 */
    .header-characters-v2,
    .character-peek-v2,
    .card-decoration-v2 {
        display: none !important;
    }

    /* 加载更多按钮 */
    .load-more-section {
        padding: 1.5rem 0;
    }

    .btn-load-more {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
        border-width: 2px;
        box-shadow: none !important;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .filter-tags {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-tags::-webkit-scrollbar {
        display: none;
    }

    .filter-tag {
        white-space: nowrap;
    }
}

/* ========== 作品详情页移动端 ========== */
@media (max-width: 768px) {
    .back-button {
        top: 70px;
        left: 0.5rem;
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
        border-width: 2px;
        box-shadow: none !important;
        border-radius: 6px;
    }

    .back-icon {
        font-size: 0.875rem;
    }

    .back-text {
        display: none;
    }

    .detail-hero {
        padding: 5rem 0 1.5rem;
    }

    .detail-meta {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .detail-category {
        padding: 0.25rem 0.625rem;
        font-size: 0.75rem;
    }

    .detail-title {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem;
    }

    .detail-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }

    .detail-actions {
        flex-direction: column;
        gap: 0.625rem;
    }

    .btn-detail {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
        border-width: 2px;
        box-shadow: none !important;
        border-radius: 8px;
    }

    /* 展示区域 */
    .detail-showcase {
        padding: 1rem 0;
    }

    .showcase-container {
        padding: 0 0.5rem;
    }

    .showcase-image-wrapper {
        border-radius: 12px;
        border-width: 2px;
    }

    /* 内容区 */
    .detail-body {
        padding: 1.5rem 0;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-block {
        padding: 1rem;
        border-radius: 12px;
        border-width: 2px;
        box-shadow: none !important;
    }

    .content-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .title-icon {
        font-size: 1.1rem;
    }

    .content-text {
        font-size: 0.875rem;
        line-height: 1.65;
    }

    .highlight-list {
        gap: 0.5rem;
    }

    .highlight-item {
        padding: 0.625rem;
        border-radius: 8px;
        font-size: 0.875rem;
    }

    .highlight-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .tech-tag {
        padding: 0.375rem 0.875rem;
        font-size: 0.8125rem;
    }

    /* 侧边栏 */
    .sidebar-card {
        padding: 1rem;
        border-radius: 12px;
        border-width: 2px;
        box-shadow: none !important;
    }

    .sidebar-title {
        font-size: 1rem;
    }

    .info-item {
        padding: 0.625rem 0;
    }

    .related-work {
        padding: 0.625rem;
        border-radius: 8px;
    }

    .related-thumb {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    /* 导航 */
    .detail-navigation {
        padding: 1.5rem 0;
    }

    .nav-works {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-divider {
        display: none;
    }

    .nav-work {
        padding: 0.875rem;
        border-radius: 8px;
        border-width: 2px;
        box-shadow: none !important;
    }

    .nav-arrow {
        font-size: 1.1rem;
    }

    .nav-label {
        font-size: 0.6875rem;
    }

    .nav-title {
        font-size: 0.875rem;
    }
}

/* ========== 关于页面移动端 ========== */
@media (max-width: 768px) {
    .page-header {
        padding: 5rem 0 1.5rem;
    }

    .page-header .page-title {
        font-size: 1.75rem !important;
        font-weight: 700;
        line-height: 1.3;
    }

    .page-header .page-desc {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-secondary);
    }

    .comic-story {
        padding: 2.25rem 0;
    }

    .comic-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .comic-panel.panel-large,
    .comic-panel.panel-wide {
        grid-column: span 1;
    }

    .panel-frame {
        border-width: 2px;
        border-radius: 14px;
        box-shadow: none !important;
    }

    .panel-scene {
        min-height: 190px;
        height: auto;
        border-radius: 10px 10px 0 0;
    }

    .panel-caption {
        padding: 0.9rem 0.8rem;
    }

    .caption-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        line-height: 1;
    }

    .panel-caption h3 {
        font-size: 1rem;
    }

    .panel-caption p {
        font-size: 0.84rem;
        line-height: 1.6;
    }

    .speech-bubble {
        font-size: 0.8rem;
        padding: 0.45rem 0.7rem;
        max-width: 140px;
    }

    /* 保留漫画角色显示，避免分镜空白 */
    .character-scene,
    .scene-character,
    .floating-character,
    .orbit-character {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 分镜4：四个小伙伴稳定展示 */
    .scene-grow {
        overflow: hidden;
    }

    .scene-grow .characters-orbit {
        position: absolute;
        top: 50%;
        left: 50%;
        width: min(250px, 78vw);
        height: min(250px, 78vw);
        transform: translate(-50%, -50%);
    }

    .scene-grow .orbit-ring {
        width: min(210px, 66vw);
        height: min(210px, 66vw);
        opacity: 0.36;
    }

    .scene-grow .orbit-character .body {
        transform: scale(0.64);
        transform-origin: center;
    }

    .scene-grow .trait-label {
        opacity: 1;
        bottom: -18px;
        font-size: 0.62rem;
        padding: 2px 6px;
    }

    /* 分镜5：四人同排、位置稳定 */
    .scene-now {
        overflow: hidden;
    }

    .scene-now .party-popper {
        top: 8%;
        font-size: 2.8rem;
    }

    .scene-now .characters-party {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 10%;
        height: 110px;
    }

    .scene-now .character-scene {
        bottom: 14% !important;
        right: auto !important;
        transform: none !important;
    }

    .scene-now .character-scene .body {
        transform: scale(0.58);
        transform-origin: bottom center;
    }

    .scene-now .character-purple { left: 7% !important; }
    .scene-now .character-orange { left: 30% !important; }
    .scene-now .character-black { left: 53% !important; }
    .scene-now .character-yellow { left: 76% !important; }

    /* 技能区域 */
    .skills-section {
        padding: 2rem 0;
    }

    .section-title-memphis {
        font-size: 1.35rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
    }

    .skills-visualization {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-category {
        padding: 1rem;
        border-radius: 12px;
        border-width: 2px;
        box-shadow: none !important;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .skill-item {
        gap: 0.5rem;
    }

    .skill-name {
        font-size: 0.8125rem;
        min-width: 70px;
    }

    .skill-shapes {
        gap: 0.25rem;
    }

    .shape-triangle {
        border-left-width: 5px;
        border-right-width: 5px;
        border-bottom-width: 8px;
    }

    .shape-circle,
    .shape-square,
    .shape-diamond,
    .shape-hexagon,
    .shape-star {
        width: 10px;
        height: 10px;
    }

    .skills-legend {
        font-size: 0.75rem;
        gap: 0.875rem;
    }
}


/* ========== 联系页面移动端 ========== */
@media (max-width: 768px) {
    .contact-hero {
        min-height: auto;
        padding: 4rem 1rem 1.5rem;
    }

    .hero-badge {
        padding: 0.25rem 0.75rem;
        margin-bottom: 1rem;
    }

    .badge-icon {
        font-size: 1rem;
    }

    .badge-text {
        font-size: 0.875rem;
    }

    .contact-hero .hero-title {
        font-size: 1.75rem !important;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .contact-hero .hero-title br {
        display: none;
    }

    .contact-hero .hero-desc {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        color: var(--text-secondary);
    }

    .contact-hero .hero-desc br {
        display: inline;
    }

    /* 隐藏角落角色 */
    .corner-character {
        display: none !important;
    }

    /* 联系卡片 */
    .contact-cards-section {
        padding: 2rem 0;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .contact-card {
        padding: 1rem;
        border-radius: 8px;
        border-width: 2px;
        box-shadow: none !important;
        display: flex;
        align-items: center;
        gap: 0.875rem;
        text-align: left;
    }

    .card-character {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .character-mini {
        transform: scale(0.5);
    }

    .card-content {
        flex: 1;
    }

    .card-icon {
        font-size: 1.25rem;
        margin-bottom: 0.125rem;
    }

    .card-title {
        font-size: 0.9375rem;
        margin-bottom: 0.125rem;
    }

    .card-email {
        font-size: 0.75rem;
        margin-bottom: 0.125rem;
    }

    .card-desc {
        font-size: 0.6875rem;
        margin-bottom: 0;
    }

    .card-action {
        display: none;
    }

    /* 表单区域 */
    .contact-form-section {
        padding: 2rem 0;
    }

    .form-wrapper {
        padding: 0 0.5rem;
    }

    .form-container {
        padding: 1rem;
        border-radius: 12px;
        border-width: 2px;
        box-shadow: none !important;
    }

    .form-header {
        margin-bottom: 1rem;
    }

    .form-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        box-shadow: none !important;
    }

    .form-title {
        font-size: 1.1rem;
    }

    .form-subtitle {
        font-size: 0.8125rem;
    }

    .form-group {
        margin-bottom: 0.875rem;
    }

    .form-group label {
        font-size: 0.8125rem;
        margin-bottom: 0.25rem;
    }

    .label-dot {
        width: 8px;
        height: 8px;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.625rem 0.875rem;
        border-width: 2px;
        border-radius: 8px;
        font-size: 16px; /* 防止iOS缩放 */
    }

    .form-group textarea {
        min-height: 80px;
    }

    .submit-btn {
        padding: 0.875rem;
        border-width: 2px;
        font-size: 0.9375rem;
        box-shadow: none !important;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .contact-hero .hero-title {
        font-size: 1.35rem !important;
    }

    .contact-card {
        padding: 0.875rem;
    }

    .character-mini {
        transform: scale(0.4);
    }

    .form-container {
        padding: 0.875rem;
    }
}

/* ========== Footer移动端 ========== */
@media (max-width: 768px) {
    footer {
        padding: 1.5rem 0;
    }

    .footer-content {
        gap: 0.75rem;
    }

    /* Footer 四个小人：统一同一排，底部对齐 */
    .footer-characters {
        display: flex !important;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: flex-end;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }

    .footer-characters .character {
        flex: 0 0 auto;
        margin-right: 0 !important;
        transform: scale(0.34) !important;
        transform-origin: bottom center;
        animation: none !important;
    }

    .footer-text {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .footer-characters {
        gap: 0.125rem;
    }

    .footer-characters .character {
        transform: scale(0.3) !important;
    }
}

/* ========== Toast移动端 ========== */
@media (max-width: 768px) {
    .toast {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        border-radius: 8px;
        border-width: 2px;
        box-shadow: none !important;
    }
}

/* ========== 精选作品区域移动端 ========== */
@media (max-width: 768px) {
    .portfolio-section {
        padding: 2rem 0;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-label {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .section-title {
        font-size: 1.35rem !important;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .work-card-memphis {
        border-radius: 12px;
        border-width: 2px;
        box-shadow: none !important;
    }

    .text-center-more {
        margin-top: 1.5rem;
    }
}

/* ========== 首页其他区域 ========== */
@media (max-width: 768px) {
    /* 隐藏分散注意力的装饰元素，但保留角色 */
    .hero-characters,
    .floating-shapes,
    .card-decoration,
    .deco-circle,
    .deco-triangle,
    .deco-zigzag {
        display: none !important;
    }

    /* 简化分隔线 */
    .section-divider {
        height: 2px;
        margin: 1rem 0;
        opacity: 0.3;
    }
}

/* ========== 横屏手机优化 ========== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 4rem 0 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 1.5rem;
    }

    .hero-cta {
        flex-direction: row;
    }

    .btn-memphis {
        width: auto;
    }

    .nav-links {
        padding: 1.5rem;
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.5rem 1rem;
        font-size: 0.9375rem;
    }
}

/* ========== iPhone刘海屏适配 ========== */
@supports (padding-top: env(safe-area-inset-top)) {
    @media (max-width: 768px) {
        .navbar {
            padding-top: env(safe-area-inset-top);
        }

        .nav-links {
            padding-top: calc(env(safe-area-inset-top) + 1.5rem);
        }

        .hero {
            padding-top: calc(4rem + env(safe-area-inset-top));
        }
    }
}

/* ========== 触摸设备优化 ========== */
@media (hover: none) and (pointer: coarse) {
    /* 增大触摸目标 */
    .btn-memphis,
    .btn-detail,
    .filter-tag,
    .card-btn,
    .nav-links a,
    .work-card-v2,
    .contact-card,
    .back-button {
        min-height: 44px;
    }

    /* 禁用悬停效果 */
    .work-card-v2:hover,
    .work-card-memphis:hover,
    .btn-memphis:hover,
    .btn-detail:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* ========== 强制隐藏装饰元素 ========== */
@media (max-width: 768px) {
    /* 只隐藏已知装饰类，避免误伤内容类名 */
    .character-peek-v2,
    .card-decoration-v2,
    .deco-circle-v2,
    .deco-triangle-v2,
    .deco-zigzag-v2,
    .loading-characters,
    [class*="floating-shape"],
    [class*="ornament"],
    [class*="particle"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* 动画相关类 */
    .animated,
    .fade-in,
    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .fade-in-scale,
    .bounce,
    .pulse,
    .float,
    .wiggle,
    .shake {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* 视差滚动元素 */
    [data-parallax],
    [data-follow-speed] {
        transform: none !important;
    }

    /* 3D效果元素 */
    [style*="transform-style: preserve-3d"],
    [style*="perspective"] {
        transform-style: flat !important;
        perspective: none !important;
    }

    /* 进度条简化 */
    .progress-bar,
    #progressBar {
        height: 3px;
    }

    /* 页面加载动画隐藏 */
    .page-loading,
    #pageLoading {
        display: none !important;
    }

    /* 加载动画简化 */
    .loading-memphis {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 200px;
    }

    .loading-memphis .loading-characters,
    .loading-memphis .character {
        display: none !important;
    }

    .loading-memphis .loading-text {
        font-size: 1rem;
        color: var(--text-secondary);
    }

    /* 空状态简化 */
    .empty-state-v2 {
        padding: 2rem 1rem;
    }

    .empty-state-v2 .empty-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .empty-state-v2 h3 {
        font-size: 1.1rem;
        margin-bottom: 0.375rem;
    }

    .empty-state-v2 p {
        font-size: 0.875rem;
    }

    /* 管理后台表格简化 */
    .works-table {
        font-size: 0.8125rem;
    }

    .works-table th,
    .works-table td {
        padding: 0.625rem;
    }

    .work-thumbnail {
        width: 48px;
        height: 48px;
    }

    /* 模态框简化 */
    .modal-content {
        margin: 1rem;
        border-radius: 12px;
    }

    .modal-body {
        padding: 1rem;
    }
}
    :root {
        --container-padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 1.4rem !important;
    }

    .page-title {
        font-size: 1.5rem !important;
    }

    .btn-memphis,
    .btn-detail {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }
}

/* ========== 禁用所有滚动触发动画 ========== */
@media (max-width: 768px) {
    .scroll-animate,
    .reveal,
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }

    /* 强制显示常见 reveal 类，避免首屏元素不可见 */
    .fade-in,
    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    /* 作品卡片直接显示 */
    .work-card-v2 {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========== 移动端视觉一致性修复（保留PC风格） ========== */
@media (max-width: 768px) {
    /* 首页 Hero：文字与背景分层，避免重叠 */
    .hero {
        position: relative;
        overflow: hidden;
    }

    .hero-left {
        position: relative;
        z-index: 3;
        padding-left: 0 !important;
        text-align: center !important;
        margin: 0 auto;
        width: 100%;
    }

    .hero-left::before {
        left: 50% !important;
        transform: translateX(-50%) rotate(-10deg) !important;
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        justify-items: center;
        text-align: center;
        gap: 1.5rem !important;
    }

    .hero-right {
        position: relative;
        z-index: 2;
    }

    .hero-bg-shapes {
        position: absolute;
        inset: 0;
        z-index: 1;
        opacity: 0.24 !important;
        pointer-events: none;
    }

    .hero-shape,
    .memphis-dot {
        transform: scale(0.42) !important;
    }

    .shape-purple-tall { top: 4% !important; left: -20% !important; }
    .shape-orange-round { top: 62% !important; left: -18% !important; }
    .shape-yellow-blob { top: 4% !important; right: -20% !important; }
    .shape-cyan-circle { top: 68% !important; right: -16% !important; }
    .shape-pink-triangle { top: 50% !important; left: 74% !important; }

    /* 首页 Hero：排版与轻量入场动画 */
    .hero-desc,
    .hero-cta {
        position: relative;
        z-index: 3;
        animation: mobileHeroEnter 0.55s ease-out both !important;
    }

    .hero-title {
        position: relative;
        z-index: 3;
        animation: mobileHeroEnter 0.55s ease-out both !important;
        animation-delay: 0.1s !important;
    }

    .hero-title {
        margin-bottom: 0.9rem !important;
        line-height: 1.25 !important;
        text-align: left !important;
        width: 100%;
    }

    .hero-title span {
        display: inline-block;
    }

    .hero-desc { animation-delay: 0.15s !important; }
    .hero-cta { animation-delay: 0.2s !important; }

    /* About 分镜4：重排为稳定的四向环绕布局 */
    .comic-panel.panel-wide .panel-scene {
        min-height: 280px;
    }

    .scene-grow {
        overflow: hidden;
        position: relative;
    }

    .scene-grow .creator-center {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }

    .scene-grow .characters-orbit {
        position: absolute;
        top: 50%;
        left: 50%;
        width: min(220px, 74vw);
        height: min(220px, 74vw);
        transform: translate(-50%, -50%);
        z-index: 3;
        animation: none !important;
    }

    .scene-grow .orbit-ring {
        width: min(220px, 74vw);
        height: min(220px, 74vw);
        opacity: 0.35 !important;
        animation: none !important;
    }

    .scene-grow .orbit-character {
        position: absolute;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        animation: none !important;
        filter: none !important;
    }

    .scene-grow .orbit-character .body {
        transform: scale(0.52) !important;
        transform-origin: center;
    }

    .scene-grow .orbit-character.character-purple {
        top: 0;
        left: 50%;
        transform: translate(-50%, 0) !important;
    }

    .scene-grow .orbit-character.character-orange {
        top: 50%;
        right: 0;
        transform: translate(0, -50%) !important;
    }

    .scene-grow .orbit-character.character-black {
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 0) !important;
    }

    .scene-grow .orbit-character.character-yellow {
        top: 50%;
        left: 0;
        transform: translate(0, -50%) !important;
    }

    .scene-grow .trait-label {
        display: none !important;
    }

    /* About 分镜5：改为同排底对齐布局，避免偏移 */
    .comic-panel.panel-large:last-child .panel-scene {
        min-height: 250px;
    }

    .scene-now {
        overflow: hidden;
        position: relative;
    }

    .scene-now .party-popper {
        top: 8%;
        font-size: 2.6rem;
    }

    .scene-now .speech-large {
        top: 14% !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        max-width: 200px;
    }

    .scene-now .characters-party {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 9%;
        width: min(320px, 92%);
        height: 95px;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    .scene-now .character-scene {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }

    .scene-now .character-scene .body {
        transform: scale(0.56) !important;
        transform-origin: bottom center;
    }

    .scene-now .character-purple,
    .scene-now .character-orange,
    .scene-now .character-black,
    .scene-now .character-yellow {
        margin: 0 !important;
    }
}

@keyframes mobileHeroEnter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 紧急滚动恢复（移动端） ========== */
@media (max-width: 768px) {
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body {
        position: static !important;
    }

    /* 防止加载层残留导致页面异常变长或无法正常滚动 */
    .page-loading,
    #pageLoading,
    #detailLoading,
    .page-loading.hidden,
    #pageLoading.hidden,
    #detailLoading.hidden {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* 防止转场层在非激活时占据交互 */
    .site-transition:not(.is-active) {
        display: none !important;
    }
}

/* ========== 紧急滚动恢复 v2（移动端） ========== */
@media (max-width: 768px) {
    /* 仅重置已知视差源，避免误伤其它内联 transform */
    .hero-shape[style*="translate3d("],
    [data-parallax][style*="translateY("],
    [style*="rotateX("][data-parallax],
    [style*="rotateY("][data-parallax] {
        transform: none !important;
    }

    /* 非激活的导航遮罩/菜单不参与交互与布局 */
    .nav-overlay:not(.active) {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .nav-links:not(.active) {
        pointer-events: none !important;
    }

    .hero,
    .portfolio-section,
    .page-header-v2,
    .portfolio-masonry,
    footer {
        overflow-x: clip !important;
    }
}
