/* 导入FontAwesome字体 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 导航栏 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
    width: 100%;
}

.header .container {
    max-width: 1600px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 30px;
    max-width: 40%;
}

.logo img {
    height: 50px;
    margin-right: 15px;
    flex-shrink: 0;
}

.logo h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0px 1px 1px rgba(0,0,0,0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    flex-grow: 1;
    flex-shrink: 0;
    min-width: 60%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-items: center;
}

.nav li {
    margin-left: 15px;
    position: relative;
    white-space: nowrap;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 15px;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: block;
    border-radius: 6px;
}

.nav a:hover {
    color: #fff;
    background-color: #3498db;
}

.nav a.active {
    color: #fff;
    background-color: #3498db;
}

.nav a.active::after {
    display: none;
}

.nav a::after {
    display: none;
}

/* 主要内容区 */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 100%;
    background-color: #f9f9f9;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

p {
    text-align: center;
    margin-bottom: 30px;
    color: #7f8c8d;
}

/* 计算器部分 */
.calculator {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    width: 100%;
}

.shape-selector {
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    text-align: center;
    margin-bottom: 20px;
}

.shape-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.shape-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid #e1e1e1;
}

.shape-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.shape-icon span {
    font-size: 14px;
    color: #333;
}

.shape-icon.active {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

.shape-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.shape-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
    gap: 30px;
}

.shape-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s;
    width: 150px;
}

.shape-option img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.shape-option span {
    font-weight: bold;
}

.shape-option:hover {
    background-color: #e9ecef;
}

.shape-option.active {
    background-color: #e3f2fd;
    border: 2px solid #3498db;
}

.panel-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.panel {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.panel .container {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.product-section, .dimension-section {
    padding: 30px;
    min-width: 400px;
}

.product-section {
    flex: 1;
    border-right: 1px solid #eee;
}

.dimension-section {
    flex: 1;
}

h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
}

h3 {
    margin: 15px 0 10px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="number"], 
input[type="text"], 
input[type="email"], 
input[type="tel"], 
select, 
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button, .btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 20px;
    transition: background-color 0.3s;
    text-align: center;
    text-decoration: none;
}

button:hover, .btn:hover {
    background-color: #2980b9;
}

