/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(15, 23, 224, 0.15);
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid #e6e6e6;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #0f17e0;
}

h1 {
    color: #0f17e0;
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.subtitle::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0f17e0;
    border-radius: 3px;
}

.wechat-tip {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 25px;
    margin: 40px 0;
    border-left: 4px solid #0f17e0;
    box-shadow: 0 5px 15px rgba(15, 23, 224, 0.1);
    position: relative;
    overflow: hidden;
}

.qrcode-container {
    width: 100%;
    max-width: 200px;
    margin: 20px auto;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.qrcode-image {
    width: 100%;
    height: auto;
    max-width: 160px;
    border: 10px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.qrcode-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.instructions-section {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 25px;
    margin: 40px 0;
    border: 1px solid #e6e6e6;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.instructions-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #0f17e0;
}

.instructions-button {
    width: 100%;
    padding: 18px;
    background: #0f17e0;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 23, 224, 0.2);
    margin-bottom: 15px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.instructions-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 224, 0.3);
}

.section-title {
    color: #0f17e0;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #0f17e0;
    border-radius: 3px;
}

.wechat-text {
    font-weight: bold;
    color: #0f17e0;
    font-size: 1.1rem;
}

.highlight {
    color: #0f17e0;
    font-weight: bold;
}

.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px 0;
    gap: 25px;
    position: relative;
}

.features::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #0f17e0;
    border-radius: 2px;
}

.feature-item {
    flex: 1;
    min-width: 140px;
    padding: 20px 15px;
    margin: 5px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(15, 23, 224, 0.1);
    border-top: 3px solid #0f17e0;
    position: relative;
    overflow: hidden;
}

.feature-item h3 {
    color: #0f17e0;
    margin-bottom: 12px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer {
    margin-top: 40px;
    color: #718096;
    font-size: 1rem;
    padding-top: 25px;
    border-top: 1px solid #eee;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #0f17e0;
    border-radius: 3px;
}

.logo {
    width: 100px;
    height: 100px;
    background: #0f17e0;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(15, 23, 224, 0.3);
    overflow: hidden;
}

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

/* 通用按钮样式 */
.button {
    width: 100%;
    padding: 18px;
    background: #0f17e0;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 23, 224, 0.2);
    margin-bottom: 15px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 224, 0.3);
}

/* 通用返回按钮样式 */
.back-button {
    display: inline-block;
    padding: 10px 20px;
    background: #0f17e0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 23, 224, 0.3);
}

/* 通用模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.95);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    object-fit: contain;
    background: white;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 50px;
    right: 35px;
    color: #0f17e0;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #764ba2;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #0f17e0;
    padding: 10px 0;
    height: 150px;
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }
    
    .container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .features {
        gap: 20px;
        margin: 30px 0;
    }
    
    .feature-item h3 {
        font-size: 1.3rem;
    }
    
    .qrcode-container {
        max-width: 180px;
        padding: 12px;
    }
    
    .qrcode-image {
        max-width: 140px;
        border-width: 8px;
    }
    
    .instructions-section {
        padding: 20px 15px;
        margin: 30px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .instructions-button {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .footer {
        margin-top: 30px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    #caption {
        width: 95%;
        font-size: 1rem;
    }
    
    .close {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 25px 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .features {
        flex-direction: column;
        gap: 15px;
    }
    
    .qrcode-container {
        max-width: 160px;
        padding: 10px;
    }
    
    .qrcode-image {
        max-width: 120px;
        border-width: 6px;
    }
    
    .feature-item {
        min-width: auto;
    }
    
    .instructions-button {
        padding: 12px;
        font-size: 1rem;
    }
    
    #caption {
        font-size: 0.9rem;
        height: 100px;
    }
    
    .close {
        top: 15px;
        right: 15px;
        font-size: 24px;
    }
}

.company-info {
    margin-bottom: 20px;
    text-align: center;
}

.business-intro {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    color: #4a5568;
    font-size: 0.95rem;
    margin: 8px 0;
}

.beian {
    margin-top: 15px;
    font-size: 0.9rem;
}

.beian a {
    color: #0f17e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian a:hover {
    color: #0f17e0;
    text-decoration: underline;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .company-info {
        padding: 0 10px;
    }

    .business-intro {
        font-size: 0.85rem;
        padding: 0 5px;
    }

    .contact-info {
        font-size: 0.85rem;
    }

    .beian {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .business-intro {
        font-size: 0.8rem;
    }

    .contact-info {
        font-size: 0.8rem;
    }

    .beian {
        font-size: 0.75rem;
    }
}