/**
 * Apple UI Design Style Icons
 * 苹果UI设计视觉风格图标库
 * 使用CSS和Unicode字符实现苹果风格的图标
 */

/* 基础图标样式 */
.apple-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    line-height: 1;
    transition: all 0.2s ease;
}

/* 图标大小 */
.apple-icon-sm {
    width: 16px;
    height: 16px;
    font-size: 14px;
}

.apple-icon-md {
    width: 20px;
    height: 20px;
    font-size: 18px;
}

.apple-icon-lg {
    width: 24px;
    height: 24px;
    font-size: 22px;
}

.apple-icon-xl {
    width: 32px;
    height: 32px;
    font-size: 28px;
}

/* 导航菜单图标 */
.apple-icon-menu::before {
    content: '☰';
    font-weight: 300;
}

.apple-icon-close::before {
    content: '×';
    font-weight: 300;
}

/* 箭头图标 */
.apple-icon-arrow-right::before {
    content: '→';
}

.apple-icon-arrow-up::before {
    content: '↑';
}

.apple-icon-arrow-down::before {
    content: '↓';
}

.apple-icon-arrow-left::before {
    content: '←';
}

/* 星级评分图标 */
.apple-icon-star::before {
    content: '★';
    color: #FFB703;
}

.apple-icon-star-half::before {
    content: '☆';
    color: #FFB703;
    position: relative;
}

.apple-icon-star-half::after {
    content: '★';
    color: #FFB703;
    position: absolute;
    left: 0;
    top: 0;
    clip-path: inset(0 50% 0 0);
}

.apple-icon-star-empty::before {
    content: '☆';
    color: #D1D5DB;
}

/* 功能图标 */
.apple-icon-chat::before {
    content: '💬';
}

.apple-icon-users::before {
    content: '👥';
}

.apple-icon-search::before {
    content: '🔍';
}

.apple-icon-bullhorn::before {
    content: '📢';
}

.apple-icon-thumbs-up::before {
    content: '👍';
}

.apple-icon-chart::before {
    content: '📊';
}

.apple-icon-check::before {
    content: '✓';
    color: #10B981;
    font-weight: bold;
}

.apple-icon-check-circle::before {
    content: '✓';
    background: #10B981;
    color: white;
    border-radius: 50%;
    width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
}

/* 平台图标 */
.apple-icon-apple::before {
    content: '🍎';
}

.apple-icon-android::before {
    content: '🤖';
}

.apple-icon-laptop::before {
    content: '💻';
}

.apple-icon-download::before {
    content: '↓';
    font-weight: bold;
}

/* 社交图标 */
.apple-icon-wechat::before {
    content: '💬';
}

.apple-icon-weibo::before {
    content: '📱';
}

.apple-icon-linkedin::before {
    content: '💼';
}

.apple-icon-youtube::before {
    content: '📺';
}

.apple-icon-envelope::before {
    content: '✉';
}

.apple-icon-message::before {
    content: '💬';
}

.apple-icon-location::before {
    content: '📍';
}

.apple-icon-paper-plane::before {
    content: '🚀';
}

/* 动画效果 */
.apple-icon-spin {
    animation: apple-icon-spin 1s linear infinite;
}

@keyframes apple-icon-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.apple-icon-pulse {
    animation: apple-icon-pulse 1.5s ease-in-out infinite;
}

@keyframes apple-icon-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* 悬停效果 */
.apple-icon:hover {
    transform: scale(1.1);
}

.apple-icon-star:hover::before {
    transform: scale(1.2);
}

/* 颜色主题 */
.apple-icon-primary {
    color: #E63946;
}

.apple-icon-secondary {
    color: #FFB703;
}

.apple-icon-accent {
    color: #1D3557;
}

.apple-icon-gray {
    color: #6B7280;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .apple-icon-sm {
        width: 14px;
        height: 14px;
        font-size: 12px;
    }
    
    .apple-icon-md {
        width: 18px;
        height: 18px;
        font-size: 16px;
    }
    
    .apple-icon-lg {
        width: 22px;
        height: 22px;
        font-size: 20px;
    }
    
    .apple-icon-xl {
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
}

/* 其他实用图标 */
.apple-icon-question::before {
    content: '❓';
}

.apple-icon-code::before {
    content: '</>';
    font-family: monospace;
}

.apple-icon-link::before {
    content: '🔗';
}

.apple-icon-user::before {
    content: '👤';
}

.apple-icon-shield::before {
    content: '🛡️';
}

.apple-icon-bolt::before {
    content: '⚡';
}

.apple-icon-rocket::before {
    content: '🚀';
}

.apple-icon-building::before {
    content: '🏢';
}

.apple-icon-calendar::before {
    content: '📅';
}

.apple-icon-award::before {
    content: '🏆';
}

.apple-icon-mobile::before {
    content: '📱';
}

.apple-icon-qr-code::before {
    content: '📋';
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .apple-icon {
        filter: brightness(0.9);
    }
    
    .apple-icon-star-empty::before {
        color: #4B5563;
    }
}