/* 暗黑风格 Profile 样式 - 简洁版 */

/* CSS变量定义 - 暗黑主题 */
:root {
    --dark-primary: #1a1a2e;
    --dark-secondary: #16213e;
    --accent-pink: #ff6b9d;
    --accent-purple: #a855f7;
    --text-light: #e5e7eb;
    --text-muted: #9ca3af;
    --card-bg: rgba(26, 26, 46, 0.95);
    --card-border: rgba(168, 85, 247, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ✅ 全屏容器 - 完全透明 */
.sakura-profile-fullscreen {
    min-height: 100vh;
    background: transparent;
    padding: 40px 20px;
    position: relative;
}

/* ✅ 信封卡片 - 暗黑玻璃效果 */
.envelope-card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.envelope-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    border-color: var(--accent-purple);
}

/* ✅ 信封顶部 - 紫粉渐变 */
.envelope-top {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 信封折叠效果 */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-top: 50px solid rgba(255, 255, 255, 0.1);
}

.envelope-decoration {
    display: none;
}

/* ✅ 头像区域 */
.avatar-section {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--dark-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--accent-purple);
    transition: all 0.3s ease;
    cursor: pointer;
}

.avatar-img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 0 2px var(--accent-pink);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    border: 4px solid var(--dark-primary);
}

/* 状态徽章 */
.status-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-pink);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.5);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ✅ 信封内容 - 暗黑背景 */
.envelope-content {
    padding: 70px 30px 30px;
    background: var(--card-bg);
}

/* 姓名信息 */
.name-info {
    text-align: center;
    margin-bottom: 30px;
}

.name {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
}

.romaji {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.age-badge {
    display: inline-block;
    background: var(--accent-purple);
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 核心信息 */
.core-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.core-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: all 0.3s ease;
}

.core-item:hover {
    border-color: var(--accent-purple);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}

.core-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.core-value {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 700;
}

/* 详细信息区域 */
.detail-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 12px;
    border-left: 3px solid var(--accent-purple);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
}

.price-card {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    border-left: none;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-purple);
}

.price-card .card-header {
    color: white;
}

.card-content {
    color: var(--text-light);
    line-height: 1.6;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    color: var(--text-light);
    font-weight: 600;
}

.price-card .info-label,
.price-card .info-value {
    color: white;
}

.appeal-text {
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

.price-display {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    color: white;
}

.grade-value {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.comment-text {
    margin-top: 10px;
    color: var(--text-muted);
    font-style: italic;
}

/* 标签区域 */
.tags-section {
    text-align: center;
}

.tags-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 15px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tag {
    background: rgba(168, 85, 247, 0.2);
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--accent-purple);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--accent-purple);
    color: white;
    transform: translateY(-2px);
}

/* 视频展示区域 */
.video-section {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.video-header {
    text-align: center;
    margin-bottom: 30px;
}

.video-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.video-title i {
    color: var(--accent-purple);
}

.video-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.video-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    aspect-ratio: 16/9;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-item:hover .play-button {
    transform: scale(1.1);
    background: var(--accent-pink);
}

.video-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.video-label {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 查看更多按钮 */
.more-videos {
    text-align: center;
}

.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5);
}

.count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85rem;
}

/* 无视频状态 */
.no-video-section {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: center;
    padding: 60px 20px;
}

.no-video-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--card-border);
}

.no-video-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.no-video-content h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 0 0 10px 0;
}

.no-video-content p {
    color: var(--text-muted);
    margin: 0;
}

/* 错误状态 */
.error-state {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.error-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--card-border);
    max-width: 500px;
}

.error-content i {
    font-size: 3rem;
    color: var(--accent-pink);
    margin-bottom: 20px;
}

.error-content h2 {
    color: var(--text-light);
    margin: 0 0 15px 0;
    font-size: 1.5rem;
}

.error-content p {
    color: var(--text-muted);
    margin: 0 0 25px 0;
}

.back-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sakura-profile-fullscreen {
        padding: 20px 15px;
    }

    .envelope-content {
        padding: 60px 20px 20px;
    }

    .name {
        font-size: 1.6rem;
    }

    .core-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .detail-sections {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .video-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .core-info {
        grid-template-columns: 1fr;
    }

    .envelope-content {
        padding: 55px 15px 15px;
    }

    .name {
        font-size: 1.4rem;
    }

    .avatar-wrapper {
        width: 80px;
        height: 80px;
    }

    .more-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}