/*
Theme Name: Yundu Chuhai
Theme URI: https://yunduseo.com
Author: Suzhou Yundu Digital Technology Co., Ltd.
Author URI: https://yunduseo.com
Description: Custom WordPress theme for Yundu Chuhai (云渡出海) - B2B export marketing services. Features a premium navy + orange design with Tailwind CSS, scroll animations, and a fully manageable blog system.
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: yundu
Tags: b2b, marketing, seo, business, tailwind, custom-theme
*/

/* ========================================
   Custom CSS (supplements Tailwind CDN)
   ======================================== */

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans SC', system-ui, sans-serif; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #0a1f38 0%, #0f2c4c 40%, #163d62 100%);
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

/* Animated grid background */
.grid-bg {
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
.float-anim { animation: float 4s ease-in-out infinite; }

/* Pulse glow */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.3); }
    50% { box-shadow: 0 0 40px rgba(249, 115, 22, 0.5); }
}
.pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }

/* Marquee */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 30s linear infinite; }

/* Card hover */
.service-card { transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px -15px rgba(15, 44, 76, 0.15); }

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #f97316, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Number counter */
.stat-number { font-variant-numeric: tabular-nums; }

/* Nav blur */
.nav-blur { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

/* Smooth underline */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: #f97316;
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Pricing card highlight */
.pricing-highlight {
    position: relative;
    overflow: hidden;
}
.pricing-highlight::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c);
}

/* Mobile menu */
.mobile-menu { transition: max-height 0.4s ease, opacity 0.3s ease; max-height: 0; opacity: 0; overflow: hidden; }
.mobile-menu.open { max-height: 500px; opacity: 1; }

/* Scroll indicator */
@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}
.scroll-indicator { animation: scrollDown 2s ease-in-out infinite; }

/* Shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.shimmer-text {
    background: linear-gradient(90deg, #64748b 0%, #0f2c4c 50%, #64748b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

/* Trend Line Draw Animation */
@keyframes drawLine {
    from { stroke-dashoffset: 700; }
    to   { stroke-dashoffset: 0; }
}

/* Process line */
.process-line {
    background: linear-gradient(180deg, #f97316 0%, transparent 100%);
}

/* FAQ accordion */
.faq-item { transition: all 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Article card hover */
.article-card { transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
.article-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -10px rgba(15,44,76,0.15); }
.article-card:hover .article-img { transform: scale(1.05); }
.article-img { transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }

/* Category filter button */
.category-btn { transition: all 0.3s ease; }
.category-btn.active { background: #0f2c4c; color: white; }

/* Blog hero pattern */
.blog-hero-pattern {
    background-image: radial-gradient(circle at 20% 50%, rgba(249,115,22,0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(45,98,150,0.15) 0%, transparent 50%);
}

/* Case card hover */
.case-card { transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px -15px rgba(15,44,76,0.12); }

/* Chart bar */
.chart-bar { transition: height 1s cubic-bezier(0.16,1,0.3,1); }

/* WordPress content area */
.entry-content img { max-width: 100%; height: auto; }
.entry-content p { margin-bottom: 1.5rem; }
.entry-content h2 { font-size: 1.875rem; font-weight: 700; color: #0f2c4c; margin-top: 2.5rem; margin-bottom: 1rem; }
.entry-content h3 { font-size: 1.5rem; font-weight: 600; color: #0f2c4c; margin-top: 2rem; margin-bottom: 0.75rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote { border-left: 4px solid #f97316; padding-left: 1rem; font-style: italic; color: #64748b; margin: 1.5rem 0; }
.entry-content a { color: #f97316; text-decoration: underline; }
.entry-content a:hover { color: #ea580c; }
.entry-content pre { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 1rem; overflow-x: auto; margin: 1.5rem 0; }
.entry-content code { background: #f1f5f9; padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875rem; }
.entry-content pre code { background: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
