:root {
    --primary-color: #10b981; /* 主绿色 */
    --primary-light: #d1fae5; /* 浅绿色 */
    --forbidden-color: #b91048;
    --forbidden-light: #fad1e6;
    --bg-color: #f8fdfa;      /* 极浅的绿白背景 */
    --text-main: #1f2937;     /* 主文字 */
    --text-sub: #6b7280;      /* 次要文字 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: var(--primary-color);
    font-size: 2rem;
            margin-bottom: 10px;
            text-align: center;
        }

        p.subtitle {
            color: var(--text-sub);
            margin-bottom: 40px;
            text-align: center;
        }

        .grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 24px;
            width: 100%;
            max-width: 1000px;
        }

        .card {
            background: #ffffff;
            border: 1px solid var(--primary-light);
            border-radius: 16px; /* 圆角方框 */
            padding: 24px;
            box-shadow: 0 4px 6px rgba(16, 185, 129, 0.05);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
        }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 15px rgba(16, 185, 129, 0.15);
            border-color: var(--primary-color);
        }

        .card-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--primary-light);
        }

        .card-info {
            font-size: 0.9rem;
            color: var(--text-sub);
            line-height: 1.6;
        }

        .card-info span {
            display: block;
        }
        
        .port-badge {
            display: inline-block;
            background-color: var(--primary-light);
            color: var(--primary-color);
            padding: 2px 8px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.85rem;
            margin-top: 4px;
        }

        /* ===== 未部署标签 =====
           用法：给 <a> 加上 class="not-deployed" 即可
           例如：<a href="/chat/" class="card not-deployed">
        */
        .card.not-deployed {
            background: #f3f4f6;
            border-color: #e5e7eb;
            cursor: not-allowed;
        }

        .card.not-deployed .card-title {
            color: #9ca3af;
            border-bottom-color: #e5e7eb;
        }

        /* 标题后追加 “（未部署）” */
        .card.not-deployed .card-title::after {
            content: "（未部署）";
            font-size: 0.8rem;
            font-weight: 500;
            color: #9ca3af;
            margin-left: 4px;
        }

        .card.not-deployed .card-info {
            color: #9ca3af;
        }

        .card.not-deployed .port-badge {
            background-color: #e5e7eb;
            color: #9ca3af;
}