/* 装饰性Neubrutalism风格元素 */

/* 装饰性背景图案 */
.brutal-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
}

.brutal-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, var(--black) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, var(--black) 2px, transparent 2px),
        radial-gradient(circle at 40% 60%, var(--black) 1px, transparent 1px),
        radial-gradient(circle at 60% 40%, var(--black) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px, 20px 20px, 25px 25px;
    background-position: 0 0, 25px 25px, 10px 10px, 15px 15px;
}

/* 装饰性几何图形 */
.brutal-shape {
    position: absolute;
    border: 3px solid var(--black);
    box-shadow: var(--shadow-brutal);
}

.brutal-circle {
    background: var(--primary-color);
    border-radius: 50%;
}

.brutal-square {
    background: var(--secondary-color);
    transform: rotate(45deg);
}

.brutal-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 40px solid var(--primary-color);
    border: none;
    background: var(--primary-color);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.brutal-line {
    background: var(--secondary-color);
    border: 2px solid var(--black);
}

/* 装饰性图标容器 */
.icon-container {
    position: relative;
    display: inline-block;
}

.icon-container::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    border: 3px solid var(--black);
    border-radius: 16px;
    z-index: -1;
    transform: rotate(5deg);
}

.icon-container::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border: 2px solid var(--black);
    border-radius: 12px;
    z-index: -2;
    transform: rotate(-3deg);
}

/* 装饰性按钮 */
.brutal-button {
    position: relative;
    background: var(--primary-color);
    border: 3px solid var(--black);
    border-radius: 12px;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
    text-decoration: none;
    box-shadow: var(--shadow-brutal);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.brutal-button::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    border: 3px solid var(--black);
    border-radius: 12px;
    z-index: -1;
    transform: translateY(6px);
    transition: all 0.3s ease;
}

.brutal-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.brutal-button:hover::before {
    transform: translateY(3px);
}

/* 装饰性卡片 */
.brutal-card {
    position: relative;
    background: var(--white);
    border: 4px solid var(--black);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-brutal);
    transition: all 0.3s ease;
}

.brutal-card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border: 4px solid var(--black);
    border-radius: 16px;
    z-index: -1;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.brutal-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: var(--shadow-hover);
}

.brutal-card:hover::before {
    transform: translateY(3px) rotate(-1deg);
}

/* 装饰性标题 */
.brutal-title {
    position: relative;
    display: inline-block;
    font-weight: 800;
    color: var(--text-color);
}

.brutal-title::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--secondary-color);
    border: 2px solid var(--black);
    z-index: -1;
}

/* 装饰性分割线 */
.brutal-divider {
    position: relative;
    height: 8px;
    background: var(--primary-color);
    border: 2px solid var(--black);
    margin: 40px 0;
    transform: rotate(-1deg);
}

.brutal-divider::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 20%;
    width: 20px;
    height: 16px;
    background: var(--secondary-color);
    border: 2px solid var(--black);
    transform: rotate(45deg);
}

.brutal-divider::after {
    content: '';
    position: absolute;
    top: -4px;
    right: 20%;
    width: 20px;
    height: 16px;
    background: var(--secondary-color);
    border: 2px solid var(--black);
    transform: rotate(45deg);
}

/* 装饰性徽章 */
.brutal-badge {
    position: relative;
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border: 2px solid var(--black);
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-card);
}

.brutal-badge::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    border: 2px solid var(--black);
    border-radius: 20px;
    z-index: -1;
    transform: translateY(3px);
}

/* 装饰性列表 */
.brutal-list {
    list-style: none;
    padding: 0;
}

.brutal-list li {
    position: relative;
    padding: 15px 0 15px 40px;
    margin-bottom: 10px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.brutal-list li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 2px solid var(--black);
    border-radius: 50%;
}

.brutal-list li::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--white);
    border: 1px solid var(--black);
    border-radius: 50%;
}

/* 装饰性进度条 */
.brutal-progress {
    position: relative;
    height: 20px;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.brutal-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-color);
    border-right: 3px solid var(--black);
    animation: progress-fill 2s ease-out;
}

@keyframes progress-fill {
    from { width: 0; }
    to { width: 75%; }
}

/* 装饰性网格 */
.brutal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    background: var(--background-color);
    border: 4px solid var(--black);
    border-radius: 16px;
    box-shadow: var(--shadow-brutal);
}

.brutal-grid-item {
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.brutal-grid-item:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: var(--shadow-hover);
}

/* 装饰性动画 */
@keyframes brutal-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    75% { transform: translateY(-5px) rotate(-1deg); }
}

.brutal-bounce {
    animation: brutal-bounce 2s ease-in-out infinite;
}

@keyframes brutal-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.brutal-rotate {
    animation: brutal-rotate 10s linear infinite;
}

/* 装饰性响应式 */
@media (max-width: 768px) {
    .brutal-card {
        padding: 20px;
    }
    
    .brutal-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .brutal-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 隐藏所有装饰性元素，避免超出视口 */
    .brutal-pattern,
    .brutal-shape,
    .brutal-circle,
    .brutal-square,
    .brutal-triangle,
    .brutal-line {
        display: none !important;
    }
    
    /* 确保装饰性元素不会超出容器 */
    .icon-container::before,
    .icon-container::after {
        display: none !important;
    }
    
    /* 简化按钮样式，移除装饰性阴影 */
    .brutal-button::before {
        display: none !important;
    }
    
    /* 简化卡片样式 */
    .brutal-card::before {
        display: none !important;
    }
}

@media (max-width: 480px) {
    /* 进一步简化移动端样式 */
    .brutal-button {
        padding: 10px 20px;
        font-size: 14px;
        border-width: 2px;
    }
    
    .brutal-card {
        padding: 15px;
        border-width: 2px;
    }
    
    /* 确保所有装饰性元素都被隐藏 */
    [class*="decorative-"],
    [class*="brutal-"] {
        max-width: 100% !important;
        overflow: hidden !important;
    }
} 