/* 基础样式重置与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 标题样式 */
h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00b935;
    text-align: center;
}

/* 标签切换样式 */
.tab-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    flex: 1;
    background-color: transparent;
    border: none;
    padding: 14px 28px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    color: #00b935;
    background-color: rgba(0, 185, 53, 0.1);
    transform: translateY(-2px);
}

.tab-btn.active {
    background-color: #00b935;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 185, 53, 0.4);
    transform: translateY(-2px);
}

/* 标签按钮动画 */
.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before,
.tab-btn.active::before {
    left: 100%;
}

/* 标签内容样式 */
.tab-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 30px;
    min-height: 400px;
    margin-bottom: 30px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane.active {
    display: block;
}

/* 链接样式 */
a {
    text-decoration: none;
    color: #00b935;
    transition: color 0.3s ease;
    word-break: break-all;
}

a:hover {
    color: #2aae67;
    text-decoration: underline;
}
h1{
	color: #00b935;
}
/* 列表样式 */
ul {
    list-style-type: none;
    padding: 0;
}

li {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 12px;
    padding: 15px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
}

li .content {
    display: inline-block;
    max-width: calc(100% - 120px);
}

li .content span {
    display: inline-block;
    min-width: 120px;
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
    margin-right: 15px;
}

li .content a {
    display: inline-block;
    max-width: calc(100% - 135px);
    word-break: break-all;
}

li .button-group {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #fafafa;
}



/* 复制按钮样式 */
.copy-btn {
    background-color: #00b935;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background-color: #2aae67;
}

.copy-btn.copied {
    background-color: #27ae60;
}

/* 二维码按钮样式 */
.qr-btn {
    background-color: #9b59b6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 8px;
    white-space: nowrap;
    position: relative;
}

.qr-btn:hover {
    background-color: #8e44ad;
}

/* 二维码弹出框样式 */
.qr-popup {
    position: fixed;
    background: white;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
    text-align: center;
    width: 140px;
    border: 1px solid #e0e0e0;
}

.qr-popup::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-right: 10px solid white;
    border-bottom: 10px solid transparent;
    z-index: 9998;
}

.qr-popup::after {
    content: '';
    position: absolute;
    left: -11px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-right: 10px solid #e0e0e0;
    border-bottom: 10px solid transparent;
    z-index: 9997;
}

.qr-code {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.qr-product-label {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    word-break: break-all;
    max-width: 120px;
}

/* 二维码模态框样式 */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.qr-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 240px;
    margin: 0 auto;
}

.qr-modal-code {
    margin-bottom: 15px;
}

.qr-modal-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.qr-modal-close {
    padding: 8px 20px;
    background-color: #00b935;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.qr-modal-close:hover {
    background-color: #2aae67;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 8px;
}

.pagination button {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #00b935;
    cursor: pointer;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination button:hover {
    background-color: #00b935;
    color: white;
    border-color: #00b935;
}

.pagination button.active {
    background-color: #00b935;
    color: white;
    border-color: #00b935;
    font-weight: bold;
}

.copyright {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}
.copyright a{
	color:#7f8c8d;
	margin:0 5px!important;
}
.copyright a:hover{
	color:#00b935;
}

/* 响应式设计 */
@media (max-width: 768px) {
    li {
        padding: 12px 15px;
        position: relative;
    }
    
    li .content {
        display: block;
        max-width: 100%;
    }
    
    li .content span {
        min-width: auto;
        text-align: left;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    li .content a {
        display: block;
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    li .button-group {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        align-self: flex-end;
        margin-top: 10px;
    }
    
    .pagination button {
        padding: 6px 12px;
        font-size: 13px;
    }
}
