/* 组件样式文件 */

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0 var(--spacing-md);
}

.nav-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    font-weight: 500;
    transition: color var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-sm) 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.dropdown-item:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-normal);
}

/* Hero区域样式 */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: white;
}

/* 轮播背景 */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(79, 70, 229, 0.6) 100%);
}

/* 轮播控制 */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--spacing-xl);
}

.hero-prev,
.hero-next {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 轮播指示器 */
.hero-indicators {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: var(--spacing-sm);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Hero内容 */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-xl) 0;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* 价值主张区域 */
.value-proposition {
    margin-bottom: var(--spacing-2xl);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title .highlight {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.hero-description {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 核心能力展示 */
.core-capabilities {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.capability-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 150px;
}

.capability-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.capability-item i {
    font-size: var(--text-2xl);
    color: #fbbf24;
    margin-bottom: var(--spacing-xs);
}

.capability-item span {
    font-size: var(--text-base);
    font-weight: 500;
    color: white;
}

/* 行动按钮 */
.hero-actions {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--text-lg);
    min-width: 200px;
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* 页面Hero样式 */
.page-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 30%, #60a5fa 70%, #2563eb 100%);
    position: relative;
    overflow: hidden;
    min-height: auto; /* 不设置固定高度，根据内容自适应 */
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.page-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2) 0%, rgba(29, 78, 216, 0.1) 100%);
}

.page-hero .hero-content-wrapper {
    padding-top: 120px; /* 为固定导航栏留出空间 */
    padding-bottom: var(--spacing-2xl);
    min-height: 60vh; /* 设置最小高度，但允许内容撑开 */
    display: flex;
    align-items: center;
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-hero .hero-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.page-hero .hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.page-hero .hero-description {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 700px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 移除旧的浮动元素样式，保留必要的动画 */

/* 企业实力展示样式 */
.company-strength {
    background: var(--background-light);
}

.strength-item {
    text-align: center;
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.strength-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.strength-item:hover::before {
    left: 100%;
}

.strength-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.strength-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    color: white;
    position: relative;
    z-index: 2;
}

.strength-number {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    position: relative;
    z-index: 2;
}

.strength-label {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.strength-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
    position: relative;
    z-index: 2;
}

/* 特色数据展示 */
.stats-section {
    background: var(--background-light);
    padding: var(--spacing-3xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    font-weight: 500;
}

/* 产品卡片 */
.product-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--gradient-accent);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
}

.product-content {
    padding: var(--spacing-xl);
}

.product-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
}

.product-features li {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.product-features li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: var(--spacing-sm);
}

/* 技术优势区域 */
.tech-advantages {
    background: var(--background-dark);
    color: white;
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.tech-advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(59,130,246,0.1)"/></svg>');
    opacity: 0.5;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.tech-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
    .tech-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .tech-grid.grid-3 {
        grid-template-columns: 1fr;
    }
}

.tech-item {
    text-align: center;
    padding: var(--spacing-xl);
}

.tech-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    color: white;
}

.tech-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: white;
}

.tech-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 页脚样式 */
.footer {
    background: var(--background-dark);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand {
    max-width: none;
}

.footer-contact {
    margin: var(--spacing-lg) 0;
}

.footer-contact p {
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

/* 联系页面样式 */
.space-y-3 > * + * {
    margin-top: var(--spacing-md);
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.font-semibold {
    font-weight: 600;
}

.text-sm {
    font-size: var(--text-sm);
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--spacing-lg);
    font-size: var(--text-xl);
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-normal);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-xl);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* 社交媒体图标 */
.social-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 不同页面Hero高度变体 */
/* 简单介绍页面 - 较小高度 */
.page-hero.hero-compact .hero-content-wrapper {
    min-height: 45vh;
    padding-bottom: var(--spacing-xl);
}

.page-hero.hero-compact .hero-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-md);
}

.page-hero.hero-compact .hero-subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-md);
}

.page-hero.hero-compact .hero-description {
    font-size: var(--text-base);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

/* 产品页面 - 中等高度 */
.page-hero.hero-product .hero-content-wrapper {
    min-height: 55vh;
}

.page-hero.hero-product .hero-title {
    font-size: var(--text-4xl);
}

/* 质检中心页面 - 标准高度 */
.page-hero.hero-service .hero-content-wrapper {
    min-height: 60vh;
}

/* 统一的蓝色调渐变背景已在 .page-hero 中定义 */
