* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.main-content {
    width: 100%;
    max-width: 900px;
}

.intro-section {
    text-align: center;
    margin-bottom: 40px;
}

.main-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.intro-text {
    font-size: 16px;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-item {
    background: #fff;
    padding: 30px 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: #666;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.service-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.service-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    color: #999;
    transition: all 0.3s ease;
}

.service-item:hover .service-arrow {
    color: #333;
    transform: translateX(3px);
}

.contact-hint {
    text-align: center;
    padding: 20px;
}

.contact-hint p {
    font-size: 14px;
    color: #999;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 290px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(to right, #fafafa, #fff);
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.modal-close {
    background: #f5f5f5;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.qrcode-section {
    text-align: center;
    order: 1;
}

.qrcode-img {
    width: 250px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 8px;
    background: #fff;
}

.qrcode-label {
    font-size: 14px;
    color: #666;
}

.wechat-section {
    width: 100%;
    max-width: 280px;
    order: 2;
}

.wechat-section label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.input-wrapper {
    display: flex;
    gap: 6px;
}

#wechat-id {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background: #fff;
    font-weight: 400;
    transition: border-color 0.2s ease;
    min-width: 0;
}

#wechat-id:focus {
    outline: none;
    border-color: #333;
}

.copy-btn {
    padding: 8px 16px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #555;
}

.copy-btn:active {
    background: #222;
}

.copy-btn.copied {
    background: #2e7d32;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .service-item {
        padding: 25px 20px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .qrcode-img {
        width: 160px;
    }
}