.youdub-article {
    position: relative;
    overflow: hidden;
}

.tech-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.8), transparent);
    border-radius: 50%;
    animation: particleFloat 20s linear infinite;
}

.p1 { left: 10%; animation-delay: 0s; animation-duration: 25s; }
.p2 { left: 30%; animation-delay: 5s; animation-duration: 20s; }
.p3 { left: 50%; animation-delay: 10s; animation-duration: 30s; }
.p4 { left: 70%; animation-delay: 15s; animation-duration: 22s; }
.p5 { left: 90%; animation-delay: 3s; animation-duration: 28s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.circuit-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.circuit-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 16, 46, 0.3), transparent);
    animation: circuitPulse 4s ease-in-out infinite;
}

.cl1 {
    top: 20%;
    left: 0;
    width: 100%;
    animation-delay: 0s;
}

.cl2 {
    top: 50%;
    left: 0;
    width: 100%;
    animation-delay: 1.5s;
}

.cl3 {
    top: 80%;
    left: 0;
    width: 100%;
    animation-delay: 3s;
}

@keyframes circuitPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scaleX(0.3);
    }
    50% {
        opacity: 0.5;
        transform: scaleX(1);
    }
}

.youdub-article .tool-detail-content {
    position: relative;
    z-index: 1;
}

.tool-disclaimer {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 193, 7, 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #ff9800;
    display: inline-block;
}

.dark-theme .tool-disclaimer {
    background: rgba(255, 193, 7, 0.2);
}

.youdub-header {
    position: relative;
}

.header-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    background: radial-gradient(ellipse, rgba(200, 16, 46, 0.3), transparent);
    filter: blur(30px);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.badge-ai {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

.badge-open {
    background: linear-gradient(135deg, #11998e, #38ef7d) !important;
}

.intro-diary {
    position: relative;
}

.diary-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1), rgba(200, 16, 46, 0.05));
    border-radius: 999px;
    width: fit-content;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.dark-theme .diary-date {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.15), rgba(200, 16, 46, 0.08));
    color: rgba(220, 220, 225, 0.65);
}

.diary-date i {
    color: var(--primary-color);
}

.dark-theme .diary-date i {
    color: #c8102e;
}

.diary-content {
    padding: 1.5rem;
    background: rgba(108, 117, 125, 0.03);
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.dark-theme .diary-content {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: #c8102e;
}

.diary-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.diary-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

.highlight-discovery {
    position: relative;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-radius: 16px;
    border: 2px dashed rgba(255, 193, 7, 0.4);
    overflow: hidden;
}

.dark-theme .highlight-discovery {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(255, 193, 7, 0.05));
}

.discovery-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    animation: discoveryGlow 4s ease-in-out infinite;
}

