/* Global Styles */
:root {
    --primary-color: #306B9C;
    --secondary-color: #1cc88a;
    --dark-color: #5a5c69;
    --light-color: #f8f9fc;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 76px; /* For fixed navbar */
    position: relative;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.85;
}

.btn {
    border-radius: 5px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #265982;
    border-color: #265982;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Section Styles */
section {
    padding: 80px 0;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* Navbar */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    width: 100%;
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 10px 15px;
    color: #333;
    font-size: 0.9rem;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-color: #f8f9fa;
    background-image: linear-gradient(135deg, #f8f9fa 0%, #e9f0f8 100%);
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.hero-section img {
    border-radius: 10px;
}

.hero-section .btn {
    position: relative;
    z-index: 2;
}

/* 装饰性元素 */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.circle-1, .circle-2, .circle-3 {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -100px;
    right: 10%;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: var(--info-color);
    bottom: 10%;
    left: 5%;
    animation: float 10s ease-in-out infinite;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    top: 40%;
    right: 15%;
    animation: float 7s ease-in-out infinite;
}

.wave-1, .wave-2 {
    position: absolute;
    width: 100%;
    height: 100px;
    background: rgba(48, 107, 156, 0.05);
    border-radius: 50%;
    transform: scale(2);
}

.wave-1 {
    bottom: -50px;
    animation: wave 15s linear infinite;
}

.wave-2 {
    bottom: -70px;
    animation: wave 12s linear infinite reverse;
    opacity: 0.3;
}

.decorative-elements {
    height: 200px;
    margin: 0 auto;
    position: relative;
    max-width: 500px;
}

.floating-shape {
    position: absolute;
    border-radius: 10px;
    opacity: 0.7;
}

.shape-1 {
    width: 60px;
    height: 60px;
    background: rgba(48, 107, 156, 0.2);
    top: 20px;
    left: 20%;
    transform: rotate(15deg);
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 40px;
    height: 40px;
    background: rgba(28, 200, 138, 0.2);
    top: 80px;
    right: 25%;
    transform: rotate(45deg);
    animation: float 8s ease-in-out infinite 1s;
}

.shape-3 {
    width: 50px;
    height: 50px;
    background: rgba(48, 107, 156, 0.2);
    bottom: 30px;
    left: 35%;
    transform: rotate(30deg);
    animation: float 7s ease-in-out infinite 0.5s;
}

.tech-icons {
    position: relative;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.tech-icons i {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.8;
    animation: pulse 2s ease-in-out infinite;
}

.tech-icons i:nth-child(2) {
    animation-delay: 0.5s;
}

.tech-icons i:nth-child(3) {
    animation-delay: 1s;
}

.tech-icons i:nth-child(4) {
    animation-delay: 1.5s;
}

/* 动画效果 */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes wave {
    0% {
        transform: translateX(-50%) scale(2);
    }
    50% {
        transform: translateX(0%) scale(2);
    }
    100% {
        transform: translateX(-50%) scale(2);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* About Section */
#about img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#about p {
    margin-bottom: 1.5rem;
}

/* 确保"我们的团队由教育专家"段落有足够的上边距 */
#about .col-md-6.d-flex.flex-column p:nth-of-type(2) {
    margin-top: 1.5rem;
}

/* Services Section */
.card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.icon-box {
    height: 80px;
    width: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(78, 115, 223, 0.1);
}

/* Technology Section */
.tech-icon {
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(48, 107, 156, 0.1);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.tech-feature {
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tech-feature:hover {
    background-color: #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Team Section */
.team-member {
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.team-member:hover {
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.member-img img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Contact Section */
.contact-info .contact-item {
    margin-bottom: 30px;
}

.contact-info .icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(78, 115, 223, 0.1);
}

.contact-form {
    border-radius: 10px;
}

.form-control {
    padding: 12px;
    border-radius: 5px;
}

.contact-info .info-box {
    /* ... existing code ... */
}

.contact-info .social-links {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info .wechat-qrcode {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
}

.contact-info .wechat-qrcode img {
    border: 1px solid #eee;
    padding: 5px;
}

/* App Screenshots Section */
.screenshot-card {
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.screenshot-card:hover {
    transform: translateY(-5px);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-color: #f8f9fa;
    background-image: linear-gradient(135deg, #f8f9fa 0%, #e9f0f8 100%);
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.hero-section .btn {
    position: relative;
    z-index: 2;
}

.app-preview-img {
    max-width: 100%;
    height: auto;
}

/* Footer */
footer {
    background-color: #212529;
    width: 100%;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* AI Response Styling */
.ai-response {
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(54, 185, 204, 0.1);
    border-left: 4px solid var(--info-color);
    margin-top: 15px;
    margin-bottom: 15px;
}

.ai-feature {
    background: white;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.ai-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ai-feature h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #333;
}

.ai-feature p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ai-feature .icon-box {
    width: 80px;
    height: 80px;
    background: rgba(48, 107, 156, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ai-feature .icon-box i {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-section img {
        margin-top: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .decorative-elements {
        height: 150px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 移动端特别调整"我们的团队由教育专家"段落的间距 */
    #about .col-md-6.d-flex.flex-column p:nth-of-type(2) {
        margin-top: 24px;
    }
    
    /* 确保图片和文字之间有足够间距 */
    #about .col-md-6:first-child {
        margin-bottom: 30px;
    }
    
    .team-intro {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .tech-icons {
        justify-content: center !important;
    }
    
    .tech-icons i {
        font-size: 2rem !important;
    }
    
    /* 移动端应用展示横向滑动样式 */
    .screenshots-mobile-container {
        overflow: hidden;
        margin: 0 -15px;
    }
    
    .screenshots-scroll-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 0 15px;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .screenshots-scroll-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .screenshot-card-mobile {
        flex: 0 0 280px;
        max-width: 280px;
        transition: all 0.3s ease;
    }
    
    .screenshot-card-mobile img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .screenshot-card-mobile:hover {
        transform: translateY(-5px);
    }
    
    /* 滚动指示器样式 */
    .screenshots-indicators {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
        margin-bottom: 30px;
        padding: 10px 15px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(48, 107, 156, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .indicator.active {
        background-color: var(--primary-color);
        transform: scale(1.2);
    }
    
    .indicator:hover {
        background-color: var(--primary-color);
        opacity: 0.8;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* 小屏幕设备上增加更多间距 */
    #about .col-md-6.d-flex.flex-column p:nth-of-type(2) {
        margin-top: 30px;
        padding-top: 10px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
}

/* Animation Enhancements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a5ecc;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background-color: #265982; /* Darker primary on hover */
    color: white;
    opacity: 1;
}

.back-to-top.show {
    opacity: 0.8;
    visibility: visible;
}

/* Floating Customer Service Button */
.floating-cs-btn {
    position: fixed;
    bottom: 70px; /* Position above back-to-top */
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #07C160; /* WeChat green */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem; /* Adjust icon size */
}

.floating-cs-btn:hover {
    background-color: #06AD56; /* Darker green on hover */
    color: white;
    opacity: 1;
}

.floating-cs-btn.show {
    opacity: 0.9; /* Slightly more opaque */
    visibility: visible;
}

/* 团队介绍段落样式 */
.team-intro {
    margin-top: 2rem;
} 