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

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

.ep {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.15), transparent);
    animation: elegantFloat 25s ease-in-out infinite;
}

.ep-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.ep-2 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: -150px;
    animation-delay: 5s;
}

.ep-3 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    right: -80px;
    animation-delay: 10s;
}

.ep-4 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
    animation-delay: 15s;
}

@keyframes elegantFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-40px) scale(1.1); opacity: 0.5; }
}

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

.gl {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 16, 46, 0.2), transparent);
    animation: gradientPulse 6s ease-in-out infinite;
}

.gl-1 {
    top: 30%;
    left: 0;
    width: 100%;
    animation-delay: 0s;
}

.gl-2 {
    top: 70%;
    left: 0;
    width: 100%;
    animation-delay: 3s;
}

@keyframes gradientPulse {
    0%, 100% { opacity: 0.2; transform: scaleX(0.5); }
    50% { opacity: 0.5; transform: scaleX(1); }
}

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

.idphoto-header {
    position: relative;
}

.header-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: headerShine 4s ease-in-out infinite;
}

@keyframes headerShine {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

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

.badge-hot {
    background: linear-gradient(135deg, #f093fb, #f5576c) !important;
    animation: hotBadge 2s ease-in-out infinite;
}

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

.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);
}

.intro-elegant {
    position: relative;
}

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

.dark-theme .elegant-date {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.08));
    color: rgba(220, 220, 225, 0.65);
}

.date-icon {
    font-size: 1.2rem;
}

.story-intro {
    padding: 1.5rem;
    background: rgba(108, 117, 125, 0.03);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

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

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

@keyframes cameraFlash {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.story-intro p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.story-intro p:last-child {
    margin-bottom: 0;
}

.pain-elegant {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.08), rgba(245, 87, 108, 0.03));
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(240, 147, 251, 0.2);
}

.dark-theme .pain-elegant {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1), rgba(245, 87, 108, 0.05));
}

.pain-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5576c;
}

.pain-icon {
    font-size: 1.5rem;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.pain-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dark-theme .pain-card {
    background: rgba(255, 255, 255, 0.05);
}

.pain-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(245, 87, 108, 0.15);
}

.dark-theme .pain-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pc-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pain-card p {
    margin: 0;
    font-size: 0.9rem;
}

.discovery-elegant {
    position: relative;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border-radius: 16px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    overflow: hidden;
}

.dark-theme .discovery-elegant {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.05));
}

.de-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: deGlow 5s ease-in-out infinite;
}

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

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

@keyframes starSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(15deg); }
}

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

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

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(108, 117, 125, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(108, 117, 125, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.dark-theme .feature-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-item:hover {
    transform: translateX(8px);
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.1);
}

.fi-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.fi-icon i {
    font-size: 1.25rem;
    color: #667eea;
}

.feature-item:hover .fi-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scale(1.1);
}

.feature-item:hover .fi-icon i {
    color: white;
}

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

.fi-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-color);
    line-height: 1.5;
}

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

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

.hl-card {
    position: relative;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(108, 117, 125, 0.08);
    transition: all 0.4s ease;
    overflow: hidden;
}

.dark-theme .hl-card {
    background: #1a1a2e;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hl-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.15);
}

.hl-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

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

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

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

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

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

.project-showcase {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.02));
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.dark-theme .project-showcase {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.03));
}

.ps-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.ps-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dark-theme .ps-image-wrapper {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ps-image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
}

.ps-image {
    width: 100%;
    height: auto;
    display: block;
}

.ps-caption {
    margin: 1rem 0 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-color);
    font-style: italic;
}

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

.experience-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;
}

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

.flow-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.06);
    min-width: 130px;
    transition: all 0.3s ease;
}

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

.flow-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.flow-step.highlight {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.fs-num {
    width: 36px;
    height: 36px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #667eea;
    margin-bottom: 0.75rem;
}

.flow-step.highlight .fs-num {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.fs-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

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

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

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

.flow-arrow {
    color: #667eea;
    font-size: 0.9rem;
}

.experience-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 .experience-note {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
}

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

.experience-note p {
    margin: 0;
    line-height: 1.6;
}

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

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

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

.target-item:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-4px);
}

.ti-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.target-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

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

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

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

.tse-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 .tse-item {
    background: rgba(255, 255, 255, 0.03);
}

.tse-item:hover {
    background: rgba(102, 126, 234, 0.08);
}

.tse-item i {
    font-size: 1.5rem;
    color: #667eea;
}

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

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

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

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

.idphoto-download {
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.03));
    border: 2px dashed rgba(102, 126, 234, 0.3);
}

.dark-theme .idphoto-download {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
}

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

.dde-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea);
}

.dde-circle {
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    animation: circleGlow 2s ease-in-out infinite;
}

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

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

.ending-elegant {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.03));
    border-radius: 20px;
    border: 2px dashed rgba(102, 126, 234, 0.3);
}

.dark-theme .ending-elegant {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
}

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

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

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

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

.ending-tip {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 12px;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
}

.dark-theme .ending-tip {
    background: rgba(255, 193, 7, 0.12);
}

.et-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ending-tip p {
    margin: 0;
    font-size: 0.9rem;
}

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