@keyframes discoveryGlow {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

.discovery-icon {
    position: relative;
    font-size: 2rem;
    margin-right: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.highlight-discovery p {
    position: relative;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-icon {
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

.tech-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    background: rgba(108, 117, 125, 0.03);
    border-radius: 20px;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    overflow-x: auto;
}

.dark-theme .tech-flow {
    background: rgba(255, 255, 255, 0.03);
}

.tech-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-width: 120px;
    transition: all 0.3s ease;
}

.dark-theme .tech-step {
    background: #1a1a2e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tech-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.15);
}

.tech-step.highlight-step {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.dark-theme .tech-step.highlight-step {
    background: linear-gradient(135deg, #c8102e, #e61c3a);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1), rgba(200, 16, 46, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.tech-step.highlight-step .step-icon {
    background: rgba(255, 255, 255, 0.2);
}

.step-icon i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.tech-step.highlight-step .step-icon i {
    color: white;
}

.step-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.step-content p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gray-color);
}

.dark-theme .step-content p {
    color: rgba(220, 220, 225, 0.65);
}

.tech-step.highlight-step .step-content p {
    color: rgba(255, 255, 255, 0.85);
}

.step-arrow {
    color: var(--gray-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.dark-theme .step-arrow {
    color: rgba(220, 220, 225, 0.5);
}

.tech-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(76, 175, 80, 0.03));
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
    margin-top: 1rem;
}

.dark-theme .tech-note {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
}

.note-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tech-note p {
    margin: 0;
    line-height: 1.7;
}

.feature-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.feature-card {
    position: relative;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(108, 117, 125, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

.dark-theme .feature-card {
    background: #1a1a2e;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.dark-theme .feature-card::before {
    background: linear-gradient(90deg, #c8102e, #e61c3a);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(200, 16, 46, 0.12);
}

.fc-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1), rgba(200, 16, 46, 0.05));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.dark-theme .fc-icon {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.15), rgba(200, 16, 46, 0.08));
}

.feature-card:hover .fc-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.dark-theme .feature-card:hover .fc-icon {
    background: linear-gradient(135deg, #c8102e, #e61c3a);
}

.fc-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.dark-theme .fc-icon i {
    color: #c8102e;
}

.feature-card:hover .fc-icon i {
    color: white;
}

.feature-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.feature-card p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: var(--gray-color);
    line-height: 1.6;
}

.dark-theme .feature-card p {
    color: rgba(220, 220, 225, 0.65);
}

.fc-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(200, 16, 46, 0.1);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dark-theme .fc-tag {
    background: rgba(200, 16, 46, 0.15);
    color: #c8102e;
}

.experience-story {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.story-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(108, 117, 125, 0.03);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.dark-theme .story-block {
    background: rgba(255, 255, 255, 0.03);
}

.story-block:hover {
    background: rgba(108, 117, 125, 0.06);
    transform: translateX(8px);
}

.dark-theme .story-block:hover {
    background: rgba(255, 255, 255, 0.06);
}

.story-emoji {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.story-block h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--primary-color);
}

.dark-theme .story-block h4 {
    color: #c8102e;
}

.story-block p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.target-users {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.user-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(108, 117, 125, 0.03);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.dark-theme .user-card {
    background: rgba(255, 255, 255, 0.03);
}

.user-card:hover {
    background: rgba(200, 16, 46, 0.08);
    transform: translateY(-4px);
}

.user-avatar {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.user-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.user-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-color);
}

.dark-theme .user-card p {
    color: rgba(220, 220, 225, 0.65);
}

.prereq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.prereq-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 16px;
    border-left: 4px solid #2196F3;
    transition: all 0.3s ease;
}

.dark-theme .prereq-item {
    background: rgba(33, 150, 243, 0.08);
}

.prereq-item:hover {
    transform: translateX(8px);
    background: rgba(33, 150, 243, 0.08);
}

.dark-theme .prereq-item:hover {
    background: rgba(33, 150, 243, 0.12);
}

.prereq-num {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.prereq-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.prereq-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.dark-theme .prereq-content p {
    color: rgba(220, 220, 225, 0.65);
}

.tech-specs-section .tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(108, 117, 125, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dark-theme .spec-item {
    background: rgba(255, 255, 255, 0.03);
}

.spec-item:hover {
    background: rgba(200, 16, 46, 0.08);
}

.spec-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.dark-theme .spec-item i {
    color: #c8102e;
}

.spec-info {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.dark-theme .spec-label {
    color: rgba(220, 220, 225, 0.65);
}

.spec-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.youdub-download {
    position: relative;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.08), rgba(200, 16, 46, 0.03));
    border: 2px dashed rgba(200, 16, 46, 0.3);
}

.dark-theme .youdub-download {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1), rgba(200, 16, 46, 0.05));
}

.download-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dd-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color));
}

.dark-theme .dd-line {
    background: linear-gradient(90deg, transparent, #c8102e);
}

.dd-circle {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: circlePulse 2s ease-in-out infinite;
}

.dark-theme .dd-circle {
    background: #c8102e;
}

@keyframes circlePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.ending-section {
    text-align: center;
}

.ending-diary {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(76, 175, 80, 0.03));
    border-radius: 20px;
    border: 2px dashed rgba(76, 175, 80, 0.3);
}

.dark-theme .ending-diary {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
}

.ending-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: starSpin 3s ease-in-out infinite;
}

@keyframes starSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(10deg) scale(1.1); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(-10deg) scale(1.1); }
}

.ending-diary h3 {
    margin-bottom: 1rem;
}

.ending-diary p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.ending-tip {
    margin-top: 1rem !important;
    padding: 0.75rem 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    display: inline-block;
}

@media (max-width: 768px) {
    .tech-flow {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .tech-step {
        width: 100%;
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    
    .step-icon {
        margin-bottom: 0;
    }
    
    .feature-showcase {
        grid-template-columns: 1fr;
    }
    
    .target-users {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-specs-grid {
        grid-template-columns: 1fr;
    }
}
