/* ===== 會員中心個人頁面樣式 ===== */

/* Messages */
.messages-container {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 1rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #38a169;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid #e53e3e;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0 40px;
    color: #fff;
}

.header-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.avatar-section {
    position: relative;
}

.avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar-large:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.avatar-large:hover .avatar-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-text {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
}

.level-badge {
    position: absolute;
    bottom: 0;
    right: -10px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.level-badge.gold {
    background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 100%);
    color: #1a202c;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.profile-username {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.profile-bio {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.profile-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.meta-item .icon {
    font-size: 1.2rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.social-link .link-icon {
    font-size: 1.3rem;
}

.social-link .link-text {
    color: inherit;
}

.website-link {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.website-link:hover {
    background: #fff;
    color: #5568d3;
}

.github-link {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.github-link:hover {
    background: #fff;
    color: #000;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #fff;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Message Button Specific Styles */
.btn-message {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-message .message-icon {
    font-size: 1.125rem;
}

.btn-message .message-text {
    font-weight: 600;
}

/* Level Progress */
.level-progress {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fef3c7 0%, #f59e0b 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Stats Section */
.stats-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.stat-card-link {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card-link:hover::before {
    left: 100%;
}

.stat-card-link:hover .stat-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.stat-card-link:hover .stat-number {
    color: #667eea;
}

.stat-icon {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.stat-label {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Main Content */
.main-content {
    padding: 40px 0 80px;
    background: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
}

.card-body {
    padding: 2rem;
}

/* Activity List */
.activity-list {
    margin-bottom: 1.5rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f7fafc;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.95rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.activity-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.activity-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

.activity-time {
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Learning Progress */
.course-item {
    margin-bottom: 1.5rem;
}

.course-item:last-child {
    margin-bottom: 0;
}

.course-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.course-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
}

.course-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: #667eea;
}

.course-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.course-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f7ff 100%);
    color: #667eea;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #d6e4ff;
}

/* Achievements */
.achievements-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.achievement-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
}

.achievement-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.achievement-desc {
    font-size: 0.8rem;
    color: #718096;
}

/* Info List */
.info-list {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f7fafc;
}

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

.info-label {
    font-size: 0.9rem;
    color: #718096;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
}

/* Button Text */
.btn-text {
    display: inline-block;
    background: none;
    border: none;
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 1rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.btn-text:hover {
    color: #5568d3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-actions {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .avatar-large {
        width: 120px;
        height: 120px;
    }

    .avatar-text {
        font-size: 3rem;
    }

    .profile-name {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        padding: 40px 0 30px;
    }

    .main-content {
        padding: 30px 0 60px;
    }
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 60px;
    color: #fff;
    text-align: center;
}

.hero-header {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    min-width: 150px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Members Section */
.members-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.member-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
}

/* Member Badge */
.member-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.member-badge.diamond {
    background: linear-gradient(135deg, #b9f2ff 0%, #667eea 100%);
    color: #1a202c;
}

.member-badge.platinum {
    background: linear-gradient(135deg, #e0e7ff 0%, #a78bfa 100%);
    color: #1a202c;
}

.member-badge.gold {
    background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 100%);
    color: #1a202c;
}

.member-badge.silver {
    background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
    color: #1a202c;
}

/* Member Avatar */
.member-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.avatar-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 3px solid #fff;
}

.status-indicator.active {
    background: #48bb78;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(72, 187, 120, 0);
    }
}

/* Member Info */
.member-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.member-role {
    font-size: 0.95rem;
    color: #718096;
    font-weight: 500;
}

/* Member Stats */
.member-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 10px;
}

.stat-icon {
    font-size: 1.75rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.stat-text {
    font-size: 0.8rem;
    color: #718096;
}

/* Member Footer */
.member-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.joined-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #718096;
}

.joined-date .icon {
    font-size: 1rem;
}

.view-profile-btn {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-profile-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Tiers Section */
.tiers-section {
    padding: 80px 0;
    background: #fff;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tier-card {
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tier-card:hover {
    transform: translateY(-10px);
}

.tier-card.diamond {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f4ff 100%);
    border-color: #667eea;
}

.tier-card.diamond:hover {
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
}

.tier-card.platinum {
    background: linear-gradient(135deg, #f3e8ff 0%, #faf5ff 100%);
    border-color: #a78bfa;
}

.tier-card.platinum:hover {
    box-shadow: 0 12px 30px rgba(167, 139, 250, 0.2);
}

.tier-card.gold {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
}

.tier-card.gold:hover {
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
}

.tier-card.silver {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #94a3b8;
}

.tier-card.silver:hover {
    box-shadow: 0 12px 30px rgba(148, 163, 184, 0.2);
}

.tier-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.tier-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.tier-description {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tier-features {
    list-style: none;
    text-align: left;
}

.tier-features li {
    padding: 0.5rem 0;
    color: #4a5568;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tier-features li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1rem 1.5rem;
        min-width: 120px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

    .filter-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 40px;
    }

    .members-section,
    .tiers-section {
        padding: 60px 0;
    }

    .member-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .view-profile-btn {
        width: 100%;
    }
}

/* ===== 分享選單樣式 ===== */
.share-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.share-menu-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.share-menu-content h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.share-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.share-button.facebook .share-icon {
    background: #1877f2;
}

.share-button.facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.share-button.twitter .share-icon {
    background: #000000;
}

.share-button.twitter:hover {
    border-color: #000000;
    color: #000000;
}

.share-button.line .share-icon {
    background: #00B900;
}

.share-button.line:hover {
    border-color: #00B900;
    color: #00B900;
}

.share-button.copy-link .share-icon {
    background: #6366f1;
    font-size: 1.25rem;
}

.share-button.copy-link:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.share-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
}

.share-close:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: rotate(90deg);
}

/* ===== 文章列表樣式 ===== */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

.article-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.article-link:hover .article-title {
    color: #3b82f6;
}

.article-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-date::before {
    content: "📅";
    font-size: 0.875rem;
}

/* Version Info Section */
.version-section {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.version-info {
    text-align: center;
}

.version-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.version-info strong {
    color: #374151;
    font-weight: 600;
}

/* Avatar Preview Modal */
.avatar-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.avatar-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.avatar-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.avatar-modal-img {
    max-width: 600px;
    max-height: 600px;
    width: auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 5px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
}

.avatar-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #1f2937;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.avatar-modal-close:hover {
    background: white;
    transform: rotate(90deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.avatar-modal-info {
    margin-top: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.avatar-modal-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.avatar-modal-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Responsive Design for Avatar Modal */
@media (max-width: 768px) {
    .avatar-modal-img {
        max-width: 90vw;
        max-height: 70vh;
    }

    .avatar-modal-close {
        top: -40px;
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .avatar-modal-info {
        margin-top: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .avatar-modal-info h3 {
        font-size: 1.125rem;
    }
}

/* ===== 追蹤訊息提示 ===== */
.follow-message {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.follow-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 2px solid #38a169;
}

.follow-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 2px solid #e53e3e;
}

.follow-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .follow-message {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        transform: translateX(0) translateY(-100px);
        width: calc(100% - 2rem);
    }

    .follow-message.show {
        transform: translateX(0) translateY(0);
    }
}
}