:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f97316;
    --light: #f8fafc;
    --gray: #94a3b8;
    --dark: #1e293b;
    --success: #10b981;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.defaultContent * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.div_head {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    color: #000000;
    overflow: hidden;
}

.div_head-div_content {
    position: relative;
    width: 100%;
    min-height: 60vh;
    background-size: cover;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.div_head-div_content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../image/homepage/codeing.jpeg');
    background-size: cover;
    opacity: 0.2;
}

.div_head-div_content-div_texts {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.div_head-div_content-div_texts-p_topTitle {
    font-size: 1.4em;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 1px;
}

.div_head-div_content-div_texts-p_title {
    font-size: 3.5em;
    margin: 0.5em 0;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.div_head-div_content-div_texts-p_subtitle {
    font-size: 1.3em;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto 2.5em;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.main-content {
    background: #f8fafc;
}

.section {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 2.8em;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2em;
    color: var(--gray);
    max-width: 700px;
    margin: 30px auto 0;
    line-height: 1.6;
}

/* 服务入口 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 50px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--primary);
    font-size: 36px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(360deg);
}

.service-title {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary);
}

.service-desc {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.6;
}

/* 二级导航 */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 800;
    height: 56px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sticky-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* 下拉菜单样式 */
.nav-dropdown {
    position: relative;
    height: 100%;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #323130;
    transition: all 0.2s;
}

.dropdown-toggle:hover {
    color: #0078d4;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    fill: currentColor;
    transition: transform 0.2s;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 900;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #323130;
    text-decoration: none;
    transition: all 0.2s;
}

.menu-item:hover {
    background: #f3f2f1;
    color: #0078d4;
}

.menu-item.active {
    color: #0078d4;
}

.indicator {
    width: 4px;
    height: 20px;
    background: #0078d4;
    border-radius: 2px;
    margin-right: 12px;
    opacity: 0;
}

.menu-item.active .indicator {
    opacity: 1;
}

/* 右侧按钮 */
.nav-actions {
    margin-left: auto;
}

.nav-button {
    display: inline-block;
    padding: 8px 16px;
    background: #0078d4;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-button:hover {
    background: #106ebe;
}

/* 底部指示条 */
.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0078d4;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sticky-nav-container {
        padding: 0 12px;
    }

    .dropdown-toggle {
        padding: 0 12px;
    }

    .dropdown-menu {
        width: 100%;
    }
}

/* 产品区域 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product-header {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    padding: 35px 25px;
    text-align: center;
}

.product-name {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-price {
    font-size: 2.5em;
    font-weight: 800;
}

.product-price span {
    font-size: 0.6em;
    font-weight: normal;
}

.product-body {
    padding: 30px;
}

.product-features {
    list-style: none;
    margin-bottom: 40px;
}

.product-features li {
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    font-size: 1.1em;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li i {
    color: var(--success);
    margin-right: 12px;
    font-size: 1.2em;
}

/* 新闻动态 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.news-image {
    height: 220px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    position: relative;
    overflow: hidden;
}

.news-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
}

.news-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 600;
    z-index: 2;
}

.news-content {
    padding: 30px;
}

.news-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary);
}

.news-excerpt {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 1.1em;
    line-height: 1.6;
}

.news-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

.news-link i {
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(5px);
}

/* 客户评价 */
.testimonials {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 50px 40px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.testimonial-card::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.testimonial-content {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    color: white;
}

.author-info h4 {
    font-size: 1.3em;
    margin-bottom: 8px;
}

.author-info p {
    color: #94a3b8;
    font-size: 1em;
}

/* 响应式 */
@media (max-width: 992px) {
    .div_head-div_content-div_texts-p_title {
        font-size: 2.8em;
    }

    .section-title {
        font-size: 2.3em;
    }
}

@media (max-width: 768px) {
    .div_head {
        min-height: 70vh;
    }

    .div_head-div_content {
        min-height: 70vh;
    }

    .div_head-div_content-div_texts-p_title {
        font-size: 2.2em;
    }

    .div_head-div_content-div_texts-p_subtitle {
        font-size: 1.1em;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2em;
    }

    .timer {
        flex-wrap: wrap;
    }

    .timer-item {
        min-width: 45%;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .div_head-div_content-div_texts {
        padding: 30px 20px;
    }

    .div_head-div_content-div_texts-p_title {
        font-size: 1.8em;
    }

    .div_head-div_content-div_texts-p_topTitle {
        font-size: 1.2em;
    }

    .section-title {
        font-size: 1.7em;
    }

    .timer-item {
        min-width: 100%;
    }
}

.btn-sliding {
    position: relative;
    overflow: hidden;
}

.btn-sliding .btn-text {
    display: inline-block;
    position: relative;
    transition: transform 0.5s ease;
}

.btn-sliding .btn-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: inherit;
    transition: transform 0.5s ease;
}

.btn-sliding .btn-text {
    transform: translateX(-100%);
}

.btn-sliding .btn-text::after {
    transform: translateX(0);
}

/* 平滑滚动后section的定位调整 */
section {
    scroll-margin-top: 80px; /* 根据导航栏高度调整 */
}