/* 蔻丁智能科技 - 现代简约风格样式表 */

:root {
    /* 主色调 - 科技蓝 */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    
    /* 辅助色 */
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    
    /* 中性色 */
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #e2e8f0;
    
    /* 字体 */
    --font-main: 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-heading: 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* 导航栏 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.brand-text {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm) !important;
    margin: 0 var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(37, 99, 235, 0.1);
}

/* 英雄区域 */
.hero {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.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" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="white" opacity="0.1"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 特性卡片 */
.features {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
}

.section-title p {
    color: var(--secondary-color);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
}

.feature-card p {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

/* 产品展示 */
.products {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.product-image i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.8;
}

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

.product-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
}

.product-content p {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.875rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .feature-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar-collapse {
        background: white;
        padding: var(--spacing-sm);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        margin-top: var(--spacing-sm);
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* 工具类 */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.bg-light { background-color: var(--light-color); }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }

/* 新增样式 - 技术优势 */
.advantages {
    padding: 80px 0;
    background: #f8f9fa;
}

.advantage-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.advantage-icon {
    font-size: 2.5rem;
    color: #1E6BFF;
}

/* 成功案例 */
.cases {
    padding: 80px 0;
}

.case-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.case-result {
    background: #38A169;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
}

/* 产品特性列表 */
.feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.feature-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.feature-list li:before {
    content: "✓";
    color: #38A169;
    margin-right: 10px;
    font-weight: bold;
}

/* 徽章样式 */
.badge {
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 产品页面新增样式 */
.product-nav {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.product-nav-link {
    display: block;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-nav-link:hover,
.product-nav-link.active {
    border-color: #1E6BFF;
    background: rgba(30, 107, 255, 0.05);
    color: #1E6BFF;
    transform: translateY(-5px);
}

.product-nav-link h4 {
    margin: 10px 0 5px;
    font-weight: 600;
}

.product-nav-link p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.product-detail {
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 40px !important;
}

.product-image {
    position: relative;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #38A169;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.product-features {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #38A169;
    font-weight: bold;
}

.comparison-table {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.comparison-table th {
    background: #1E6BFF;
    color: white;
    font-weight: 600;
    border: none;
}

.comparison-table td {
    vertical-align: middle;
}

.cta-section {
    padding: 60px;
    background: linear-gradient(135deg, #1E6BFF, #764ba2);
    color: white;
    border-radius: 15px;
    margin-top: 40px;
}

.cta-section .btn-outline-primary {
    border-color: white;
    color: white;
}

.cta-section .btn-outline-primary:hover {
    background: white;
    color: #1E6BFF;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-detail {
        padding: 20px;
    }
    
    .product-image {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
}
