/* 自定义样式 - Tailwind和Font Awesome已在HTML中直接引入 */

/* Tailwind自定义配置 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .text-shadow-lg {
        text-shadow: 0 4px 8px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.3);
    }
    .card-hover {
        transition: all 0.3s ease;
    }
    .card-hover:hover {
        transform: translateY(-5px);
    }
    /* 轮播相关工具类 */
    .banner-gradient {
        background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    }
    .banner-gradient-mobile {
        background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    }
}

/* 全局样式 */
:root {
    --primary: #DA1316;       /* 中国红 - 主色调 */
    --secondary: #E63946;     /* 浅红 - 辅助色 */
    --neutral: #F8F9FA;       /* 米白 - 背景色 */
    --dark: #343A40;          /* 深灰 - 文字色 */
    --accent: #FFD700;        /* 金色 - 强调色 */
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: var(--neutral);
    color: var(--dark);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 导航栏滚动效果 */
.nav-scrolled {
    background-color: rgba(201, 31, 55, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 渐变动画 */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.pt-16{
    padding-top: 222px !important;
}
.container_top{
    width: 100%;
    height: 175px;
    background-image: url("../static/backimg.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.container_center{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
}
.container_ds{
 display: flex;
    align-items: center;
}
.container_title{
font-weight: 600;
font-size: 30px;
color: #D81416;
}
.container_sizes{
    font-weight: 600;
font-size: 22px;
color: #D81416;
text-align: right;
}
.container_size{
font-weight: 400;
font-size: 16px;
color: #999999;
}
/* 导航栏样式 */
#navbar {
    background-color: var(--primary);
    transition: all 0.3s ease;
}

#navbar .nav-link {
    color: white;
    transition: color 0.3s ease;
}

#navbar .nav-link:hover {
    color: var(--accent);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .mobile-nav {
        display: block;
    }
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    .main-content {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .desktop-nav {
        display: block;
    }
    .mobile-nav {
        display: none;
    }
    .content-wrapper {
        flex-direction: row;
    }
    .sidebar {
        width: 25%;
        margin-right: 20px;
    }
    .main-content {
        width: 75%;
    }
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary);
}

/* 返回顶部按钮 */
#back-to-top {
    background-color: var(--primary);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 100;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--secondary);
}
