/* ============================================
   活动规则页 - 专属样式
   设计理念：80%转化页 + 20%法务页
   ============================================ */

/* 规则摘要卡 - P0核心 */
.rules-hero-card {
    width: 100%;
    background: linear-gradient(135deg, #F7F8FA 0%, #EEF2F7 100%);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 20px;
    border: 1px solid #E9EDF3;
}

.rules-hero-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rules-hero-title .icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #2E5A8B 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.rules-hero-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.rules-hero-title .subtitle {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 400;
    margin-left: 12px;
}

/* 4个关键信息块 - 2×2布局 */
.key-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.key-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #E9EDF3;
    transition: all 0.2s;
}

.key-info-item:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.08);
}

.key-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.key-info-icon.blue { background: var(--brand-blue-light); }
.key-info-icon.red { background: var(--action-red-light); }
.key-info-icon.gold { background: var(--reward-gold-light); }
.key-info-icon.green { background: #E8F8EC; }

.key-info-content {
    flex: 1;
}

.key-info-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.key-info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
}

.key-info-value .highlight-red {
    color: var(--action-red);
    font-weight: 700;
}

.key-info-value .highlight-blue {
    color: var(--brand-blue);
    font-weight: 700;
}

/* 步骤条 */
.steps-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 0;
    border-top: 1px dashed #DFE3E8;
}

.step-node {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-node-num {
    width: 24px;
    height: 24px;
    background: var(--brand-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.step-node-text {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

.step-arrow {
    color: var(--text-light);
    font-size: 16px;
}

/* 折叠面板 */
.accordion {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E9EDF3;
    background: white;
}

.accordion-item {
    border-bottom: 1px solid #E9EDF3;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
    user-select: none;
}

.accordion-header:hover {
    background: var(--bg-hover);
}

.accordion-header.active {
    background: var(--bg-section);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.accordion-title .badge {
    font-size: 10px;
    padding: 2px 6px;
    background: var(--action-red);
    color: white;
    border-radius: 4px;
    font-weight: 500;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: transform 0.3s;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.show {
    max-height: 500px;
}

.accordion-body {
    padding: 0 20px 20px 50px;
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.8;
}

.accordion-body p {
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.accordion-body p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 4px;
    background: var(--text-light);
    border-radius: 50%;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

.accordion-body strong {
    color: var(--text-dark);
}

.accordion-body .time-highlight {
    color: var(--action-red);
    font-weight: 600;
}

.accordion-body .action-highlight {
    color: var(--brand-blue);
    font-weight: 600;
}

/* 右侧行动面板 */
.action-panel {
    background: white;
    border-radius: 12px;
    border: 1px solid #E9EDF3;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    margin-bottom: 16px;
}

/* 参与卡 */
.participate-card {
    padding: 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--brand-blue-light) 0%, white 100%);
}

.participate-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #2E5A8B 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.25);
}

.participate-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.participate-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* 状态提示区 */
.status-hint {
    padding: 12px 16px;
    background: var(--bg-section);
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-hint-icon {
    font-size: 18px;
}

.status-hint-text {
    font-size: 13px;
    color: var(--text-body);
    flex: 1;
    text-align: left;
}

.status-hint-text strong {
    color: var(--action-red);
}

/* 进行中状态 */
.status-hint.in-progress {
    background: var(--action-red-light);
    border: 1px solid rgba(227, 77, 89, 0.2);
}

.status-hint.in-progress .status-hint-text {
    color: var(--text-dark);
}

/* 按钮组 */
.participate-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-participate {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--action-red) 0%, #D43A47 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-participate:hover {
    background: linear-gradient(135deg, var(--action-red-dark) 0%, #B83240 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(227, 77, 89, 0.35);
}

.btn-participate.secondary {
    background: white;
    color: var(--brand-blue);
    border: 1px solid var(--brand-blue);
}

.btn-participate.secondary:hover {
    background: var(--brand-blue-light);
    box-shadow: none;
    transform: none;
}

.link-action {
    font-size: 13px;
    color: var(--text-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.link-action:hover {
    color: var(--brand-blue);
}

/* 规则速览卡 */
.quick-rules-card {
    padding: 20px;
}

.quick-rules-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-rules-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-rule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-section);
    border-radius: 8px;
}

.quick-rule-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.quick-rule-icon.time { background: #FFF8E6; }
.quick-rule-icon.user { background: var(--brand-blue-light); }
.quick-rule-icon.check { background: #E8F8EC; }
.quick-rule-icon.calendar { background: var(--action-red-light); }

.quick-rule-text {
    font-size: 13px;
    color: var(--text-body);
    flex: 1;
}

.quick-rule-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* FAQ卡 */
.faq-card {
    padding: 20px;
}

.faq-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E9EDF3;
    transition: all 0.2s;
}

.faq-item:hover {
    border-color: var(--brand-blue);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    background: var(--bg-section);
    transition: all 0.2s;
}

.faq-question:hover {
    background: var(--brand-blue-light);
}

.faq-question.active {
    background: var(--brand-blue-light);
}

.faq-question-text {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-question-text .q-badge {
    width: 18px;
    height: 18px;
    background: var(--brand-blue);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.faq-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: transform 0.3s;
    font-size: 12px;
}

.faq-question.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.show {
    max-height: 200px;
}

.faq-answer-content {
    padding: 12px 14px 14px;
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.7;
    background: white;
    border-top: 1px dashed #E9EDF3;
}

.faq-more {
    text-align: center;
    padding-top: 12px;
}

.faq-more a {
    font-size: 12px;
    color: var(--text-gray);
    text-decoration: none;
}

.faq-more a:hover {
    color: var(--brand-blue);
}

/* 客服入口卡 */
.support-card {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #F8F9FB 0%, white 100%);
}

.support-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.support-icon {
    width: 40px;
    height: 40px;
    background: var(--brand-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.support-text h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 2px 0;
}

.support-text p {
    font-size: 11px;
    color: var(--text-gray);
    margin: 0;
}

.btn-support {
    height: 32px;
    padding: 0 16px;
    background: white;
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-support:hover {
    background: var(--brand-blue);
    color: white;
}

/* 倒计时显示 */
.countdown-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: "DIN Alternate", monospace;
}

.countdown-inline .num {
    background: var(--text-dark);
    color: white;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    min-width: 22px;
    text-align: center;
}

.countdown-inline .sep {
    color: var(--text-dark);
    font-weight: 600;
}

/* 分隔线 */
.divider {
    height: 1px;
    background: #E9EDF3;
    margin: 0;
}

.rule-limit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.rule-limit-item {
    padding: 12px;
    border: 1px solid #E9EDF3;
    border-radius: 10px;
    background: #F8FAFC;
}

.rule-limit-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.rule-limit-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.rule-limit-desc {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* 响应式微调 */
@media (max-width: 1240px) {
    .steps-bar {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .step-arrow {
        display: none;
    }
    
    .step-node {
        flex: 0 0 calc(33.333% - 8px);
    }

    .rule-limit-grid {
        grid-template-columns: 1fr;
    }
}
