/**
 * 首页非关键 CSS - 异步加载
 * 包含首屏以下的所有样式
 * 用于 LCP 优化，避免阻塞首屏渲染
 */

/* ========================================
   Footer Styles
   ======================================== */
.footer {
    background: #00a362;
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    opacity: 0.8;
}

.footer-store-button {
    display: inline-block;
    transition: all 0.3s ease;
    line-height: 0;
}

.footer-store-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 2rem;
    text-align: center;
    color: white;
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: left !important;
        gap: 2rem;
    }

    .footer-section h3 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem;
        color: white !important;
    }

    .footer .footer-section ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem 1rem !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .footer .footer-section ul li {
        margin-bottom: 0 !important;
        white-space: nowrap;
    }

    .footer .footer-section ul li a {
        font-size: 0.95rem;
        color: white !important;
    }

    .footer-section:first-child {
        text-align: left !important;
    }

    .footer-section:first-child p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   PC Floating Buttons
   ======================================== */
.pc-floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 100px;
    z-index: 999;
    display: none;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 769px) {
    .pc-floating-buttons {
        display: flex;
    }
}

.pc-floating-buttons.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.pc-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.pc-float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.pc-download-btn {
    width: 50px;
    height: 50px;
    background: #000000;
    border-radius: 50%;
}

.pc-download-btn svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.pc-download-btn:hover {
    background: #333333;
}

.pc-backtop-btn {
    width: 50px;
    height: 50px;
    background: #00a362;
    border-radius: 50%;
}

.pc-backtop-btn svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.pc-backtop-btn:hover {
    background: #008c52;
}

.pc-qrcode-display {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px;
    transition: all 0.3s ease;
}

.pc-qrcode-display img {
    display: block;
    border-radius: 4px;
    width: 80px;
    height: 80px;
}

.pc-qrcode-display:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .pc-floating-buttons {
        display: none !important;
    }
}

/* ========================================
   Identify Plants Section
   ======================================== */
.identify-plants-section {
    padding: 40px 0;
    background: #F5F5F5;
    text-align: center;
}

