
/* -----------------------------------------------------------
   Intro Page (Page 2) Styling
   ----------------------------------------------------------- */
.intro-page {
    /* Fresh Pink Style - Cleaner, brighter pinks */
    background-color: #fff0f5; /* LavenderBlush base */
    background-image: linear-gradient(135deg, #fff0f5 0%, #fff5f8 100%); /* Subtle, clean gradient */
    color: #880e4f; /* Deep crisp purple/pink for text */
    /* display: flex; REMOVED - Controlled by .active class */
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* Ensure it's hidden by default (overriding any potential specificity issues) */
.intro-page:not(.active) {
    display: none !important;
}

/* Only display flex when active */
.intro-page.active {
    display: flex !important;
}

/* Removed vignette effect for cleaner look */
.intro-page::after {
    display: none;
}

.intro-page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2; /* Ensure content is above vignette */
}

/* Header with Skip Button */
.intro-header {
    position: absolute;
    top: 20px;
    left: 20px; /* Moved to left */
    z-index: 100;
}

.skip-btn {
    background: #ff80ab; /* Solid pink */
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.3);
    font-weight: 800; /* Much bolder */
}

.skip-btn:hover {
    background: #ff4081;
    transform: translateY(-3px) scale(1.05);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 64, 129, 0.4);
}

.skip-icon {
    font-size: 18px;
}

/* 醒目的进入作品集按钮 - 位于个人信息卡片右侧 */
.skip-btn.prominent {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4081 100%);
    border: 3px solid white;
    color: white;
    padding: 16px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5), 
                0 0 0 4px rgba(255, 255, 255, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
    font-weight: 800;
    flex-shrink: 0;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: pulse-btn 2s infinite;
}

.skip-btn.prominent:hover {
    background: linear-gradient(135deg, #ff4081 0%, #f50057 100%);
    transform: translateY(-4px) scale(1.08);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 64, 129, 0.6), 
                0 0 0 6px rgba(255, 255, 255, 0.4),
                inset 0 2px 4px rgba(255, 255, 255, 0.4);
    animation: none;
}

.skip-btn.prominent:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 15px rgba(255, 64, 129, 0.4), 
                0 0 0 3px rgba(255, 255, 255, 0.3);
}

.skip-btn.prominent .skip-icon {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.skip-btn.prominent:hover .skip-icon {
    transform: translateX(5px);
}

/* 按钮脉冲动画 */
@keyframes pulse-btn {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5), 
                    0 0 0 4px rgba(255, 255, 255, 0.3),
                    inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(255, 107, 157, 0.7), 
                    0 0 0 6px rgba(255, 255, 255, 0.5),
                    inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
}

/* Video Wrapper */
.intro-video-wrapper {
    width: 100%;
    max-width: 900px; /* Cinema width */
    aspect-ratio: 16/9;
    background: #fff; /* Pure white background for cleanliness */
    border-radius: 8px; /* Softer corners */
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 182, 193, 0.4); /* Softer pink shadow */
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff; /* Thinner white border */
    
    /* Animation: Hidden initially, then fades in */
    opacity: 0;
    transform: translateY(30px);
}

/* When intro page is active, trigger animation with delay */
.intro-page.active .intro-video-wrapper {
    animation: fadeInUp 0.8s ease-out 0.8s forwards; /* 0.8s delay after profile card */
}

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

.intro-video-container {
    width: 100%;
    height: 100%;
    cursor: pointer; /* Indicate clickable to enlarge */
}

.intro-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* No Video Placeholder */
.no-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ec407a; /* Brighter pink */
    background: linear-gradient(to bottom, #fff0f5 0%, #ffc1e3 100%); /* Fresh pink gradient */
    width: 100%;
    height: 100%;
}

.placeholder-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: wave 2s infinite;
    filter: drop-shadow(0 2px 4px rgba(255, 105, 180, 0.2));
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

/* Admin Controls */
.intro-admin-controls {
    margin-bottom: 20px;
    z-index: 10;
}

