/* 
多彩图标样式 - PaperBook主题
为博客添加生动有趣的彩色图标
*/

/* ===== 基础图标样式 ===== */
.colorful-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5em;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.colorful-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.colorful-icon:hover::before {
    opacity: 1;
}

.colorful-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== 导航菜单图标 ===== */
.nav-icon-home {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-icon-category {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.nav-icon-tags {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.nav-icon-archive {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.nav-icon-about {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.nav-icon-message {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.nav-icon-admin {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
}

.nav-icon-logout {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

.nav-icon-theme {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: white;
}

/* ===== 侧边栏组件图标 ===== */
.widget-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    margin-right: 0.5em;
    border-radius: 8px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.widget-icon-blogger {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.widget-icon-newlog {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.widget-icon-hotlog {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.widget-icon-newcomm {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.widget-icon-tag {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.widget-icon-sort {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.widget-icon-archive {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
}

.widget-icon-search {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

.widget-icon-link {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: white;
}

.widget-icon-twitter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.widget-icon-calendar {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* ===== 文章元信息图标 ===== */
.meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.3em;
    border-radius: 4px;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.meta-icon-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.meta-icon-author {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.meta-icon-views {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.meta-icon-comments {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.meta-icon-category {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.meta-icon-tags {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.meta-icon-edit {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
}

/* ===== 特殊功能图标 ===== */
.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.action-icon:hover::after {
    width: 100%;
    height: 100%;
}

.action-icon-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-icon-share {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.action-icon-like {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.action-icon-bookmark {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

/* ===== 状态图标 ===== */
.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    font-size: 0.7em;
    margin-right: 0.3em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.status-icon-online {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.status-icon-new {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.status-icon-hot {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
}

.status-icon-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ===== 社交媒体图标 ===== */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    margin: 0.25em;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.social-icon-weibo {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.social-icon-wechat {
    background: linear-gradient(135deg, #2ed573 0%, #1e90ff 100%);
    color: white;
}

.social-icon-qq {
    background: linear-gradient(135deg, #3742fa 0%, #2f3542 100%);
    color: white;
}

.social-icon-github {
    background: linear-gradient(135deg, #2f3542 0%, #57606f 100%);
    color: white;
}

.social-icon-email {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    color: white;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .colorful-icon {
        width: 1em;
        height: 1em;
        margin-right: 0.3em;
    }
    
    .widget-icon {
        width: 1.2em;
        height: 1.2em;
        margin-right: 0.3em;
    }
    
    .action-icon {
        width: 1.5em;
        height: 1.5em;
    }
    
    .social-icon {
        width: 2em;
        height: 2em;
        margin: 0.15em;
    }
}

/* ===== 动画效果 ===== */
@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.icon-bounce {
    animation: iconBounce 2s infinite;
}

@keyframes iconRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.icon-rotate {
    animation: iconRotate 2s linear infinite;
}

@keyframes iconShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

.icon-shake {
    animation: iconShake 0.5s ease-in-out;
}

/* ===== 特殊效果 ===== */
.icon-glow {
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.icon-shadow {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.icon-3d {
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(15deg);
}

.icon-3d:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(15deg);
}

