/*
Theme Name: 赛峰电子主题
Theme URI: https://saifeng.com
Author: 小帅
Author URI: https://saifeng.com
Description: 赛峰电子官网WordPress主题 - 专业分流器制造商 | 主题作者：小帅 | 联系电话：13662665103
Version: 2.9.13
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saifeng
Tags: corporate, industrial, electronics, responsive
*/

/* ===== CSS VARIABLES ===== */
:root {
    /* Brand Colors */
    --industrial-blue: #25bdff;
    --electric-blue: #1e50e6;
    --bright-blue: #3366ff;
    --cyan-glow: #00d4ff;
    --dark-blue: #0a1628;
    --darker-blue: #060d18;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--electric-blue) 0%, var(--industrial-blue) 100%);
    --gradient-bright: linear-gradient(135deg, #1e50e6 0%, #00d4ff 50%, #25bdff 100%);
    --gradient-border: linear-gradient(135deg, var(--electric-blue), var(--cyan-glow), var(--industrial-blue));
    --gradient-dark: linear-gradient(180deg, var(--dark-blue) 0%, var(--darker-blue) 100%);
    
    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --nav-height: 80px;
    --nav-height-mobile: 64px;
    --nav-height-small: 60px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.section {
    padding: 100px 80px;
}

.section-container {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

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

.section-header.center {
    text-align: center;
}

.section-header.center .section-desc {
    margin: 0 auto;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--electric-blue);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--gradient-bright);
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--gray-800);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 17px;
    color: var(--gray-600);
    max-width: 680px;
    line-height: 1.8;
}

/* ===== GRADIENT BORDER EFFECT ===== */
.gradient-border-wrap {
    position: relative;
    background: linear-gradient(135deg, var(--electric-blue), var(--cyan-glow), var(--industrial-blue));
    padding: 2px;
    border-radius: 12px;
    transition: all 0.5s var(--transition-smooth);
}

.gradient-border-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--electric-blue), var(--cyan-glow), var(--industrial-blue));
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.5s var(--transition-smooth);
    z-index: -1;
}

.gradient-border-wrap:hover::before {
    opacity: 0.6;
}

.gradient-border-inner {
    background: var(--white);
    border-radius: 10px;
    height: 100%;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .section {
        padding: 80px 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 16px;
    }
}

/* ===== ACCESSIBILITY ===== */
/* 屏幕阅读器专用文本 */
.sr-only,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus,
.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 10px 20px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--electric-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    z-index: 100000;
}

/* 跳转到主内容链接 */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--electric-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    z-index: 100001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--cyan-glow);
    outline-offset: 2px;
}

/* 增强焦点样式 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--electric-blue);
    outline-offset: 2px;
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --gray-400: #666;
        --gray-500: #555;
        --gray-600: #333;
    }
    
    a, button {
        text-decoration: underline;
    }
}
