/* ========================================
   landing.css — 库存管理系统宣传页样式
   ======================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #10b981;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.navbar .logo svg {
    width: 32px;
    height: 32px;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar .nav-links a {
    font-size: 14px;
    color: var(--text-light);
    transition: color 0.2s;
}

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

.navbar .login-btn {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 22px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s, transform 0.15s;
}

.navbar .login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: #fff !important;
}

/* ===== Hero 区 ===== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 80px;
    background: linear-gradient(135deg, #fef3c7 0%, #dbeafe 50%, #ede9fe 100%);
    text-align: center;
}

/* 仓库货架背景（左侧） */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.warehouse-shelf {
    position: absolute;
    width: 100px;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.warehouse-shelf::before {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    top: 50%;
    height: 4px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 2px;
    transform: translateY(-50%);
}

.shelf-1 {
    top: 12%;
    left: 6%;
    animation: float-shelf 6s ease-in-out infinite;
}

.shelf-2 {
    top: 55%;
    left: 4%;
    width: 80px;
    animation: float-shelf 7s ease-in-out 1s infinite;
}

.shelf-3 {
    top: 30%;
    right: 6%;
    width: 90px;
    animation: float-shelf 5.5s ease-in-out 0.5s infinite;
}

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

/* 货架上的小盒子 */
.box {
    height: 22px;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: pulse-box 2.5s ease-in-out infinite;
}

.b-red    { background: linear-gradient(135deg, #f87171, #ef4444); }
.b-blue   { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.b-green  { background: linear-gradient(135deg, #4ade80, #22c55e); }
.b-yellow { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.b-purple { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.b-pink   { background: linear-gradient(135deg, #f472b6, #ec4899); }
.b-orange { background: linear-gradient(135deg, #fb923c, #f97316); }
.b-cyan   { background: linear-gradient(135deg, #22d3ee, #06b6d4); }

@keyframes pulse-box {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* 入库飘入的箱子（从屏幕外飞向中心） */
.floating-box {
    position: absolute;
    font-size: 38px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
    animation: fly-in 4s ease-in-out infinite;
    opacity: 0.7;
}

.fb-1 {
    top: 18%;
    left: 25%;
    animation-delay: 0s;
}

.fb-2 {
    top: 65%;
    left: 15%;
    animation-delay: 1.2s;
}

.fb-3 {
    top: 30%;
    left: 35%;
    animation-delay: 2.5s;
}

@keyframes fly-in {
    0% {
        transform: translateX(-200px) translateY(40px) rotate(-30deg) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    60% {
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }
}

/* 出库飘出的箱子（从中心飞向屏幕外） */
.floating-box-out {
    position: absolute;
    font-size: 36px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
    animation: fly-out 4s ease-in-out infinite;
    opacity: 0.7;
}

.fo-1 {
    top: 50%;
    right: 20%;
    animation-delay: 0.6s;
}

.fo-2 {
    top: 25%;
    right: 30%;
    animation-delay: 2s;
}

@keyframes fly-out {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    20% {
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
        opacity: 0.9;
    }
    60% {
        transform: translateX(200px) translateY(40px) rotate(30deg) scale(0.7);
        opacity: 1;
    }
    100% {
        transform: translateX(200px) translateY(40px) rotate(30deg) scale(0.5);
        opacity: 0;
    }
}

.hero-content {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}

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

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero .cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .cta-btn {
    padding: 14px 36px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.hero .cta-btn.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

.hero .cta-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

.hero .cta-btn.outline {
    background: transparent;
    color: var(--text);
    border: 2px solid #e2e8f0;
}

.hero .cta-btn.outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Section 通用 ===== */
.section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== 功能卡片 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    justify-items: center;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.25s;
    text-align: center;
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== 业务流程（时间轴） ===== */
.flow-section {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.flow-timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 顶部连线的轨道 */
.flow-timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: linear-gradient(90deg,
        #2563eb 0%,
        #3b82f6 25%,
        #60a5fa 50%,
        #60a5fa 75%,
        #93c5fd 100%);
    border-radius: 2px;
    z-index: 0;
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* 编号气泡（悬在连线之上） */
.flow-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.3s;
}

.flow-num span {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    line-height: 1;
}

.flow-item:hover .flow-num {
    transform: scale(1.1);
    background: #2563eb;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.flow-item:hover .flow-num span {
    color: #fff;
}

/* 卡片 */
.flow-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 12px;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.flow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    border-color: #93c5fd;
}

.flow-icon {
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1;
}

.flow-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.flow-card p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

/* 响应式 */
@media (max-width: 900px) {
    .flow-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 16px;
    }
    .flow-timeline::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .flow-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    .flow-num {
        width: 48px;
        height: 48px;
    }
    .flow-num span {
        font-size: 16px;
    }
}

/* ===== 优势 ===== */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

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

.advantage-item .big-icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.advantage-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* ===== 功能清单 ===== */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.feature-tag {
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.feature-tag:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== 底部 ===== */
.footer {
    background: var(--text);
    color: #94a3b8;
    text-align: center;
    padding: 40px 24px;
    font-size: 14px;
}

.footer .footer-brand {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .navbar .nav-links a:not(.login-btn) {
        display: none;
    }
    .hero { padding-top: 80px; }
}
