* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(145deg, #fef9f0 0%, #f2f5fc 100%);
    color: #1e293b;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #e9eef3;
}
::-webkit-scrollbar-thumb {
    background: #b9c2d0;
    border-radius: 10px;
}

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.9rem 2rem;
    transition: all 0.2s;
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo i {
    font-size: 1.9rem;
    background: none;
    -webkit-background-clip: unset;
    color: #3b82f6;
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #334155;
    transition: 0.2s;
    font-size: 0.95rem;
}
.nav-links a:hover {
    color: #3b82f6;
}
.cta-nav-btn {
    background: linear-gradient(105deg, #3b82f6, #6366f1);
    border: none;
    padding: 0.55rem 1.5rem;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
    cursor: pointer;
}
.cta-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    background: linear-gradient(105deg, #2563eb, #4f46e5);
}
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #1e293b;
    cursor: pointer;
}

/* 详情页主布局 */
.detail-container {
    max-width: 1400px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.8rem;
    transition: 0.2s;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
}
.back-link i {
    font-size: 1rem;
}
.back-link:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateX(-3px);
}
.detail-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 48px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: 0.2s;
}
.detail-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.detail-image-area {
    flex: 1.2;
    min-width: 280px;
    padding: 1.8rem 1.8rem 1.8rem 1.8rem;
}
.artwork-image {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.25);
    background: #f1f5f9;
    transition: transform 0.3s ease;
}
.artwork-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.4s;
}
.artwork-image:hover img {
    transform: scale(1.02);
}
.image-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 0.3rem 1rem;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    z-index: 2;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.detail-info-area {
    flex: 1;
    padding: 2rem 2rem 2rem 0.5rem;
}
.work-title {
    font-size: 1.4rem;
    font-weight: 500;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}
.author-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.author-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, #3b82f6, #a855f7);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.2);
}
.author-details h4 {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}
.author-details p {
    font-size: 0.8rem;
    color: #5b6e8c;
    display: flex;
    align-items: center;
    gap: 4px;
}
.prompt-box {
    background: rgba(255, 255, 245, 0.7);
    border-radius: 28px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(203, 213, 225, 0.5);
    backdrop-filter: blur(4px);
}
.prompt-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.prompt-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #1e2a3e;
    font-weight: 500;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 1rem;
    border-radius: 20px;
    font-family: monospace;
}
.copy-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.copy-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}
.meta-stats {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0 1.8rem;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.4rem 1rem;
    border-radius: 60px;
    font-size: 0.85rem;
}
.generate-same-btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border: none;
    padding: 1rem 2rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 12px 22px -8px rgba(59, 130, 246, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 0.5rem;
}
.generate-same-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 18px 28px -10px rgba(59, 130, 246, 0.5);
}
.extra-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #5b6e8c;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    display: inline-block;
}

/* ============================================================ */
/* 相关作品卡片样式 — 图片展示版                                  */
/* ============================================================ */

.related-title {
    margin: 4rem 0 1.5rem 0;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.8rem;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .related-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.gallery-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.gallery-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    border: 1px solid rgba(203, 213, 225, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 36px -16px rgba(59, 130, 246, 0.25);
    border-color: #cbd5e1;
}

/* 卡片图片容器 — 保持 3:4 比例 */
.card-image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: #f1f5f9; /* 加载占位背景色 */
}

/* 图片本身 — 铺满容器 */
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0;
    transition: transform 0.4s ease;
}

/* 悬浮时图片微微放大 */
.gallery-card:hover .card-image img {
    transform: scale(1.04);
}

/* 图片上的遮罩层 — 保留用于渐变效果 */
.card-image .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.15));
    z-index: 1;
    border-radius: 10px 10px 0 0;
    pointer-events: none;
}

/* 右上角标签 — 保持在图片之上 */
.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    z-index: 3;
    letter-spacing: 0.3px;
}

/* 悬浮信息层 — 底部按钮区域 */
.gallery-card .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    backdrop-filter: blur(2px);
    padding: 1rem 1rem 1rem;
    border-radius: 0 0 10px 10px;
    z-index: 10;
    transition: all 0.2s;
    box-sizing: border-box;
    pointer-events: none;
}

.card-title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.try-btn {
    pointer-events: auto;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 0.35rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    transition: 0.2s;
    cursor: pointer;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.try-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: scale(1.02);
}

/* 卡片外部标题 - 居中对齐 */
.card-outside-title {
    text-align: center;
    margin-top: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f2a44;
    letter-spacing: -0.2px;
    background: transparent;
    padding: 0 0.25rem;
    transition: 0.1s;
}

/* ============================================================ */

/* footer & 响应式 */
footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 3rem 2rem 1.5rem;
    margin-top: 3rem;
}
.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}
.footer-brand p {
    margin-top: 12px;
    max-width: 260px;
    font-size: 0.85rem;
}
.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}
.footer-col h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    transition: 0.2s;
}
.footer-col a:hover {
    color: #3b82f6;
}
.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #1e293b;
    font-size: 0.75rem;
    color: #5b6e8c;
}

@media (max-width: 800px) {
    .navbar {
        padding: 0.8rem 1.2rem;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    .nav-links.open {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .detail-container {
        padding: 0 1.2rem;
    }
    .detail-inner {
        flex-direction: column;
    }
    .detail-info-area {
        padding: 0 1.2rem 1.8rem;
    }
    .work-title {
        font-size: 1.2rem;
    }
    .generate-same-btn {
        width: 100%;
        justify-content: center;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
    .related-grid {
        gap: 0.7rem;
    }
}


.logo-img {
    height: 40px;          /* 根据导航栏高度调整 */
    width: auto;
    display: block;
}