/*
Theme Name: Astra Child - YUMO Industrial
Theme URI: https://white-fused-alumina.com
Description: Custom child theme for YUMO Industrial Materials B2B website
Author: YUMO Team
Author URI: https://white-fused-alumina.com
Template: astra
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: astra-child
*/

/* ========================================
   导入 Google Fonts
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ========================================
   全局 CSS 变量
   ======================================== */
:root {
    /* 品牌颜色 */
    --color-primary: #0B0F19;        /* Obsidian 黑 */
    --color-secondary: #C5A065;      /* 奢华金 */
    --color-gold-light: #E5CFA5;     /* 浅金色 */
    --color-bg: #F8FAFC;             /* 浅灰背景 */
    --color-navy: #0F172A;           /* 深海军蓝 */

    /* 字体 */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;

    /* 阴影 */
    --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   全局样式重置
   ======================================== */
body {
    font-family: var(--font-sans) !important;
    background-color: var(--color-bg);
    color: #1E293B;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
    font-family: var(--font-serif) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ========================================
   自定义滚动条
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   文字选择高亮
   ======================================== */
::selection {
    background-color: var(--color-secondary);
    color: white;
}

::-moz-selection {
    background-color: var(--color-secondary);
    color: white;
}

/* ========================================
   渐变文字效果
   ======================================== */
.gradient-text,
.text-gradient {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   玻璃拟态效果
   ======================================== */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   按钮样式
   ======================================== */
.btn-primary,
.elementor-button.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-premium);
    border: none;
}

.btn-primary:hover,
.elementor-button.btn-primary:hover {
    background-color: #1a1f2e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-secondary,
.elementor-button.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 1rem 2rem;
    border-radius: 2px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-gold-light);
    color: var(--color-primary);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-secondary);
}

/* ========================================
   导航菜单样式
   ======================================== */
.main-navigation a {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* 金色下划线动画 */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========================================
   Hero 区域样式
   ======================================== */
.hero-section {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(11, 15, 25, 1) 0%,
        rgba(11, 15, 25, 0.9) 50%,
        transparent 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(197, 160, 101, 0.5);
    border-radius: 50px;
    color: var(--color-secondary);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

/* ========================================
   产品卡片样式
   ======================================== */
.product-card {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 4px;
    box-shadow: var(--shadow-premium);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f1f5f9;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.product-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.product-card:hover .product-card-title {
    color: var(--color-secondary);
}

.product-card-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    font-weight: 300;
}

/* ========================================
   统计数据卡片
   ======================================== */
.stats-card {
    background: white;
    padding: 2.5rem;
    box-shadow: var(--shadow-hover);
    border-top: 4px solid var(--color-secondary);
    border-radius: 4px;
}

.stats-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stats-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #64748b;
    margin-top: 0.5rem;
}

/* ========================================
   Section 标题样式
   ======================================== */
.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 1rem;
}

.section-divider {
    width: 96px;
    height: 4px;
    background: var(--color-secondary);
    margin: 1.5rem auto;
}

/* ========================================
   图标盒子样式
   ======================================== */
.icon-box {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--color-secondary);
    transition: all 0.3s ease;
}

.icon-box:hover {
    border-color: var(--color-secondary);
    background: rgba(197, 160, 101, 0.05);
    transform: translateX(4px);
}

.icon-box-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(197, 160, 101, 0.1);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.icon-box-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.icon-box-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.7;
    font-weight: 300;
}

/* ========================================
   技术参数表格
   ======================================== */
.tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tech-spec-item {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tech-spec-item:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-premium);
}

.tech-spec-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.tech-spec-value {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-primary);
}

.tech-spec-unit {
    font-size: 0.875rem;
    color: #64748b;
    margin-left: 0.5rem;
}

/* ========================================
   表单样式
   ======================================== */
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.wpforms-field input:focus,
.wpforms-field textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(197, 160, 101, 0.1);
}

.wpforms-submit {
    background: var(--color-primary);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpforms-submit:hover {
    background: #1a1f2e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium);
}

/* ========================================
   页脚样式
   ======================================== */
.site-footer {
    background: var(--color-primary);
    color: #94a3b8;
    padding: 5rem 0 2rem;
    border-top: 4px solid var(--color-secondary);
}

.footer-heading {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 300;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-link:hover {
    color: white;
    padding-left: 4px;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        min-height: 500px;
    }

    .product-card-image {
        aspect-ratio: 4/3;
    }

    .stats-card {
        padding: 1.5rem;
    }

    .stats-number {
        font-size: 2rem;
    }

    .tech-specs-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   工具类
   ======================================== */
.text-gold { color: var(--color-secondary); }
.bg-primary { background-color: var(--color-primary); }
.bg-gold { background-color: var(--color-secondary); }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 2px; }
.font-light { font-weight: 300; }
.font-bold { font-weight: 700; }

/* ========================================
   动画定义
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.7s ease-out;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideInFromBottom 0.7s ease-out;
}

/* Pulse animation for live indicators */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
