/* 移动端适配样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #5a9575 0%, #5a9575 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.back-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    color: #5a9575;
    cursor: pointer;
}

/* Logo样式 */
.logo-container {
    text-align: center;
    padding: 20px 0 0px;
}

.logo {
    width: 300px;
    height: auto;
    border-radius: 10px;
    }

.slogan {
    text-align: center;
    font-size: 16px;
    color: #fff;
    margin: 20px 0 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 表单样式 */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    margin: 20px 15px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.layui-form-item {
    margin-bottom: 10px;
}

.layui-input {
    height: 45px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    padding: 0 15px;
    font-size: 16px;
}

.layui-btn {
    width: 100%;
    height: 45px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}

.submit-btn {
    background: linear-gradient(45deg, #5a9575, #5a9575);
    border: none;
    color: white;
    margin-top: 10px;
}

/* 结果显示 */
.result-container {
    background: rgba(255, 255, 255, 0.95);
    margin: 20px 10px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: none;
}

.result-title {
    font-size: 18px;
    font-weight: bold;
    color: #5a9575;
    margin-bottom: 10px;
}

.result-price {
    font-size: 24px;
    color: #e74c3c;
    font-weight: bold;
}

.bottom-ba {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
}

.bottom-ba a{
    color: #fff;
}

/* 底部菜单 */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.menu-item {
    flex: 1;
    text-align: center;
    padding: 12px 5px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    border-right: 1px solid #eee;
}

.menu-item:last-child {
    border-right: none;
}

.menu-item.active {
    color: #5a9575;
    font-weight: bold;
}

/* 内容区域 */
.content {
    padding-bottom: 55px;
    min-height: calc(100vh - 70px);
}

/* 信息卡片 */
.info-card {
    background: rgba(255, 255, 255, 0.95);
    margin: 20px 15px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.info-label {
    font-size: 16px;
    color: #333;
}

.info-value {
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
}

.contact-btn {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 8px 30px;
    border-radius: 6px;
    font-size: 14px;
}

/* 交易记录 */
.record-item {
    background: #f8f9fa;
    padding: 15px 6px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #5a9575;
}

.record-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.record-prices {
    display: flex;
    justify-content: space-between;
}

.record-price {
    font-size: 14px;
    font-weight: bold;
}

.original-price {
    color: #666;
    text-decoration: line-through;
}

.discount-price {
    color: #5A9575;
}

/* 管理页面样式 */
.admin-item {
    background: #f8f9fa;
    padding: 10px 0px 0px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #f2f2f2;
}

.admin-item2 {
    background: #f8f9fa;
    padding: 0px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #f2f2f2;
}

.shop-info {
    flex: 1;
}

.shop-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.shop-phone {
    font-size: 14px;
    margin-bottom: 5px;
    color: #4b4949;
}

.shop-amount {
    font-size: 14px;
    color: #e74c3c;
    font-weight: bold;
}

.settle-btn {
    width: 60%;
    background: linear-gradient(45deg, #579070, #579070);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
}

.page-btn {
    width: 100%;
    background: linear-gradient(45deg, #5A9575, #5A9575);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .form-container {
        margin: 15px 10px;
        padding: 20px;
    }
    
    .logo {
        width: 100px;
    }
    
    .slogan {
        font-size: 16px;
    }
}
/* 备案图标样式 - 使用相对单位 */
.beian-icon {
    /* 强制尺寸控制 */
    width: 22px;
    height: 22px;
    max-width: 22px !important;
    min-width: 22px !important;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    
    /* 防止缩放 */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    transform: scale(1);
}

/* 移动端统一控制 */
@media (max-width: 768px) {
    .beian-icon {
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
        min-width: 20px !important;
    }
}

/* 微信特别修复 */
@media (max-width: 768px) {
    .beian-icon {
        transform: scale(1.0) !important; /* 强制缩放 */
        transform-origin: left center;
    }
}
/* 专门修复留言按钮宽度 - 添加在CSS文件末尾 */
.shop-name .layui-btn {
    width: auto !important;
    min-width: 60px;
    max-width: 80px;
    height: 28px !important;
    line-height: 1;
    padding: 0 8px;
    font-size: 12px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .shop-name .layui-btn {
        min-width: 50px;
        max-width: 70px;
        height: 24px !important;
        font-size: 11px;
        padding: 0 6px;
    }
}
/* 商家名称区域Flex布局 - 让按钮靠右 */
.shop-name {
    display: flex;                /* 使用Flex布局 */
    align-items: center;         /* 垂直居中 */
    justify-content: space-between; /* 两端对齐 */
    width: 100%;                 /* 占满宽度 */
    margin-bottom: 5px;         /* 底部间距 */
}

/* 商家名称链接样式 */
.shop-name a {
    flex: 0 0 auto;               /* 不伸缩，不收缩，自动宽度 */
    white-space: nowrap;          /* 不换行 */
    overflow: hidden;             /* 溢出隐藏 */
    text-overflow: ellipsis;      /* 超出显示省略号 */
    max-width: 70%;              /* 最大宽度限制 */
    color: #5a9575;              /* 链接颜色 */
    text-decoration: underline;   /* 下划线 */
}

/* 占位元素 - 占据剩余空间 */
.shop-name span[style*="flex: 1"] {
    flex: 1;                     /* 占据所有剩余空间 */
    min-width: 10px;             /* 最小宽度 */
}

/* 留言按钮样式 */
.shop-name .layui-btn {
    flex: 0 0 auto;               /* 不伸缩，不收缩，自动宽度 */
    width: auto !important;       /* 自适应宽度 */
    min-width: 60px !important;  /* 最小宽度 */
    max-width: 80px !important;  /* 最大宽度 */
    height: 28px !important;     /* 固定高度 */
    line-height: 28px !important;/* 行高等于高度 */
    padding: 0 8px !important;   /* 内边距 */
    font-size: 12px !important;  /* 字体大小 */
    margin-left: 8px !important;  /* 左边距 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .shop-name a {
        max-width: 60%;          /* 移动端名称更窄 */
    }
    
    .shop-name .layui-btn {
        min-width: 50px !important;
        max-width: 70px !important;
        height: 24px !important;
        line-height: 24px !important;
        font-size: 11px !important;
    }
}