/* 首页产品分类模块 */
.pro_container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.pro_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width:768px) {
    .pro_grid {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
        gap: 18px;
        
    }
}

.pro_grid_item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* 保持正方形比例 */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pro_grid_item a {
    display: block;
    width: 100%;
    height: 100%;
}

.pro_grid_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 保持图片比例并填充容器 */
    transition: transform 0.3s ease;
}

.pro_grid_item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(243, 116, 32, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.pro_grid_item:hover img {
    transform: scale(1.05);
}

.pro_grid_item:hover .overlay {
    opacity: 1;
}

.pro_grid_item .overlay-content {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}



/* 表格 */
table td,
table th {
    padding: 10px 15px;
    border: 1px solid #ccc;
    /* 加边框方便查看效果 */
}

table {
    border-collapse: collapse;
}

/* 表单样式 - 基于原有的HTML结构 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

/* 水平布局容器 */
.field.is-horizontal {
    display: flex;
    margin-bottom: 20px;
}

.field-body {
    display: flex;
    width: 100%;
    gap: 20px;
}

/* 字段组 */
.field {
    flex: 1;
    position: relative;
}

/* 输入控件容器 */
.control {
    position: relative;
    width: 100%;
}

/* 输入框样式 */
.input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: white;
    background-image: none;
    transition: border-color 0.3s ease;
}

.input:focus {
    outline: none;
    border-color: #f90;
    box-shadow: 0 0 0 2px rgba(255, 136, 0, 0.25);
}

.input::placeholder {
    color: #999;
}

/* 文本域样式 */
.textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: white;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.textarea:focus {
    outline: none;
    border-color: #f90;
    box-shadow: 0 0 0 2px rgba(255, 136, 0, 0.25);
}

.textarea::placeholder {
    color: #999;
}

/* 按钮样式 */
.button.is-primary {
    width: 100%;
    padding: 12px 24px;
    background-color: #f90;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: capitalize;
}

.button.is-primary:hover {
    background-color: #f90;
}

.button.is-primary:active {
    transform: translateY(1px);
}

/* 图标样式 */
.icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* 移除重复的背景图图标，只使用FontAwesome图标 */
.control.is-expanded.has-icons-left input[name="user"] {
    background-image: none;
}

.control.is-expanded.has-icons-left.has-icons-right input[name="envelope-o"] {
    background-image: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .field-body {
        flex-direction: column;
        gap: 20px;
    }

    .field {
        width: 100%;
    }

    .container {
        padding: 15px;
    }

    .field.is-horizontal {
        flex-direction: column;
    }
}

.h_view {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.form-container {
    width: 70%;
}

.h_text {
    width: 20%;
    background: url(//cdn.xuansiwei.com/xiaog12845/1767520240994/2592e3da2cf61c63e053ef481096af17_r__1920-715_c__232832_.jpg?x-oss-process=style/small);
    background-repeat: no-repeat;
    background-size: cover;
}

@media screen and (max-width: 768px) {
    .h_view {
        flex-direction: column;
    }

    .form-container {
        width: 100%;
    }

    .h_text {
        width: 100%;
    }
}