:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --primary-light: #e7f1ff;
    --accent: #198754;
    --dark: #0f1a2e;
    --gray-light: #f8f9fc;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Base & Typography ===== */
body {
    font-family: "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
    line-height: 1.8;
    padding-top: 76px;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--primary);
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
}

/* ===== Scroll Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== Navbar ===== */
.navbar {
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary), #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-item {
    margin-right: 0.5rem;
    font-size: 1rem;
    align-content: center;
}

.nav-item:last-child {
    margin-right: 0;
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.navbar .btn-primary {
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, rgba(13, 35, 70, 0.85) 0%, rgba(13, 110, 253, 0.2) 100%), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 180px 0 140px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero h1 {
    position: relative;
    z-index: 1;
    animation: fadeInDown 1s ease;
}

.hero .lead {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero .d-flex {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease 0.6s both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero .btn-primary {
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.hero .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.6);
}

.hero .btn-outline-light {
    border-radius: 50px;
    font-weight: 600;
    border-width: 2px;
    transition: var(--transition);
}

.hero .btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* ===== Stats Section ===== */
.stats-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1a2d4a 100%);
    padding: 60px 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom right, transparent 49%, var(--dark) 50%);
}

.stat-item {
    text-align: center;
    padding: 20px;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0dcaf0, #0d6efd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 400;
}

/* ===== Section Titles ===== */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #0dcaf0);
    border-radius: 2px;
}

h2.fw-bold {
    position: relative;
}

h2.fw-bold:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #0dcaf0);
    border-radius: 2px;
}

/* ===== Features Section ===== */
#features {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
    background: var(--gray-light);
}

.module-card {
    transition: var(--transition);
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.module-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.module-header {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.module-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.module-card:hover .module-header::after {
    opacity: 1;
}

.module-header h4 {
    background: rgb(0 0 0 / 70%);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    position: absolute;
    width: 100%;
    bottom: 0;
    padding: 0.9rem;
    z-index: 2;
    transition: var(--transition);
}

.module-card:hover .module-header h4 {
    background: rgba(13, 110, 253, 0.85);
}

.module-body {
    padding: 1.2rem 1.5rem 1.5rem;
    background: #fff;
}

.module-body p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

#features .screenshot-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.module-card:hover .screenshot-img {
    transform: scale(1.05);
}

#features .advantage-list {
    margin-top: 0.8rem;
    margin-bottom: 0;
}

#features .advantage-list li {
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
    transition: transform 0.3s ease;
}

#features .advantage-list li:hover {
    transform: translateX(5px);
}

#features .advantage-list li:last-child {
    margin-bottom: 0;
}

/* ===== Highlights Section ===== */
#highlights {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
    background: #fff;
}

#highlights h5 {
    font-weight: 700;
    margin-bottom: 0.8rem;
}

#highlights p {
    color: var(--bs-secondary-color) !important;
    font-size: 0.95rem;
}

#highlights p:last-child {
    margin-bottom: 0;
}

#highlights .highlight-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 202, 240, 0.1));
    color: var(--primary);
    transition: var(--transition);
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

#highlights .item:hover .highlight-icon {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, var(--primary), #0dcaf0);
    color: #fff;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

#highlights .item > div {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    height: 100%;
}

#highlights .item > div:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
    border-color: rgba(13, 110, 253, 0.2) !important;
}

/* ===== Process Section ===== */
.process-section {
    padding: 6rem 0;
    background: var(--gray-light);
    position: relative;
    overflow: hidden;
}

.process-step {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.process-step .step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0dcaf0);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.process-step:hover .step-number {
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.5);
}

.process-step h5 {
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.process-step p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.process-connector {
    position: absolute;
    top: 55px;
    left: calc(50% + 45px);
    width: calc(100% - 90px);
    height: 3px;
    background: linear-gradient(90deg, var(--primary), rgba(13, 110, 253, 0.2));
    z-index: 1;
}

@media (max-width: 767px) {
    .process-connector {
        display: none;
    }
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 6rem 0;
    background: #fff;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 5rem;
    color: rgba(13, 110, 253, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(13, 110, 253, 0.15);
}

.testimonial-card .stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-card .testimonial-text {
    color: #555;
    font-style: italic;
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1rem;
}

.testimonial-card .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0dcaf0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial-card .author-info h6 {
    margin-bottom: 2px;
    font-weight: 700;
    font-size: 0.95rem;
}

.testimonial-card .author-info small {
    color: #999;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 6rem 0;
    background: var(--gray-light);
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.faq-item .accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.2rem 1.5rem;
    background: transparent;
    border: none;
    box-shadow: none !important;
    color: var(--dark);
}

.faq-item .accordion-button:not(.collapsed) {
    background: rgba(13, 110, 253, 0.04);
    color: var(--primary);
}

.faq-item .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-item .accordion-body {
    padding: 0 1.5rem 1.2rem;
    color: #666;
    line-height: 1.8;
}

/* ===== Tech Advantages Section ===== */
.tech-section {
    padding: 6rem 0;
    background: #fff;
}

.tech-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    background: var(--gray-light);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    height: 100%;
}

.tech-card:hover {
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.tech-card .tech-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), #0dcaf0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
    transition: var(--transition);
}

.tech-card:hover .tech-icon {
    border-radius: 50%;
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}

.tech-card h5 {
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.tech-card p {
    color: #666;
    font-size: 0.93rem;
    margin-bottom: 0;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0dcaf0 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-section h2 {
    position: relative;
    z-index: 1;
}

.cta-section p {
    position: relative;
    z-index: 1;
}

.cta-section .btn {
    position: relative;
    z-index: 1;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Footer ===== */
footer {
    background: var(--dark);
    padding: 3rem 0 2rem;
}

footer .footer-links {
    margin-bottom: 1.5rem;
}

footer .footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

footer .footer-links a:hover {
    color: #fff;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    margin: 0 5px;
    transition: var(--transition);
    font-size: 1rem;
}

footer .social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

/* ===== Modal Enhancement ===== */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), #0dcaf0);
    color: #fff;
    border: none;
    padding: 1.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-weight: 700;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0dcaf0);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.6);
}

/* ===== Lightbox ===== */
.sl-overlay {
    background: #000;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero {
        padding: 130px 0 100px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 100px 0 80px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .stat-item::after {
        display: none;
    }

    .stat-number {
        font-size: 2rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}
