/**
 * Visual Builder Frontend Styles
 * 
 * @package VisualBuilder
 * @since 1.0.0
 */

/* ========================================================================
 * 布局容器
 * ======================================================================== */
.vb-layout {
	width: 100%;
	max-width: 100%;
}

/* ========================================================================
 * 区块
 * ======================================================================== */
.vb-section {
	position: relative;
	width: 100%;
}

.vb-section-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}

/* ========================================================================
 * 列
 * ======================================================================== */
.vb-column {
	position: relative;
	box-sizing: border-box;
}

.vb-column-inner {
	width: 100%;
	height: 100%;
}

/* ========================================================================
 * 标题组件
 * ======================================================================== */
.vb-heading {
	margin: 0 0 20px 0;
	line-height: 1.3;
}

.vb-heading a {
	text-decoration: none;
	color: inherit;
}

.vb-heading a:hover {
	opacity: 0.8;
}

/* ========================================================================
 * 文本组件
 * ======================================================================== */
.vb-text {
	margin-bottom: 20px;
	line-height: 1.6;
}

/* ========================================================================
 * 图片组件
 * ======================================================================== */
.vb-image {
	margin-bottom: 20px;
}

.vb-image img {
	max-width: 100%;
	height: auto;
	display: block;
}

.vb-image a {
	display: inline-block;
}

/* ========================================================================
 * 按钮组件
 * ======================================================================== */
.vb-button-wrapper {
	margin-bottom: 20px;
}

.vb-button {
	display: inline-block;
	padding: 12px 30px;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s;
	cursor: pointer;
	border: 2px solid transparent;
	font-weight: 500;
}

.vb-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 按钮大小 */
.vb-button-small {
	padding: 8px 20px;
	font-size: 14px;
}

.vb-button-medium {
	padding: 12px 30px;
	font-size: 16px;
}

.vb-button-large {
	padding: 16px 40px;
	font-size: 18px;
}

/* 按钮样式 */
.vb-button-default {
	background: #2271b1;
	color: #ffffff;
}

.vb-button-default:hover {
	background: #135e96;
}

.vb-button-primary {
	background: #00a32a;
	color: #ffffff;
}

.vb-button-primary:hover {
	background: #008a20;
}

.vb-button-secondary {
	background: #646970;
	color: #ffffff;
}

.vb-button-secondary:hover {
	background: #50575e;
}

.vb-button-outline {
	background: transparent;
	border-color: #2271b1;
	color: #2271b1;
}

.vb-button-outline:hover {
	background: #2271b1;
	color: #ffffff;
}

/* ========================================================================
 * 分隔线组件
 * ======================================================================== */
.vb-divider {
	width: 100%;
	border: none;
}

/* ========================================================================
 * 间距组件
 * ======================================================================== */
.vb-spacer {
	width: 100%;
}

/* ========================================================================
 * 响应式
 * ======================================================================== */
@media (max-width: 768px) {
	.vb-section-inner {
		flex-direction: column;
	}
	
	.vb-column {
		width: 100% !important;
	}
}

@media (max-width: 480px) {
	.vb-heading {
		font-size: 24px;
	}
	
	.vb-button {
		width: 100%;
		text-align: center;
	}
}
