/*
Theme Name: Boto Plastics Theme
Theme URI: https://www.botoplastics.com
Author: Boto Plastics
Author URI: https://www.botoplastics.com
Description: A custom WordPress theme for Boto Plastics website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boto-theme
*/

/* 导入原网站样式 */
@import url('static/css/aos.css');

/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins-Regular', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* 主色调 */
:root {
    --primary-color: #00913A;
    --text-color: #333333;
    --bg-color: #FFFFFF;
    --border-color: #e5e5e5;
    --hover-color: #007830;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 响应式布局 */
.responsive_grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
}

.col-xs-12 { width: 100%; }
.col-xs-3 { width: 25%; }

@media (min-width: 768px) {
    .col-sm-1 { width: 8.333%; }
    .col-sm-2 { width: 16.666%; }
    .col-sm-3 { width: 25%; }
    .col-sm-4 { width: 33.333%; }
    .col-sm-6 { width: 50%; }
    .col-sm-8 { width: 66.666%; }
    .col-sm-12 { width: 100%; }
}

/* 头部样式 */
.site-header {
    background: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .grid_content {
    padding: 15px 0;
}

/* Logo */
.custom-logo {
    max-height: 60px;
    width: auto;
}

/* 导航菜单 */
.main-navigation {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
    margin: 0 15px;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* 搜索框 */
.search-box {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-field {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%;
}

/* 语言切换器 */
.language-switcher {
    display: flex;
    align-items: center;
}

.language-switcher img {
    margin-right: 5px;
}

/* 首页样式 */
.home-slider {
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 32px;
}

/* 产品分类 */
.category-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.category-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.category-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-item h3 {
    padding: 15px;
    margin: 0;
    font-size: 18px;
    text-align: center;
}

.btn-view-more {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 4px;
    margin: 0 15px 15px;
    text-align: center;
    transition: background 0.3s ease;
}

.btn-view-more:hover {
    background: var(--hover-color);
}

/* 产品列表 */
.product-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-title {
    padding: 15px;
    margin: 0;
    font-size: 18px;
}

.product-title a {
    color: var(--text-color);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-excerpt {
    padding: 0 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.btn-view-details {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 4px;
    margin: 0 15px 15px;
    text-align: center;
    transition: background 0.3s ease;
}

.btn-view-details:hover {
    background: var(--hover-color);
}

/* 页脚样式 */
.site-footer {
    background: #f5f5f5;
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-contact h3 {
    color: var(--text-color);
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-item svg {
    margin-right: 10px;
}

.footer-item a,
.footer-item span {
    color: var(--text-color);
    text-decoration: none;
}

.footer-item a:hover {
    color: var(--primary-color);
}

.site-info {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 20px 0;
    text-align: center;
}

/* WordPress特定样式 */
.wp-caption {
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-header {
        position: relative;
    }
    
    .nav-menu {
        display: none;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .category-item img,
    .product-image img {
        height: 150px;
    }
}

/* 公司简介部分 */
.company-intro {
    padding: 60px 0;
    background: #f9f9f9;
}

.intro-content {
    padding: 30px;
}

.intro-content h2 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.intro-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.intro-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 联系我们部分 */
.contact-section {
    padding: 60px 0;
}

.contact-info {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #fff;
}

.info-item a,
.info-item span {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
}

.info-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form .wpcf7-form {
    margin: 0;
}

.contact-form .wpcf7-form p {
    margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 5px;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form input[type="submit"] {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.contact-form input[type="submit"]:hover {
    background: var(--hover-color);
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .company-intro {
        padding: 40px 0;
    }
    
    .intro-content h2 {
        font-size: 28px;
    }
    
    .intro-image {
        min-height: 300px;
        margin-top: 30px;
    }
    
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-info,
    .contact-form {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .intro-content h2 {
        font-size: 24px;
    }
    
    .intro-image {
        min-height: 200px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-item i {
        margin: 0 0 10px 0;
    }
} 