/*
Theme Name: 蓝海科技主题
Theme URI: https://blueocean.com
Author: BlueOcean Tech
Author URI: https://blueocean.com
Description: 一个现代化的企业WordPress主题，支持自定义Logo、图片、文字和SEO设置。专为数字化科技公司设计。
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: blueocean
Tags: business, corporate, one-column, two-columns, custom-colors, custom-logo, custom-menu, featured-images, flexible-header, theme-options
*/

body { 
    -webkit-font-smoothing: antialiased; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

main {
    opacity: 0;
}

/* 蓝色主题色彩变量 */
:root {
    interpolate-size: allow-keywords;

    /* 全局动画时间 */
    --eas-1: cubic-bezier(0.17, 0.25, 0.30, 1.00);
    --eas-2: cubic-bezier(0.00, 0.00, 0.00, 1.00);
    --dur-1: 1s;
    --dur-2: 2s;
    --dur-3: 0.5s;
    --dur-btn: 0.3s;
    --dur-btn-fast: 0.15s;
    --stagger: 0.133s;
    --scale-big: 1.2;
    --scale-medium: 1.1;
    --scale-small: 0.8;
    
    /* 蓝色主题色彩 */
    --primary-blue: #1e40af;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e3a8a;
    --accent-blue: #60a5fa;
    --text-blue: #1e40af;
    --bg-blue-light: #eff6ff;
    --bg-blue-medium: #dbeafe;
    --gradient-blue: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
}

::before,
::after {
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    color: #1f2937;
}

html {
    height: auto;
}

section {
    position: relative;
}

[hide-scrollbar]::-webkit-scrollbar {
    display: none;
}

/* 自动填充样式 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-blue-light) inset !important;
    -webkit-text-fill-color: #1f2937 !important;
    transition: background-color 9999s ease-out !important;
}

.w-embed:before,
.w-embed:after,
.w-richtext:before,
.w-richtext:after {
    content: unset;
}

img::selection {
    background: transparent;
}

button {
    background-color: unset;
    padding: unset;
    text-align: inherit;
}

button:not(:disabled) {
    cursor: pointer;
}

video {
    width: 100%;
    object-fit: cover;
}

img {
    object-fit: cover;
}

svg {
    max-width: 100%;
}

a:not([class]) {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6,
p, label {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-wrap: inherit;
    margin-top: 0;
    margin-bottom: 0;
}

textarea {
    resize: vertical;
}

/* 工具类和组件重置 */
.wf-empty {
    padding: 0;
}

select:has(option[value=""]:checked) {
    color: color-mix(in lab, currentcolor 60%, transparent);
}

/* 响应式可见性 */
@media (min-width: 992px) {
    [show-tablet] {
        display: none;
    }
}

@media (max-width: 991px) {
    [hide-tablet] {
        display: none;
    }
}
@media (max-width: 767px) {
    [hide-landscape] {
        display: none;
    }
}
@media (max-width: 479px) {
    [hide-portrait] {
        display: none;
    }
}

/* 工具属性 */
[vertical-align-middle] {
    vertical-align: middle;
}

[vertical-align-top] {
    vertical-align: top;
}

[text-balance] {
    text-wrap: balance;
}

/* 焦点样式 */
a, button, :where([tabindex]) {
    outline-offset: 0.25rem;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline-width: 1.5px;
    outline-style: solid;
    outline-color: var(--primary-blue);
}

/* 自定义蓝色主题样式 */
.primary-blue-text {
    color: var(--primary-blue) !important;
}

.primary-blue-bg {
    background-color: var(--primary-blue) !important;
}

.blue-gradient {
    background: var(--gradient-blue) !important;
}

.btn-primary {
    background-color: var(--primary-blue) !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.2) !important;
}

.btn-secondary {
    background-color: transparent !important;
    color: var(--primary-blue) !important;
    border: 2px solid var(--primary-blue) !important;
    padding: 10px 22px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.btn-secondary:hover {
    background-color: var(--primary-blue) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.2) !important;
}

/* 导航栏蓝色主题 */
.nav_custom {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

.nav_logo_custom {
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
}

.nav_link_custom {
    color: #374151 !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

.nav_link_custom:hover {
    color: var(--primary-blue) !important;
}

/* 英雄区域蓝色渐变背景 */
.hero-gradient {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* 特色卡片 */
.feature-card {
    background: white !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
}

.feature-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15) !important;
}

.feature-icon {
    width: 60px !important;
    height: 60px !important;
    background: var(--bg-blue-light) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1.5rem !important;
    color: var(--primary-blue) !important;
}

/* 统计数字样式 */
.stat-number {
    font-size: 3rem !important;
    font-weight: 700 !important;
    color: white !important;
    margin-bottom: 0.5rem !important;
}

/* 页脚蓝色主题 */
.footer_custom {
    background: var(--primary-blue-dark) !important;
    color: white !important;
    padding: 3rem 0 !important;
}

.footer_link {
    color: #93c5fd !important;
    transition: color 0.3s ease !important;
}

.footer_link:hover {
    color: white !important;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-gradient {
        min-height: 80vh;
        padding: 2rem 1rem;
    }

    .stat-number {
        font-size: 2rem !important;
    }

    .feature-card {
        padding: 1.5rem !important;
    }
}
