/* 全局样式 */
:root {
    /* 配色方案 - 基于 UI Pro Max 推荐的 SaaS Blue Light */
    --primary-color: #2563EB; /* Blue 600 */
    --primary-hover: #1D4ED8; /* Blue 700 */
    --secondary-color: #64748B; /* Slate 500 */
    --accent-color: #F97316; /* Orange 500 */
    
    --text-main: #1E293B; /* Slate 800 */
    --text-light: #475569; /* Slate 600 */
    --text-lighter: #94A3B8; /* Slate 400 */
    
    --bg-body: #F8FAFC; /* Slate 50 */
    --bg-white: #FFFFFF;
    --bg-light: #F1F5F9; /* Slate 100 */
    
    --border-color: #E2E8F0; /* Slate 200 */
    
    /* 阴影 - Soft UI */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 字体 */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo h1 span {
    color: var(--primary-color);
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-links ul li a:hover {
    color: var(--primary-color);
}

.nav-links ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links ul li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
}

/* 英雄区域样式 - 浅色极简风格 */
.hero {
    background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 100%);
    color: var(--text-main);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

/* 装饰背景圆 */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--text-main);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 540px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 16px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    margin-right: 16px;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background-color: #fff;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.pos-mockup {
    width: 320px;
    height: 420px;
    background-image: url('assets/images/POS.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    box-shadow: var(--shadow-lg); /* 浅色系使用更柔和但明显的阴影 */
    position: relative;
    transition: var(--transition);
    border: 8px solid #fff;
}

.pos-mockup:hover {
    transform: rotateY(-5deg) rotateX(5deg);
    box-shadow: var(--shadow-hover);
}

/* 通用部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* 产品展示样式 */
.products {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.single-product {
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.pos-image {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    object-fit: contain;
    transition: var(--transition);
    background-color: #fff;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.product-image:hover .pos-image {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.product-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

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

.product-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    color: var(--text-main);
    font-weight: 500;
    padding: 12px;
    background-color: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-item:hover {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.feature-item i {
    margin-right: 12px;
    font-size: 20px;
    color: var(--primary-color);
}

/* 产品优势样式 */
.advantages {
    padding: 100px 0;
    background-color: var(--bg-body);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.advantage-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background-color: #EFF6FF; /* Primary Light */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    background-color: var(--primary-color);
}

.advantage-icon i {
    font-size: 32px;
    color: var(--primary-color);
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon i {
    color: #fff;
}

.advantage-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.advantage-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* 应用场景样式 */
.scenarios {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.scenario-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.scenario-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.scenario-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.scenario-card:hover .scenario-image {
    transform: scale(1.05);
}

.scenario-1 { background-image: url('assets/images/Store.jpg'); }
.scenario-2 { background-image: url('assets/images/Catering.jpg'); }
.scenario-5 { background-image: url('assets/images/Gas_Station.jpg'); }

.scenario-info {
    padding: 24px;
    background-color: var(--bg-white);
    position: relative;
}

.scenario-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.scenario-info p {
    color: var(--text-light);
    font-size: 15px;
}

/* 技术参数样式 */
.specs {
    padding: 100px 0;
    background-color: var(--bg-body);
}

.single-specs {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 60px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: var(--text-light);
}

.spec-value {
    color: var(--text-main);
    font-weight: 600;
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-header {
    text-align: left;
    margin-bottom: 32px;
    margin-left: 0;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background-color: var(--bg-body);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-item:hover {
    background-color: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-item p {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.company-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* 联系我们样式 */
.contact {
    padding: 100px 0;
    background-color: var(--bg-body);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    background-color: var(--bg-white);
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 24px;
    margin-top: 4px;
    background-color: #EFF6FF;
    padding: 12px;
    border-radius: 12px;
}

.contact-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 16px;
}

/* 页脚样式 */
.footer {
    background-color: #0F172A; /* Slate 900 */
    color: #fff;
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section .logo h1 {
    color: #fff;
    margin-bottom: 16px;
}

.footer-section p {
    color: #94A3B8; /* Slate 400 */
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-section ul li i {
    margin-right: 12px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748B;
    font-size: 14px;
}

.footer-bottom a {
    color: #64748B;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: #fff;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* 响应式适配 */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content h2 {
        font-size: 40px;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image {
        margin-top: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-text .section-header {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 12px 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background-color: #fff;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 40px 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .nav-links ul li a {
        font-size: 18px;
        color: var(--text-main);
    }
    
    .hamburger {
        display: block;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .carousel-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-item:nth-last-child(2) {
        border-bottom: 1px solid var(--border-color);
    }
    
    .contact-info {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .pos-mockup {
        width: 260px;
        height: 360px;
    }
}
