/* ===========================================
   CSS 变量 - High Fidelity Design
   =========================================== */
:root {
    --primary-color: #3b82f6;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;

    /* 卡片背景色 */
    --bg-yellow: #faeab3;
    --bg-pink: #fcece8;
    --bg-blue: #ddebf7;

    /* 按钮渐变 */
    --btn-gradient: linear-gradient(135deg, #e68e44 0%, #c27835 100%);

    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* ===========================================
   Reset & Base
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-dark);
    /* 淡灰蓝渐变背景 - 让玻璃卡片更突出 */
    background: linear-gradient(180deg,
            #f0f4fa 0%,
            #e8eef8 50%,
            #f5f8fc 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ===========================================
   Glass Effect
   =========================================== */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
}

/* ===========================================
   流光边缘动画 (Flowing Light Border)
   =========================================== */
@keyframes flowingLight {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 流光边缘容器样式 */
.glow-border {
    position: relative;
    overflow: visible;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    background: linear-gradient(90deg,
            rgba(100, 180, 255, 0.3),
            rgba(150, 120, 255, 0.4),
            rgba(255, 150, 200, 0.3),
            rgba(255, 200, 100, 0.3),
            rgba(100, 255, 200, 0.3),
            rgba(100, 180, 255, 0.3));
    background-size: 300% 100%;
    animation: flowingLight 4s ease-in-out infinite;
    z-index: -1;
    opacity: 0.6;
    filter: blur(3px);
    transition: opacity 0.3s ease;
}

.glow-border:hover::before {
    opacity: 1;
    filter: blur(5px);
}

/* ===========================================
   Navbar
   =========================================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 70px;
    border-radius: 50px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 1rem;
}

.logo img {
    height: 88px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-item.active {
    background-color: #5d9cec;
    color: white;
    box-shadow: 0 4px 10px rgba(93, 156, 236, 0.3);
}

.btn-contact {
    background: var(--btn-gradient);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(230, 142, 68, 0.3);
}

/* ===========================================
   Hero Section
   =========================================== */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 0;
    /* 移除顶部内边距，使banner顶到顶部 */
    padding-bottom: 40px;
}

.hero-bg {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.hero-bg img {
    width: 100%;
    height: auto;
    object-fit: cover;
    text-align: center;
    display: block;
}

.hero-content {
    position: absolute;
    bottom: 10%;
    /* 提升高度，确保在Banner内部 */
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.hero-text-wrapper {
    text-align: center;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    color: #3e2f28;
    margin-bottom: 0.8rem;
    letter-spacing: 3px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5d4a41;
    opacity: 0.95;
    letter-spacing: 4px;
}

/* 公司名称 - 机器人头上 */
.hero-company-name {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.company-name-text {
    font-size: 3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 6px;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.5);
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.25) 50%,
            rgba(255, 255, 255, 0.1) 100%);
    padding: 0.6rem 2rem;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===========================================
   Feature Strip - 清透玻璃效果
   =========================================== */
.feature-section {
    padding: 2rem 0 0;
}

.feature-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 1rem 1rem 1.5rem;
    overflow: visible;
    position: relative;
}

.feature-strip {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 94%;
    max-width: 1200px;
    padding: 2.5rem 3rem;
    margin: 0 auto;
    border-radius: 25px;
    position: relative;
    z-index: 1;

    /* 清透玻璃 - 更高透明度 + 更强模糊 */
    background: rgba(255, 255, 255, 0.25);

    /* 强力模糊 + 饱和度增强 */
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);

    /* 细亮边框 */
    border: 1px solid rgba(255, 255, 255, 0.5);

    /* 轻盈阴影 */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-item:hover {
    transform: translateY(-6px);
}

.feature-icon {
    width: 220px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.feature-item:hover .feature-icon img {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.18));
    transform: scale(1.05);
}

.feature-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* ===========================================
   News Section - 企业新闻栏目（横向布局）
   =========================================== */
.news-section {
    padding: 3rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 2px;
}

/* 横向新闻卡片 - 玻璃质感 */
.news-card-horizontal {
    display: flex;
    flex-direction: row;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 900px;
    margin: 0 auto;
}

