/*
Theme Name: ULV SprayTech
Theme URI: https://www.yourbrand.cn
Author: Your Brand Team
Author URI: https://www.yourbrand.cn
Description: 超低容量喷雾器企业官网主题，模仿 VectorFog 深色科技风格设计。适用于消毒设备、喷雾器、消杀器械等产品推广。支持产品展示、应用场景分类、在线咨询等功能。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ulv-spraytech
Tags: business, portfolio, dark, product-showcase, responsive
*/

/* === 基础重置 === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* 主色调 - VectorFog 风格 */
    --color-bg-dark: #0A0F1A;
    --color-bg-darker: #0D1117;
    --color-bg-card: #FFFFFF;
    --color-bg-section-alt: #111827;
    --color-topbar: #992300;
    --color-primary: #2563EB;
    --color-accent: #E5482D;
    --color-success: #14A06A;
    --color-text-light: #F9FAFB;
    --color-text-secondary: #9CA3AF;
    --color-text-muted: #6B7280;
    --color-text-dark: #1F2937;
    --color-border: #1F2937;
    --color-border-light: #E5E7EB;

    /* 字体 */
    --font-primary: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "Microsoft YaHei", monospace;

    /* 间距 */
    --section-padding: 80px 0;
    --container-width: 1200px;

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* 阴影 */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-dark);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === 顶部信息栏 === */
.topbar {
    background-color: var(--color-topbar);
    color: var(--color-text-light);
    font-size: 13px;
    padding: 8px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar a {
    color: var(--color-text-light);
    opacity: 0.9;
}

.topbar a:hover {
    opacity: 1;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-social {
    display: flex;
    gap: 12px;
}

/* === 导航栏 === */
.site-header {
    background-color: var(--color-bg-dark);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 40px;
    width: auto;
}

.site-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: -0.5px;
}

.site-title span {
    color: var(--color-primary);
}

/* 主导航 */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-text-secondary);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--color-text-light);
}

.main-navigation .menu-item-has-children > a::after {
    content: "▾";
    margin-left: 4px;
    font-size: 12px;
}

/* 下拉菜单 */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg-section-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
}

.main-navigation .sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* === Hero 轮播区 === */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a1f35 100%);
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("assets/images/hero-bg.jpg") center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.15);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-text-light);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: #d63d24;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(229, 72, 45, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* === 合作伙伴 === */
.partners-section {
    background: var(--color-bg-section-alt);
    padding: 48px 0;
    border-bottom: 1px solid var(--color-border);
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 8px;
}

.partners-title {
    font-size: 20px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.partner-logo {
    height: 40px;
    opacity: 0.5;
    filter: grayscale(100%) brightness(2);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    filter: none;
}

/* === 通用 Section 标题 === */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .section-label {
    color: var(--color-primary);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-title--light {
    color: var(--color-text-light);
}

.section-title--dark {
    color: var(--color-text-dark);
}

.section-desc {
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-desc--light {
    color: var(--color-text-secondary);
}

/* === 产品展示 === */
.products-section {
    background: var(--color-bg-dark);
    padding: var(--section-padding);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card-image {
    aspect-ratio: 4/3;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 24px;
}

.product-card-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.product-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.product-card-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-card-link:hover {
    gap: 8px;
}

/* === 应用场景 === */
.applications-section {
    background: var(--color-bg-section-alt);
    padding: var(--section-padding);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.application-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.application-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.application-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.application-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.application-card p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* === 技术优势/数据展示 === */
.stats-section {
    background: var(--color-bg-dark);
    padding: var(--section-padding);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number span {
    font-size: 24px;
    color: var(--color-text-secondary);
}

.stat-label {
    font-size: 15px;
    color: var(--color-text-secondary);
}

/* === 新闻动态 === */
.news-section {
    background: var(--color-bg-section-alt);
    padding: var(--section-padding);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.news-card-image {
    aspect-ratio: 16/9;
    background: #1a1f35;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 24px;
}

.news-card-date {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card-excerpt {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* === 在线咨询入口 === */
.contact-cta-section {
    background: var(--color-bg-dark);
    padding: var(--section-padding);
}

.contact-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-cta-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-cta-card:hover {
    border-color: var(--color-primary);
    background: rgba(37, 99, 235, 0.05);
}

.contact-cta-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.contact-cta-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.contact-cta-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* === 微信订阅 === */
.subscribe-section {
    background: var(--color-bg-section-alt);
    padding: 60px 0;
    border-top: 1px solid var(--color-border);
}

.subscribe-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.subscribe-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.subscribe-text p {
    font-size: 15px;
    color: var(--color-text-secondary);
}

.subscribe-qr {
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.subscribe-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* === 页脚 === */
.site-footer {
    background: var(--color-bg-darker);
    border-top: 1px solid var(--color-border);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--color-primary);
    color: #fff;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    font-size: 14px;
    color: var(--color-text-muted);
}

.footer-column a:hover {
    color: var(--color-text-light);
}

.footer-contact-item {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--color-text-muted);
}

.footer-icp {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* === 响应式 === */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    .main-navigation {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg-dark);
        z-index: 9999;
        padding: 80px 24px 24px;
    }
    .main-navigation.active {
        display: block;
    }
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    .main-navigation a {
        display: block;
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--color-border);
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-desc {
        font-size: 16px;
    }
    .products-grid,
    .news-grid,
    .contact-cta-grid {
        grid-template-columns: 1fr;
    }
    .applications-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stat-number {
        font-size: 36px;
    }
    .section-title {
        font-size: 28px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .topbar {
        display: none;
    }
}
