/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
}

.logo-icon {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #1e3a8a;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1e3a8a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* 轮播图 */
.carousel-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-2 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bg-3 {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
}

.carousel-content {
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 800px;
    z-index: 1;
}

.carousel-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.carousel-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    background: white;
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-arrow.prev {
    left: 30px;
}

.carousel-arrow.next {
    right: 30px;
}

/* 通用区块样式 */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* 专利介绍 */
.patents-section {
    background: white;
}

.patents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.patent-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.patent-card:hover {
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: #1e3a8a;
    transform: translateY(-5px);
}

.patent-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.patent-card h3 {
    font-size: 24px;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.patent-card p {
    color: #666;
    margin-bottom: 20px;
}

.patent-features {
    list-style: none;
}

.patent-features li {
    padding: 8px 0;
    color: #4CAF50;
    font-weight: 500;
}

.patent-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.info-box {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 15px;
    color: white;
}

.info-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.info-label {
    font-size: 18px;
    opacity: 0.9;
}

/* 服务项目 */
.services-section {
    background: #f8f9fa;
}

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-category {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.service-category h3 {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 25px 30px;
    font-size: 22px;
    margin: 0;
}

.service-list {
    padding: 0;
}

.service-item {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    background: #f8f9fa;
    padding-left: 35px;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.service-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 我们的优势 */
.advantages-section {
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.advantage-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.advantage-emoji {
    font-size: 50px;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 22px;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.advantage-card p {
    color: #666;
    line-height: 1.8;
}

/* 流程步骤 */
.process-steps {
    margin-top: 80px;
}

.process-steps h3 {
    text-align: center;
    font-size: 28px;
    color: #1e3a8a;
    margin-bottom: 50px;
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 180px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.3);
}

.step-content h4 {
    font-size: 18px;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.step-content p {
    color: #666;
    font-size: 14px;
}

.step-arrow {
    font-size: 30px;
    color: #1e3a8a;
    margin: 0 20px;
}

/* 关于我们 */
.about-section {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h3 {
    font-size: 24px;
    color: #1e3a8a;
    margin: 30px 0 15px;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.value-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    display: block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 600;
}

.value-item p {
    color: #666;
    margin: 0;
}

.achievement-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.achievement-card h4 {
    font-size: 20px;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.achievement-card ul {
    list-style: none;
}

.achievement-card li {
    padding: 10px 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.achievement-card li:last-child {
    border-bottom: none;
}

.partners {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.partner {
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 25px;
    color: #1e3a8a;
    font-size: 14px;
    transition: all 0.3s ease;
}

.partner:hover {
    background: #1e3a8a;
    color: white;
}

/* 客户案例 */
.cases-section {
    background: white;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.case-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.case-card:hover {
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: #1e3a8a;
    transform: translateY(-5px);
}

.case-header {
    margin-bottom: 20px;
}

.case-tag {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
}

.case-card h4 {
    font-size: 20px;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.case-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.case-result {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.case-result span {
    font-size: 14px;
    color: #1e3a8a;
    font-weight: 600;
}

/* 联系我们 */
.contact-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.contact-section .section-header h2 {
    color: white;
}

.contact-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-section .divider {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.7));
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    font-size: 28px;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.contact-detail h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-detail p {
    color: rgba(255, 255, 255, 0.8);
}

.social-links h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
}

.contact-form h3 {
    font-size: 24px;
    color: #1e3a8a;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

/* 页脚 */
.footer {
    background: #1e1e1e;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #3b82f6;
}

.footer-section p {
    color: #888;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3b82f6;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo .logo-icon {
    font-size: 28px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #666;
    margin-bottom: 10px;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #3b82f6;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.5);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .carousel-content h1 {
        font-size: 32px;
    }
    
    .carousel-content p {
        font-size: 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .values-list {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 20px;
    }
    
    .carousel-content h1 {
        font-size: 24px;
    }
    
    .carousel-content p {
        font-size: 14px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .patents-grid,
    .advantages-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 25px;
    }
}
