/* ========== Intro Card ========== */
.card-intro {
    background: var(--bg-card-warm);
    border-radius: var(--radius-2xl);
    padding: 18px 20px;
    margin: 10px 0 24px;
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(255, 180, 160, 0.4);
    backdrop-filter: blur(2px);
}

.card-intro-title {
    font-size: var(--fs-heading);
    font-weight: bold;
    color: var(--text-accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-intro-title::before {
    content: "🎁";
    font-size: 24px;
}

.card-intro-line {
    font-size: var(--fs-body);
    line-height: 1.65;
    margin: var(--space-sm) 0;
    color: var(--text-primary);
}

.card-intro-line strong {
    color: var(--text-accent);
    font-weight: 700;
}

.badge-highlight {
    background: #ffeaa7;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 30px;
    font-weight: bold;
    color: #c0392b;
    font-size: 14px;
}

/* ========== Step Cards ========== */
.card-step {
    margin-bottom: var(--space-3xl);
    padding: 18px;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.step-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: 18px;
}

.step-number {
    width: 34px;
    height: 34px;
    background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
    color: var(--text-on-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: var(--fs-subheading);
    box-shadow: 0 4px 8px rgba(255, 64, 129, 0.3);
    flex-shrink: 0;
}

.step-header h3 {
    font-size: var(--fs-subheading);
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.step-instruction {
    line-height: 1.5;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.step-instructions p {
    margin-bottom: 4px;
}

/* ========== Step 1: Copy Comment ========== */
.step1-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.step1-keyword {
    display: inline-block;
    padding: 14px 24px;
    margin: var(--space-sm) 0;
    background: #fef2e6;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-accent-strong);
    transition: all 0.3s;
    box-shadow: var(--shadow-xs);
    width: 80%;
    max-width: 320px;
    text-align: center;
    user-select: none;
    word-break: break-all;
}

.step1-keyword:active {
    transform: scale(0.97);
    background: #ffe6d9;
}

/* ========== Step 2: Keywords ========== */
.step2-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin: 18px 0;
}

.step2-keyword {
    display: inline-block;
    padding: 10px 16px;
    background: #f8f0ea;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-round);
    cursor: pointer;
    font-weight: 600;
    color: #c0392b;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    flex: 1 1 calc(50% - 20px);
    min-width: 115px;
    max-width: 180px;
    text-align: center;
    font-size: 14px;
    user-select: none;
}

.step2-keyword:hover {
    background: #ffe0d4;
    border-color: #ff9a6e;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.step2-keyword:active {
    transform: scale(0.96);
}

/* ========== Important Notice ========== */
.notice-important {
    background: linear-gradient(135deg, #fff6f2 0%, #ffe9e2 100%);
    border: 2px dashed #ff8c6b;
    border-radius: var(--radius-lg);
    padding: 18px;
    margin: 20px 0;
    position: relative;
}

.notice-important::before {
    content: "❗重要提示";
    display: block;
    background: #ff6b4a;
    color: white;
    padding: 5px 18px;
    border-radius: var(--radius-round);
    font-size: var(--fs-small);
    font-weight: bold;
    position: absolute;
    top: -14px;
    left: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.notice-warning {
    color: #e84118;
    font-weight: bold;
    background-color: #fff4f0;
    border: 2px solid #ff8a6c;
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    margin: 15px 0;
    text-align: center;
    font-size: var(--fs-body);
    box-shadow: 0 4px 12px rgba(232, 65, 24, 0.15);
    animation: pulse-warning 2s infinite;
}

.notice-warning::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 18px;
}

@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(232, 65, 24, 0.3); }
    70% { box-shadow: 0 0 0 12px rgba(232, 65, 24, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 65, 24, 0); }
}

/* ========== Final Step ========== */
.final-step {
    padding: 20px;
    background: var(--bg-card-blue);
    border-radius: var(--radius-2xl);
    border-left: 5px solid #1798fc;
}

.final-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-weight: bold;
    color: #0a66b9;
    font-size: var(--fs-subheading);
}

/* ========== Preview Card ========== */
.card-preview {
    margin-bottom: 0;
    padding: 18px;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    text-align: center;
}

.preview-heading {
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
}

/* ========== Resource Link Cards (in chat) ========== */
.link-card-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1.5px solid #e8e0f0;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin: 10px 0;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    gap: var(--space-md);
    width: 100%;
    box-sizing: border-box;
}

.link-card-box:hover {
    border-color: #b39ddb;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.link-card-box.card-primary {
    border-color: var(--border-accent);
    background: var(--bg-card-pink);
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.25);
    border-width: 2px;
    position: relative;
}

.link-card-box.card-primary::before {
    content: "🔥 首选推荐";
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--color-accent);
    color: var(--text-on-primary);
    font-size: 11px;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: var(--radius-lg);
    letter-spacing: 0.5px;
}

.link-card-box.card-secondary {
    border-color: var(--border-blue);
    background: var(--bg-card-secondary);
}

.link-card-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
    min-width: 0;
}

.link-card-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.link-card-info {
    display: flex;
    flex-direction: column;
}

.link-card-title {
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
}

.link-card-desc {
    font-size: var(--fs-caption);
    color: var(--text-muted);
    margin-top: 2px;
}

.link-card-arrow {
    width: 28px;
    height: 28px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
    transition: all 0.2s;
}

.link-card-box:hover .link-card-arrow {
    background: var(--color-primary);
    color: var(--text-on-primary);
}

.link-card-box.card-secondary:hover .link-card-arrow {
    background: #1e90ff;
    color: var(--text-on-primary);
}

/* ========== Shared Text Styles ========== */
.text-accent {
    color: var(--text-accent);
}

.highlight {
    color: #ff4d6d;
    font-weight: bold;
}

.badge-inline {
    background: #ffe0d4;
    padding: 0 6px;
    border-radius: var(--radius-lg);
}
