/* ===== SUB-STYLE CSS - 子页面通用样式 ===== */
/* 用于 UCG 和 TreeNode 等项目详情页面 */

/* 使用父页面的CSS变量 */
:root {
    --primary-color: #3B5998;
    --secondary-color: #a8c1f3;
    --text-color: #839ccf;
    --light-gray: #f5f5f5;
    --border-radius-base: 8px;
    /* 基本圆角 */
    --border-radius-card: 12px;
    /* 卡片圆角 */
    --border-radius-small: 8px;
    /* 小组件圆角 */
    --transition-speed: 0.3s;
    --sidebar-bg: #3B5998;
    --sidebar-hover: #4c70ba;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    background-image: url(../images/backgrounds/main-bg.png);
    background-repeat: repeat;
    background-position: center center;
    background-attachment: fixed;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ===== 圆形返回按钮 ===== */
.back-button {
    position: fixed;
    top: 45px;
    right: 45px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.3);
}

.back-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 89, 152, 0.4);
}

.back-button i {
    font-size: 18px;
}

.back-button::after {
    content: "返回项目列表";
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--border-radius-base);
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.back-button:hover::after {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

/* ===== SIDEBAR PROFILE - 完全使用父页面样式 ===== */
.widget-profile {
    position: fixed;
    left: 0;
    top: 0;
    width: 180px;
    height: 100vh;
    background: var(--sidebar-bg);
    color: #fff;
    padding: 20px;
    padding-top: 50px;
    overflow-y: auto;
    z-index: 100;
}

.profile__image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--secondary-color);
}