.intro-admin-controls .change-avatar-btn {
    background: linear-gradient(135deg, #ff8fb3, #ff6b9d); /* Pink gradient */
    color: #fff;
    border: 1px solid #ffbcd1;
    padding: 10px 25px;
    border-radius: 25px; /* Rounded */
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(255, 107, 157, 0.3);
    transition: transform 0.2s;
    font-family: 'YouYuan', 'Microsoft YaHei', sans-serif;
    font-weight: 800; /* Much bolder */
    letter-spacing: 1px;
}

.intro-admin-controls .change-avatar-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ff6b9d, #ff4081);
}

/* Profile Card (Compact) */
.intro-profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.9); /* Cleaner white */
    padding: 20px 30px;
    border-radius: 12px; /* Softer corners */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.5); /* Pink border */
    max-width: 600px;
    width: 90%;
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.1);
    margin-bottom: 30px; /* Added spacing below profile card */
    /* Removed dirty gradient */
}

.about-avatar.small {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    position: relative;
}

.about-avatar.small .avatar-placeholder,
.about-avatar.small img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Ensure emoji icon is perfectly centered inside the circle */
.about-avatar.small .avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    font-size: 28px; /* balanced size for 60px circle */
    background: #ffffff;
}

.about-info-compact {
    flex: 1;
    text-align: left;
}

.about-info-compact .nickname {
    font-size: 24px;
    margin: 0 0 5px 0;
    color: #880e4f; /* Deep pink/purple */
    font-family: 'ZCOOL KuaiLe', 'YouYuan', 'Microsoft YaHei', sans-serif;
    font-weight: 400; /* Font itself is bold */
}

.about-info-compact .motto {
    font-size: 15px;
    color: #ad1457; /* Pink */
    margin: 0;
    font-family: 'ZCOOL KuaiLe', 'YouYuan', 'Microsoft YaHei', sans-serif;
}

.about-info-compact .about-desc {
    margin-top: 15px;
    font-size: 16px;
    color: #c2185b; /* Medium pink */
    line-height: 1.6;
    background: #fff0f5; /* LavenderBlush background */
    padding: 12px;
    border-radius: 10px;
    border: 1px dashed #ff80ab;
    font-family: 'ZCOOL KuaiLe', 'YouYuan', 'Microsoft YaHei', sans-serif;
}

/* Mini buttons */
.change-avatar-btn.mini {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff4081; /* Bright pink */
    color: white;
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(255, 64, 129, 0.3);
}

.save-profile-btn.mini {
    margin-top: 10px;
    padding: 6px 15px; /* Larger padding */
    font-size: 13px;
    background: #f06292; /* Light pink */
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'YouYuan', 'Microsoft YaHei', sans-serif;
    font-weight: 800; /* Much bolder */
    transition: background 0.2s;
    box-shadow: 0 2px 5px rgba(255, 107, 157, 0.3);
}

.save-profile-btn.mini:hover {
    background: #ec407a;
}

/* -----------------------------------------------------------
   AI Page Split Layout
   ----------------------------------------------------------- */
.ai-split-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden; /* Prevent body scroll */
}

.ai-sections-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    height: 100%;
    overflow: hidden; /* Internal scrolling */
}

.ai-split-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.section-header {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.section-title {
    font-size: 18px;
    color: #ff6b9d;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Scrollable content area within section */
.ai-split-section .ai-grid {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px; /* Space for scrollbar */
    padding-bottom: 10px;
    align-content: start; /* Align grid items to top */
}

/* Custom scrollbar for sections */
.ai-split-section .ai-grid::-webkit-scrollbar {
    width: 6px;
}

.ai-split-section .ai-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 157, 0.3);
    border-radius: 3px;
}

.ai-split-section .ai-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 157, 0.6);
}

/* Video Grid (Left Side) - Increased specificity */
.ai-grid.ai-video-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Larger items for video */
    gap: 15px;
}

/* Image Grid (Right Side) - Smaller items - Increased specificity */
.ai-grid.ai-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Smaller min-width */
    gap: 10px;
}

