﻿/* 头部信息优化 */
        .factory-detail-header {
            background: #fff;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            border: 1px solid #f0f0f0;
        }
        .factory-header-main {
            display: flex;
            align-items: flex-start;
            gap: 20px;
        }
        .factory-logo {
            width: 300px;
            height: 200px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
        }
        .factory-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .factory-header-info {
            flex: 1;
        }
        .factory-title {
            font-size: 22px;
            color: #333;
            font-weight: bold;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .factory-tag {
            background: #e8f3ff;
            color: #03823C;
            font-size: 12px;
            padding: 2px 8px;
            border-radius: 4px;
        }
        /* 星级样式参考spgclist.html */
        .level.premium {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
        }
        .level.premium .star-box {
            display: flex;
            align-items: center;
        }
        .level.premium .star {
            color: #ff9900;
            font-size: 16px;
            margin-right: 2px;
        }
        .level.premium .star-empty {
            color: #e5e5e5;
            font-size: 16px;
            margin-right: 2px;
        }
        .level.premium .level-text {
            color: #666;
            font-size: 14px;
        }
        .factory-header-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 10px;
            font-size: 14px;
            color: #666;
        }
        .factory-header-meta .meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .factory-header-meta .meta-icon {
            color: #03823C;
            font-size: 14px;
        }
        .factory-header-desc {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
            margin-top: 10px;
        }
        .factory-contact-bar {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px dashed #f0f0f0;
        }
        .factory-contact-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 14px;
        }

        /* 工商信息表格优化 */
        .factory-info-section {
            background: #fff;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            border: 1px solid #f0f0f0;
        }
        .section-title {
            font-size: 18px;
            color: #333;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #f0f0f0;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        /* 工商信息紧凑表格 */
        .business-info-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        .business-info-table th,
        .business-info-table td {
            padding: 8px 12px;
            border: 1px solid #e5e5e5;
            line-height: 1.5;
        }
        .business-info-table th {
            width: 20%;
            background-color: #f8f8f8;
            color: #333;
            font-weight: bold;
            text-align: left;
            white-space: nowrap;
        }
        .business-info-table td {
            width: 80%;
            color: #666;
            word-break: break-word;
        }

        /* 产品列表样式 */
        .product-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 15px;
        }
        .product-item {
            border: 1px solid #f0f0f0;
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        .product-item:hover {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
        }
        .product-img {
            height: 180px;
            overflow: hidden;
        }
        .product-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        .product-item:hover .product-img img {
            transform: scale(1.05);
        }
        .product-info {
            padding: 15px;
        }
        .product-name {
            font-weight: bold;
            margin-bottom: 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .product-desc {
            color: #666;
            font-size: 14px;
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* 工厂文章 - 一行2列布局（有图/无图两种样式） */
        .article-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-top: 15px;
            list-style: none;
            padding: 0;
        }
        .article-item {
            border: 1px solid #f0f0f0;
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s ease;
            height: 100%;
        }
        .article-item:hover {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
            transform: translateY(-2px);
        }
        /* 有图文章样式 */
        .article-item.has-img {
            display: flex;
            flex-direction: column;
        }
        .article-item.has-img .article-img {
            height: 160px;
            overflow: hidden;
        }
        .article-item.has-img .article-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        .article-item.has-img:hover .article-img img {
            transform: scale(1.05);
        }
        /* 无图文章样式 */
        .article-item.no-img {
            padding: 20px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        /* 通用文章信息样式 */
        .article-info {
            padding: 15px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .article-item.no-img .article-info {
            padding: 0;
        }
        .article-title {
            font-weight: bold;
            font-size: 16px;
            color: #333;
            margin-bottom: 8px;
            line-height: 1.4;
        }
        .article-meta {
            display: flex;
            gap: 15px;
            font-size: 12px;
            color: #999;
            margin-bottom: 8px;
        }
        .article-meta .meta-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .article-desc {
            color: #666;
            font-size: 14px;
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin: 0;
            flex: 1;
        }
        .article-item.no-img .article-desc {
            -webkit-line-clamp: 4;
        }

        /* 联系方式样式 */
        .contact-item {
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }
        .contact-item .label {
            width: 100px;
            font-weight: bold;
            color: #333;
        }
        .contact-item .value {
            flex: 1;
        }
        .phone-mask {
            color: #03823C;
            cursor: pointer;
            text-decoration: underline;
        }

        /* 弹窗样式 */
        #phoneModal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }
        .modal-content {
            background: #fff;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            padding: 25px;
            position: relative;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 20px;
            cursor: pointer;
            color: #999;
            transition: color 0.2s;
        }
        .close-modal:hover {
            color: #333;
        }
        .modal-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 20px;
            text-align: center;
            color: #333;
        }
        #fullPhone {
            display: none;
            color: #333;
            font-size: 24px;
            text-align: center;
            padding: 20px 0;
        }

        /* 响应式适配 */
        @media (max-width: 768px) {
            .factory-header-main {
                flex-direction: column;
                gap: 15px;
            }
            .factory-logo {
                width: 100px;
                height: 100px;
                margin: 0 auto;
            }
            .factory-header-meta {
                gap: 10px;
            }
            .factory-contact-bar {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            .business-info-table th {
                width: 30%;
                font-size: 13px;
            }
            .business-info-table td {
                font-size: 13px;
                padding: 6px 8px;
            }
            /* 移动端文章列表改为1列 */
            .article-list {
                grid-template-columns: 1fr;
            }
            .article-item.has-img .article-img {
                height: 180px;
            }
        }