.share-page {
    background: #f8f9fa;
    min-height: 100vh;
}


/* Header */
.share-header {
    position: relative;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    overflow: hidden;
    border-radius: 0 0 15px 15px;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
}

.category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.share-sutra-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 16px 0;
    line-height: 1.4;
}

.author-info,
.completion-date {
    font-size: 14px;
    opacity: 0.95;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.author-info .material-symbols-outlined,
.completion-date .material-symbols-outlined {
    font-size: 18px;
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: space-around;
    padding: 30px 20px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Description Section */
.description-section {
    padding: 30px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.description-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.description-section p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

/* Section Title */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .material-symbols-outlined {
    font-size: 24px;
    color: #667eea;
}

/* Handwriting Section */
.handwriting-section {
    padding: 30px 20px;
    background: white;
}

.handwriting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
}

.handwriting-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.handwriting-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.handwriting-image {
    width: 100%;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    margin-bottom: 8px;
}

.handwriting-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.handwriting-index {
    font-size: 12px;
    color: #999;
}

/* Downloads Section */
.downloads-section {
    padding: 30px 0;
    background: #f8f9fa;
}

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

.download-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.certificate-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.certificate-image:hover {
    transform: scale(1.02);
}

.download-info {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.download-type {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    text-transform: capitalize;
}

.download-info .uk-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.download-info .material-symbols-outlined {
    font-size: 16px;
}

/* CTA Section */
.cta-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.cta-content h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.cta-content .uk-button {
    background: white;
    color: #667eea;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0px 32px;
    border-radius: 30px;
}

.cta-content .uk-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Share Actions */
.share-actions {
    padding: 20px;
    text-align: center;
    background: white;
    border-top: 1px solid #e9ecef;
}

.share-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.share-btn:active {
    transform: translateY(0);
}

.share-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Footer */
.share-footer {
    padding: 30px 20px;
    text-align: center;
    background: #f8f9fa;
    color: #999;
    font-size: 13px;
    line-height: 1.8;
}

.session-info {
    margin-top: 8px;
    font-size: 11px;
    opacity: 0.7;
}

/* 響應式設計 */
@media (max-width: 480px) {
    .share-sutra-title {
        font-size: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    .handwriting-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 12px;
    }

    .handwriting-image {
        height: 80px;
    }

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

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.handwriting-item {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.handwriting-item:nth-child(n) {
    animation-delay: calc(0.03s * var(--i));
}

/* 祈福文字區塊 */
.blessing-message {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.blessing-message .material-symbols-outlined {
    color: #667eea;
    font-size: 24px;
    flex-shrink: 0;
}

.blessing-message p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

.back-to-wall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    position: absolute;
    left: 15px;
    top: 15px;
    z-index: 1;
}

.back-to-wall:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.back-to-wall .material-symbols-outlined {
    font-size: 18px;
}