/* Page-specific source rules for the showcase mockup.
   Shared editorial overrides remain in mockup.css. */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #ffffff;
            color: #111111;
            font-family: 'Inter', sans-serif;
            line-height: 1.5;
            scroll-behavior: smooth;
            overflow-x: hidden;
        }

        ::selection {
            background: #111;
            color: #fff;
        }

        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: #f0f0f0;
        }

        ::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 0px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #222;
        }

        .category {
            margin: 2rem 0;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            overflow: hidden;
        }

        .showcase-filters {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5rem;
            margin: 1.5rem 0 2rem;
        }

        .filter-label {
            color: #666;
            font-size: 0.8rem;
            margin-right: 0.25rem;
        }

        .filter-btn {
            border: 1px solid #d6d6d6;
            border-radius: 999px;
            background: #fff;
            color: #333;
            padding: 0.45rem 0.8rem;
            cursor: pointer;
            font: inherit;
            font-size: 0.78rem;
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: #111;
            border-color: #111;
            color: #fff;
        }

        .category-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.5rem;
            background: #fafafa;
            border-bottom: 1px solid #e0e0e0;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .category-header:hover {
            background: #f0f0f0;
        }

        .category-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin: 0;
            color: #111;
        }

        .category-desc {
            font-size: 0.9rem;
            color: #666;
            margin: 0.5rem 0 0 0;
            line-height: 1.4;
        }

        /* 标签样式 */
        .tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 0.6rem;
        }

        .tag {
            display: inline-block;
            padding: 0.2rem 0.7rem;
            font-size: 0.7rem;
            font-weight: 500;
            border-radius: 20px;
            letter-spacing: 0.3px;
            background: #f0f0f0;
            color: #333;
            transition: all 0.2s ease;
        }

        .tag:hover {
            transform: translateY(-1px);
        }

        /* ========== 主色调 Mains ========== */
        .tag-teaching {
            background: #e8d9c8;
            color: #5a3e2a;
        }

        .tag-research {
            background: #d4e0d4;
            color: #3a5a3a;
        }

        .tag-workshop {
            background: #f0e4d0;
            color: #6b4c2c;
        }

        .tag-competition {
            background: #d9d0c8;
            color: #5a4a3a;
        }

        .tag-optimization {
            background: #c8d4d9;
            color: #3a5a5a;
        }

        /* ========== 中性色 Neutrals ========== */
        .tag-modelling {
            background: #ece6df;
            color: #5a5048;
        }

        .tag-urban {
            background: #e8e0d8;
            color: #5a4e42;
        }

        .tag-facade {
            background: #e0dcd8;
            color: #5a5248;
        }

        .tag-pv {
            background: #dae8e0;
            color: #3a5a4a;
        }

        .tag-performance {
            background: #e0e0d8;
            color: #5a5848;
        }

        .tag-ai {
            background: #e0d8e0;
            color: #5a4a6a;
        }

        .tag-design-exploration {
            background: #e8dcd0;
            color: #6a5a3a;
        }

        .tag-collaboration {
            background: #d8e0e0;
            color: #4a5a5a;
        }

        .tag-tool-development {
            background: #e0d4c8;
            color: #6a4a2a;
        }

        .tag-software {
            background: #dce0dc;
            color: #4a5a4a;
        }

        /* ========== 强调色 Accents ========== */
        .tag-xjtlu {
            background: #d0dce8;
            color: #2a4a6a;
        }

        .tag-nju {
            background: #e0d4e0;
            color: #5a3a6a;
        }

        .tag-nus {
            background: #d0e0d4;
            color: #2a5a4a;
        }

        .tag-nua {
            background: #e4d8cc;
            color: #8a5a3a;
        }

        .tag-ncku {
            background: #e8dcd0;
            color: #7a5a2a;
        }

        .tag-digitalfutures {
            background: #f0e0cc;
            color: #aa5a2a;
        }

        .tag-caadria {
            background: #e4d0d0;
            color: #8a4a4a;
        }

        .tag-hdb {
            background: #cce0dc;
            color: #2a6a5a;
        }

        .tag-surf {
            background: #e0dcd0;
            color: #6a6a3a;
        }

        .toggle-btn {
            background: transparent;
            border: 1px solid #ccc;
            width: 32px;
            height: 32px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border-radius: 4px;
        }

        .toggle-btn:hover {
            border-color: #111;
            background: #f8f8f8;
        }

        .toggle-icon {
            display: inline-block;
            width: 16px;
            height: 16px;
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
        }

        .icon-arrow-down {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        }

        .icon-minus {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
        }

        .category-content {
            display: none;
            padding: 1.5rem;
            background: #fff;
        }

        .category.expanded .category-content {
            display: block;
        }

        .carousel-wrapper {
            position: relative;
            width: 100%;
            margin: 0 auto;
        }

        .carousel-media {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 56.25%;
            background: #f0f0f0;
            border-radius: 8px;
            overflow: hidden;
        }

        .carousel-image,
        .carousel-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
            object-fit: contain;
            display: none;
        }

        .carousel-image {
            cursor: pointer;
            transition: opacity 0.2s;
        }

        .carousel-image:hover {
            opacity: 0.9;
        }

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 38px;
            height: 38px;
            border: 1px solid rgba(34, 34, 34, 0.2);
            background: rgba(255, 255, 255, 0.9);
            color: #111;
            font-size: 1.25rem;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s;
            z-index: 2;
        }

        .carousel-btn:hover {
            background: #f7f7f7;
            border-color: #999;
        }

        .carousel-btn.prev {
            left: 0.8rem;
        }

        .carousel-btn.next {
            right: 0.8rem;
        }

        .carousel-thumbnail {
            display: block;
            width: 58px;
            height: 45px;
            padding: 5px;
            box-sizing: border-box;
            object-fit: cover;
            flex-shrink: 0;
            border: 2px solid transparent;
            border-radius: 6px;
            background: #fafafa;
            cursor: pointer;
            transition: border-color 0.2s;
        }

        .carousel-thumbnail.active {
            border-color: #111;
        }

        .carousel-thumbnail:hover {
            border-color: #666;
        }

        .carousel-thumbnails,
        .carousel-pagination {
            width: 100%;
            display: flex;
            justify-content: center;
            margin-top: 0.5rem;
        }

        .carousel-pagination {
            text-align: center;
        }

        .media-caption {
            margin-top: 1rem;
            width: 100%;
            max-width: 100%;
            color: #4a4a4a;
        }

        .caption-title {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 0.4rem;
            color: #111;
        }

        .caption-text {
            font-size: 0.9rem;
            line-height: 1.6;
            color: #555;
        }

        /* 项目底部 meta 信息：左右对齐 */
        .project-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 0.75rem;
            padding-top: 0.5rem;
            border-top: 1px solid #eee;
        }

        .contributors {
            font-size: 0.9rem;
            font-weight: 500;
            color: #333;
            margin: 0;
        }

        .contributors strong {
            font-weight: 700;
            color: #111;
        }

        .paper-link-btn {
            display: inline-block;
            background: #111;
            color: #fff;
            padding: 0.3rem 0.9rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s;
            border: 1px solid #111;
            white-space: nowrap;
        }

        .paper-link-btn:hover {
            background: transparent;
            color: #111;
        }

        .footer {
            padding: 2.5rem 0 2rem;
            text-align: center;
            border-top: 1px solid #ececec;
            margin-top: 3rem;
            font-size: 0.8rem;
            color: #5a5a5a;
        }

        .image-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }

        .image-modal.active {
            display: flex;
        }

        .modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .modal-content img {
            max-width: 100%;
            max-height: 90vh;
            object-fit: contain;
            border-radius: 4px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .modal-close {
            position: absolute;
            top: -40px;
            right: -40px;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s;
            font-size: 24px;
            color: white;
            font-weight: 300;
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.4);
        }

        .modal-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s;
            font-size: 32px;
            color: white;
            font-weight: 300;
            z-index: 2001;
        }

        .modal-nav:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .modal-prev {
            left: 20px;
        }

        .modal-next {
            right: 20px;
        }

        @media (max-width: 768px) {
            .modal-close {
                top: -50px;
                right: 0;
            }

            .modal-nav {
                width: 40px;
                height: 40px;
                font-size: 24px;
            }

            .modal-prev {
                left: 10px;
            }

            .modal-next {
                right: 10px;
            }
        }

        @media (max-width: 680px) {
            .page-title {
                font-size: 1.6rem;
            }

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

            .carousel-btn {
                width: 32px;
                height: 32px;
                font-size: 1rem;
            }

            .carousel-btn.prev {
                left: 0.5rem;
            }

            .carousel-btn.next {
                right: 0.5rem;
            }

            .carousel-thumbnail {
                width: 45px;
                height: 35px;
                padding: 3px;
            }

            .carousel-media {
                padding-bottom: 133.33% !important;
            }

            .caption-text {
                font-size: 0.85rem;
            }

            .category-header {
                flex-direction: column;
                align-items: stretch;
                gap: 1rem;
            }

            .category-header .toggle-btn {
                width: 100%;
                background: #f5f5f5;
                border: 1px solid #e0e0e0;
                border-radius: 8px;
                padding: 0.6rem 0;
                margin-top: 0;
            }

            .toggle-icon {
                width: 18px;
                height: 18px;
            }

            .paper-link-section {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .carousel-thumbnail {
                width: 40px;
                height: 30px;
            }
        }
    


