/* 头部导航 */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 85px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    height: 100%;
    transition: all 0.3s ease;
}

.nav-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.3) 0%, rgba(196, 30, 58, 0.1) 100%);
    border-radius: 20px;
    transform: rotate(8deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-logo:hover::before {
    transform: rotate(12deg) scale(1.1);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.4) 0%, rgba(196, 30, 58, 0.15) 100%);
}

.nav-logo img {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(196, 30, 58, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    object-fit: cover;
}

.nav-logo:hover img {
    transform: rotate(-3deg) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(196, 30, 58, 0.45),
        0 0 0 4px rgba(255, 255, 255, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-logo span {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 40px;
    position: relative;
}

.nav-menu a {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c41e3a, #8b0000);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #c41e3a;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.language-switch {
    margin-right: 20px;
    position: relative;
}

.language-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.dropdown-trigger:hover {
    background-color: #f5f5f5;
    border-color: #c41e3a;
}

.dropdown-trigger .current-lang {
    font-weight: bold;
    color: #c41e3a;
}

.dropdown-trigger i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown-trigger.open i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    padding: 0;
    list-style: none;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #c41e3a;
}

.dropdown-menu li:first-child a {
    border-radius: 4px 4px 0 0;
}

.dropdown-menu li:last-child a {
    border-radius: 0 0 4px 4px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #c41e3a, #8b0000);
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 页面标题区 */
.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

/* 彝绣花纹装饰层 */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cpath d="M50 10 L55 25 L70 25 L58 35 L63 50 L50 40 L37 50 L42 35 L30 25 L45 25 Z" fill="rgba(255,255,255,0.08)" stroke="rgba(255,255,255,0.12)" stroke-width="0.5"/%3E%3C/svg%3E'),
        url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"%3E%3Ccircle cx="30" cy="30" r="8" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/%3E%3Ccircle cx="30" cy="30" r="15" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/%3E%3Cpath d="M30 15 L30 10 M30 45 L30 50 M15 30 L10 30 M45 30 L50 30" stroke="rgba(255,255,255,0.08)" stroke-width="1"/%3E%3C/svg%3E');
    background-size: 80px 80px, 60px 60px;
    opacity: 0.6;
    animation: patternShift 20s ease-in-out infinite;
}

/* 彝绣窗格纹装饰 */
.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"%3E%3Crect x="5" y="5" width="10" height="10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/%3E%3Crect x="25" y="5" width="10" height="10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/%3E%3Crect x="5" y="25" width="10" height="10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/%3E%3Crect x="25" y="25" width="10" height="10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/%3E%3C/svg%3E');
    background-size: 40px 40px;
}

/* 动态装饰元素容器 */
.page-header .decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

/* 彝绣风格装饰花朵 */
.page-header .embroidery-flower {
    position: absolute;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.page-header .embroidery-flower svg {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.page-header .embroidery-flower:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.page-header .embroidery-flower:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 25%;
    right: 12%;
    animation-delay: 2s;
}

.page-header .embroidery-flower:nth-child(3) {
    width: 70px;
    height: 70px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.page-header .embroidery-flower:nth-child(4) {
    width: 55px;
    height: 55px;
    bottom: 25%;
    right: 8%;
    animation-delay: 6s;
}

.page-header .embroidery-flower:nth-child(5) {
    width: 45px;
    height: 45px;
    top: 50%;
    left: 5%;
    animation-delay: 1s;
}

.page-header .embroidery-flower:nth-child(6) {
    width: 50px;
    height: 50px;
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

/* 动态几何装饰 */
.page-header .geometric-pattern {
    position: absolute;
    opacity: 0.12;
    animation: rotate 25s linear infinite;
}

.page-header .geometric-pattern svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.page-header .geometric-pattern:nth-child(7) {
    width: 120px;
    height: 120px;
    top: -20px;
    right: -30px;
}

.page-header .geometric-pattern:nth-child(8) {
    width: 100px;
    height: 100px;
    bottom: -10px;
    left: -20px;
    animation-direction: reverse;
}

/* 标题区域 */
.page-header .header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.page-header .subtitle {
    font-size: 20px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* 装饰分割线 */
.page-header .divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    margin: 30px auto 0;
    animation: fadeIn 1s ease-out 0.6s both;
}

/* 标题装饰边框 */
.page-header h1::before,
.page-header h1::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%);
}

.page-header h1::before {
    left: -80px;
}

.page-header h1::after {
    right: -80px;
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes patternShift {
    0%, 100% {
        background-position: 0 0;
    }
    50% {
        background-position: 40px 40px;
    }
}

/* 粒子效果容器 */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

/* 粒子样式 */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 10s ease-in-out infinite;
}

.particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    filter: blur(2px);
    opacity: 0.5;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(100%) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50vh) translateX(30px) scale(1.2);
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
}

/* 鼠标交互光晕 */
.mouse-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    background: transparent;
    border-bottom: none;
}

/* 文章标题区 - 避开固定导航栏 */
.article-header {
    padding-top: 100px;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb li {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: #ccc;
    font-weight: 300;
}

.breadcrumb li a {
    color: #666;
    transition: color 0.3s ease;
    text-decoration: none;
}

.breadcrumb li a:hover {
    color: #c41e3a;
}

.breadcrumb li.active {
    color: #1a252f;
    font-weight: 500;
}
