/*
Theme Name: 沐愚智能企业主题
Theme URI: https://muyutech.net
Author: 沐愚智能
Author URI: https://muyutech.net
Description: 专为上海沐愚智能信息科技有限公司定制的企业官网主题
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: muyutech
*/

/* ==================== 基础样式重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5f9e;
    --secondary-color: #0d3a5c;
    --accent-color: #00a8e8;
    --text-dark: #333;
    --text-light: #666;
    --text-white: #fff;
    --bg-light: #f5f7fa;
    --bg-dark: #1a1a2e;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 头部导航 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ==================== Hero Banner ==================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13,58,92,0.9), rgba(26,95,158,0.8)), url('images/hero_banner.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.hero-tag {
    display: inline-block;
    padding: 8px 25px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.8;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary-color);
}

/* ==================== 服务板块 ==================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 5px 20px;
    background: rgba(26,95,158,0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 14px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 服务卡片 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==================== 代理品牌 ==================== */
.brands-section {
    background: var(--bg-light);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    align-items: center;
}

.brand-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.brand-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.brand-card img {
    max-height: 60px;
    object-fit: contain;
}

.brand-name {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

/* ==================== 关于我们 ==================== */
.about-section {
    background: linear-gradient(135deg, rgba(245,247,250,0.95), rgba(245,247,250,0.9)), url('images/about_bg.jpg');
    background-size: cover;
    background-position: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-left {
    padding-right: 40px;
}

.about-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
}

.about-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.feature-box h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-box p {
    font-size: 14px;
    color: var(--text-light);
}

/* ==================== 产品展示 ==================== */
.products-section {
    background: linear-gradient(135deg, rgba(26,95,158,0.95), rgba(13,58,92,0.95)), url('images/products_bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.products-section .section-title,
.products-section .section-desc {
    color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
    color: inherit;
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

/* ==================== 案例展示 ==================== */
.cases-section {
    background: var(--bg-light);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.case-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case-card:hover {
    box-shadow: var(--shadow-hover);
}

.case-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.case-tag {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
}

.case-content {
    padding: 25px;
}

.case-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.case-desc {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.case-result {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.case-result-item {
    text-align: center;
}

.case-result-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.case-result-label {
    font-size: 12px;
    color: var(--text-light);
}

/* ==================== 联系我们 ==================== */
.contact-section {
    background: linear-gradient(135deg, var(--bg-dark), #16213e);
    color: #fff;
}

.contact-section .section-title {
    color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-text p {
    font-size: 15px;
    opacity: 0.8;
}

.contact-form {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ==================== 页脚 ==================== */
.footer {
    background: #0a0a0a;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.8;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

/* ==================== 移动端汉堡菜单 ==================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-subtitle {
        font-size: 10px;
    }
    
    .logo-img {
        height: 30px;
    }
    
    /* 移动端导航菜单 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        max-height: 400px;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        font-size: 16px;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .header-contact {
        display: none;
    }
    
    /* Hero区域优化 */
    .hero-section {
        min-height: 500px;
        height: auto;
        padding: 100px 20px 60px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-desc {
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* 通用区域优化 */
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-desc {
        font-size: 14px;
    }
    
    /* 网格布局优化 */
    .services-grid,
    .brands-grid,
    .products-grid,
    .cases-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 服务卡片优化 */
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    /* 品牌卡片优化 */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brand-card {
        padding: 20px;
    }
    
    /* 产品卡片优化 */
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    /* 案例卡片优化 */
    .case-image {
        height: 200px;
    }
    
    .case-content {
        padding: 20px;
    }
    
    .case-title {
        font-size: 18px;
    }
    
    .case-result {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    /* 关于我们优化 */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .feature-box {
        padding: 20px;
    }
    
    /* 联系我们优化 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info h3 {
        font-size: 22px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }
    
    /* 文章页面优化 */
    .article-content {
        padding: 20px;
        margin: 0 -20px;
        border-radius: 0;
    }
    
    .article-sidebar {
        display: none;
    }
    
    .blog-card .blog-image {
        height: 160px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 16px;
    }
    
    /* 页脚优化 */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand h3 {
        font-size: 20px;
    }
    
    /* AI咨询按钮优化 */
    .ai-consult-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .ai-consult-btn span {
        display: none;
    }
    
    .ai-consult-btn i {
        font-size: 20px;
        margin: 0;
    }
    
    /* 产品页面优化 */
    .about-content[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .about-content[style*="grid-template-columns"] img {
        margin-bottom: 20px;
    }
    
    /* 分类筛选优化 */
    .category-filter {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .search-box input {
        width: 200px;
    }
    
    /* 分页优化 */
    .pagination {
        margin-top: 30px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .brands-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* AI咨询按钮 */
.ai-consult-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: var(--transition);
    cursor: pointer;
}

.ai-consult-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.ai-consult-btn i {
    font-size: 24px;
}
