/* ============================================
   软件代理页面样式 - agent.css
   ============================================ */

/* 命名空间隔离 */
.agent-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.agent-page {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

/* 主要内容 */
.agent-page .main-content {
    padding: 30px 0;
}

.agent-page .page-title {
    text-align: center;
    margin-bottom: 40px;
}

.agent-page .page-title h2 {
    font-size: 36px;
    color: #1e40af;
    margin-bottom: 10px;
    font-weight: 800;
}

.agent-page .page-title p {
    font-size: 16px;
    color: #64748b;
}

/* 代理优势卡片 - 3个一行固定 */
.agent-page .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.agent-page .feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 35px 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.agent-page .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.agent-page .feature-card:hover::before {
    transform: scaleX(1);
}

.agent-page .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: #3b82f6;
}

.agent-page .feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.agent-page .feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.agent-page .feature-card h3 {
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 12px;
}

.agent-page .feature-card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 14px;
}

.agent-page .price-tag {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.agent-page .feature-card:hover .price-tag {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 软件展示区域 */
.agent-page .showcase-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.agent-page .section-header {
    text-align: center;
    margin-bottom: 30px;
}

.agent-page .section-header h3 {
    font-size: 28px;
    color: #1e40af;
    margin-bottom: 8px;
}

.agent-page .section-header p {
    color: #64748b;
}

.agent-page .showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.agent-page .showcase-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.agent-page .showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #3b82f6;
}

.agent-page .showcase-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.agent-page .showcase-item:hover img {
    transform: scale(1.02);
}

.agent-page .showcase-item p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.agent-page .showcase-tip {
    margin-top: 20px;
    padding: 15px;
    background: #eff6ff;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.agent-page .showcase-tip p {
    color: #1e40af;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* 定制服务 */
.agent-page .custom-service {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
    border: 1px solid #dbeafe;
    position: relative;
    overflow: hidden;
}

.agent-page .custom-service::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, transparent 70%);
}

.agent-page .custom-service h3 {
    font-size: 26px;
    color: #1e40af;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.agent-page .custom-service .highlight-text {
    color: #3b82f6;
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
    position: relative;
    z-index: 1;
}

.agent-page .custom-service p {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.agent-page .custom-button {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.agent-page .custom-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* CTA区域 */
.agent-page .cta-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.agent-page .cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
}

.agent-page .cta-section h3 {
    font-size: 28px;
    color: #1e40af;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.agent-page .cta-section p {
    color: #64748b;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.agent-page .cta-price {
    font-size: 24px;
    color: #3b82f6;
    font-weight: bold;
    margin: 20px 0;
    position: relative;
    z-index: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.agent-page .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.agent-page .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.agent-page .contact-info {
    margin-top: 25px;
    color: #64748b;
}

.agent-page .contact-info a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.agent-page .contact-info a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* 联系我们引导框 */
.agent-page .contact-box {
    margin-top: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: inline-block;
    min-width: 280px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s, box-shadow 0.3s;
}

.agent-page .contact-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.agent-page .contact-box-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.agent-page .contact-box-text {
    text-align: left;
}

.agent-page .contact-box-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.agent-page .contact-box-desc {
    font-size: 13px;
    color: #64748b;
}

.agent-page .contact-box-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.agent-page .contact-box-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 图片灯箱样式 */
.agent-page .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.agent-page .lightbox.active {
    display: flex;
    opacity: 1;
}

.agent-page .lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform 0.3s;
}

.agent-page .lightbox.active img {
    transform: scale(1);
}

.agent-page .lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.3s;
}

.agent-page .lightbox-close:hover {
    transform: rotate(90deg);
}

/* 响应式 */
@media (max-width: 992px) {
    .agent-page .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .agent-page .page-title h2 {
        font-size: 26px;
    }
    
    .agent-page .features-grid {
        grid-template-columns: 1fr;
    }
    
    .agent-page .custom-service,
    .agent-page .cta-section {
        padding: 30px 20px;
    }
    
    .agent-page .showcase-section {
        padding: 25px;
    }
    
    .agent-page .contact-box {
        width: 100%;
    }
    
    .agent-page .contact-box-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .agent-page .contact-box-text {
        text-align: center;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agent-page .feature-card,
.agent-page .showcase-item,
.agent-page .custom-service,
.agent-page .cta-section {
    animation: fadeInUp 0.6s ease-out;
}

/* 按钮波纹效果 */
.agent-page .ripple {
    position: absolute;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}