.news-card-horizontal:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(31, 38, 135, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.news-card-image {
    position: relative;
    width: 380px;
    min-width: 380px;
    height: 260px;
    overflow: hidden;
    border-radius: 25px 0 0 25px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card-horizontal:hover .news-card-image img {
    transform: scale(1.03);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 15px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.news-card-content {
    flex: 1;
    padding: 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.news-card-meta .news-date {
    font-size: 0.85rem;
    color: #888;
}

.news-tag-inline {
    font-size: 0.85rem;
    color: #5d9cec;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    background: rgba(93, 156, 236, 0.1);
    border-radius: 10px;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: #5a6a7a;
    line-height: 1.8;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    font-size: 0.9rem;
    color: #5d9cec;
    font-weight: 600;
    margin-top: auto;
    transition: color 0.3s ease;
}

.news-card-horizontal:hover .news-read-more {
    color: #4a89dc;
    text-decoration: underline;
}

/* 响应式 - 新闻卡片 */
@media (max-width: 768px) {
    .news-card-horizontal {
        flex-direction: column;
        border-radius: 20px;
    }

    .news-card-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
        border-radius: 20px 20px 0 0;
    }

    .news-card-content {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* ===========================================
   Products CSS (参考图样式)
   =========================================== */
.products {
    padding-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.product-card {
    border-radius: 25px;
    overflow: hidden;
    height: 280px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* 卡片背景色 - 柔和渐变 + 玻璃效果 */
.card-yellow {
    background: linear-gradient(145deg, rgba(253, 246, 227, 0.9) 0%, rgba(248, 236, 200, 0.85) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-pink {
    background: linear-gradient(145deg, rgba(253, 242, 240, 0.9) 0%, rgba(245, 230, 227, 0.85) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-blue {
    background: linear-gradient(145deg, rgba(240, 244, 248, 0.9) 0%, rgba(232, 238, 245, 0.85) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: inherit;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

.card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: #333;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card:hover .card-arrow {
    background: rgba(255, 255, 255, 1);
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* ===========================================
   Premium Glass Footer (参考图样式)
   =========================================== */
.footer-section {
    padding-bottom: 3rem;
    padding-top: 2rem;
    position: relative;
    overflow: visible;
}

/* 玻璃质感面板 - 参考图样式 */
.glass-panel-premium {
    /* 淡灰蓝玻璃背景 - 更透明 */
    background: linear-gradient(180deg,
            rgba(245, 248, 255, 0.75) 0%,
            rgba(235, 242, 255, 0.65) 100%);

    backdrop-filter: blur(45px) saturate(180%);
    -webkit-backdrop-filter: blur(45px) saturate(180%);

    /* 顶部分隔线 */
    border-top: 1px solid rgba(180, 190, 210, 0.35);
    border-left: none;
    border-right: none;
    border-bottom: none;

    /* 柔和阴影 */
    box-shadow:
        0 -8px 40px rgba(100, 120, 150, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    border-radius: 30px;
    padding: 2.5rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(150, 165, 190, 0.2);
    padding-bottom: 1.5rem;
    overflow: visible;
}

.footer-heading {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #2c3e50;
}

.footer-info-item {
    font-size: 0.9rem;
    color: #5a6a7a;
    margin-bottom: 0.8rem;
    font-weight: 500;
    line-height: 1.6;
}

.social-icons-row {
    display: flex;
    gap: 1.5rem;
    overflow: visible;
}

.social-icon {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.social-icon img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.social-icon:hover img {
    transform: scale(1.15) translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.social-icon span {
    font-size: 0.8rem;
    color: #6a7a8a;
    font-weight: 500;
    margin-top: 0.2rem;
}

/* ===========================================
   社交图标二维码悬停效果
   =========================================== */
.footer-col {
    overflow: visible;
}

.social-icon-wrapper {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.qrcode-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    margin-bottom: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 99999;
    width: 260px;
    height: 260px;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    /* 防止遮挡点击，配合active/focus */
}

.social-icon-wrapper:hover .qrcode-tooltip,
.social-icon-wrapper:focus-within .qrcode-tooltip,
.social-icon-wrapper:active .qrcode-tooltip {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.qrcode-tooltip img {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    display: block;
    object-fit: contain;
}

/* 三角形箭头 - 居中模式下不需要 */
.qrcode-tooltip::after {
    display: none;
}



.footer-bottom-line {
    text-align: center;
    font-size: 0.85rem;
    color: #8a9aaa;
    margin-top: 0.5rem;
}

.footer-bottom-line a {
    color: #8a9aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-line a:hover {
    color: #5d9cec;
}

/* ===========================================
   Back to Top Button
   =========================================== */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #5d9cec 0%, #4a89dc 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(93, 156, 236, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(93, 156, 236, 0.6);
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .glass-panel-premium {
        padding: 3rem 2rem;
        width: 95%;
        border-radius: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}