/* Main styles for the AI Workflow Migration Platform */

:root {
    --primary-color: #4355f9;
    --secondary-color: #6c5ce7;
    --accent-color: #a29bfe;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --light-gray: #e9ecef;
    --dark-gray: #495057;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 8px;
    font-weight: bold;
    font-size: 24px;
}

.navbar-nav {
    gap: 10px;
}

.nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(67, 85, 249, 0.1);
}

.nav-link i {
    margin-right: 5px;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 500;
}

.btn-login {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-login:hover {
    background-color: rgba(67, 85, 249, 0.1);
}

.btn-register {
    background-color: var(--primary-color);
    color: white;
}

.btn-register:hover {
    background-color: var(--secondary-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--dark-gray);
    font-weight: 500;
}

.user-profile i {
    font-size: 20px;
}

/* Content styles */
.content {
    padding: 0;
    min-height: calc(100vh - 150px);
}

/* Hero section styles */
.hero-section {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/particles.png');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.badge-container {
    margin-bottom: 20px;
}

.upgrade-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.stat-boxes {
    display: flex;
    margin-bottom: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-right: 20px;
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

.hero-image-container {
    position: relative;
    padding: 20px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

/* Tech section styles */
.tech-section {
    background-color: #ffffff;
    padding: 80px 0;
    position: relative;
}

.tech-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.bg-primary-light {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.bg-success-light {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.bg-info-light {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.bg-danger-light {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.tech-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.tech-card p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
}

.btn-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Card styles */
.card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card-text {
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.vip-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--warning-color);
    color: #000;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Agent & Workflow list styles */
.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.resource-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: white;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.resource-card .card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.resource-card .card-body {
    padding: 20px;
}

.resource-card .card-title {
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-card .card-text {
    color: var(--dark-gray);
    font-size: 14px;
    height: 40px;
    overflow: hidden;
}

.resource-card .card-footer {
    padding: 15px 20px;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.resource-card .btn-migration {
    width: 100%;
    text-align: center;
    padding: 8px 0;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-weight: 500;
}

.resource-card .btn-migration:hover {
    background-color: var(--secondary-color);
}

.resource-card .author {
    font-size: 12px;
    color: var(--dark-gray);
    margin-top: 5px;
}

/* Task list styles */
.task-table {
    width: 100%;
    border-collapse: collapse;
}

.task-table th, 
.task-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.task-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.task-table tr:hover {
    background-color: rgba(67, 85, 249, 0.05);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.status-pending {
    background-color: #ffeeba;
    color: #856404;
}

.status-processing {
    background-color: #b8daff;
    color: #004085;
}

.status-completed {
    background-color: #c3e6cb;
    color: #155724;
}

.status-failed {
    background-color: #f5c6cb;
    color: #721c24;
}

/* Invitation page styles */
.invite-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stats-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stats-card-title {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.stats-card-title i {
    margin-right: 5px;
    color: var(--primary-color);
}

.stats-card-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stats-card-sub {
    font-size: 12px;
    color: var(--dark-gray);
    margin-top: 5px;
}

.invite-link-box {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.invite-link-box h3 {
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.invite-link-box h3 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.invite-link-input {
    display: flex;
}

.invite-link-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    outline: none;
}

.invite-link-input button {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.commission-rules {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.commission-rules h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.commission-rule {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.commission-rule:last-child {
    border-bottom: none;
}

.commission-level {
    display: flex;
    align-items: center;
}

.referral-tables {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.referral-tables h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.table-responsive {
    overflow-x: auto;
}

/* User center styles */
.user-header {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 30px;
    color: var(--primary-color);
}

.user-info h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.user-info p {
    color: var(--dark-gray);
    margin-bottom: 0;
}

.user-status {
    margin-left: auto;
    text-align: right;
}

.user-status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    background-color: var(--accent-color);
    color: white;
    font-weight: 500;
    margin-bottom: 5px;
}

.user-expiry {
    font-size: 14px;
    color: var(--dark-gray);
}

.membership-section {
    margin: 30px 0;
}

.membership-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.membership-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.membership-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.membership-card:hover {
    transform: translateY(-5px);
}

.membership-card-header {
    position: relative;
    padding: 15px;
    background: linear-gradient(135deg, #4355f9 0%, #5f69fd 100%);
    color: white;
    text-align: center;
}

.price {
    font-size: 2rem;
    font-weight: bold;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1rem;
}

.tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 0 0 0 10px;
}

.tag-promo {
    background-color: #ff9800;
}

.tag-value {
    background-color: #4caf50;
}

.tag-best {
    background-color: #f44336;
}

.membership-card-body {
    padding: 15px;
}

.membership-card-body h4 {
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.membership-benefit {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
}

.membership-benefit i {
    margin-right: 10px;
    color: var(--primary-color);
}

.membership-benefit.highlight {
    background-color: rgba(67, 85, 249, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

.membership-benefit.highlight i {
    color: #f44336;
}

.membership-card-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.btn-membership {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-membership:hover {
    background-color: var(--primary-color-dark);
    color: white;
}

.btn-membership.disabled {
    background-color: #ddd;
    color: #666;
    cursor: not-allowed;
}

/* Card key redemption form */
.redeem-card-form {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.redeem-card-form h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.redeem-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.redeem-input-group input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    outline: none;
}

.redeem-input-group button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.redeem-input-group button:hover {
    background-color: var(--secondary-color);
}

.card-tip {
    font-size: 0.9rem;
    color: #666;
}

/* Workspace section */
.workspace-section {
    margin: 30px 0;
}

.workspace-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-add-workspace {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-workspace:hover {
    background-color: var(--primary-color-dark);
}

.workspace-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.workspace-card {
    position: relative;
    width: 300px;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.workspace-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.workspace-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.workspace-icon i {
    font-size: 24px;
}

.workspace-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.workspace-card p {
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 16px;
}

.workspace-status {
    margin-top: auto;
}

.workspace-status .badge {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.pending-status {
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tech-adding {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 152, 0, 0.1);
    color: #FF9800;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
}

.tech-dot {
    width: 8px;
    height: 8px;
    background-color: #FF9800;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.joining-message {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.status-info {
    color: #666;
    font-size: 13px;
}

.status-date {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.btn-delete {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: none;
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background-color: var(--danger-color);
    color: white;
}

/* 已加入标志 */
.joined-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.joined-badge .dot {
    width: 6px;
    height: 6px;
    background-color: var(--success-color);
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

/* 按钮样式 */
.workspace-card .btn-primary.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 5px;
    margin-top: 5px;
    width: 100%;
    text-align: center;
}

/* Footer styles */
.footer {
    background-color: #0b1120;
    color: white;
    padding: 60px 0;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #4e73df;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Auth pages styles */
.auth-container {
    max-width: 500px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-header p {
    color: #6c757d;
}

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

.auth-form label {
    font-weight: 500;
    margin-bottom: 8px;
}

.auth-form .form-control {
    padding: 12px 15px;
    border-radius: 5px;
}

.auth-form .btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: #6c757d;
}

.auth-footer a {
    color: #4e73df;
    text-decoration: none;
    font-weight: 600;
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stat-boxes {
        flex-wrap: wrap;
    }
    
    .stat-box {
        margin-bottom: 15px;
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-box {
        padding: 15px;
        margin-right: 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Animation effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animated {
    animation: fadeIn 1s ease-out;
}

/* Button hover effects */
.btn {
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Card styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 30px;
}

/* Task list styles */
.task-list {
    list-style: none;
    padding: 0;
}

.task-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.task-details h4 {
    margin-bottom: 5px;
    font-weight: 600;
}

.task-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
}

/* Workflow card styles */
.workflow-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.workflow-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.workflow-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.workflow-card-body {
    padding: 20px;
}

.workflow-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.workflow-card-description {
    color: #6c757d;
    margin-bottom: 15px;
    height: 65px;
    overflow: hidden;
}

.workflow-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.workflow-card-stats {
    display: flex;
    gap: 15px;
}

.workflow-stat {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
}

.workflow-stat i {
    margin-right: 5px;
}

.workflow-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background-color: rgba(78, 115, 223, 0.9);
    color: white;
}

/* 页面头部样式 */
.page-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* 内容区域样式 */
.content-section {
    padding: 40px 0 80px;
}

/* 搜索面板样式 */
.search-panel {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-form {
    display: flex;
    justify-content: center;
}

.search-form .input-group {
    width: 100%;
    max-width: 600px;
}

.search-form .form-control {
    border-radius: 5px 0 0 5px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
}

.search-form .btn {
    border-radius: 0 5px 5px 0;
    padding: 12px 20px;
}

/* 分页样式更新 */
.pagination {
    margin-top: 30px;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    margin: 0 3px;
    border-radius: 5px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-link:hover {
    background-color: rgba(67, 85, 249, 0.1);
    border-color: var(--primary-color);
}

/* 登录和注册页面样式 */
.content-section .card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    padding: 12px 16px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(67, 85, 249, 0.25);
    background-color: #fff;
}

.btn-primary {
    padding: 12px 24px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(67, 85, 249, 0.3);
}

.alert {
    border-radius: 5px;
    padding: 15px;
}

/* 登录/注册页面的链接 */
.text-decoration-none {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.text-decoration-none:hover {
    color: var(--primary-color-dark);
    text-decoration: underline !important;
}

/* 全屏布局样式 */
.full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

/* 导航栏样式 */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
    color: #4e73df;
}

.navbar-toggler {
    border: none;
    outline: none;
}

/* 功能特性区域样式 */
.features-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.tech-title-highlight {
    color: #4355f9;
}

.section-description {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 30px;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    background: #e8eeff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    color: #4e73df;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: #6c757d;
    margin-bottom: 0;
}

/* 平台区域样式 */
.platform-section {
    padding: 80px 0;
}

.platform-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.platform-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.platform-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.platform-logo img {
    height: 60px;
    width: auto;
}

/* 全局阴影和动画效果 */
.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* 明显、有趣的滚动到顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #4e73df;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #2e59d9;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 优化表单样式 */
.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.input-group {
    margin-bottom: 20px;
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

/* 自定义复选框和单选按钮 */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #4e73df;
    border-color: #4e73df;
}

/* 提示框和警告消息样式 */
.alert {
    border-radius: 5px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.alert-primary {
    background-color: #e8eeff;
    color: #2952a3;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

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

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 操作按钮样式 */
.action-buttons {
    margin-top: 10px;
}

@media (min-width: 768px) {
    .action-buttons {
        margin-top: 0;
    }
}

.action-buttons .btn {
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* 上架智能体模态框样式 */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 20px 25px 0;
    border-bottom: none;
}

.modal-body {
    padding: 20px 25px;
}

.step-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.step-container:before {
    content: '';
    position: absolute;
    left: 18px;
    top: 35px;
    bottom: 35px;
    width: 2px;
    background-color: #e9ecef;
    z-index: 0;
}

.step {
    display: flex;
    position: relative;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #4e73df;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    z-index: 1;
    border: 2px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.step.active .step-number {
    background-color: #28a745;
}

.step-content {
    flex: 1;
    text-align: left;
}

.step-content h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.step-content p {
    color: #6c757d;
    margin-bottom: 10px;
}

.qr-code-container {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin: 15px 0;
}

.qr-code {
    max-width: 180px;
    height: auto;
}

/* 完全重新设计的智能体卡片样式 */
.agent-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.agent-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: none;
    height: auto;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.agent-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vip-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
    background-color: #FFCC00;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: none;
    z-index: 2;
}

.agent-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-color: #4CAF50;
    margin: 15px 0 0 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.agent-content {
    padding: 5px 15px 12px;
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-size: 16px;
    font-weight: 600;
    margin-top: 2px;
    margin-bottom: 3px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.agent-author {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.agent-action {
    padding: 0 15px 0px;
    margin-top: auto;
}

.action-button {
    display: flex;
    width: 100%;
    padding: 7px 0;
    justify-content: center;
    align-items: center;
    background-color: #F0E8FF;
    color: #9B5AFF;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-button:hover {
    background-color: #9B5AFF;
    color: white;
}

.action-button.upgrade {
    background-color: #9B5AFF;
    color: white;
}

.action-button.upgrade:hover {
    background-color: #8647E6;
}

/* 搜索相关样式 */
.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 10px 36px 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    background-color: #f8f9fa;
    outline: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.search-input:focus {
    border-color: #4355f9;
    box-shadow: 0 0 0 3px rgba(67, 85, 249, 0.2);
    background-color: white;
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6c757d;
    transition: color 0.3s ease;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: #4355f9;
}

@media (max-width: 767px) {
    .agent-cards {
        grid-template-columns: 1fr;
    }
    
    .search-wrapper {
        width: 100%;
        margin-bottom: 10px;
        max-width: 100%;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .d-flex .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* 隐藏右上角的加号按钮 */
.fixed-add-btn {
    display: none !important;
}

/* 智能体选择按钮样式 */
.select-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.select-btn.selected {
    background-color: #9B5AFF;
    border-color: #9B5AFF;
}

.select-btn.selected::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
}

/* 未找到Coze空间模态框 */
.no-workspace-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.no-workspace-modal.show {
    opacity: 1;
    visibility: visible;
}

.no-workspace-content {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
}

.workspace-icon {
    width: 60px;
    height: 60px;
    background-color: #FFF5F5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.workspace-icon i {
    font-size: 24px;
    color: #FF5353;
}

.workspace-alert-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.workspace-alert-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.workspace-alert-btn {
    background-color: #9B5AFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.workspace-alert-btn:hover {
    background-color: #8345E6;
}

/* 迁移进度条 */
.migration-progress {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 400px;
    max-width: 90%;
    z-index: 900;
    display: none;
}

.migration-counter {
    display: flex;
    flex-direction: column;
}

.migration-count {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.migration-text {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.migration-actions {
    display: flex;
    gap: 10px;
}

.migration-action-btn {
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background-color: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background-color: #e5e5e5;
} 