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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.logo-icon {
    margin-right: 10px;
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:focus {
    outline: none;
    color: #007bff;
}

.nav-links a:focus::after {
    width: 100%;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background-color: #007bff;
    color: #fff;
}

/* 首页横幅样式 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 0 10px;
    padding: 15px 30px;
    font-size: 18px;
}

/* 核心功能样式 */
.features {
    padding: 80px 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f8f9fa;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.feature-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 16px;
}

/* 业务流程样式 */
.process {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.process h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.process-steps .step {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    min-width: 250px;
}

.process-steps .step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: #007bff;
}

/* 功能介绍页面样式 */
.page-hero {
    background-color: #007bff;
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.page-hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 20px;
    opacity: 0.9;
}

.features-detail {
    padding: 80px 0;
    background-color: #fff;
}

.feature-section {
    margin-bottom: 80px;
}

.feature-section h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 15px;
    display: inline-block;
}

.feature-content {
    display: flex;
    align-items: flex-start;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
}

.feature-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon-large {
    font-size: 48px;
    color: #007bff;
    margin-right: 25px;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
}

.feature-text p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

/* 关于我们页面样式 */
.about-content {
    padding: 80px 0;
    background-color: #fff;
}

.company-intro {
    margin-bottom: 60px;
    text-align: center;
}

.company-intro h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
}

.company-intro p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px;
}

.mission-vision {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 80px;
}

.mission, .vision {
    flex: 1;
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.mission:hover, .vision:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.mission h2, .vision h2 {
    font-size: 28px;
    color: #007bff;
    margin-bottom: 20px;
}

.mission p, .vision p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.system-advantages {
    margin-bottom: 80px;
}

.system-advantages h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-item {
    background-color: #fff;
    padding: 35px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: #007bff;
}

.advantage-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.advantage-item h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.advantage-item p {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}

.team-intro {
    text-align: center;
}

.team-intro h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
}

.team-intro p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 250px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.step-content p {
    color: #666;
    text-align: center;
    font-size: 14px;
}

.step-arrow {
    font-size: 36px;
    color: #007bff;
    margin: 0 10px;
}

/* 行业解决方案页面样式 */
.solutions-content {
    padding: 80px 0;
    background-color: #fff;
}

.industry-solution {
    margin-bottom: 80px;
}

.industry-solution h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 15px;
    display: inline-block;
}

.solution-card {
    display: flex;
    align-items: flex-start;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
}

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

.solution-icon {
    font-size: 48px;
    color: #007bff;
    margin-right: 25px;
    flex-shrink: 0;
}

.solution-text {
    flex: 1;
}

.solution-text h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
}

.solution-text p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.solution-text ul {
    list-style: none;
    padding: 0;
}

.solution-text li {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.solution-text li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

/* 联系我们页面样式 */
.contact-content {
    padding: 80px 0;
    background-color: #fff;
}

.contact-info {
    margin-bottom: 60px;
}

.contact-info h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 15px;
    display: inline-block;
}

.info-item {
    display: flex;
    align-items: flex-start;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.info-icon {
    font-size: 48px;
    color: #007bff;
    margin-right: 25px;
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
}

.info-text p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.contact-form-section h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 15px;
    display: inline-block;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.contact-form .form-group input,
.contact-form .form-group textarea,
.contact-form .form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus,
.contact-form .form-group select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.contact-form .form-group select {
    cursor: pointer;
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .form-group button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border-radius: 6px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .form-group button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* 页脚样式 */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #007bff;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p {
    color: #adb5bd;
    margin-bottom: 10px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #495057;
    color: #adb5bd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    
    /* 产品溯源页面响应式 */
    .query-form .input-group {
        flex-direction: column;
    }
    
    .query-form .input-group input {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .query-form .input-group button {
        width: 100%;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-header button {
        margin-top: 10px;
    }
    
    /* 时间线响应式优化 */
    .timeline-content {
        padding: 15px 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    /* 通用页面响应式 */
    .page-title {
        padding-top: 100px;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
    
    /* 功能介绍页面响应式 */
    .feature-content {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon-large {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    /* 关于我们页面响应式 */
    .mission-vision {
        flex-direction: column;
        gap: 20px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    /* 联系我们页面响应式 */
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    /* 页脚响应式 */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* 通用页面样式 */
.page-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
    padding-top: 120px;
}

.page-content {
    padding: 40px 0 80px;
    background-color: #fff;
}

.page-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* 输入组样式 */
.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    margin: 0;
    border-radius: 4px 0 0 4px;
}

.input-group button {
    border-radius: 0 4px 4px 0;
}

/* 产品溯源页面样式 */
.traceability-section {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.query-form {
    margin-bottom: 30px;
}

.query-result {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.result-header h3 {
    margin: 0;
    color: #333;
}

.product-info,
.batch-info,
.qrcode-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.info-item {
    margin-bottom: 10px;
}

.info-item .label {
    font-weight: 500;
    color: #333;
    margin-right: 5px;
}

.production-steps {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.production-steps h4,
.batch-info h4,
.qrcode-info h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.step-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f3f5;
}

.step-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    width: 36px;
    height: 36px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content h5 {
    margin: 0 0 5px 0;
    color: #333;
}

.step-time {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 14px;
}

.step-description {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.error-message {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
    margin-bottom: 20px;
}

.error-icon {
    margin-right: 10px;
    font-size: 20px;
}

.timeline-star {
    font-size: 24px;
    color: #ffc107;
}

.check-icon {
    margin-right: 10px;
    color: #28a745;
}

/* 时间线样式 */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #007bff;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid #007bff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.timeline-description {
    color: #666;
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .right {
        left: 0%;
    }
}