:root {
    --background-color: #295D3E;
    --primary-color: #295D3E;
    --secondary-color: #34705A;
    --accent-color: #4A8269;
    --text-color-light: #ffffff;
    --text-color-dark: #295D3E;
    --background-gradient: linear-gradient(135deg, #295D3E 0%, #0c1c13 100%);
    --card-background: #e5ebe5;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 40px rgba(214, 236, 214, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: var(--background-gradient);
    min-height: 100vh;
    color: var(--text-color-dark);
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0;
}

.header {
    width: 100%;
    background-color: var(--background-color);
    border-bottom: 5px solid #F3DD4C;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 20px 0;
}

/* 页面内容区域 */
.main-content {
    /* padding: 40px 0px; */
}

/* 首页英雄区域样式 */
.hero-section {
    text-align: center;
}


.hero-title {
    font-size: 80px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-description {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-button {
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(41, 93, 62, 0.3);
}

.hero-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 93, 62, 0.4);
}

/* 产品展示页面样式 */
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    margin-top: 20px;
    text-align: center;
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 50px;
    font-weight: 700;
}

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

/* 首页两个产品展示 */
.products-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

/* 首页各区域间距优化 */
#home .products-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

#home .contact-container {
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image::before {
    content: "";
    position: absolute;
    color: #888;
    font-size: 16px;
    z-index: 1;
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* 联系我们页面样式 */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-content {
    background: white;
    margin-top: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.contact-info {
    padding: 30px;
    text-align: center;
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-qr {
    padding: 30px;
    text-align: center;
}

.contact-qrcode {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #f0f0f0;
}

.contact-qr p {
    color: #666;
    margin-bottom: 8px;
}

.logo {
    max-width: 200px;
    height: auto;
}



.query-section {
    max-width: 800px;
    margin: 60px auto 0 auto;
    padding: 20px 20px;
}

.query-card {
    background: var(--card-background);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-heavy);
    backdrop-filter: blur(10px);
    text-align: center;
    margin-bottom: 30px;
}

.query-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.query-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.query-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(41, 93, 62, 0.1);
}

.query-button {
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.query-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(41, 93, 62, 0.3);
}

.query-tips {
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

.result-section {
    background: var(--card-background);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    display: none;
}




.result-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.result-content {
    font-size: 16px;
    line-height: 1.6;
}

.result-content p {
    margin-top: 10px;
}

.footer {
    padding: 20px 0;
    text-align: center;
    color: var(--text-color-light);
    background-color: var(--background-color);
    font-size: 14px;
}

.footer-container {
    width: 100%;
    background-color: #265b3d;
    border-top: 5px solid #F3DD4C;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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



.qrcode {
    margin-top: 20px;
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.result-image-container {
    width: 100%;
    position: relative;
}

.result-find {
    /* background-color: rgba(0, 0, 0, 0.5); */
    color: #1dac5b;
    font-size: 24px;
}

/* WebSocket连接状态样式 */
.connection-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dc3545;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: #28a745;
}

.status-dot.connecting {
    background: #ffc107;
}

.status-text {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.connect-button {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.connect-button:hover {
    background: var(--secondary-color);
}

.connect-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 扫码和定位功能样式 */
.scan-location-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.scan-button,
.location-button {
    padding: 12px 20px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.scan-button:hover,
.location-button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.scan-button:disabled,
.location-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.location-info {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 6px;
    text-align: center;
}

.location-info p {
    margin: 0;
    font-size: 14px;
    color: #28a745;
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.status-dot.connected {
    animation: none;
}

.status-dot.connecting {
    animation: pulse 1s infinite;
}

/* WebSocket查询结果增强样式 */
.websocket-result {}

.realtime-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 会话UUID样式 */
.session-uuid {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: rgba(41, 93, 62, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary-color);
    border: 1px solid rgba(41, 93, 62, 0.2);
    word-break: break-all;
}

.connection-status {
    display: none;
}