/* 美卓智能 - 简约科技风门户首页样式 v3 */

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo 区域 */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a1a1a;
}

.navbar-logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

/* 右侧区域 */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 联系电话 */
.navbar-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.navbar-contact i {
    animation: ring 1.5s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    50% { transform: rotate(0); }
}

/* 汉堡菜单按钮 */
.navbar-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    gap: 5px;
    transition: all 0.2s ease;
}

.navbar-toggle:hover {
    background: #e2e8f0;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: #4a5568;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 下拉菜单 */
.navbar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.navbar-dropdown.active {
    max-height: 500px;
    opacity: 1;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 2rem;
    text-decoration: none;
    color: #4a5568;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
    padding-left: 2.5rem;
}

.dropdown-link.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.dropdown-link i {
    width: 24px;
    text-align: center;
    color: #2563eb;
}

/* ==================== 主内容区 ==================== */
.main-content {
    margin-top: 70px;
}

/* ==================== Hero 区域 ==================== */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    padding: 120px 2rem 80px;
    text-align: center;
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e293b 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    letter-spacing: 3px;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    font-size: 0.95rem;
    color: #64748b;
}

/* ==================== 服务区域 ==================== */
.services {
    padding: 80px 2rem;
    background: #ffffff;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* 服务卡片 */
.service-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: #bfdbfe;
    background: #ffffff;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: #2563eb;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.service-desc {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.service-features li {
    padding: 0.5rem 0;
    color: #4a5568;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li i {
    color: #10b981;
    font-size: 0.8rem;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    transition: all 0.2s ease;
    align-self: flex-start;
}

.service-card:hover .service-btn {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    transform: translateX(5px);
}

/* ==================== 关于我们区域 ==================== */
.about-section {
    padding: 80px 2rem;
    background: #f8fafc;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    margin-top: 2rem;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about-intro p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.about-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.about-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card h3 i {
    color: #2563eb;
}

.about-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-card ul li {
    padding: 0.75rem 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
    border-bottom: 1px solid #e2e8f0;
}

.about-card ul li:last-child {
    border-bottom: none;
}

.about-card ul li strong {
    color: #1a1a1a;
    display: block;
    margin-bottom: 0.25rem;
}

/* ==================== 联系区域 ==================== */
.contact-section {
    padding: 60px 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.contact-info h2 i {
    margin-right: 10px;
}

.contact-hotline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.contact-phone {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-person {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.contact-website {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-website:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==================== 页脚 ==================== */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 40px;
    border-radius: 6px;
}

.footer-brand span {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .navbar-contact {
        display: none;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
        height: 60px;
    }

    .navbar-logo {
        height: 42px;
    }

    .main-content {
        margin-top: 60px;
    }

    .hero {
        padding: 50px 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .services {
        padding: 50px 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        padding: 50px 1rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .contact-phone {
        font-size: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .dropdown-link {
        padding: 14px 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .about-card h3 {
        font-size: 1.1rem;
    }
}
