/* ============================================
   嵘鳄 RONGE — 生态养殖基地页面样式
   ============================================ */

/* ---- Hero 区域 ---- */
.farm-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1a0a 50%, #E85D04 100%);
}
.farm-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(232,93,4,0.25) 0%, transparent 60%),
        radial-gradient(circle at 75% 30%, rgba(255,107,37,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.farm-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 20px 80px;
}
.farm-hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 10px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
    margin-bottom: 16px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.farm-hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: 6px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.farm-hero-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    margin: 0 auto;
    border-radius: 2px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* ---- 通用 farm-section ---- */
.farm-section {
    padding: 80px 0;
}
.farm-section-alt {
    background: #f9f9f9;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c2c2c;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #E85D04, #ff6b25);
    margin: 16px auto 0;
    border-radius: 2px;
}
.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: #888;
    margin-bottom: 50px;
    margin-top: -30px;
}

/* ---- 四大基地入口卡片（首页） ---- */
.bases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}
.base-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.base-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(232,93,4,0.3);
}
.base-card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.base-card:hover .base-card-bg {
    transform: scale(1.05);
}
.base-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    transition: background 0.5s;
}
.base-card:hover .base-card-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(232,93,4,0.6) 100%);
}
.base-card-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(232,93,4,0.9);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    z-index: 2;
}
.base-card-content {
    position: relative;
    z-index: 2;
    padding: 28px;
}
.base-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.base-card-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
    line-height: 1.6;
}
.base-card-stats {
    display: flex;
    gap: 20px;
}
.base-stat-item {
    display: flex;
    flex-direction: column;
}
.base-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}
.base-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}
.base-card-arrow {
    position: absolute;
    bottom: 28px;
    right: 28px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}
.base-card:hover .base-card-arrow {
    background: #fff;
    color: #E85D04;
    transform: translate(4px, -4px);
}

/* ---- 数据统计卡片（详情页） ---- */
.farm-stats-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
}
.farm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.farm-stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.farm-stat-card:hover {
    background: rgba(232,93,4,0.15);
    border-color: #E85D04;
    transform: translateY(-5px);
}
.farm-stat-icon {
    font-size: 2.5rem;
    color: #E85D04;
    margin-bottom: 16px;
}
.farm-stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1;
}
.farm-stat-unit {
    font-size: 1.1rem;
    color: #E85D04;
    font-weight: 600;
}
.farm-stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

/* ---- 基地详情内容区 ---- */
.farm-intro-section {
    padding: 80px 0;
    background: #fff;
}
.farm-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.farm-intro-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.9;
}
.farm-intro-text p {
    margin-bottom: 16px;
}
.farm-intro-image {
    border-radius: 16px;
    overflow: hidden;
    min-height: 350px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
    border: 2px dashed #ccc;
}

/* ---- 图片展示网格 ---- */
.farm-gallery-section {
    padding: 80px 0;
    background: #f9f9f9;
}
.farm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.farm-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    min-height: 240px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.95rem;
    border: 2px dashed #ccc;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.farm-gallery-item:hover {
    border-color: #E85D04;
    box-shadow: 0 8px 30px rgba(232,93,4,0.2);
    transform: translateY(-4px);
}
.farm-gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 500px;
}

/* ---- 供应链流程图 ---- */
.supply-flow-section {
    padding: 80px 0;
    background: #fff;
}
.supply-flow-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 60px;
}
.supply-flow-step {
    text-align: center;
    padding: 30px 16px;
    background: linear-gradient(135deg, #f9f9f9, #fff);
    border: 2px dashed #e0e0e0;
    border-radius: 16px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #aaa;
}
.supply-flow-step:hover {
    border-color: #E85D04;
    border-style: solid;
    box-shadow: 0 8px 30px rgba(232,93,4,0.15);
    transform: translateY(-5px);
}
.supply-flow-icon {
    font-size: 2.5rem;
    color: #E85D04;
    margin-bottom: 16px;
}
.supply-flow-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.supply-flow-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
}
.supply-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E85D04;
    font-size: 1.5rem;
}

/* ---- 智能化管理介绍 ---- */
.smart-mgmt-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1a0a 100%);
}
.smart-mgmt-section .section-title {
    color: #fff;
}
.smart-mgmt-section .section-title::after {
    background: linear-gradient(90deg, #E85D04, #ff6b25);
}
.smart-mgmt-section .section-subtitle {
    color: rgba(255,255,255,0.6);
}
.smart-mgmt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.smart-mgmt-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 36px 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.smart-mgmt-card:hover {
    background: rgba(232,93,4,0.15);
    border-color: #E85D04;
    transform: translateY(-5px);
}
.smart-mgmt-icon {
    font-size: 2.5rem;
    color: #E85D04;
    margin-bottom: 20px;
}
.smart-mgmt-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.smart-mgmt-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

/* ---- 动画定义 ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- 响应式适配 ---- */
@media (max-width: 1024px) {
    .farm-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .farm-intro-grid { gap: 40px; }
    .supply-flow-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .farm-hero-title { font-size: 2.4rem; letter-spacing: 6px; }
    .farm-hero-subtitle { font-size: 1rem; letter-spacing: 3px; }
    .farm-hero { min-height: 380px; }
    .bases-grid { grid-template-columns: 1fr; }
    .farm-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .farm-stat-card { padding: 28px 16px; }
    .farm-stat-number { font-size: 2.2rem; }
    .farm-intro-grid { grid-template-columns: 1fr; }
    .farm-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .farm-gallery-item.large { grid-column: span 2; grid-row: span 1; min-height: 300px; }
    .smart-mgmt-grid { grid-template-columns: 1fr; }
    .supply-flow-grid { grid-template-columns: repeat(2, 1fr); }
    .supply-flow-arrow { display: none; }
}
@media (max-width: 480px) {
    .farm-stats-grid { grid-template-columns: 1fr 1fr; }
    .farm-gallery-grid { grid-template-columns: 1fr; }
    .farm-gallery-item.large { grid-column: span 1; }
}