/**
 * Single Skill Template Styles
 * single-skill.php
 */

/* 面包屑 */
.breadcrumb {
    margin-bottom: 32px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #0066FF;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

/* 技能头部 */
.skill-header {
    background: #0066FF;
    color: white;
    padding: 48px;
    border-radius: 20px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.skill-category-badge-lg {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.skill-title-lg {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* 印章样式 */
.skill-stamp {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-15deg);
    opacity: 0.9;
    z-index: 10;
}

.stamp-border {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.stamp-free {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.stamp-free .stamp-border {
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

.stamp-free .stamp-text {
    font-size: 20px;
    line-height: 1;
}

.stamp-free .stamp-subtext {
    font-size: 11px;
    margin-top: 2px;
    opacity: 0.9;
}

.stamp-paid {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.stamp-paid .stamp-border {
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

.stamp-paid .stamp-text {
    font-size: 20px;
    line-height: 1;
}

.stamp-paid .stamp-subtext {
    font-size: 10px;
    margin-top: 2px;
    opacity: 0.9;
}

.skill-brief {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 24px;
    line-height: 1.7;
}

.skill-meta-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.skill-author-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.skill-author-info img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    object-fit: cover !important;
}

.author-name {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 技能作者等级徽章 */
.skill-author-badge {
    width: 22px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.badge-shield-skill {
    width: 18px;
    height: 22px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge-number-skill {
    font-size: 8px;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 铁牌 */
.badge-iron .badge-shield-skill {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 50%, #374151 100%);
    border: 2px solid #9CA3AF;
}

/* 青铜 */
.badge-bronze .badge-shield-skill {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 50%, #8B4513 100%);
    border: 2px solid #DEB887;
}

/* 红铜 */
.badge-copper .badge-shield-skill {
    background: linear-gradient(135deg, #B87333 0%, #A0522D 50%, #8B4513 100%);
    border: 2px solid #CD853F;
}

/* 白银 */
.badge-silver .badge-shield-skill {
    background: linear-gradient(135deg, #E5E7EB 0%, #C0C0C0 50%, #9CA3AF 100%);
    border: 2px solid #F3F4F6;
}

/* 精英白银 */
.badge-silver-elite .badge-shield-skill {
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 50%, #9CA3AF 100%);
    border: 2px solid #F9FAFB;
    box-shadow: 0 2px 8px rgba(156, 163, 175, 0.4);
}

/* 黄金 */
.badge-gold .badge-shield-skill {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    border: 2px solid #FFEC8B;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

/* 精英黄金 */
.badge-gold-elite .badge-shield-skill {
    background: linear-gradient(135deg, #FFD700 0%, #FFB347 50%, #FF8C00 100%);
    border: 2px solid #FFE4B5;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.6);
}

/* 铂金 */
.badge-platinum .badge-shield-skill {
    background: linear-gradient(135deg, #E5E4E2 0%, #CFD3D4 50%, #A8A9AD 100%);
    border: 2px solid #F4F4F4;
    box-shadow: 0 2px 10px rgba(168, 169, 173, 0.5);
}

/* 钻石 */
.badge-diamond .badge-shield-skill {
    background: linear-gradient(135deg, #B9F2FF 0%, #89CFF0 50%, #00BFFF 100%);
    border: 2px solid #E0FFFF;
    box-shadow: 0 2px 12px rgba(0, 191, 255, 0.6);
}

/* 钻石大师 */
.badge-diamond-master .badge-shield-skill {
    background: linear-gradient(135deg, #B9F2FF 0%, #00CED1 50%, #9370DB 100%);
    border: 2px solid #E0FFFF;
    box-shadow: 0 2px 14px rgba(147, 112, 219, 0.7);
    animation: diamond-glow-skill 2s ease-in-out infinite;
}

@keyframes diamond-glow-skill {
    0%, 100% {
        box-shadow: 0 2px 14px rgba(147, 112, 219, 0.7);
    }
    50% {
        box-shadow: 0 2px 18px rgba(147, 112, 219, 0.9);
    }
}

.author-date {
    font-size: 13px;
    opacity: 0.8;
}

/* 布局 */
.skill-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.skill-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 内容卡片 */
.skill-content-card,
.comments-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #E5E5E5;
}

.content-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #E5E5E5;
    color: #000;
}

.content-section {
    margin-bottom: 28px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-heading {
    font-size: 20px;
    font-weight: 600;
    color: #0066FF;
    margin-bottom: 12px;
}

.section-text {
    line-height: 1.8;
    color: #666;
    font-size: 16px;
}

/* 提示词卡片 */
.skill-prompt-card {
    background: #0066FF;
    border-radius: 16px;
    padding: 32px;
    color: white;
}

.prompt-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.prompt-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.prompt-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    color: #000;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.prompt-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* 付费提示词遮罩 */
.prompt-locked {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
}

.prompt-locked-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.prompt-locked-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.prompt-locked-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.prompt-locked-desc strong {
    color: #0066FF;
    font-size: 20px;
}

.prompt-locked-points {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.prompt-locked-points span {
    color: #F59E0B;
    font-weight: 600;
    font-size: 18px;
}

/* 下载锁定状态 */
.download-locked {
    opacity: 0.8;
}

/* 评论区 */
.comments-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid #E5E5E5;
}

.comments-list .comment:last-child {
    border-bottom: none;
}

.comments-list .comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comments-list .comment-author img {
    border-radius: 50%;
}

.comments-list .comment-author-name {
    font-weight: 500;
    color: #0066FF;
}

.comments-list .comment-date {
    font-size: 12px;
    color: #999;
}

.comments-list .comment-content {
    margin-left: 60px;
    line-height: 1.8;
    color: #666;
}

.no-comments {
    text-align: center;
    color: #666;
    padding: 48px 0;
}

.comment-form-wrapper {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #E5E5E5;
}

.form-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.login-prompt {
    text-align: center;
    padding: 32px;
}

.login-prompt p {
    margin-bottom: 16px;
    color: #666;
}

/* 侧边栏 */
.skill-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-card,
.related-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #E5E5E5;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

/* 下载卡片 */
.download-card {
    background: #0066FF;
    border-radius: 12px;
    padding: 24px;
    color: white;
}

.download-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.download-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.download-btn {
    background: #fff;
    color: #0066FF;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn:hover {
    opacity: 0.95;
}

/* 相关技能 */
.related-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.related-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E5E5;
}

.related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-item a {
    color: #000;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-item a:hover {
    color: #0066FF;
}

.no-related {
    color: #666;
    font-size: 14px;
}

/* 分享按钮悬停效果 */
.share-panel button:hover {
    transform: scale(1.1);
}

@media (max-width: 968px) {
    .skill-layout {
        grid-template-columns: 1fr;
    }
    
    .skill-title-lg {
        font-size: 32px;
    }
    
    .skill-header {
        padding: 32px;
    }
    
    .skill-stamp {
        width: 60px;
        height: 60px;
        top: 15px;
        right: 15px;
    }
    
    .stamp-border {
        width: 54px;
        height: 54px;
    }
    
    .stamp-text {
        font-size: 16px !important;
    }
    
    .stamp-subtext {
        font-size: 9px !important;
    }
}
