* {
    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-color: #f5f5f5;
    min-height: 100vh;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: transparent;
    min-height: 100vh;
    position: relative;
}

/* 背景图 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('images/background2.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* 顶部区域 */
.top-header {
    position: relative;
    z-index: 1;
    padding: 20px 16px 10px;
    color: white;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-logo {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: scaleIn 0.5s ease-out 0.2s both;
    overflow: hidden;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.company-logo svg {
    width: 35px;
    height: 35px;
}

.company-text h1 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInLeft 0.6s ease-out 0.3s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.company-subtitle {
    font-size: 10px;
    opacity: 0.9;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInLeft 0.6s ease-out 0.4s both;
}

/* 主要内容区域 */
.main-content {
    position: relative;
    z-index: 1;
    padding: 16px;
}

/* 个人信息卡片 */
.info-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    animation: slideUp 0.6s ease-out 0.5s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
}

.info-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.info-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: #999;
}

.info-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0;
}

.contact-expand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 0;
    margin-top: 8px;
    border-top: 1px solid #f0f0f0;
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

/* 操作按钮区域 */
.action-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 12px;
    animation: slideUp 0.6s ease-out 0.7s both;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    animation: scaleIn 0.5s ease-out 0.8s both;
}

.action-btn.secondary {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    animation: scaleIn 0.5s ease-out 0.9s both;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}

/* 公司简介区域 */
.content-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    animation: slideUp 0.6s ease-out 1s both;
}

.section-header {
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    animation: fadeInLeft 0.5s ease-out 1.1s both;
}

.section-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
    animation: fadeInLeft 0.5s ease-out 1.2s both;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: scaleIn 0.5s ease-out both;
}

.product-card:nth-child(1) {
    animation-delay: 1.3s;
}

.product-card:nth-child(2) {
    animation-delay: 1.4s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    font-size: 12px;
    color: #666;
    padding: 8px;
    text-align: center;
    line-height: 1.4;
    background: white;
}

.arrow-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0.6;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: white;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 12px;
    text-decoration: none;
    color: #999;
    transition: all 0.3s ease;
    flex: 1;
}

.nav-item.active {
    color: #1890ff;
}

.nav-item:hover {
    color: #1890ff;
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-size: 11px;
}

/* 提示框样式 */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.qr-code-container {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-tip {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }
    
    .company-text h1 {
        font-size: 18px;
    }
    
    .info-label {
        font-size: 14px;
    }
    
    .info-value {
        font-size: 13px;
    }
    
    .action-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .product-grid {
        gap: 8px;
    }
}
