/* ========================================
   北京鑫丽诺科技有限公司 - 官网样式表
   ======================================== */

/* CSS 变量 */
:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #00d4aa;
    --accent-color: #ff6b35;
    --text-dark: #1a1a2e;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

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

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

.btn-block {
    width: 100%;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu li a {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

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

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

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

.nav-menu .btn-primary {
    padding: 8px 20px;
    border-radius: 20px;
}

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

/* Hero 区域 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0f4c75 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%230066cc" fill-opacity="0.05" x="0" y="0" width="50" height="50"/><rect fill="%2300d4aa" fill-opacity="0.03" x="50" y="50" width="50" height="50"/></svg>');
    background-size: 50px 50px;
}

.hero-bg-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.grid-line {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 102, 204, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 204, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.floating-icon {
    position: absolute;
    font-size: 40px;
    color: rgba(0, 212, 170, 0.3);
    animation: float 6s ease-in-out infinite;
}

.icon-1 { top: 20%; left: 10%; animation-delay: 0s; }
.icon-2 { top: 60%; right: 15%; animation-delay: 2s; }
.icon-3 { bottom: 20%; left: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 区块通用样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

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

/* 核心业务 */
.core-business {
    padding: 100px 0;
    background: var(--bg-light);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.business-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.business-card:hover::before {
    transform: scaleX(1);
}

.business-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.business-icon i {
    font-size: 32px;
    color: white;
}

.business-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.business-card > p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.business-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-dark);
}

.business-features li i {
    color: var(--secondary-color);
}

/* 产品中心 */
.products {
    padding: 100px 0;
}

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

.product-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
}

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

.product-image {
    width: 200px;
    min-height: 220px;
    background: linear-gradient(135deg, #0a1628, #1a365d);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.product-image i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.9);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    background: var(--accent-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.product-badge.new {
    background: var(--secondary-color);
}

.product-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

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

.product-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 12px;
    border-radius: 4px;
}

/* 成功案例 */
.cases {
    padding: 100px 0;
    background: var(--bg-light);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.case-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.case-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.case-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.9), rgba(26, 54, 93, 0.8));
    z-index: 1;
    transition: var(--transition);
}

.case-card:hover::before {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.9), rgba(0, 212, 170, 0.8));
}

.case-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.case-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
    width: fit-content;
}

.case-overlay h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.case-overlay p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

.case-stats {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

.cases-more {
    text-align: center;
    margin-top: 40px;
}

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

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

.advantage-item {
    text-align: center;
    padding: 30px 20px;
}

.advantage-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 10px;
}

.advantage-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.advantage-item p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
}

/* 数据统计 */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

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

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

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-item .stat-number {
    font-size: 48px;
    font-weight: 700;
    display: block;
}

.stat-item .stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* 关于我们 */
.about {
    padding: 100px 0;
}

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

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.about-lead {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text > p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    gap: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

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

.feature span {
    font-size: 14px;
    font-weight: 500;
}

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

.image-placeholder {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #0a1628, #1a365d);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.image-placeholder i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.image-placeholder p {
    font-size: 18px;
    opacity: 0.7;
}

/* 试用申请 */
.contact {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.contact-info > p {
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.contact-item .label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
}

.contact-item .value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.required {
    color: #ff4d4f;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon.success {
    background: linear-gradient(135deg, #52c41a, #73d13d);
}

.modal-icon i {
    font-size: 40px;
    color: white;
}

.modal-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.modal-content p {
    color: var(--text-gray);
    margin-bottom: 24px;
}

/* 页脚 */
.footer {
    background: #0a1628;
    color: white;
    padding: 60px 0 0;
}

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

.footer-logo .logo-text {
    font-size: 24px;
    color: white;
    margin-bottom: 16px;
    display: block;
}

.footer-col > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.7;
}

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

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

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

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-col ul li i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .business-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-rows: auto;
    }
    
    .case-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .business-grid,
    .products-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .case-card.large {
        grid-column: span 1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item .stat-number {
        font-size: 36px;
    }
    
    .about-features {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .product-card {
        flex-direction: column;
    }
    
    .product-image {
        width: 100%;
        min-height: 150px;
    }
}

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

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