.profile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile__info {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.profile__name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.profile__title {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 400;
}

.profile__location {
    font-size: 14px;
    color: var(--text-color);
}

.profile__location i {
    margin-right: 5px;
}

/* ===== MAIN CONTENT AREA - 使用父页面样式 ===== */
.main-content {
    margin-left: 180px;
    padding: 15px 30px 30px 30px;
    min-height: 100vh;
    background: transparent;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.project-container {
    width: 100%;
    margin: 0 auto;
}

/* ===== Content Sections 区域样式 ===== */
.content-sections {
    background: #f8fafc;
    padding: 2rem;
    border-radius: var(--border-radius-base);
    margin-top: 1rem;
}

/* ===== 项目标题区 ===== */
.project-header {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius-card);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.project-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.project-info-section {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: -10px;
}

.project-logo {
    width: 80px;
    height: 80px;
    margin-right: 1.5rem;
    border-radius: var(--border-radius-small);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.project-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-text {
    flex: 0 0 auto;
    margin-right: 1rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    text-align: left;
}

.project-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    text-align: left;
    margin: 0;
    max-width: 450px;
}

.project-stats {
    display: flex;
    gap: 1rem;
    flex: 0 0 auto;
}

.stat-item {
    text-align: center;
    padding: 0.5rem 0.75rem;
    background: var(--light-gray);
    border-radius: var(--border-radius-small);
    min-width: 80px;
}

.stat-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* ===== 内容区块 ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.content-grid-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}


.content-grid-timeline {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.content-card {
    background: #ffffff;
    padding: 2rem;
    padding-top: 1.2rem;
    border-radius: var(--border-radius-card);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.content-card.full-width {
    grid-column: 1 / -1;
    margin-top: 2rem;
}


.content-card.full-width.image {
    background: transparent;
    box-shadow: none;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content p {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-content ul {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.card-content li {
    margin-bottom: 0.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tech-tag {
    background: #eff6ff;
    color: var(--primary-color);
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius-card);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===== 紧凑的功能展示 ===== */
.features-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.feature-compact {
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: var(--border-radius-small);
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* ===== 项目链接 ===== */
.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e1e4e8;
}

.cta-button.secondary:hover {
    background: #e1e4e8;
}

/* ===== 统计数据网格 ===== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.metric-card {
    background: #f8fafc;
    border: 1px solid #e1e4e8;
    border-radius: var(--border-radius-small);
    padding: 1rem;
    text-align: center;
}

.metric-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.metric-label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===== UCG专用样式 ===== */
/* 紧凑的海报展示 */
.poster-showcase-compact {
    text-align: center;
}

.poster-showcase-compact img {
    width: 100%;
    max-width: 300px;
    border-radius: var(--border-radius-small);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 紧凑的亮点展示 */
.highlights-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.highlight-item strong {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.highlight-item span {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* App截图展示区 */
.app-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.app-screenshot {
    background: #ffffff;
    padding: 1rem;
    border-radius: var(--border-radius-card);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.app-screenshot img {
    width: 100%;
    max-width: 250px;
    border-radius: var(--border-radius-small);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.screenshot-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 1rem;
    font-weight: 500;
}

/* Poster展示区 */
.poster-showcase {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius-card);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.poster-showcase img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius-small);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 功能特性网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: var(--border-radius-card);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* ===== 移动端菜单按钮 ===== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--border-radius-base);
    font-size: 1.25rem;
    cursor: pointer;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }

    .widget-profile {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .widget-profile.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        max-width: 100vw;
        padding: 20px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-grid-three {
        grid-template-columns: 1fr;
        margin-top: 1rem;
    }

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

    .project-stats {
        grid-template-columns: 1fr 1fr;
        min-width: 200px;
    }

    .app-showcase {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .back-button {
        top: 30px;
        right: 35px;
        width: 45px;
        height: 45px;
    }

    .project-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .project-info-section {
        width: 100%;
    }

    .project-stats {
        width: 100%;
        min-width: unset;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* 时间轴移动端样式 */
    .fishbone-timeline {
        padding: 1.5rem 0;
    }

    .timeline-item {
        width: 100%;
        margin-bottom: 2rem;
        display: block;
    }

    .timeline-line {
        left: 6px;
        width: 3px;
        height: 100%;
        top: 0;
        transform: none;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }

    .project-header {
        padding: 1rem;
    }

    .project-title {
        font-size: 0.9rem;
    }

    .project-subtitle {
        font-size: 0.5rem;
    }

    .project-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .widget-profile {
        width: 180px;
    }

    .back-button {
        top: 20px;
        right: 25px;
        width: 40px;
        height: 40px;
    }

    .back-button i {
        font-size: 16px;
    }

    .content-grid-three {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }

    .features-compact {
        grid-template-columns: 1fr;
    }

    .project-info-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .project-logo {
        margin-right: 0;
        margin-bottom: 0;
    }

    .project-text {
        text-align: left;
    }

    .content-sections {
        padding: 1rem;
        margin-top: 1rem;
    }

    .content-card.full-width {
        margin-top: 1rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .widget-profile {
        width: 100%;
    }
}

/* ===== Chrome商店卡片样式 ===== */
.chrome-store-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e1e4e8;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chrome-store-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4285f4, #0f9d58, #ea4335, #fbbc05);
}

.store-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.store-logo {
    flex-shrink: 0;
}

.store-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.store-details p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.store-stats {
    display: flex;
    gap: 1rem;
}

.store-stat {
    text-align: center;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: var(--border-radius-small);
    min-width: 60px;
}

.store-stat .stat-number {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
}

.store-stat .stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.chrome-store-card .card-content {
    display: flex;
    flex: 1;
    align-items: center;
}

.store-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.primary-button {
    background: linear-gradient(135deg, #4285f4, #3367d6);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.primary-button:hover {
    background: linear-gradient(135deg, #3367d6, #2c5aa0);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
}

.secondary-button {
    background: #ffffff;
    color: #ff6154;
    border: 2px solid #ff6154;
    font-weight: 500;
}

.secondary-button:hover {
    background: #ff6154;
    color: #ffffff;
    transform: translateY(-2px);
}

.cta-button i {
    margin-right: 0.5rem;
}

/* ===== 时间轴卡片调整 ===== */
.timeline-card .card-content .simple-timeline {
    padding: 0;
}

.timeline-card .card-content .simple-timeline ul {
    margin-bottom: 0;
}

/* 简洁版timeline */
.simple-timeline {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding: 2rem 0 0 0;
    margin: 0;
}

.simple-timeline .timeline-line {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
    border-radius: 2px;
}

.simple-timeline .timeline-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.simple-timeline .timeline-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -25px;
    /* margin-bottom: 0.5rem; */
}

.simple-timeline .timeline-dot::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    margin: 0.5rem 0;
    z-index: 2;
}

.simple-timeline .version-tag {
    background: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.simple-timeline .timeline-date {
    font-size: 0.75rem;
    color: #64748b;
    order: -1;
    margin-bottom: 0;
}

.simple-timeline .feature-list {
    margin-top: 0.2rem;
    padding-left: 0;
    list-style: none;
    text-align: left;
}

.simple-timeline .feature-list li {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 0.1rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
}

.simple-timeline .feature-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 1024px) {
    .simple-timeline {
        flex-direction: column;
        align-items: stretch;
    }

    .simple-timeline .timeline-line {
        top: 40px;
        left: 40px;
        width: 4px;
        height: calc(100% - 40px);
        background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    }

    .simple-timeline .timeline-item {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 1rem;
    }

    .simple-timeline .timeline-dot {
        margin-right: 1rem;
    }

    .simple-timeline .feature-list {
        text-align: left;
    }
}

/* ===== 设计作品集页面专用样式 ===== */
.design-gallery-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    margin: 0 auto;
}

.design-group {
    margin-bottom: 2rem;
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius-card);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.design-group-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color, #3B5998);
    margin-bottom: 24px;
    margin-top: 30px;
    border-bottom: 2px solid #e1e4e8;
    padding-bottom: 12px;
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.design-item {
    background: #fafbfc;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(59, 89, 152, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.design-item:hover {
    box-shadow: 0 6px 24px rgba(59, 89, 152, 0.15);
    transform: translateY(-4px);
}

.design-img-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.design-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.design-item:hover .design-img {
    transform: scale(1.05);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.photo-item {
    background: #fafbfc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(59, 89, 152, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    box-shadow: 0 4px 16px rgba(59, 89, 152, 0.15);
    transform: translateY(-2px);
}

.photo-img-container {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-img {
    transform: scale(1.03);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .main-content {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 15px;
    }

    .design-group-title {
        font-size: 1.2rem;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px 10px;
    }
}

/* ===== 表情包页面专用样式 ===== */
/* Emoji Header 1:2 布局 */
.emoji-header-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.emoji-header-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.emoji-header-photo img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius-card);
    object-fit: cover;
}

.emoji-header-content {
    width: 100%;
}

.emoji-header-content .project-header-content {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.emoji-header-content .project-info-section {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.emoji-header-content .project-stats {
    width: 100%;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-icon {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
    border-radius: var(--border-radius-small);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 表情包展示区域 */
.emoji-gallery {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius-card);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.emoji-group {
    margin-bottom: 3rem;
}

.emoji-group:last-child {
    margin-bottom: 0;
}

.emoji-group-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e1e4e8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emoji-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
    gap: 1rem !important;
    width: 100% !important;
}

.emoji-item {
    background: #fafbfc;
    border-radius: var(--border-radius-small);
    box-shadow: 0 2px 8px rgba(59, 89, 152, 0.06);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1;
}

.emoji-item:hover {
    box-shadow: 0 4px 16px rgba(59, 89, 152, 0.15);
    transform: translateY(-2px);
    background: #fff;
}

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

/* Emoji 页面的 Lightbox 样式调整 */
.emoji-gallery+.lightbox .lightbox-img {
    max-width: 400px;
    max-height: 400px;
    border-radius: var(--border-radius-card);
    background: #fff;
    padding: 12px;
}

.emoji-gallery+.lightbox .lightbox-close {
    top: 40px;
    right: 60px;
    font-size: 2.5rem;
    transform: none;
}

.emoji-gallery+.lightbox .lightbox-close:hover {
    transform: scale(1.1);
    color: #ff6b6b;
}

/* Emoji 页面响应式样式 */
@media (max-width: 1024px) {
    .emoji-header-layout {
        gap: 1.5rem;
    }

    .emoji-header-photo img {
        max-width: 350px;
    }

    .emoji-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .emoji-gallery {
        padding: 1.5rem;
    }

    .emoji-group-title {
        font-size: 1.1rem;
    }

    /* Emoji Header 移动端布局 */
    .emoji-header-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .emoji-header-photo img {
        max-width: 250px;
    }

    .emoji-header-content .project-header-content {
        gap: 1rem;
    }

    .emoji-header-content .project-info-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .emoji-header-content .project-stats {
        gap: 0.75rem;
    }

    .project-icon {
        margin-right: 0;
        margin-bottom: 0;
    }

    .project-text {
        text-align: left;
        margin-right: 0;
    }

    .emoji-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.5rem;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .emoji-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 0.5rem;
    }

    .lightbox-img {
        max-width: 90vw;
        max-height: 90vh;
    }
}