.identify-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.identify-subtitle {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.identify-upload-card {
    background: white;
    border-radius: 16px;
    padding: 1.8rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.identify-upload-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.btn-upload-image {
    background: #1fb868;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(31, 184, 104, 0.3);
}

.btn-upload-image:hover {
    background: #179a56;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 184, 104, 0.4);
}

.upload-hint {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.upload-note {
    background: #FFF9E6;
    border: 1px dashed #E5C35C;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    color: #666;
    text-align: left;
    line-height: 1.5;
    margin-top: 1.5rem;
}

.upload-note strong {
    color: #333;
    font-weight: 600;
}

.identify-upload-card.drag-over {
    border: 3px dashed #1fb868 !important;
    background: #f0fdf4 !important;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(31, 184, 104, 0.2) !important;
}

.identify-upload-card.drag-over .btn-upload-image {
    background: #179a56;
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .identify-plants-section {
        padding: 20px 0;
    }

    .identify-title {
        font-size: 1.6rem;
    }

    .identify-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        padding: 0 1rem;
    }

    .identify-upload-card {
        padding: 1.3rem 1.2rem;
        border-radius: 12px;
    }

    .btn-upload-image {
        padding: 0.75rem 1.8rem;
        font-size: 0.95rem;
    }

    .upload-note {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        margin-top: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .identify-plants-section {
        padding: 30px 0;
    }

    .identify-title {
        font-size: 2rem;
    }

    .identify-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.3rem;
    }

    .identify-upload-card {
        max-width: 550px;
        padding: 1.5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .identify-plants-section {
        padding: 50px 0;
    }

    .identify-title {
        font-size: 2.5rem;
    }

    .identify-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.8rem;
    }

    .identify-upload-card {
        max-width: 650px;
        padding: 1.8rem 2.5rem;
    }
}

/* ========================================
   Why Choose Section
   ======================================== */
.why-choose {
    padding: 60px 0;
    background: white;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    max-width: 1000px;
    margin: 0 auto;
}

.why-choose-card {
    text-align: center;
}

.why-choose-image-wrapper {
    width: 140px !important;
    height: 140px !important;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-choose-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.why-choose-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .why-choose-title {
        font-size: 0.85rem;
        line-height: 1.25;
    }
}

@media (min-width: 768px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .why-choose-image-wrapper {
        width: 220px !important;
        height: 220px !important;
    }
}

@media (min-width: 1024px) {
    .why-choose-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .why-choose-image-wrapper {
        width: 200px !important;
        height: 200px !important;
    }
}

/* ========================================
   Plant Types Section
   ======================================== */
.plant-types-section {
    padding: 60px 0;
    background: #F5F5F5;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin: -1rem auto 3rem;
    max-width: 700px;
    line-height: 1.6;
}

.plant-types-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.plant-type-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.plant-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.plant-type-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.plant-type-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.plant-type-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.plant-type-title .arrow {
    display: none;
}

.plant-type-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.plant-type-species {
    display: none;
}

@media (min-width: 768px) {
    .plant-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .plant-types-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ========================================
   Download Guidance Card
   ======================================== */
.download-guidance-card {
    background: white;
    border: none;
    border-radius: 0;
    padding: 1.875rem 1.5rem;
    text-align: center;
    margin-top: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.download-guidance-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.download-guidance-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.download-guidance-description strong {
    color: #333;
    font-weight: 600;
}

.btn-download-guidance {
    background: #27D96F;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(39, 217, 111, 0.3);
}

.btn-download-guidance:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(8, 198, 99, 0.4);
    background: #08C663;
    color: white;
    text-decoration: none;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    padding: 60px 0;
    background: white;
}

.faq-container {
    max-width: 900px;
    margin: 2.5rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 0;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 1.5rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: #f2f7f6;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #e5efed;
}

.faq-question span {
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1a1a;
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    flex-shrink: 0;
    color: #666;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-content {
    padding: 0 1.25rem 1.5rem;
    background: white;
}

.faq-answer-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
    padding-top: 0.75rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

@media (min-width: 768px) {
    .faq-question {
        padding: 1.75rem 1.75rem;
    }

    .faq-question span {
        font-size: 1.1rem;
    }

    .faq-answer-content {
        padding: 0 1.75rem 1.75rem;
    }

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

@media (min-width: 1024px) {
    .faq-section {
        padding: 80px 0;
    }
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-carousel-wrapper {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0;
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card-new {
    background: white;
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: none;
    transition: all 0.3s ease;
}

.testimonial-card-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.testimonial-rating .star {
    color: #FFC107;
    font-size: 1.2rem;
    line-height: 1;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: #27D96F;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-user-info {
    flex: 1;
}

.testimonial-username {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.testimonial-role {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

.testimonial-content {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 767px) {
    .testimonials-carousel-wrapper {
        padding: 0;
    }

    .testimonials-carousel {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonial-card-new {
        padding: 1.25rem;
    }

    .testimonial-rating .star {
        font-size: 1.1rem;
    }

    .testimonial-content {
        font-size: 0.85rem;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .testimonials-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Snow Effect Styles
   下雪动效样式 - 圣诞节主题
   ======================================== */

/**
 * 雪花Canvas容器
 * 覆盖在整个Hero区域上方（全页面飘落）
 */
.snow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    /* 硬件加速优化 */
    transform: translateZ(0);
    will-change: transform;
}

/**
 * 确保Hero区域有相对定位
 * 以便雪花容器能够正确定位
 */
.hero-new {
    position: relative !important;
}

/**
 * 移动设备优化
 * 减少雪花渲染开销
 */
@media (max-width: 767px) {
    .snow-canvas {
        /* 在移动设备上降低不透明度以减少渲染负担 */
        opacity: 0.9;
    }
}

/**
 * 低性能设备优化
 * 当用户设备性能较低时，进一步减少效果
 */
@media (prefers-reduced-motion: reduce) {
    .snow-canvas {
        display: none;
    }
}
