/* 基础样式 */
:root {
    --primary-color: #197FBA; /* 从PPT中提取的主色调 */
    --secondary-color: #1475A7;
    --accent-color: #2CA8E0;
    --dark-color: #1A2B3C;
    --light-color: #F8FAFC;
    --gray-color: #6B7280;
    --light-gray: #E5E7EB;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    
    --font-primary: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --font-secondary: 'Roboto', Arial, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-sub {
    font-size: 12px;
    color: var(--gray-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-md);
}

.btn-contact:hover {
    background-color: var(--secondary-color) !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
}

/* 英雄区域 */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-color);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

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

.device-mockup {
    position: relative;
    width: 300px;
    height: 500px;
}

.device-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A2B3C, #2C3E50);
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
    z-index: 1;
}

.device-screen {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, #197FBA, #2CA8E0);
    border-radius: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.screen-content {
    text-align: center;
    color: white;
    padding: 30px;
}

.app-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.app-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.app-desc {
    font-size: 16px;
    opacity: 0.8;
}

/* 核心优势 */
.advantages {
    padding: 100px 0;
    background-color: white;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-color);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

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

.advantage-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

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

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 28px;
}

.advantage-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.advantage-card p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* 解决方案预览 */
.solutions-preview {
    padding: 100px 0;
    background-color: var(--light-color);
}

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

.solution-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.solution-image {
    height: 200px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8fafc;
}

.solution-image.retail {
    background: url('../images/products/retail-terminal.jpg') center/contain no-repeat;
}

.solution-image.finance {
    background: url('../images/products/finance-terminal.jpg') center/contain no-repeat;
}

.solution-image.medical {
    background: url('../images/products/medical-terminal.jpg') center/contain no-repeat;
}

.solution-image.government {
    background: url('../images/products/government-terminal.jpg') center/contain no-repeat;
}

.solution-image.custom {
    background: url('../images/products/custom-solution.jpg') center/contain no-repeat;
}

/* 解决方案大图样式 */
.solution-image-large {
    height: 450px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8fafc;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.solution-image-large.retail {
    background: url('../images/products/retail-terminal-large.jpg') center/contain no-repeat;
    background-color: #f8fafc;
}

.solution-image-large.finance {
    background: url('../images/products/finance-terminal-large.jpg') center/contain no-repeat;
    background-color: #f8fafc;
}

.solution-image-large.medical {
    background: url('../images/products/medical-terminal-large.jpg') center/contain no-repeat;
    background-color: #f8fafc;
}

.solution-image-large.government {
    background: url('../images/products/government-terminal-large.jpg') center/contain no-repeat;
    background-color: #f8fafc;
}

.solution-image-large.custom {
    background: url('../images/products/custom-solution-large.jpg') center/contain no-repeat;
    background-color: #f8fafc;
}

.solution-header-content {
    text-align: center;
}

.solution-content {
    padding: 30px;
}

.solution-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.solution-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.solution-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.solution-link:hover {
    gap: 12px;
    color: var(--secondary-color);
}

/* 新闻资讯 */
.news-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

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

.news-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card.loading {
    opacity: 0.5;
}

.news-skeleton {
    height: 150px;
    background: linear-gradient(90deg, var(--light-gray) 25%, var(--light-color) 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.news-date {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    display: inline-block;
}

.news-title {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.news-summary {
    color: var(--gray-color);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

/* 合作伙伴 */
.partners {
    padding: 80px 0;
    background-color: white;
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.partner-logo {
    height: 80px;
    background: var(--light-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-color);
    font-size: 18px;
    transition: var(--transition);
}

.partner-logo:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    margin-bottom: 20px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-top: 20px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    color: white;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

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

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

/* 二维码样式 */
.footer-qrcodes {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.qrcode-item {
    text-align: center;
    flex: 1;
}

.qrcode-img {
    width: 100%;
    max-width: 120px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    display: block;
    margin: 0 auto 6px;
}

.qrcode-img:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.qrcode-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin: 0;
}

.qrcode-label i {
    margin-right: 3px;
    color: #07C160;
}

.footer-newsletter {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

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

.footer-bottom p {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .advantages-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .advantage-card,
    .solution-card {
        padding: 30px 20px;
    }
}
/* 中英文切换按钮 */
.lang-switch a {
    color: #1a56db !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    border: 2px solid #1a56db !important;
    border-radius: 6px !important;
    padding: 6px 14px !important;
    transition: all 0.2s;
}
.lang-switch a:hover {
    background: #1a56db !important;
    color: #fff !important;
}
