/* ========================================
   英轩ERP系统展示网站 - 样式文件
   ======================================== */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* ========================================
   导航栏样式
   ======================================== */
.navbar {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8c99 100%);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 1);
}

.logo img {
    height: 36px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a:hover {
    color: #ffd700;
    background: rgba(255,255,255,0.1);
}

/* 移动端导航 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

/* ========================================
   Hero区域样式
   ======================================== */
.hero {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8c99 100%);
    color: white;
    padding: 160px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') repeat;
    background-size: 100px 100px;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInDown 0.8s ease-out;
}

.hero .subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    color: #e0e0e0;
    animation: fadeInDown 0.8s ease-out 0.2s backwards;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin: 0 auto 40px;
    animation: fadeInDown 0.8s ease-out 0.4s backwards;
}

.cta-button {
    display: inline-block;
    background: #87CEEB;
    color: #1a5f7a;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255,215,0,0.5);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   通用容器样式
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

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

.section-title h2 {
    font-size: 36px;
    color: #1a5f7a;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a5f7a, #2c8c99);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 18px;
    margin-top: 20px;
}

/* ========================================
   功能模块样式
   ======================================== */
.modules {
    background: white;
}

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

.module-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #1a5f7a;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(26,95,122,0.05) 50%);
    border-radius: 0 0 0 100%;
    transition: all 0.3s;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.module-card:hover::before {
    width: 150px;
    height: 150px;
}

.module-card h3 {
    color: #1a5f7a;
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.module-card h3 .icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a5f7a, #2c8c99);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.module-card ul {
    padding-left: 5px;
}

.module-card li {
    padding: 10px 0;
    color: #555;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.module-card li:last-child {
    border-bottom: none;
}

.module-card li:hover {
    color: #1a5f7a;
    padding-left: 10px;
}

.module-card li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    font-size: 14px;
}

/* ========================================
   系统界面展示样式
   ======================================== */
.interface-showcase {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.interface-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.interface-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.interface-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.interface-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8c99 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.interface-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s, opacity 0.3s;
    background: #f8f9fa;
}

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

.interface-card .click-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.interface-card:hover .click-hint {
    opacity: 1;
}

.interface-placeholder {
    color: white;
    text-align: center;
    padding: 20px;
}

.interface-placeholder .placeholder-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.interface-placeholder p {
    font-size: 14px;
    opacity: 0.7;
}

.interface-info {
    padding: 20px;
    background: white;
    text-align: center;
}

.interface-info h4 {
    color: #1a5f7a;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.interface-info p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* ========================================
   大图弹窗样式
   ======================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.3s;
    background: none;
    border: none;
    padding: 5px;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-title {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 16px;
    padding: 10px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 20px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    transition: background 0.3s;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-counter {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

@media (max-width: 991px) {
    .lightbox-nav {
        padding: 15px 10px;
        font-size: 30px;
    }
    
    .lightbox-prev {
        left: -60px;
    }
    
    .lightbox-next {
        right: -60px;
    }
}

@media (max-width: 767px) {
    .interface-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .interface-image {
        height: 180px;
    }
    
    .lightbox-nav {
        display: none;
    }
}

/* ========================================
   系统特色样式
   ======================================== */
.features {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: #1a5f7a;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ffd700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-card ul {
    padding-left: 5px;
}

.feature-card li {
    padding: 14px 0;
    font-size: 16px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.feature-card li:last-child {
    border-bottom: none;
}

.feature-card li:hover {
    padding-left: 10px;
    color: #1a5f7a;
}

.feature-card li::before {
    content: '◆';
    color: #ffd700;
    font-size: 10px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ========================================
   成功实施客户样式
   ======================================== */
.clients {
    background: white;
}

.clients-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.clients-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.clients-intro p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
}

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

.client-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a5f7a, #2c8c99);
    transform: scaleX(0);
    transition: transform 0.3s;
}

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

.client-card:hover {
    transform: translateY(-5px);
    border-color: #1a5f7a;
    box-shadow: 0 12px 30px rgba(26,95,122,0.12);
}

.client-name {
    font-size: 16px;
    font-weight: bold;
    color: #1a5f7a;
    margin-bottom: 12px;
    word-wrap: break-word;
    line-height: 1.4;
}

.client-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #1a5f7a;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}
    font-weight: bold;
}

.clients-more {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.clients-more p {
    color: #666;
    font-size: 16px;
    text-align: center;
}

.clients-more strong {
    color: #1a5f7a;
}

/* ========================================
   统计数据样式
   ======================================== */
.stats {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8c99 100%);
    color: white;
    padding: 80px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

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

/* ========================================
   联系我们样式
   ======================================== */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-info h3 {
    color: #1a5f7a;
    font-size: 24px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    padding-left: 10px;
    background: rgba(26,95,122,0.02);
    margin: 0 -10px;
    padding-left: 30px;
    border-radius: 8px;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8c99 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-text h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.contact-text p {
    color: #666;
    font-size: 14px;
}

.company-intro {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c8c99 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    height: 100%;
}

.company-intro h3 {
    font-size: 24px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.company-intro h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ffd700;
    border-radius: 2px;
}

.company-intro p {
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.95;
    font-size: 15px;
}

.company-intro p:last-child {
    margin-bottom: 0;
}

.company-intro strong {
    color: #ffd700;
}

/* ========================================
   页脚样式
   ======================================== */
.footer {
    background: #1a3a4a;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.footer p {
    opacity: 0.8;
    margin-bottom: 5px;
}

.footer p:last-child {
    margin-bottom: 0;
}

/* ========================================
   动画样式
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   响应式设计
   ======================================== */

/* 大屏幕 (1200px以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* 中等屏幕 (992px - 1199px) */
@media (max-width: 1199px) {
    .hero h1 {
        font-size: 42px;
    }

    .hero .subtitle {
        font-size: 22px;
    }

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

/* 平板设备 (768px - 991px) */
@media (max-width: 991px) {
    .navbar {
        padding: 12px 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1a5f7a 0%, #2c8c99 100%);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 140px 20px 80px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

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

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

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

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .company-intro {
        order: -1;
    }
}

/* 手机设备 (576px - 767px) */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 60px 15px;
    }

    .hero {
        padding: 120px 15px 60px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 14px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .section-title p {
        font-size: 14px;
    }

    .modules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .module-card {
        padding: 25px;
    }

    .module-card h3 {
        font-size: 18px;
    }

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

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

    .feature-card {
        padding: 30px;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .client-card {
        padding: 18px 15px;
        min-height: 100px;
    }

    .client-name {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item {
        padding: 15px;
    }

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

    .stat-label {
        font-size: 14px;
    }

    .contact-info {
        padding: 30px;
    }

    .contact-info h3 {
        font-size: 20px;
    }

    .contact-item {
        padding: 15px 0;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .company-intro {
        padding: 30px;
    }

    .company-intro h3 {
        font-size: 20px;
    }
}

/* 小屏手机 (575px以下) */
@media (max-width: 575px) {
    .logo {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero .subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.6;
    }

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

    .client-card {
        margin-bottom: 10px;
    }

    .footer {
        padding: 30px 15px;
    }

    .footer p {
        font-size: 14px;
    }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
    .navbar,
    .cta-button,
    .footer {
        display: none;
    }

    .hero {
        padding-top: 20px;
        background: white;
        color: black;
    }

    .container {
        padding: 20px;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}
