* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

li {
    list-style: none;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 640px;
    margin: 0 auto;
    color: #333;
}

.header-left {
    width: 40px;
}

.header-center {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.header-right {
    width: 40px;
    text-align: right;       
}

/* 内容区域 */
.content {
    margin: 50px auto 50px;
    padding: 15px;
    max-width: 640px;
}

/* 二维码部分 */
.qrcode-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.qrcode-section:hover {
    transform: translateY(-5px);
}

.section-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ff4d4f;
    border-radius: 3px;
}

.qrcode-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    overflow: hidden;
}

.qrcode-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,255,255,0.8), rgba(0,0,0,0));
    z-index: 2;
    animation: scanAnimation 2s ease-in-out infinite;
}

@keyframes scanAnimation {
    0% {
        top: 0;
        opacity: 0.8;
    }
    100% {
        top: 100%;
        opacity: 0;
    }    
}

@keyframes borderAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.qrcode-img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.qrcode-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.qrcode-tip {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    animation: emphasisAnimation 1.5s ease-in-out infinite;
    font-weight: bold;
    text-shadow: 0 0 1px rgba(0,0,0,0.2);
}

@keyframes emphasisAnimation {
    0% {
        transform: scale(1);
        color: #666;
    }
    50% {
        transform: scale(1.1);
        color: #ff4d4f;
    }
    100% {
        transform: scale(1);
        color: #666;
    }
}

/* 联系方式部分 */
.contact-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.contact-section:hover {
    transform: translateY(-5px);
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-label {
    width: 80px;
    font-size: 15px;
    color: #666;
}

.contact-value {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

.action-btn {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    background: #f0f2f5;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.action-btn i {
    margin-right: 5px;
}

.call-btn {
    background: #4cd964;
    color: white;
}

.call-btn:hover {
    background: #3cc556;
    transform: translateY(-2px);
}

.copy-btn {
    background: #ff4d4f;
    color: white;
}

.copy-btn:hover {
    background: #ff7875;
    transform: translateY(-2px);
}

.wechat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 0;
    background: #07c160;
    color: white;
    border-radius: 25px;
    font-size: 16px;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(7, 193, 96, 0.2);
}

.wechat-btn i {
    margin-right: 8px;
    font-size: 20px;
}

.wechat-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(7, 193, 96, 0.4);
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    z-index: 100;
    max-width: 640px;
    margin: 0 auto;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 20%;
}

.bottom-nav .nav-item .nav-icon {
    font-size: 20px;
    color: #666;
    margin-bottom: 4px;
    display: block;
    text-align: center;
    width: 100%;
    max-width: 20px;
    max-height: 20px;
    margin: 0 auto 4px;
}

/* 确保所有SVG图标在非激活状态下颜色一致 */
.bottom-nav .nav-item svg path {
    fill: #666;
}

/* 为img类型的SVG图标设置颜色 */
.bottom-nav .nav-item .nav-icon {
    color: #666;
    filter: invert(42%) sepia(0%) saturate(0%) hue-rotate(143deg) brightness(95%) contrast(92%);
}

.bottom-nav .nav-item span {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.bottom-nav .nav-item.active .nav-icon,
.bottom-nav .nav-item.active span {
    color: #ff4d4f;
}

.bottom-nav .nav-item.active .nav-icon {
    color: #ff4d4f;
    filter: invert(39%) sepia(79%) saturate(2449%) hue-rotate(328deg) brightness(100%) contrast(98%);
}

.bottom-nav .nav-item.active svg path {
    fill: #ff4d4f;
    /* 确保激活状态下SVG图标颜色覆盖默认颜色 */
    transition: fill 0.2s ease;
}

/* 响应式调整 */
@media (max-width: 360px) {
    .qrcode-img {
        width: 180px;
        height: 180px;
    }
    
    .contact-label {
        width: 70px;
        font-size: 14px;
    }
    
    .contact-value {
        font-size: 15px;
    }
    
    .action-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}