.policy-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    padding: 12px 4px;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 8px;
    position: relative;
}

.timeline-wrapper::-webkit-scrollbar {
    height: 8px;
}

.timeline-wrapper::-webkit-scrollbar-track {
    background: #f0f5ff;
    border-radius: 4px;
}

.timeline-wrapper::-webkit-scrollbar-thumb {
    background: #c7d8f0;
    border-radius: 4px;
}

.timeline {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: max-content;
    padding: 30px 10px;
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 32%;
    left: 30px;
    right: 30px;
    height: 4px;
    background: linear-gradient(90deg, #B0C4DE 0%, #FFB6C1 50%, #CD5C5C 100%);
    border-radius: 2px;
    z-index: 1;
    transform: translateY(-50%);
}

.timeline-line::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid #CD5C5C;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.node-dot {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 3px solid #7ba7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(123, 167, 255, 0.25);
}

.timeline-node:nth-child(n+5) .node-dot {
    border-color: #ff7b7b;
    box-shadow: 0 2px 8px rgba(255, 123, 123, 0.25);
}

.timeline-node:nth-child(n+5) .node-dot-inner {
    background: linear-gradient(135deg, #ff7b7b 0%, #e74c3c 100%);
}

.timeline-node:hover {
    transform: translateY(-4px);
}

.node-dot-inner {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #7ba7ff 0%, #5a8dff 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-node:hover .node-dot {
    border-color: #5a8dff;
    box-shadow: 0 4px 16px rgba(90, 141, 255, 0.4);
    transform: scale(1.15);
}

.timeline-node:nth-child(n+5):hover .node-dot {
    border-color: #e74c3c;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.4);
}

.timeline-node:hover .node-dot-inner {
    background: linear-gradient(135deg, #5a8dff 0%, #3a6fdf 100%);
    transform: scale(1.2);
}

.timeline-node:nth-child(n+5):hover .node-dot-inner {
    background: linear-gradient(135deg, #ff7b7b 0%, #c0392b 100%);
}

.timeline-node.active .node-dot {
    border-color: #3a6fdf;
    background: linear-gradient(135deg, #e6f0ff 0%, #c7d8f0 100%);
    box-shadow: 0 6px 24px rgba(58, 111, 223, 0.5);
    transform: scale(1.35);
}

.timeline-node:nth-child(n+5).active .node-dot {
    border-color: #c0392b;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    box-shadow: 0 6px 24px rgba(192, 57, 43, 0.5);
}

.timeline-node.active .node-dot-inner {
    background: linear-gradient(135deg, #3a6fdf 0%, #2a5fcf 100%);
    transform: scale(1.5);
}

.timeline-node:nth-child(n+5).active .node-dot-inner {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.node-label {
    font-size: 13px;
    font-weight: 600;
    color: #5a7199;
    background: linear-gradient(135deg, #f0f7ff 0%, #e5efff 100%);
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-node:nth-child(n+5) .node-label {
    color: #8b4545;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.timeline-node:hover .node-label {
    background: linear-gradient(135deg, #d4e5ff 0%, #a8c7ff 100%);
    color: #2a3b5c;
    transform: scale(1.05);
}

.timeline-node:nth-child(n+5):hover .node-label {
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
    color: #5c2020;
}

.timeline-node.active .node-label {
    background: linear-gradient(135deg, #a8c7ff 0%, #7ba7ff 100%);
    color: #ffffff;
    box-shadow: 0 3px 16px rgba(123, 167, 255, 0.5);
    transform: scale(1.08);
}

.timeline-node:nth-child(n+5).active .node-label {
    background: linear-gradient(135deg, #ff7b7b 0%, #e74c3c 100%);
    box-shadow: 0 3px 16px rgba(231, 76, 60, 0.5);
}

.detail-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafcff 100%);
    border-radius: 20px;
    padding: 40px 24px 24px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #e8eff9;
    position: relative;
}

.card-corner-pin {
    position: absolute;
    top: -4px;
    right: 20px;
    font-size: 32px;
    opacity: 0.85;
}

.detail-card.hidden {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    pointer-events: none;
}

.detail-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.swipe-hint {
    text-align: center;
    font-size: 12px;
    color: #99a8c4;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.swipe-hint .hint-icon {
    animation: swipeHint 1.5s ease-in-out infinite;
}

@keyframes swipeHint {
    0%, 100% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
}

.detail-title {
    font-size: 18px;
    font-weight: 700;
    color: #2a3b5c;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-title-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e8f4ff 0%, #c7d8f0 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.detail-content {
    font-size: 15px;
    color: #5a6b8c;
    line-height: 1.8;
}

.detail-content p {
    margin-bottom: 12px;
}

.detail-content p:last-child {
    margin-bottom: 0;
}

.policy-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    transition: all 0.25s ease;
    background: transparent;
    cursor: pointer;
}

.policy-link:hover {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c0392b;
}

@media (max-width: 480px) {
    .timeline {
        padding: 16px 8px;
    }

    .node-label {
        font-size: 12px;
        padding: 5px 12px;
    }

    .detail-card {
        padding: 36px 16px 16px 16px;
        border-radius: 16px;
    }

    .detail-title {
        font-size: 16px;
    }

    .detail-content {
        font-size: 14px;
    }

    .card-corner-pin {
        font-size: 24px;
        top: -2px;
        right: 12px;
    }
}
