/* ============================================
   Global Styles
   ============================================ */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    overflow-x: hidden;
}

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

/* Hero Slider styles moved to home.css */

/* ============================================
   Button Styles
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #27ae60;
    color: #fff;
}

.btn-primary:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #1e8449;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1em;
}

/* Services Overview, Key Features, Applications, Case Studies, CTA Section styles moved to home.css */

/* Shared service-card styles (used in both home and services pages) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-30px);
}

.service-card.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.services-grid .service-card:nth-child(1) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.3s; }

/* 边框进度线动画 - 四条边框依次展开 */
.service-card .border-top,
.service-card .border-right,
.service-card .border-bottom,
.service-card .border-left {
    position: absolute;
    background: #27ae60;
    z-index: 1;
    pointer-events: none;
}

.service-card .border-top {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 10px 10px 0 0;
}

.service-card .border-right {
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    border-radius: 0 10px 10px 0;
}

.service-card .border-bottom {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    border-radius: 0 0 10px 10px;
}

.service-card .border-left {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 100%;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
    border-radius: 10px 0 0 10px;
}

.service-card:hover .border-top {
    transform: scaleX(1);
}

.service-card:hover .border-right {
    transform: scaleY(1);
}

.service-card:hover .border-bottom {
    transform: scaleX(1);
}

.service-card:hover .border-left {
    transform: scaleY(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.1);
    border-color: transparent;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #1e8449;
}

.service-card h3 a {
    color: #1e8449;
    text-decoration: none;
}

.service-card h3 a:hover {
    color: #27ae60;
}

.service-card p {
    margin-bottom: 20px;
    color: #666;
}

.service-card .features {
    list-style: none;
    margin-bottom: 20px;
}

.service-card .features li {
    padding: 5px 0;
    color: #333;
}

.service-card .btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #27ae60;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.service-card .btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* Shared grid styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.case-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 12px;
    background: conic-gradient(from 0deg, #27ae60, #52c97a, #27ae60, #52c97a, #27ae60);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
    animation: rotate-border 3s linear infinite;
}

.case-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: #fff;
    z-index: 1;
    pointer-events: none;
}

.case-card:hover::before {
    opacity: 1;
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.case-card:hover {
    transform: translateY(-5px);
    border: 2px solid transparent;
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.4), 0 10px 30px rgba(39, 174, 96, 0.2);
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}

.case-content {
    padding: 20px;
    position: relative;
    z-index: 2;
    background: #fff;
}

.case-content .tag {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    margin-bottom: 10px;
}

.case-content h4 {
    margin-bottom: 10px;
}

.case-content h4 a {
    color: #1e8449;
    text-decoration: none;
}

.case-content h4 a:hover {
    color: #27ae60;
}

.case-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-link {
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

/* CTA Section inside main-content */
.main-content .cta-section {
    margin: 40px -40px -40px -40px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #1e8449 0%, #2d5f3d 100%);
    border-radius: 0 0 10px 10px;
}

/* CTA Section in page-content (for projects, services, etc.) */
.page-content .cta-section {
    margin-top: 60px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #1e8449 0%, #2d5f3d 100%);
    color: #fff;
    text-align: center;
    border-radius: 10px;
}

.main-content .cta-section h2 {
    color: #fff;
    margin-bottom: 15px;
}

.main-content .cta-section p {
    color: #ecf0f1;
    margin-bottom: 25px;
}

.main-content .cta-section .btn {
    margin: 0 8px;
}

.main-content .cta-section .btn-primary {
    background: #fff;
    color: #1e8449;
    border: 2px solid #fff;
}

.main-content .cta-section .btn-primary:hover {
    background: #f0f0f0;
    color: #1e8449;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.main-content .cta-section .btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.main-content .cta-section .btn-secondary:hover {
    background: #fff;
    color: #1e8449;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Inner pages styles moved to pages.css */

/* Sidebar, Form, Process Flow, FAQ styles moved to pages.css */

/* ============================================
   Responsive Styles
   ============================================ */
/* Home page specific responsive styles moved to home.css */

@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .features-grid,
    .applications-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

}