/*
Theme Name: 寻猫（广西）网络科技企业官网主题
Theme URI: https://www.xunmao.net
Author: 寻猫网络科技
Author URI: https://www.xunmao.net
Description: 寻猫（广西）网络科技企业官网主题，营销型企业网站解决方案，支持模块化首页、产品展示、案例展示等功能
Version: 1.8.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xunmao-tech
Tags: one-column, custom-menu, featured-images, translation-ready
*/

:root {
    --color-primary: #0066ff;
    --color-primary-light: #4d94ff;
    --color-accent: #0066ff;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-light: #f8fafc;
    --color-border: #e5e7eb;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 3px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: #000;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Service Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: var(--color-primary);
}

.service-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.service-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Style 2 - 极简列表 */
.section-services.style2 .services-grid {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.section-services.style2 .service-card {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 30px;
    gap: 30px;
}

.section-services.style2 .service-icon {
    margin: 0;
    flex-shrink: 0;
}

/* Style 3 - 每行两个 */
.section-services.style3 .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.section-services.style3 .service-card {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 25px;
    gap: 20px;
}

.section-services.style3 .service-icon {
    width: 56px;
    height: 56px;
    margin: 0;
    flex-shrink: 0;
}

/* Page Header */
.page-header {
    padding: 80px 0;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header:before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header .page-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Products & Cases Styles */
.products-grid-wrapper, .cases-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Product Style 2 - List */
.section-products.style2 .products-grid-wrapper {
    grid-template-columns: 1fr;
}

.section-products.style2 .product-card {
    display: flex;
    align-items: center;
    text-align: left;
}

.section-products.style2 .product-image {
    width: 300px;
    flex-shrink: 0;
}

/* Case Style 2 - Big Card */
.section-cases.style2 .cases-grid-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.section-cases.style2 .case-image {
    aspect-ratio: 21/9;
}

.product-card, .case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-image, .case-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.product-image img, .case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img, .case-card:hover .case-image img {
    transform: scale(1.1);
}

.product-content, .case-content {
    padding: 20px;
}

.product-title, .case-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-title a, .case-title a {
    color: #333;
    text-decoration: none;
}

.product-excerpt, .case-meta {
    font-size: 14px;
    color: #666;
}

.sticky-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 2;
}

.section-actions {
    text-align: center;
    margin-top: 40px;
}