/* Override card styles for small grid */
.ai-grid.ai-grid-small .ai-card .ai-thumbnail {
    aspect-ratio: 1; /* Square thumbnails for small grid */
}

.ai-grid.ai-grid-small .ai-card .ai-info h3 {
    font-size: 12px;
}

.ai-grid.ai-grid-small .ai-card .ai-info p {
    display: none; /* Hide description for small cards to save space */
}

/* Footer Action */
.section-footer-action {
    margin-top: 10px;
    flex-shrink: 0;
    text-align: center;
}

/* Divider for Mobile */
.section-divider {
    height: 1px;
    background: rgba(255, 107, 157, 0.2);
    margin: 20px 0;
    width: 100%;
}

.visible-on-mobile {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ai-split-container {
        height: auto;
        overflow-y: auto; /* Allow body scroll on mobile */
        display: block;
    }

    .ai-sections-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .ai-split-section {
        height: auto;
        min-height: 300px;
        max-height: 500px; /* Limit height */
        overflow: visible;
    }
    
    .ai-split-section .ai-grid {
        overflow-y: visible; /* Let container handle scroll or limit height */
        max-height: 400px;
        overflow-y: auto;
    }

    .visible-on-mobile {
        display: block;
    }
    
    .ai-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .ai-grid-small {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); /* Even smaller on mobile */
    }
}
.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 20px 0;
    width: 100%;
}

.ai-grid-landscape {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Unified card item (replaces category-specific card classes) */
.card-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #fff0f5;
    position: relative;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 105, 180, 0.3);
    border-color: #ff80ab;
}

.card-thumbnail {
    width: 100%;
    min-height: 150px;
    max-height: 400px;
    background: #fff0f5;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-thumbnail img, .card-thumbnail video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.card-item:hover .card-thumbnail img, 
.card-item:hover .card-thumbnail video {
    transform: scale(1.05);
}

.card-info {
    padding: 15px;
}

.card-info h3 {
    font-size: 16px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #880e4f;
    font-weight: 800;
}

.card-info p {
    font-size: 13px;
    color: #885566;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Category-specific card icons or overlays */
.card-play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    pointer-events: none;
    z-index: 5;
}

/* Delete button for cards */
.card-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
}

.card-delete-btn:hover {
    background: rgba(255, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .intro-video-wrapper {
        width: 100%;
        margin-top: 40px; /* Space for skip button */
    }
    
    .intro-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    
    .skip-btn.prominent {
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .skip-btn.prominent .skip-icon {
        font-size: 18px;
    }
    
    .about-info-compact {
        text-align: center;
    }
    
    .ai-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .ai-grid-landscape {
        grid-template-columns: repeat(1, 1fr); /* On mobile landscape might need full width */
    }
}

/* Pink centered empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #ff6b9d;
    font-size: 18px;
    width: 100%;
    text-align: center;
}

.empty-state p {
    margin-bottom: 15px;
}

.empty-state button,
.go-upload-btn,
.section-footer-add-btn {
    background: #ff6b9d;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 107, 157, 0.3);
    transition: transform 0.2s;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 800; /* Much bolder */
}

.empty-state button:hover,
.go-upload-btn:hover,
.section-footer-add-btn:hover {
    transform: scale(1.05);
    background: #ff8fb3;
}

/* Section specific empty state (smaller height) */
.empty-section-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: #ff6b9d;
    font-size: 16px;
    width: 100%;
    text-align: center;
    background: rgba(255, 107, 157, 0.05);
    border-radius: 12px;
    border: 1px dashed rgba(255, 107, 157, 0.3);
}

/* Add Honor Button */
.add-honor-btn {
    background: #ff6b9d;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 107, 157, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s;
}

.add-honor-btn:hover {
    transform: scale(1.05);
    background: #ff8fb3;
}

/* Work Delete Button */
.work-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #ff4757;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: transform 0.2s, background 0.2s;
}

.work-delete-btn:hover {
    transform: scale(1.1);
    background: #fff;
}
