/*
Theme Name: Jeefoo Industrial
Theme URI: https://chinaengravingtools.com
Author: Wang Cai
Author URI: https://chinaengravingtools.com
Description: 工业级刻刀工具企业WordPress主题，仿JEEFOO官网风格设计。包含产品展示、公司简介、联系方式等企业网站核心功能。
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jeefoo
Tags: business, industrial, corporate, two-columns, custom-menu

This theme, like WordPress, is licensed under the GPL.
*/

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

a {
    text-decoration: none;
    color: #0066cc;
}

a:hover {
    color: #ff6600;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Container ===== */
.container {
    width: 1100px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ===== Header ===== */
.header {
    background: linear-gradient(to bottom, #003366, #004488);
    color: #fff;
    padding: 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo h1 {
    font-size: 28px;
    font-weight: bold;
    color: #ffcc00;
    margin: 0;
}

.logo .tagline {
    font-size: 12px;
    color: #ccc;
    margin-top: 5px;
}

.contact-info {
    text-align: right;
    font-size: 13px;
}

.contact-info span {
    display: block;
    margin: 3px 0;
}

.contact-info a {
    color: #ffcc00;
}

/* ===== Navigation ===== */
.nav {
    background: #005599;
    border-top: 3px solid #ff6600;
}

.nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav li {
    position: relative;
}

.nav li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

.nav li a:hover,
.nav li.current-menu-item a {
    background: #ff6600;
    color: #fff;
}

/* Dropdown */
.nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #003366;
    min-width: 180px;
    z-index: 999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.nav li:hover ul {
    display: block;
}

.nav li ul li a {
    padding: 10px 15px;
    font-size: 13px;
    text-transform: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ===== Main Content ===== */
.main {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* ===== Sections ===== */
.section {
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.section-header {
    background: linear-gradient(to right, #003366, #005599);
    color: #fff;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
    border-left: 4px solid #ff6600;
}

.section-header h2 {
    margin: 0;
    font-size: 16px;
}

.section-body {
    padding: 15px;
}

/* ===== Product Grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 3px 15px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f9f9f9;
}

.product-info {
    padding: 10px;
}

.product-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #003366;
}

.product-info .specs {
    font-size: 12px;
    color: #666;
}

/* ===== Sidebar Widgets ===== */
.widget {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.widget-title {
    background: linear-gradient(to right, #003366, #005599);
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-left: 4px solid #ff6600;
}

.widget-content {
    padding: 15px;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    display: block;
    color: #333;
    transition: color 0.3s;
}

.widget ul li a:hover {
    color: #ff6600;
    padding-left: 5px;
}

/* ===== Banner ===== */
.banner {
    text-align: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.banner img {
    max-width: 100%;
    border-radius: 4px;
}

/* ===== Footer ===== */
.footer {
    background: #003366;
    color: #ccc;
    text-align: center;
    padding: 20px;
    font-size: 13px;
    border-top: 3px solid #ff6600;
}

.footer a {
    color: #ffcc00;
}

/* ===== Search Form ===== */
.search-form {
    display: flex;
    margin: 10px 0;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 13px;
    outline: none;
}

.search-form input[type="submit"] {
    padding: 8px 15px;
    background: #ff6600;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 13px;
}

.search-form input[type="submit"]:hover {
    background: #e55a00;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 10px 15px;
    background: #f5f5f5;
    font-size: 12px;
    color: #999;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb a {
    color: #666;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 15px 0;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

.pagination .current {
    background: #003366;
    color: #fff;
    border-color: #003366;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 8px 20px;
    background: #ff6600;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.3s;
}

.btn:hover {
    background: #e55a00;
    color: #fff;
}

.btn-primary {
    background: #0066cc;
}

.btn-primary:hover {
    background: #0055aa;
}

/* ===== About Section ===== */
.about-text {
    line-height: 1.8;
    color: #555;
}

.about-text p {
    margin-bottom: 10px;
}

.brand-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.brand-tag {
    padding: 5px 12px;
    background: #003366;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .container {
        width: 100%;
    }
    
    .main {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
        margin-top: 10px;
    }
    
    .nav ul {
        flex-wrap: wrap;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== WordPress Core Styles ===== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.alignleft {
    float: left;
    margin-right: 15px;
}

.alignright {
    float: right;
    margin-left: 15px;
}

.aligncenter {
    display: block;
    margin: 0 auto 15px;
}

/* ===== Clearfix ===== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
