/* ==========================================================================
   逢春ERP官网样式
   基于黑湖智造设计风格，专为塑料制造业PMC系统设计
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.btn-outline {
    background: transparent;
    color: #10b981;
    border: 2px solid #10b981;
}

.btn-outline:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* ==========================================================================
   头部导航
   ========================================================================== */
.website-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.navbar-brand .brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    margin-right: 12px;
}

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

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 12px;
    color: #64748b;
    line-height: 1.2;
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 8px;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #10b981;
    background: rgba(102, 126, 234, 0.1);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #64748b;
    margin: 3px 0;
    transition: 0.3s;
}

/* ==========================================================================
   主要内容区域
   ========================================================================== */
.main-content {
    margin-top: 80px;
}

/* ==========================================================================
   英雄区域
   ========================================================================== */
.hero-section {
    padding: 80px 0 120px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1a202c;
}

.hero-description {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #10b981;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   功能特色区域
   ========================================================================== */
.features-section {
    padding: 120px 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

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

.feature-icon {
    margin-bottom: 24px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
}

.feature-description {
    color: #64748b;
    line-height: 1.6;
}

/* ==========================================================================
   客户案例区域
   ========================================================================== */
.cases-section {
    padding: 120px 0;
    background: #f8fafc;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.case-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.case-image {
    margin-bottom: 24px;
}

.case-placeholder {
    display: flex;
    justify-content: center;
}

.case-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
}

.case-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.case-metrics {
    display: flex;
    gap: 24px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
    line-height: 1;
}

.metric-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.cases-action {
    text-align: center;
}

/* ==========================================================================
   CTA区域
   ========================================================================== */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cta-section .btn-outline {
    border-color: white;
    color: white;
}

.cta-section .btn-outline:hover {
    background: white;
    color: #10b981;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.website-footer {
    background: #1a202c;
    color: #e2e8f0;
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer-brand .brand-logo {
    margin-right: 12px;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.contact-icon {
    font-size: 16px;
}

.contact-text {
    color: #94a3b8;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

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

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #10b981;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid #374151;
}

.footer-copyright {
    color: #94a3b8;
}

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

.legal-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #10b981;
}

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

/* 移动端导航菜单 */
@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid #e2e8f0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        padding: 20px 0;
    }
    
    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-nav {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .nav-item {
        margin: 8px 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
        text-align: center;
        font-size: 16px;
    }
    
    .navbar-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
    }
    
    .navbar-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* 平板设备 */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-actions {
        gap: 8px;
    }
    
    .navbar-actions .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .hero-section {
        padding: 60px 0 80px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .features-section,
    .cases-section,
    .cta-section {
        padding: 80px 0;
    }
    
    .feature-card,
    .case-card {
        padding: 24px;
    }
    
    .case-metrics {
        gap: 16px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-description {
        font-size: 16px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-legal {
        gap: 16px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-section {
        padding: 40px 0 60px;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 24px;
    }
    
    .hero-actions {
        gap: 12px;
    }
    
    .hero-actions .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 120px;
    }
    
    .hero-stats {
        gap: 12px;
        margin-top: 32px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 16px;
    }
    
    .section-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 32px;
    }
    
    .features-section,
    .cases-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 16px;
    }
    
    .feature-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .feature-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-card {
        padding: 20px;
    }
    
    .case-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .case-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    .case-metrics {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .metric-item {
        min-width: 80px;
        text-align: center;
    }
    
    .metric-number {
        font-size: 18px;
    }
    
    .metric-label {
        font-size: 12px;
    }
    
    .cta-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 16px;
    }
    
    .cta-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 24px;
    }
    
    .cta-actions {
        gap: 12px;
    }
    
    .cta-actions .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 120px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
    }
    
    .footer-section ul li a {
        font-size: 14px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px 0;
    }
    
    .footer-legal {
        gap: 12px;
        flex-direction: column;
    }
    
    .footer-legal a {
        font-size: 12px;
    }
}

/* 超小屏幕设备 (iPhone SE等) */
@media (max-width: 375px) {
    .container {
        padding: 0 8px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .navbar-actions .btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .feature-card,
    .case-card {
        padding: 16px;
    }
    
    .case-metrics {
        flex-direction: column;
        align-items: center;
    }
    
    .metric-item {
        width: 100%;
        max-width: 120px;
    }
}

/* ==========================================================================
   动画效果
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* ==========================================================================
   工具类
   ========================================================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }