/* XiuWeb License Manager Pro - 前端样式 */

.xiuweb-license-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.xiuweb-license-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.xiuweb-license-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 300;
}

.xiuweb-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.xiuweb-form-group {
    margin-bottom: 20px;
}

.xiuweb-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.xiuweb-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.xiuweb-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.xiuweb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 120px;
}

.xiuweb-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.xiuweb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.xiuweb-btn-block {
    width: 100%;
}

.xiuweb-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.xiuweb-alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.xiuweb-alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.xiuweb-alert-info {
    background: #cce7ff;
    border-color: #007bff;
    color: #004085;
}

.xiuweb-alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* 授权卡片 */
.xiuweb-license-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.xiuweb-license-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.xiuweb-license-card:hover {
    transform: translateY(-3px);
}

.xiuweb-license-key {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 0.9em;
    word-break: break-all;
}

.xiuweb-license-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
    font-size: 0.9em;
}

.xiuweb-license-meta-item {
    display: flex;
    flex-direction: column;
}

.xiuweb-license-meta-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.85em;
}

.xiuweb-license-meta-value {
    color: #2c3e50;
    font-weight: 500;
}

/* 加载状态 */
.xiuweb-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: xiuweb-spin 1s linear infinite;
}

@keyframes xiuweb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .xiuweb-license-container {
        padding: 10px;
    }
    
    .xiuweb-license-section {
        padding: 20px;
    }
    
    .xiuweb-form-row {
        grid-template-columns: 1fr;
    }
    
    .xiuweb-license-cards {
        grid-template-columns: 1fr;
    }
    
    .xiuweb-license-meta {
        grid-template-columns: 1fr;
    }
}

/* 销售页面样式 */
.xiuweb-pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.xiuweb-pricing-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.xiuweb-pricing-card.featured {
    border-color: #667eea;
    transform: scale(1.05);
}

.xiuweb-pricing-card.featured::before {
    content: '推荐';
    position: absolute;
    top: 15px;
    right: -30px;
    background: #667eea;
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8em;
    font-weight: 600;
}

.xiuweb-pricing-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.xiuweb-pricing-title {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    font-weight: 300;
}

.xiuweb-pricing-price {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0;
}

.xiuweb-pricing-period {
    font-size: 0.9em;
    opacity: 0.8;
}

.xiuweb-pricing-features {
    padding: 30px;
    list-style: none;
    margin: 0;
}

.xiuweb-pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.xiuweb-pricing-features li:last-child {
    border-bottom: none;
}

.xiuweb-pricing-features li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
}

.xiuweb-pricing-footer {
    padding: 0 30px 30px;
    text-align: center;
}