/**
 * HomeGet CSS图标库
 * 替换缺失的图片，使用纯CSS图标
 */

/* 基础图标样式 */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 大图标样式 */
.icon-large {
    width: 2em;
    height: 2em;
    font-size: 24px;
}

/* 超大图标样式 */
.icon-xl {
    width: 3em;
    height: 3em;
    font-size: 32px;
}

/* 房屋图标 */
.icon-home {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
    border-radius: 8px;
    position: relative;
}

.icon-home::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 40%;
    background: white;
    border-radius: 2px;
}

.icon-home::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 30%;
    width: 40%;
    height: 30%;
    background: white;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* 图表图标 */
.icon-chart {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    border-radius: 8px;
    position: relative;
}

.icon-chart::before {
    content: '';
    position: absolute;
    top: 60%;
    left: 20%;
    width: 15%;
    height: 30%;
    background: white;
    border-radius: 1px;
}

.icon-chart::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 40%;
    width: 15%;
    height: 50%;
    background: white;
    border-radius: 1px;
}

.icon-chart::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 60%;
    width: 15%;
    height: 70%;
    background: white;
    border-radius: 1px;
}

/* 金钱图标 */
.icon-money {
    background: linear-gradient(45deg, #FF9800, #FFC107);
    border-radius: 50%;
    position: relative;
}

.icon-money::before {
    content: '$';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.8em;
}

/* 电话图标 */
.icon-phone {
    background: linear-gradient(45deg, #9C27B0, #E91E63);
    border-radius: 8px;
    position: relative;
}

.icon-phone::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 30%;
    width: 40%;
    height: 60%;
    background: white;
    border-radius: 4px;
}

.icon-phone::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 35%;
    width: 30%;
    height: 8%;
    background: white;
    border-radius: 2px;
}

/* 用户图标 */
.icon-user {
    background: linear-gradient(45deg, #607D8B, #90A4AE);
    border-radius: 50%;
    position: relative;
}

.icon-user::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 30%;
    background: white;
    border-radius: 50%;
}

.icon-user::after {
    content: '';
    position: absolute;
    top: 55%;
    left: 20%;
    width: 60%;
    height: 35%;
    background: white;
    border-radius: 0 0 50% 50%;
}

/* 服务图标 */
.icon-service {
    background: linear-gradient(45deg, #795548, #A1887F);
    border-radius: 8px;
    position: relative;
}

.icon-service::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: white;
    border-radius: 4px;
}

.icon-service::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    background: #795548;
    border-radius: 2px;
}

/* 团队图标 */
.icon-team {
    background: linear-gradient(45deg, #3F51B5, #5C6BC0);
    border-radius: 8px;
    position: relative;
}

.icon-team::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 20%;
    width: 20%;
    height: 40%;
    background: white;
    border-radius: 50%;
}

.icon-team::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 60%;
    width: 20%;
    height: 40%;
    background: white;
    border-radius: 50%;
}

/* 联系图标 */
.icon-contact {
    background: linear-gradient(45deg, #FF5722, #FF7043);
    border-radius: 8px;
    position: relative;
}

.icon-contact::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 40%;
    background: white;
    border-radius: 4px;
}

.icon-contact::after {
    content: '';
    position: absolute;
    top: 70%;
    left: 30%;
    width: 40%;
    height: 20%;
    background: white;
    border-radius: 2px;
}

/* 示例图标 */
.icon-demo {
    background: linear-gradient(45deg, #009688, #4DB6AC);
    border-radius: 8px;
    position: relative;
}

.icon-demo::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: white;
    border-radius: 4px;
}

.icon-demo::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    background: #009688;
    border-radius: 2px;
}

/* 服务相关图标 */
.icon-flexibility {
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    border-radius: 8px;
    position: relative;
}

.icon-flexibility::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 40%;
    background: white;
    border-radius: 4px;
}

.icon-flexibility::after {
    content: '';
    position: absolute;
    top: 70%;
    left: 30%;
    width: 40%;
    height: 20%;
    background: white;
    border-radius: 2px;
}

.icon-time {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    border-radius: 50%;
    position: relative;
}

.icon-time::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: white;
    border-radius: 50%;
}

.icon-time::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    background: #4ECDC4;
    border-radius: 50%;
}

.icon-strength {
    background: linear-gradient(45deg, #A8E6CF, #7FCDCD);
    border-radius: 8px;
    position: relative;
}

.icon-strength::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: white;
    border-radius: 4px;
}

.icon-strength::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    background: #A8E6CF;
    border-radius: 2px;
}

.icon-inspiration {
    background: linear-gradient(45deg, #FFD93D, #FF6B6B);
    border-radius: 8px;
    position: relative;
}

.icon-inspiration::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: white;
    border-radius: 4px;
}

.icon-inspiration::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    background: #FFD93D;
    border-radius: 2px;
}

.icon-cloud {
    background: linear-gradient(45deg, #74B9FF, #0984E3);
    border-radius: 8px;
    position: relative;
}

.icon-cloud::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 20%;
    width: 60%;
    height: 40%;
    background: white;
    border-radius: 20px;
}

.icon-cloud::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 30%;
    width: 40%;
    height: 30%;
    background: #74B9FF;
    border-radius: 15px;
}

.icon-life {
    background: linear-gradient(45deg, #FD79A8, #FDCB6E);
    border-radius: 8px;
    position: relative;
}

.icon-life::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: white;
    border-radius: 4px;
}

.icon-life::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    background: #FD79A8;
    border-radius: 2px;
}

/* 响应式图标 */
@media (max-width: 768px) {
    .icon-large {
        width: 1.5em;
        height: 1.5em;
        font-size: 20px;
    }
    
    .icon-xl {
        width: 2em;
        height: 2em;
        font-size: 24px;
    }
}

/* 动画效果 */
.icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 特殊效果图标 */
.icon-glow {
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.icon-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 图标组合 */
.icon-combo {
    position: relative;
    display: inline-block;
}

.icon-combo .icon {
    position: absolute;
    top: 0;
    left: 0;
}

.icon-combo .icon:last-child {
    top: 10px;
    left: 10px;
    z-index: 1;
}
