/* ========================================
   派米良农业官网 - 样式表
   ======================================== */

/* CSS变量 */
:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: #a8e6cf;
    --secondary-color: #27ae60;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--bg-light);
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 10px;
}

/* ========================================
   导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 55px;
}

.nav ul {
    display: flex;
    gap: 40px;
}

.nav a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   横幅
   ======================================== */
.banner {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #a8e6cf 0%, #56ab2f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.banner::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="20" cy="20" r="15" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="80" r="25" fill="rgba(255,255,255,0.05)"/><circle cx="60" cy="30" r="10" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 200px 200px;
}

.banner-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.banner h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banner p {
    font-size: 22px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ========================================
   页面标题
   ======================================== */
.page-header {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #a8e6cf 0%, #56ab2f 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* ========================================
   区块标题
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* ========================================
   服务优势
   ======================================== */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-light);
}

/* ========================================
   关于我们预览
   ======================================== */
.about-preview {
    padding: 80px 0;
}

.about-preview .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-list {
    margin: 25px 0;
}

.about-list li {
    padding: 8px 0;
    color: var(--text-dark);
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 100%;
}

.about-image img {
    width: 100%;
    height: auto;
}

/* ========================================
   数据统计
   ======================================== */
.stats {
    padding: 60px 0;
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    color: white;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
}

.stat-unit {
    font-size: 30px;
}

.stat-item p {
    margin-top: 10px;
    font-size: 16px;
    opacity: 0.9;
}

/* ========================================
   合作伙伴
   ======================================== */
.partners {
    padding: 80px 0;
}

.partner-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-item {
    padding: 30px 50px;
    background: var(--bg-light);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   CTA区块
   ======================================== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ========================================
   公司简介
   ======================================== */
.company-intro {
    padding: 80px 0;
}

.company-intro .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.intro-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.intro-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.intro-image img {
    width: 100%;
    height: 350px;
    object-fit: contain;
}

/* ========================================
   企业理念
   ======================================== */
.philosophy {
    padding: 80px 0;
    background: var(--bg-light);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.philosophy-card {
    background: white;
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.philosophy-card:hover {
    transform: translateY(-5px);
}

.philosophy-icon {
    font-size: 45px;
    margin-bottom: 20px;
}

.philosophy-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.philosophy-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ========================================
   发展历程
   ======================================== */
.timeline {
    padding: 80px 0;
}

.timeline-content {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    padding-bottom: 40px;
    border-left: 2px solid var(--primary-light);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-date {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.timeline-text p {
    color: var(--text-light);
}

/* ========================================
   核心优势
   ======================================== */
.advantages {
    padding: 80px 0;
    background: var(--bg-light);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-item {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-number {
    display: inline-block;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.advantage-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* ========================================
   服务详情
   ======================================== */
.service-detail {
    padding: 80px 0;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.service-item.reverse {
    direction: rtl;
}

.service-item.reverse > * {
    direction: ltr;
}

.service-image img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: var(--shadow);
    background: #f8f8f8;
}

.service-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 15px;
}

.service-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.service-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-dark);
}

/* ========================================
   服务流程
   ======================================== */
.process {
    padding: 80px 0;
    background: var(--bg-light);
}

.process-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.process-item {
    text-align: center;
    padding: 30px 40px;
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.process-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.process-item p {
    font-size: 14px;
    color: var(--text-light);
}

.process-arrow {
    font-size: 24px;
    color: var(--primary-light);
}

/* ========================================
   联系信息
   ======================================== */
.contact-info {
    padding: 80px 0 40px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-card span {
    font-size: 14px;
    color: var(--text-light);
}

/* ========================================
   联系表单
   ======================================== */
.contact-form-section {
    padding: 40px 0 80px;
}

.form-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-info h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.form-info > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.social-qr {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.qr-item {
    text-align: center;
    position: relative;
    flex-shrink: 0;
    width: 140px;
}

.qr-item img {
    width: 140px;
    height: 140px;
    max-width: none;
    border-radius: 10px;
    object-fit: contain;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-item img:hover {
    transform: scale(2.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 100;
    position: relative;
}

.qr-placeholder {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.qr-item span {
    font-size: 12px;
    color: var(--text-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

/* ========================================
   地图/位置
   ======================================== */
.map-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.map-wrapper {
    display: flex;
    justify-content: center;
}

.location-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 600px;
    width: 100%;
}

.location-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.location-card h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.location-card .address {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.location-card .coords {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
}

.nav-tip {
    font-size: 14px;
    color: var(--text-light);
}

/* ========================================
   弹窗
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    animation: modalIn 0.3s ease;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.modal-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col ul li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.footer-social-qr {
    display: flex;
    gap: 10px;
}

.footer-qr-item {
    text-align: center;
    position: relative;
}

.footer-qr-item img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: contain;
    margin-bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-qr-item img:hover {
    transform: scale(3.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 100;
    position: relative;
}

.footer-qr-item span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.social-item {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 13px;
}

.social-item:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .feature-grid,
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .banner h1 {
        font-size: 36px;
    }
    
    .banner p {
        font-size: 18px;
    }
    
    .about-preview .container,
    .company-intro .container,
    .service-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-item.reverse {
        direction: ltr;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .form-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .process-grid {
        flex-direction: column;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 28px;
    }
    
    .section-header h2,
    .about-content h2,
    .about-preview h2 {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .feature-grid,
    .philosophy-grid,
    .advantage-grid {
        grid-template-columns: 1fr;
    }
}
