/* 全局样式 */
:root {
    --primary-green: #28a745;
    --light-green: #d4edda;
    --dark-green: #155724;
    --success: #28a745;
    --light-success: #d4edda;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
}

/* 主页英雄区域 */
.hero-section {
    background: linear-gradient(135deg, var(--success) 0%, #20c997 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* 为固定导航栏留出空间 */
}

.hero-section::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="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>') repeat;
    background-size: 100px 100px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--success) 0%, #20c997 100%);
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* 为固定导航栏留出空间 */
}

.page-header::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="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>') repeat;
    background-size: 100px 100px;
}

/* 功能图标样式 */
.feature-icon, .team-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-icon:hover, .team-icon:hover {
    transform: scale(1.1);
    background-color: rgba(40, 167, 69, 0.2) !important;
}

/* 卡片悬停效果 */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.product-card img {
    transition: all 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* 按钮样式 */
.btn {
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    padding: 12px 30px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #20c997 100%);
}

.btn-outline-success {
    border: 2px solid var(--success);
    color: var(--success);
}

.btn-outline-success:hover {
    background: var(--success);
    border-color: var(--success);
}

/* 按钮缩放动态效果 */
.hover-scale {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    z-index: 1;
}

.hover-scale:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 10;
}

.hover-scale:active {
    transform: scale(0.98) translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--success);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--success);
    border: 3px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.timeline-date {
    width: 120px;
    text-align: right;
    font-weight: bold;
    color: var(--success);
    margin-right: 30px;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
    margin-right: 0;
    margin-left: 30px;
}

/* 表单样式 */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* 手风琴样式 */
.accordion-button {
    background: var(--light-success);
    color: var(--dark-green);
    font-weight: 600;
    border: none;
    border-radius: 10px !important;
}

.accordion-button:not(.collapsed) {
    background: var(--success);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.accordion-item .accordion-collapse {
    border: none;
}

/* 页面内容区域为固定导航栏留出空间 */
.py-5, section.py-5 {
    padding-top: 6rem !important;
}

/* 产品详情页面包屑导航留出空间 */
.breadcrumb {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 100px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .page-header {
        padding-top: 80px;
    }
    
    .py-5, section.py-5 {
        padding-top: 5rem !important;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
    }
    
    .timeline-item::before {
        left: 30px;
    }
    
    .timeline-date {
        width: auto;
        text-align: left;
        margin: 0 0 10px 60px;
    }
    
    .timeline-content {
        margin-left: 60px;
    }
    
    .timeline-item:nth-child(even) .timeline-date {
        text-align: left;
        margin: 0 0 10px 60px;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
    }
}

@media (max-width: 576px) {
    .feature-icon, .team-icon {
        width: 80px;
        height: 80px;
    }
    
    .feature-icon i, .team-icon i {
        font-size: 1.5rem !important;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 页脚样式 */
footer {
    margin-top: auto;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    transform: translateY(-2px);
    color: var(--success) !important;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* 小程序二维码样式 */
.qr-code-container {
    padding: 10px;
    background: white;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.qr-code-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.mini-program-link img {
    transition: all 0.3s ease;
    border-radius: 5px;
}

.mini-program-link img:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(255,255,255,0.2);
}

.mini-program-link {
    transition: all 0.3s ease;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--success);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #218838;
}