/*
Theme Name: 噢安科技 OAN Enterprise
Theme URI: https://www.oantech.com
Description: 响应式企业官网WordPress主题，包含大图片首页设计
Author: OAN Team
Author URI: https://www.oanweb.com
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: 响应式, 企业, 现代, 大图片, 交互, 博客
Text Domain: oan-enterprise
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: transparent;
}

/* 导航样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: none !important;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
    margin: 0;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* 确保hero-section内容不被导航栏遮挡 */
.hero-content {
    padding-top: 80px;
    max-width: 800px;
    position: relative;
    z-index: 1;
    padding: 80px 20px 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: none !important;
    border: none !important;
    outline: none !important;
}

/* 网站Logo样式 */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-container:hover {
    color: #f0f0f0;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.logo-image {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 5px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
}

/* 滚动时的Logo样式 */
header.scrolled .logo-container {
    color: #fff;
    text-shadow: none;
}

header.scrolled .logo-container:hover {
    color: #fff;
}

/* 响应式Logo样式 */
@media (max-width: 768px) {
    .logo-image {
        width: 35px;
        height: 35px;
        margin-right: 8px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #0066cc;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* 首页大图片英雄区 */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 100vh; /* 确保至少铺满整个视口高度 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
    width: 100%;
    background-attachment: scroll; /* 修改为scroll以兼容iOS设备 */
}

/* 为非iOS设备保留fixed背景效果 */
@supports not (-webkit-touch-callout: none) {
    .hero-section {
        background-attachment: fixed;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
    color: white;
}

/* 心字特殊样式 */
.heart-text {
    color: #0066cc; /* 蓝色 */
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #004080;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* 服务部分 */
.services-section {
    padding: 50px 20px 100px;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #0066cc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.service-desc {
    color: #666;
    line-height: 1.7;
}

.service-link {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 15px;
    margin-top: 10px;
}

.service-link::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: #004080;
}

.service-link:hover::after {
    transform: translateX(5px);
}

/* 合作伙伴区域 */
.partners-section {
    padding: 60px 20px;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.partners-title {
    text-align: center;
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 40px;
    font-weight: 400;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

.partner-item {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    text-align: center;
}

.partner-item:hover {
    opacity: 1;
}

/* 客户案例 */
.case-studies-section {
    padding: 100px 20px;
    background-color: white;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.case-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

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

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.case-content {
    padding: 25px;
}

.case-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.case-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-title a:hover {
    color: #0066cc;
}

.case-excerpt {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.case-category {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 30px;
    font-size: 0.85rem;
}

/* 数据统计 */
.stats-section {
    padding: 80px 20px;
    background-color: #0066cc;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* 关于我们 */
.about-section {
    padding: 100px 20px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-image img {
    width: 100%;
    height: auto;
	 display: block;
    transition: transform 0.5s ease;
	  transform: scale(1.5); 
}

.about-image:hover img {
    transform: scale(1.5);
	   display: block;       
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #666;
}

/* 团队成员 */
.team-section {
    padding: 100px 20px;
    background-color: white;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-avatar-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.team-member-info {
    width: 100%;
    max-width: 300px;
}

.team-member-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.team-member-position {
    font-size: 1rem;
    color: #0066cc;
    margin-bottom: 10px;
}

.team-member-description {
    color: #666;
    line-height: 1.6;
}

/* 最新动态 */
.blog-section {
    padding: 100px 20px 50px;
    background-color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

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

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 25px;
}

.blog-date {
    color: #0066cc;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.blog-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #0066cc;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.blog-readmore {
    display: inline-block;
    text-decoration: none;
    color: #0066cc;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.blog-readmore::after {
    content: '→';
    position: absolute;
    right: -15px;
    transition: right 0.3s ease;
}

.blog-readmore:hover {
    color: #004080;
}

.blog-readmore:hover::after {
    right: -20px;
}

/* 联系我们 */
.contact-section {
    padding: 100px 20px;
    background-color: #f9f9f9;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

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

.info-icon {
    font-size: 1.5rem;
    color: #0066cc;
    margin-right: 15px;
    min-width: 30px;
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.info-content p {
    color: #666;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

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

/* 页脚 */
footer {
    background-color: #333;
    color: white;
    padding: 60px 20px 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

/* Logo样式已移除 */

.footer-desc {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #0066cc;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

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

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #0066cc;
    transform: translateX(5px);
}

/* 友情链接样式增强 */
.friend-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.friend-links li {
    margin-bottom: 0;
}

.friend-links a {
    position: relative;
    padding-left: 15px;
}

.friend-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-5px);
}

.friend-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.9rem;
}

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

/* 移动设备导航栏强制透明规则 */
@media (max-width: 768px) {
    /* 确保所有导航相关元素在移动设备上完全透明 */
    header {
        background-color: transparent !important;
        background-image: none !important;
        position: relative !important;
    }
    
    .nav-container {
        background-color: transparent !important;
        background-image: none !important;
    }
    
    .mobile-nav {
        background-color: transparent !important;
        background-image: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }
    
    .mobile-nav.active {
        background-color: rgba(0, 0, 0, 0.3) !important;
        background-image: none !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    .nav-links {
        background-color: transparent !important;
        background-image: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }
    
    .nav-links.active {
        background-color: rgba(0, 0, 0, 0.3) !important;
        background-image: none !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* 确保没有任何子元素有背景，但保留mobile-nav自身的磨砂效果 */
    .nav-links *,
    .mobile-nav-links *,
    .nav-container * {
        background-color: transparent !important;
        background-image: none !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .services-grid,
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 移动端导航 */
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1000;
    }
    
    /* 确保导航栏在非激活状态下也有正确的背景设置 */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: transparent !important;
        background-image: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: none !important;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        display: flex;
        border: none !important;
        outline: none !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* 确保激活状态下背景设置保持一致 */
    .nav-links.active {
        transform: translateY(0);
        background-color: transparent !important;
        background-image: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    /* 强制所有导航相关元素透明 */
    header *, 
    .nav-container *, 
    .mobile-nav *, 
    .nav-links *, 
    .mobile-nav-links * {
        background-color: transparent !important;
        background-image: none !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    /* 英雄区 */
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* 服务和案例 */
    .services-grid,
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    /* 关于我们 */
    .about-container {
        grid-template-columns: 1fr;
    }
    
    /* 数据统计 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* 博客 */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* 联系我们 */
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 80vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* 数据统计 */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* 合作伙伴 */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partner-item {
        font-size: 1rem;
    }
    
    .services-section,
    .about-section,
    .team-section,
    .blog-section,
    .contact-section {
        padding: 60px 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    /* 团队成员响应式 */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}