/**
 * 鲁菏智慧AI农业 - 主样式文件
 * 商务科技大气风格
 */

/* ========== CSS变量定义 ========== */
:root {
    --gold: #BA8C3A;
    --blue: #2A5CAA;
    --green: #4A9E5A;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --black: #000000;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold);
}

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

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

/* ========== 导航栏 ========== */
.navbar {
    background: linear-gradient(135deg, var(--blue), #1a3d7a);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white) !important;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar-menu a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

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

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

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

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

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

.btn-blue:hover {
    background-color: #1e4a8a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ========== Hero首屏 ========== */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(42, 92, 170, 0.8), rgba(42, 92, 170, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

/* ========== 区块通用样式 ========== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* ========== 卡片样式 ========== */
.card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

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

.card-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 1rem;
}

.card-text {
    color: #666;
    line-height: 1.8;
}

/* ========== 价值主张卡片 ========== */
.value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* ========== 商业模式流程图 ========== */
.business-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
}

.flow-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 8px;
    position: relative;
}

.flow-item::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--gold);
}

.flow-item:last-child::after {
    display: none;
}

.flow-icon {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.flow-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark-gray);
}

/* ========== 合作伙伴轮播 ========== */
.partners-section {
    background-color: var(--light-gray);
}

.partner-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.partner-logo {
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========== 身份入口卡片 ========== */
.identity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.identity-card {
    background: linear-gradient(135deg, var(--blue), #1a3d7a);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.identity-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.identity-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ========== 表单样式 ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(42, 92, 170, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ========== 页脚 ========== */
.footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* ========== 右侧悬浮按钮 ========== */
.float-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.float-btn:hover {
    background: var(--blue);
    transform: scale(1.1);
}

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

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--blue);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .navbar-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .business-flow {
        flex-direction: column;
    }

    .flow-item::after {
        content: '↓';
        right: 50%;
        top: 100%;
        transform: translateX(50%);
    }

    .float-buttons {
        right: 10px;
        bottom: 80px;
    }

    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

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

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.bg-light { background-color: var(--light-gray); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

/* ========== 产品套餐卡片 ========== */
.package-card {
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.package-full:hover {
    border-color: var(--blue);
}

.package-half:hover {
    border-color: var(--green);
}

.package-basic:hover {
    border-color: var(--gold);
}

.package-custom:hover {
    border-color: #2c3e50;
}

.package-header {
    border-radius: 5px 5px 0 0;
    padding: 1.5rem !important;
}
