/* 详情页通用样式 */

/* 导航栏下拉菜单支持 */
.nav-links li {
    position: relative;
}

.nav-links .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    white-space: nowrap;
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(15px);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    border-left: hidden;
    border-radius: 8px;
    margin: 0 8px;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.dropdown-menu a:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.dropdown-menu a:hover::before {
    transform: scaleX(1);
}

.dropdown-menu a:hover .skill-icon-outer {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.skill-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    position: relative;
    flex-shrink: 0;
}

.skill-icon-outer {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: absolute;
}

.skill-icon-circle {
    width: 5px;
    height: 5px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
    position: absolute;
    filter: grayscale(100%);
}

.dropdown-menu a:hover .skill-icon-circle {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.detail-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
}

.detail-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.detail-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 60px 20px;
    margin-bottom: 30px;
}

.detail-placeholder p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

.back-btn {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* --- 响应式设计 --- */

/* 平板和大屏幕手机 */
@media (max-width: 1024px) {
    .detail-container {
        padding: 80px 24px 40px;
    }

    .detail-title {
        font-size: 2rem;
    }
}

/* 中等屏幕手机 */
@media (max-width: 768px) {
    .detail-container {
        padding: 70px 16px 40px;
    }

    .detail-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .detail-placeholder {
        padding: 40px 16px;
        margin-bottom: 24px;
    }

    .detail-placeholder p {
        font-size: 1rem;
    }

    .back-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .detail-container {
        padding: 60px 12px 30px;
    }

    .detail-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .detail-placeholder {
        padding: 30px 12px;
        margin-bottom: 20px;
    }

    .detail-placeholder p {
        font-size: 0.9rem;
    }

    .back-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

/* 横屏手机 */
@media (max-width: 768px) and (orientation: landscape) {
    .detail-container {
        min-height: auto;
        padding: 70px 24px 40px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .back-btn:hover {
        transform: none;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}