.result-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.bag-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.bag-type {
    flex: 1;
    min-width: 45%;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.bag-image {
    width: 100%;
    height: 180px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #eee;
}

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

.bag-desc {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
}

.bag-desc p {
    text-align: left;
    margin-bottom: 10px;
    color: #555;
}

.product-model, .bag-model {
    width: 100%;
    height: 350px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.dimension-label {
    position: absolute;
    background-color: white;
    border: 1px solid black;
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: bold;
    z-index: 10;
}

/* 产品页面 */
.product-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.8rem;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    margin-bottom: 30px;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 80px;
    height: 4px;
    background-color: #3498db;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-info p {
    color: #7f8c8d;
    margin-bottom: 15px;
    text-align: left;
}

.product-info .btn {
    width: auto;
    display: inline-block;
    padding: 8px 15px;
    margin: 0;
}

/* 联系页面 */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

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

.info-item strong {
    display: block;
    margin-bottom: 5px;
    color: #3498db;
}

.info-item p {
    margin: 0;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

textarea {
    resize: vertical;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
    width: 100%;
}

.footer p {
    color: #ddd;
    margin-bottom: 5px;
    text-align: left;
}

/* 新增页脚样式 */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-column {
    flex: 1;
    min-width: 240px;
    margin-bottom: 20px;
    padding: 0 15px;
    box-sizing: border-box;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
    text-align: left;
}

.footer-column h3:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #3498db;
    margin-top: 8px;
}

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

.footer-column ul li {
    margin-bottom: 8px;
}

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

.footer-column ul li a:hover {
    color: #3498db;
    text-decoration: underline;
}

.footer-column p {
    margin-bottom: 8px;
    color: #bdc3c7;
}

.company-info .address,
.company-info .phone,
.company-info .email {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}

.company-info .address:before,
.company-info .phone:before,
.company-info .email:before {
    font-family: "FontAwesome";
    position: absolute;
    left: 0;
    top: 2px;
    color: #3498db;
}

.contact-info p {
    margin-bottom: 10px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.copyright p {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 30px;
        min-width: 100%;
    }
}

/* 响应式布局优化 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    
    .footer-column {
        width: 100%;
        min-width: 100%;
        padding: 0 15px 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .calculation-results {
        flex-direction: column;
    }
    
    .result-item {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .recommendation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .recommendation-item img {
        height: 120px;
    }
    
    .recommendation-item h3 {
        font-size: 14px;
        padding: 10px;
    }
    
    .floating-contact {
        display: none;
    }
    
    body {
        padding-bottom: 60px;
    }
    
    .footer {
        margin-bottom: 60px;
    }
    
    .mobile-footer-nav {
        display: flex;
    }
    
    .panel {
        flex-direction: column;
    }
    
    .product-section, .dimension-section {
        min-width: 100%;
        padding: 20px;
    }
    
    .product-section {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .shape-options {
        justify-content: center;
    }
    
    .shape-option {
        margin: 0 10px 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .bag-results {
        flex-direction: column;
    }
    
    .bag-type {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .calculator-header p {
        font-size: 1rem;
    }
}

.calculator-header {
    text-align: center;
    padding: 40px 0 20px;
    background-color: #fff;
}

.calculator-header h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.calculator-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 电话号码样式 */
.phone-number a {
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    background-color: #e74c3c;
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.phone-number a:before {
    content: '\260E';
    margin-right: 6px;
    font-size: 1.2rem;
}

.phone-number a:hover {
    color: #fff;
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 浮动联系方式 */
.floating-contact {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background-color: white;
    padding: 15px;
    border-radius: 5px 0 0 5px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    transition: transform 0.3s ease;
}

.floating-contact.collapsed {
    transform: translate(calc(100% - 30px), -50%);
}

.floating-contact .toggle-btn {
    position: absolute;
    left: 5px;
    top: 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: #3498db;
    cursor: pointer;
    padding: 5px;
    margin: 0;
    width: auto;
    box-shadow: none;
}

.floating-contact .toggle-btn:hover {
    color: #2980b9;
    background: none;
}

.floating-contact h3 {
    margin-top: 0;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    width: 100%;
    font-size: 16px;
}

.qr-code {
    text-align: center;
    margin-bottom: 15px;
}

.qr-code img {
    width: 120px;
    height: auto;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 8px;
}

.qq-contact {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    width: 100%;
}

.qq-contact p {
    margin: 0;
    font-size: 14px;
    color: #7f8c8d;
}

.qq-contact strong {
    display: block;
    font-size: 16px;
    color: #3498db;
    margin-top: 5px;
}

/* 推荐尺寸板块 */
.recommended-sizes {
    margin-top: 40px;
    padding: 30px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    width: 100%;
}

.recommended-sizes .container {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.recommended-sizes h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.size-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.size-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 250px;
    text-align: center;
}

.size-card h3 {
    color: #3498db;
    margin-bottom: 15px;
}

.size-card p {
    margin: 8px 0;
    text-align: left;
    color: #555;
}

/* 关于我们页面 */
.about-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    margin-bottom: 30px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text h2 {
    color: #3498db;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.about-text p {
    text-align: left;
    margin-bottom: 20px;
}

.advantage-list {
    margin-left: 20px;
    margin-bottom: 20px;
}

.advantage-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.advantage-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: #3498db;
    border-radius: 50%;
}

.contact-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

/* 联系页面 */
.contact-qrcode {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.qrcode-container {
    margin-top: 20px;
}

.qrcode-container img {
    width: 200px;
    height: auto;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qrcode-container p {
    margin-top: 15px;
    color: #3498db;
    font-weight: bold;
}

.result-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #3498db;
    margin-bottom: 15px;
}

/* 选择产品形状部分 */
.shape-selector-container {
    background-color: #f3f9ff;
    padding: 35px 0;
    border-bottom: 1px solid #dce8f5;
    width: 100%;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

.shape-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.shape-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 20px 25px;
    border-radius: 12px;
    transition: all 0.3s;
    width: 180px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.shape-option img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.shape-option span {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-top: 10px;
}

.shape-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.15);
}

.shape-option.active {
    background-color: #eaf6ff;
    border: 2px solid #3498db;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.2);
}

.calculator-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0;
    gap: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.product-section, .dimension-section {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    min-width: 300px;
}

.product-section {
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

.dimension-section {
    flex: 1;
}

.product-model {
    width: 100%;
    height: 320px;
    overflow: hidden;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

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

.input-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

button {
    background-color: #3498db;
    color: white;
    padding: 15px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 15px;
}

button:hover {
    background-color: #2980b9;
}

/* 计算结果区域 */
.result-container {
    padding: 60px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    margin-top: 40px;
    width: 100%;
}

.result-container .container {
    max-width: 1400px;
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
}

.result-container .section-title {
    margin-bottom: 40px;
    font-size: 28px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    color: #2c3e50;
}

.result-container .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #3498db;
}

.calculation-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.result-item, 
.result-item.single-bag, 
.result-item.inner-bag, 
.result-item.outer-bag {
    flex: 0 0 1200%; /* 统一宽度 */
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.result-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px; /* 增加间距 */
    width: 100%;
    padding: 30px 40px; /* 增加内边距 */
}

.result-img {
    flex: 0 0 35%; /* 调整图片区域比例 */
    max-width: 500px; /* 增加图片最大宽度 */
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s;
}

.result-item:hover .result-img img {
    transform: scale(1.03);
}

.result-info {
    flex: 1;
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 26px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.result-info h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #3498db;
}

.calculated-values {
    font-weight: bold;
    margin-top: 20px;
    padding: 20px;
    background-color: #f1f8ff;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.machine-list{
    font-weight: bold;
    margin-top: 20px;
    padding: 20px;
    background-color: #f1f8ff;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 20px;
    color: black;
}


.calculated-values p {
    margin: 10px 0;
    font-size: 20px;
    color: #2c3e50;
}

.calculated-values span {
    color: #e74c3c;
    font-size: 24px;
    padding: 0 5px;
}

.result-desc {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .result-item {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .result-layout {
        padding: 15px 20px;
        gap: 25px;
    }
    
    .result-info h3 {
        font-size: 22px;
    }
    
    .calculated-values p {
        font-size: 18px;
    }
    
    .calculated-values span {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .result-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .result-img {
        max-width: 100%;
        width: 100%;
        height: 240px;
    }
    
    .result-info {
        padding: 10px 0;
    }
    
    .result-container {
        padding: 40px 0;
    }
    
    .result-container .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

.calculator-container {
    padding: 0;
    width: 100%;
}

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

.dropdown-toggle {
    position: relative;
    padding-right: 25px !important;
}

.dropdown-toggle:after {
    content: '▼';
    font-size: 0.7em;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 101;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-origin: top center;
}

.dropdown-content a {
    padding: 12px 15px;
    display: block;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    font-size: 1rem;
    font-weight: normal;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f5f9ff;
    color: #3498db;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-menu:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    margin: 0;
    width: auto;
    box-shadow: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    outline: none;
}

.mobile-menu-btn:hover {
    background-color: #f5f5f5;
}

.mobile-menu-btn.active {
    color: #3498db;
}

@media (max-width: 1200px) {
    .logo {
        max-width: 35%;
    }
    
    .logo h2 {
        font-size: 1.3rem;
    }
    
    .nav a {
        font-size: 1rem;
        padding: 8px 12px;
    }
    
    .phone-number a {
        padding: 8px 12px;
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .logo {
        max-width: 30%;
    }
    
    .logo h2 {
        font-size: 1.1rem;
    }
    
    .nav li {
        margin-left: 8px;
    }
    
    .nav a {
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
    }
    
    .navbar {
        flex-direction: column;
        padding: 10px 0;
        position: relative;
    }
    
    .logo {
        margin-bottom: 5px;
        margin-right: 0;
        max-width: 100%;
        padding-right: 40px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .nav {
        width: 100%;
        min-width: auto;
        position: relative;
    }
    
    .nav ul {
        flex-direction: column;
        display: none;
        position: absolute;
        background: white;
        width: 100%;
        top: 100%;
        left: 0;
        z-index: 100;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 0;
        border-radius: 0 0 8px 8px;
    }
    
    .nav ul.mobile-active {
        display: flex;
    }
    
    .nav li {
        margin: 0;
        width: 100%;
        text-align: left;
    }
    
    .nav a {
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
    }
    
    .nav a:hover, .nav a.active {
        border-radius: 0;
    }
    
    .dropdown-menu {
        position: static;
    }
    
    .dropdown-toggle:after {
        right: 20px;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        margin: 0;
        width: 100%;
        background-color: #f8f9fa;
        border-radius: 0;
    }
    
    .dropdown-content a {
        padding-left: 40px;
        font-size: 0.95rem;
    }
    
    .dropdown-menu:hover .dropdown-content {
        display: none;
        animation: none;
    }
    
    .dropdown-menu.active .dropdown-content {
        display: block;
    }

    .phone-number {
        width: 100%;
        margin: 10px 0 0;
    }
    
    .phone-number a {
        justify-content: center;
        margin: 5px 10px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .logo h2 {
        font-size: 0.95rem;
    }
    
    .logo img {
        height: 35px;
        margin-right: 10px;
    }
    
    .nav a {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
}

/* 产品推荐部分 */
.product-recommendation {
    padding: 40px 0;
    background-color: #f8f9fa;
    width: 100%;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.recommendation-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.recommendation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.recommendation-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 10px;
    max-width: 100% !important;
    max-height: 180px !important;
}

.recommendation-item h3 {
    color: #2c3e50;
    padding: 15px;
    margin: 0;
    background-color: #f8f9fa;
}

/* 重置图片样式，防止被其他CSS规则覆盖 */
.recommendation-item img,
.result-img img,
.product-image img {
    max-width: 100% !important;
    object-fit: contain !important;
    height: auto !important;
}

.recommendation-item img {
    height: 180px !important;
}

.result-img img {
    height: 200px !important;
}

.product-image img {
    height: 200px !important;
}

/* 确保图片容器有固定高度 */
.recommendation-item .img-container {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 查看全部产品按钮 */
.view-all-products {
    text-align: center;
    margin-top: 30px;
}

.view-all-products .btn {
    display: inline-block;
    width: auto;
    padding: 10px 30px;
    font-size: 1.1rem;
}

/* 响应式调整产品推荐网格 */
@media (max-width: 1200px) {
    .recommendation-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .recommendation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .recommendation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .recommendation-item img {
        height: 120px;
    }
    
    .recommendation-item h3 {
        font-size: 14px;
        padding: 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .calculation-results {
        flex-direction: column;
    }
    
    .result-item {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .floating-contact {
        display: none;
    }
    
    body {
        padding-bottom: 60px;
    }
    
    .footer {
        margin-bottom: 60px;
    }
    
    .mobile-footer-nav {
        display: flex;
    }
    
    .panel {
        flex-direction: column;
    }
    
    .product-section, .dimension-section {
        min-width: 100%;
        padding: 20px;
    }
    
    .product-section {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .shape-options {
        justify-content: center;
    }
    
    .shape-option {
        margin: 0 10px 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .bag-results {
        flex-direction: column;
    }
    
    .bag-type {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .calculator-header p {
        font-size: 1rem;
    }
}

/* 移动端底部导航 */
.mobile-footer-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.mobile-footer-nav {
    display: flex;
    justify-content: space-around;
}

.mobile-footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    padding: 5px 0;
}

.mobile-footer-btn i {
    font-size: 24px;
    margin-bottom: 5px;
}

.mobile-footer-btn span {
    font-size: 12px;
}

.icon-phone:before {
    content: '📞';
}

.icon-qq:before {
    content: '💬';
}

.icon-contact:before {
    content: '📋';
}

.result-item.single-bag {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.result-item.single-bag h3 {
    background-color: #3498db;
    color: white;
    padding: 15px;
    margin: 0;
    text-align: center;
    font-size: 1.3rem;
}

.result-item.single-bag .result-info {
    padding: 20px;
}

.result-item.single-bag .calculated-values {
    background-color: #e3f2fd;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.result-item.single-bag .calculated-values p {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.result-item.single-bag .calculated-values span {
    color: #e74c3c;
    font-weight: bold;
    font-size: 22px;
    padding: 0 5px;
}

/* 为结果区域添加左右布局样式 */
.result-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 10px;
}

.result-img {
    flex: 0 0 40%;
    max-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-img img {
    width: 100%;
    height: auto;
    display: block;
}

.result-info {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 22px;
}

.calculated-values {
    font-weight: bold;
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.calculated-values p {
    margin: 5px 0;
}

.calculated-values span {
    color: #e74c3c;
    font-size: 18px;
}

.result-desc {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.5;
}

.result-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .result-layout {
        flex-direction: column;
        gap: 15px;
    }
    
    .result-img {
        max-width: 100%;
    }
    
    .result-info {
        padding: 5px;
    }
}

/* 确保所有结果容器一致 */
#ziplock-results, 
#opp-results, 
#flat-results, 
#shrink-results {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* PE自封袋和OPP自粘袋专用样式 */
#ziplock-results .result-item, 
#opp-results .result-item {
    width: 1200px;
    max-width: 1200px;
}

#ziplock-results .result-layout, 
#opp-results .result-layout {
    padding: 30px 40px;
    gap: 60px;
}

#ziplock-results .result-img, 
#opp-results .result-img {
    flex: 0 0 35%;
    max-width: 350px;
}

/* 移动端适配 */
@media (max-width: 1100px) {
    .result-item,
    .result-item.single-bag,
    #ziplock-results .result-item, 
    #opp-results .result-item {
        flex: 0 0 90%;
        max-width: 90%;
        width: 90%;
    }
}

@media (max-width: 768px) {
    #ziplock-results .result-layout,
    #opp-results .result-layout,
    .result-layout {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    #ziplock-results .result-img,
    #opp-results .result-img,
    .result-img {
        max-width: 100%;
        width: 100%;
    }
}

/* 优化页脚样式 */
.social-icons {
    display: flex;
    margin-top: 15px;
    gap: 10px;
}

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

.social-icon:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

.social-icon i {
    font-size: 18px;
}

.qr-code-footer {
    margin-top: 15px;
    text-align: center;
    max-width: 100px;
}

.qr-code-footer img {
    width: 100%;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.qr-code-footer p {
    margin-top: 5px;
    font-size: 12px;
    color: #bdc3c7;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* 改进浮动联系样式 */
.floating-contact-new {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.floating-contact-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-contact-button:hover {
    transform: scale(1.1);
    background-color: #2980b9;
}

.floating-contact-button img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.floating-contact-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 280px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: none;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.floating-contact-panel.open {
    display: block;
}

.floating-contact-panel h3 {
    color: #3498db;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-method i {
    font-size: 18px;
    color: #3498db;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.contact-method a, 
.contact-method span {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.contact-method a:hover {
    color: #3498db;
    text-decoration: underline;
}

.contact-qrcode {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.contact-qrcode img {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 4px;
    border: 1px solid #eee;
}

.contact-qrcode p {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding-top: 15px;
        padding-bottom: 10px;
    }
    
    .footer-links {
        justify-content: center;
        margin-top: 10px;
        flex-wrap: wrap;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .qr-code-footer {
        margin: 15px auto 0;
    }
} 