/*
Theme Name: 正合智企科技主题
Theme URI: https://myzhenghe.com
Description: 绵阳正合智企科技有限公司官网主题，科技风格，用于公司宣传和文章存档
Version: 1.0.0
Author: 正合智企
Author URI: https://myzhenghe.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zhenghe-tech
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   科技风格主题 - 全局样式
   ======================================== */

:root {
    --primary: #0A1628;
    --secondary: #1E3A5F;
    --accent: #00D4FF;
    --accent-orange: #FF6B35;
    --bg-dark: #0D1B2A;
    --bg-card: rgba(30, 58, 95, 0.3);
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --gradient-accent: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    --gradient-orange: linear-gradient(135deg, #FF6B35 0%, #FF8F5E 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 背景网格效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-orange);
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 60px;
    background: rgba(10, 22, 40, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
}

/* ========================================
   Hero区域
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 80px 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-content {
    max-width: 900px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gradient-orange);
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: var(--accent) !important;
    text-decoration: none;
    border: 2px solid var(--accent);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--primary) !important;
}

.hero-stats {
    display: flex;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: "JetBrains Mono", monospace;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
}

.stat-unit {
    font-size: 32px;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ========================================
   内容区域通用样式
   ======================================== */
.section {
    padding: 100px 80px;
}

.section-alt {
    background: rgba(10, 22, 40, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

/* ========================================
   关于我们
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--accent);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    gap: 20px;
}

.highlight-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.highlight-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.highlight-item p {
    font-size: 14px;
    margin: 0;
}

/* ========================================
   服务项目
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   服务范围
   ======================================== */
.service-areas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.area-item {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.area-item:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.05);
}

.area-item h4 {
    font-size: 16px;
    color: var(--text-primary);
}

/* ========================================
   文章列表 (AI收录优化)
   ======================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-content {
    padding: 25px;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--text-primary);
}

.article-card h3 a:hover {
    color: var(--accent);
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.article-ai-hint {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    font-size: 12px;
    color: var(--accent);
    text-align: center;
}

/* ========================================
   核心优势
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   合作伙伴
   ======================================== */
.partners-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-item {
    padding: 20px 40px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.partner-item:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========================================
   联系我们 / CTA
   ======================================== */
.contact-section {
    padding: 100px 80px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.05) 100%);
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--accent);
}

.contact-item p {
    color: var(--text-secondary);
}

/* ========================================
   单篇文章页面
   ======================================== */
.single-article {
    padding: 120px 80px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.single-article .article-header {
    margin-bottom: 40px;
}

.single-article .article-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.single-article .article-body {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.single-article .article-body p {
    margin-bottom: 25px;
}

.single-article .article-body h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin: 40px 0 20px;
}

.single-article .article-body h3 {
    font-size: 22px;
    color: var(--accent);
    margin: 30px 0 15px;
}

/* AI SEO优化提示 */
.ai-seo-box {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.ai-seo-box h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 16px;
}

.ai-seo-box ul {
    list-style: none;
    padding: 0;
}

.ai-seo-box li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.ai-seo-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--primary);
    padding: 60px 80px 30px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 20px;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.animate-fade {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* 滚动触发动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-areas {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat-number {
        font-size: 36px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .services-grid,
    .articles-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .service-areas {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        padding: 40px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-article {
        padding: 100px 20px 40px;
    }

    .single-article .article-title {
        font-size: 28px;
    }
}

/* WordPress 基础样式 */
.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 10px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    margin: 0 10px;
}

/* ========================================
   评论区域
   ======================================== */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-title,
.comment-reply-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* 评论列表 */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--accent);
}

.comment-author .fn {
    font-weight: 600;
    color: #fff;
    font-size: 16px;
    margin-right: 10px;
}

.comment-author .says {
    color: var(--text-secondary);
    font-size: 14px;
}

.comment-metadata {
    font-size: 13px;
    color: var(--text-secondary);
}

.comment-metadata a {
    color: var(--text-secondary);
}

.comment-metadata a:hover {
    color: var(--accent);
}

.comment-content {
    color: #b0c4de;
    line-height: 1.8;
    font-size: 15px;
    margin: 15px 0;
}

.comment-content p {
    margin-bottom: 12px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 15px;
}

.comment-reply-link {
    color: var(--accent);
    font-size: 14px;
    padding: 6px 15px;
    border: 1px solid var(--accent);
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.comment-reply-link:hover {
    background: var(--accent);
    color: var(--primary);
}

/* 子评论 */
.children {
    list-style: none;
    margin: 20px 0 0 50px;
    padding: 0;
}

.children .comment {
    background: rgba(0, 180, 255, 0.03);
    border-color: rgba(0, 180, 255, 0.1);
}

/* 评论表单 */
.comment-respond {
    margin-top: 50px;
    padding: 35px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.comment-form label {
    display: block;
    color: #b0c4de;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form p:last-child {
    margin-bottom: 0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 180, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.7;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* 提交按钮 */
.comment-form .submit,
.submit {
    background: linear-gradient(135deg, var(--accent) 0%, #0088cc 100%);
    color: #fff;
    border: none;
    padding: 14px 35px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.comment-form .submit:hover,
.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 255, 0.3);
}

.comment-form .form-submit {
    margin-bottom: 0;
    margin-top: 25px;
}

/* 登录提示 */
.comment-notes {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    margin-bottom: 8px;
    color: #b0c4de;
    font-size: 14px;
}

/* 无评论提示 */
.no-comments {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
    font-size: 15px;
}
