/* ============================================
   洁帆日化 - 主样式表
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
    --color-primary: #0284c7;
    --color-primary-dark: #0369a1;
    --color-primary-light: #38bdf8;
    --color-accent: #0ea5e9;
    --color-accent-dark: #0284c7;
    --color-bg: #ffffff;
    --color-bg-alt: #f0f9ff;
    --color-bg-dark: #0c1929;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-text-white: #f8fafc;
    --color-border: #e2e8f0;
    --color-gradient-start: #0284c7;
    --color-gradient-end: #38bdf8;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

/* ---------- 重置 ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 通用组件 ---------- */
.text-accent {
    color: var(--color-accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    color: #fff;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    transform: translateY(-2px);
}

/* 区块通用 */
.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: #f0f9ff;
    border-radius: 50px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 14px;
    line-height: 1.2;
}

.section-desc {
    font-size: 17px;
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   顶部导航
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    transition: var(--transition);
}

.header.scrolled .logo {
    color: var(--color-text);
}

.logo-icon {
    font-size: 30px;
}

.logo-highlight {
    color: var(--color-primary-light);
}

.header.scrolled .logo-highlight {
    color: var(--color-accent);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

.header.scrolled .nav-link {
    color: var(--color-text-light);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--color-accent);
    background: #f0f9ff;
}

/* 移动端菜单按钮 */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.header.scrolled .mobile-toggle span {
    background: var(--color-text);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   首屏 Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #0c4a6e 0%, #0369a1 30%, #0284c7 60%, #0ea5e9 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 20s infinite ease-in-out;
}

.bubble-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -80px;
    animation-delay: 0s;
}

.bubble-2 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: -60px;
    animation-delay: -7s;
}

.bubble-3 {
    width: 180px;
    height: 180px;
    top: 40%;
    right: 35%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-30px) scale(1.05); }
    50% { transform: translateY(-15px) scale(0.96); }
    75% { transform: translateY(-40px) scale(1.03); }
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    color: #fff;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-title-small {
    display: block;
    font-size: 18px;
    font-weight: 500;
    opacity: 0.85;
    margin-bottom: 8px;
    letter-spacing: 4px;
}

.hero-title-main {
    display: block;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-desc {
    font-size: 17px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 36px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 0.8; }
}

.hero-product-img {
    position: relative;
    z-index: 1;
    max-width: 380px;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transform: rotate(-2deg);
    transition: var(--transition);
}

.hero-product-img:hover {
    transform: rotate(0deg) scale(1.03);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ============================================
   产品中心
   ============================================ */
.products {
    background: var(--color-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

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

.product-image {
    position: relative;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-image img {
    height: 200px;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
}

.product-badge.accent {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.product-spec {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 14px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-features span {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    color: var(--color-accent);
    background: #f0f9ff;
    border-radius: 50px;
}

/* ============================================
   产品优势
   ============================================ */
.features {
    background: var(--color-bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 36px 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.feature-icon {
    font-size: 44px;
    margin-bottom: 16px;
    display: inline-block;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   关于我们
   ============================================ */
.about {
    background: var(--color-bg);
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.about-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    border: 3px solid var(--color-primary-light);
    z-index: 0;
}

.about-content {
    flex: 1;
}

.about-content .section-title {
    margin-bottom: 20px;
}

.about-text {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text strong {
    color: var(--color-text);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 2px solid var(--color-border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 6px;
}

/* ============================================
   联系我们
   ============================================ */
.contact {
    background: var(--color-bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    text-align: center;
    padding: 40px 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.contact-icon {
    font-size: 42px;
    margin-bottom: 14px;
    display: inline-block;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.contact-link {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-accent);
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--color-primary-dark);
}

.contact-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    margin-top: 12px;
    font-size: 15px;
    opacity: 0.7;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.footer-links h4,
.footer-contact-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    font-size: 14px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--color-primary-light);
}

.footer-contact-info p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    opacity: 0.5;
}

/* ============================================
   右侧浮动工具栏
   ============================================ */
.side-toolbar {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(60px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.side-toolbar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.side-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    text-decoration: none;
    position: relative;
}

.side-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 电话按钮 */
.side-btn-phone {
    background: var(--color-accent);
}

.side-btn-phone:hover {
    background: var(--color-primary-dark);
}

/* 微信按钮 */
.side-btn-wechat {
    background: #07c160;
}

.side-btn-wechat:hover {
    background: #06ad56;
}

/* 微信悬浮提示 */
.wechat-tooltip {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wechat-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
    border-right: none;
}

.side-btn-wechat:hover .wechat-tooltip {
    opacity: 1;
}

/* 返回顶部按钮 */
.side-btn-top {
    background: rgba(2, 132, 199, 0.7);
}

.side-btn-top:hover {
    background: var(--color-accent);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-title-main {
        font-size: 38px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-product-img {
        max-width: 280px;
    }

    .about-grid {
        flex-direction: column;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .section-title {
        font-size: 30px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        padding: 100px 30px 30px;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .nav-link {
        color: var(--color-text) !important;
        font-size: 17px;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }

    .nav-link:hover,
    .nav-link.active {
        background: #f0f9ff !important;
        color: var(--color-accent) !important;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero {
        padding: 140px 0 60px;
        min-height: auto;
    }

    .hero-title-main {
        font-size: 30px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-desc br {
        display: none;
    }

    .about-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-title-main {
        font-size: 26px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .about-stats {
        flex-direction: column;
        gap: 16px;
    }
}
