/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 登录页面样式 ===== */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans SC', sans-serif;
    padding: 20px;
}

/* 登录容器 */
.login-container {
    width: 100%;
    max-width: 500px;
    perspective: 1000px;
}

/* 登录卡片 */
.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.login-card:hover {
    transform: translateY(-5px) rotateX(2deg);
}

/* 登录头部 */
.login-header {
    padding: 40px 40px 20px;
    text-align: center;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.login-logo img {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    border-radius: 50%;
    background: white;
    padding: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-logo h1 {
    font-size: 28px;
    color: var(--mc2);
    font-family: 'Ma Shan Zheng', cursive;
    margin: 0;
}

.login-header h2 {
    font-size: 24px;
    color: var(--bc6);
    margin: 0;
    font-weight: 500;
}

/* 登录表单区域 */
.login-body {
    padding: 20px 40px 40px;
}

/* 表单组 */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

/* 输入框包装器 */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bc2);
    border-radius: 8px;
    border: 2px solid var(--bc8);
    transition: all 0.3s ease;
    height: 50px;
}

.input-wrapper:focused,
.input-wrapper:focus-within {
    border-color: var(--mc1);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* 输入框图标 */
.input-icon {
    padding: 0 15px;
    color: var(--bc4);
    font-size: 18px;
}

/* 输入框样式 */
.form-group input[type="text"],
.form-group input[type="password"] {
    flex: 1;
    height: 100%;
    padding: 12px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--bc6);
    outline: none;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="password"]::placeholder {
    color: var(--bc4);
    opacity: 0.7;
}

/* 登录按钮 */
.login-button {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, var(--mc1), var(--mc2));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 登录按钮动画效果 */
.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.login-button:hover::before {
    left: 100%;
}

/* 登录底部 */
.login-footer {
    padding: 20px 40px;
    text-align: center;
    background: var(--bc2);
    border-top: 1px solid var(--bc8);
}

.login-footer p {
    color: var(--bc4);
    font-size: 14px;
    margin: 0;
}

/* ===== 登录页面响应式设计 ===== */
@media (max-width: 768px) {
    .login-page {
        padding: 10px;
    }
    
    .login-card {



/* ===== 记录表格和搜索容器样式 ===== */
/* 搜索容器样式 */
.search-container {
    background-color: var(--bc1);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px var(--bc12);
    margin-bottom: 20px;
}

/* 卡片基础样式 */
.card {
    background-color: var(--bc1);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px var(--bc12);
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.search-group {
    flex: 1;
    min-width: 200px;
}

.search-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--bc6);
}

.search-group input[type="text"],
.search-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--bc8);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-group input[type="text"]:focus,
.search-group select:focus {
    outline: none;
    border-color: var(--mc1);
}

.search-buttons {
    display: flex;
    gap: 10px;
}

.search-button,
.reset-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button {
    background-color: var(--mc1);
    color: var(--bc1);
}

.search-button:hover {
    background-color: var(--mc2);
}

.reset-button {
    background-color: var(--bc8);
    color: var(--bc6);
}

.reset-button:hover {
    background-color: var(--bc9);
}

/* 记录表格样式 */
.records-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bc1);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--bc12);
}

.records-table th,
.records-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--bc8);
}

.records-table th {
    background-color: var(--bc2);
    font-weight: 600;
    color: var(--bc6);
}

.records-table tr:hover {
    background-color: var(--bc2);
}

.records-table tr:last-child td {
    border-bottom: none;
}

/* 表格操作链接样式 */
.action-link {
    color: var(--mc1);
    text-decoration: none;
    margin-right: 10px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: var(--mc2);
}

.delete-link {
    color: var(--mc4);
}

.delete-link:hover {
    color: #c82333;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid var(--bc8);
    border-radius: 4px;
    text-decoration: none;
    color: var(--bc6);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--bc2);
    border-color: var(--mc1);
}

.pagination .current-page {
    background-color: var(--mc1);
    color: var(--bc1);
    border-color: var(--mc1);
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .disabled:hover {
    background-color: transparent;
    border-color: var(--bc8);
}

/* 记录数量统计 */
.record-count {
    text-align: right;
    margin: 10px 0;
    color: var(--bc4);
    font-size: 14px;
}

/* 表格响应式设计 */
@media (max-width: 768px) {
    /* CRM页面搜索区域移动端优化 */
    .card {
        margin-top: 50px !important;
        padding: 15px !important;
    }
    
    .search-container {
        padding: 15px;
    }
    
    /* 确保输入框在移动端宽度自适应 */
    .search-container input[type="text"] {
        width: 100% !important;
        max-width: 100%;
        margin-bottom: 10px;
        box-sizing: border-box;
    }
    
    /* 搜索按钮在移动端宽度自适应 */
    .search-container button {
        width: 100%;
        display: block;
        margin: 0 auto;
    }
    
    /* 原有搜索表单样式 */
    .search-form {
        flex-direction: column;
    }
    
    .search-group {
        width: 100%;
    }
    
    .search-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-button,
    .reset-button {
        flex: 1;
    }
    
    /* 表格在小屏幕上的响应式调整 */
    .records-table {
        display: block;
        overflow-x: auto;
    }
    
    .records-table thead,
    .records-table tbody,
    .records-table th,
    .records-table td,
    .records-table tr {
        display: block;
    }
    
    .records-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .records-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--bc8);
        border-radius: 4px;
    }
    
    .records-table td {
        border: none;
        border-bottom: 1px solid var(--bc8);
        position: relative;
        padding-left: 50%;
    }
    
    .records-table td:last-child {
        border-bottom: none;
    }
    
    .records-table td::before {
        position: absolute;
        top: 12px;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        content: attr(data-label);
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination a,
    .pagination span {
        margin: 3px;
        padding: 6px 10px;
        font-size: 14px;
    }
}        border-radius: 12px;
    }
    
    .login-header {
        padding: 30px 20px 15px;
    }
    
    .login-logo img {
        width: 40px;
        height: 40px;
    }
    
    .login-logo h1 {
        font-size: 24px;
    }
    
    .login-header h2 {
        font-size: 20px;
    }
    
    .login-body {
        padding: 15px 20px 30px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .input-wrapper {
        height: 45px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="password"] {
        font-size: 15px;
    }
    
    .login-button {
        height: 45px;
        font-size: 16px;
    }
    
    .login-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .login-card {
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    }
    
    .login-header {
        padding: 25px 15px 15px;
    }
    
    .login-logo {
        flex-direction: column;
        margin-bottom: 15px;
    }
    
    .login-logo img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .login-body {
        padding: 15px 15px 25px;
    }
    
    .input-icon {
        padding: 0 12px;
        font-size: 16px;
    }
}

/* CSS变量定义 */
:root {
    /* 背景色 */
    --bc1: #ffffff;
    --bc2: #f8f9fa;
    --bc3: #444444;
    --bc4: #6c757d;
    --bc5: #f8f9fa;
    --bc6: #212529;
    --bc7: #343a40;
    --bc8: #dee2e6;
    --bc9: #ced4da;
    --bc10: #e9ecef;
    --bc11: #f8f9fa;
    --bc12: rgba(0, 0, 0, 0.1);
    --bc13: rgba(0, 0, 0, 0.2);
    
    /* 主色调 */
    --mc1: #007bff;
    --mc2: #0056b3;
    --mc3: #004085;
    --mc4: #dc3545;
    --mc5: #28a745;
    --mc6: #ffc107;
    
    /* 新增变量 */
    --error-color: #e74c3c;
    --border-radius: 8px;
}

/* 链接样式 */
a {
    color: var(--mc1);
    text-decoration: none;
}

/* 鼠标悬停样式 */
a:hover {
    color: var(--mc2);
}

/* 鼠标点击样式 */
a:active {
    color: var(--mc3);
}

/* 字体 */
body {
    font-family: '微软雅黑', Courier, monospace;
}

/* 4种不同的字体大小 */
p {
    font-size: 16px;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 18px;
}

/* 按钮样式 */
button {
    background-color: var(--mc1);
    color: var(--bc1);
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

button:hover {
    background-color: var(--mc2);
}

button:active {
    background-color: var(--mc3);
}

/* 产品详情页面样式 */
/* 图片基础样式 */
.all-fields img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
}

/* 产品详情页面样式 */
.all-fields {
    background-color: var(--bc2);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid var(--bc8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.all-fields h3 {
    color: var(--mc3);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bc8);
}

.all-fields p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.all-fields strong {
    color: var(--mc2);
    font-weight: 600;
}

.specific-fields {
    background-color: var(--bc1);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--bc8);
}

.specific-fields p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--bc6);
}

/* 导航栏样式 */
.navbar {
    background-color: var(--bc1);
    color: var(--bc6);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 24px;
    width: auto;
    margin-right: 8px;
}

.navbar-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--mc2);
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    list-style: none;
}

.navbar-menu li {
    margin-left: 30px;
}

.navbar-menu a {
    color: var(--bc6);
    text-decoration: none;
    font-size: 16px;
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--mc1);
    transition: width 0.3s ease;
}

.navbar-menu a:hover {
    color: var(--bc6);
}

.navbar-menu a:hover::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--bc6);
}

/* 导航栏折叠样式 */
@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: var(--bc1);
        padding: 20px 0;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 4px 8px var(--bc12);
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-menu li {
        margin: 15px 0;
    }
    
    /* 调整小屏幕下的下划线动画，从中心向两侧展开 */
    .navbar-menu a::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .navbar-menu a:hover::after {
        left: 0;
        transform: translateX(0);
    }
    
    .navbar-toggle {
        display: block;
    }
}

/* 页脚样式 */
.footer {
    background-color: #666;
    color: #d0d0d0;
    padding: 20px 0 0;
    border-top: none;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-column {
    flex: 1;
    padding: 0 10px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #e0e0e0;
    border-bottom: none;
    padding-bottom: 5px;
    display: inline-block;
}

.footer-column p {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 13px;
    color: #d0d0d0;
}

/* 联系信息样式 */
.contact-info p {
    position: relative;
    padding-left: 5px;
}

/* 合作品牌样式 */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.partner-logo {
    height: 22px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

/* 免责声明样式 */
.disclaimer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: none;
}

.disclaimer p {
    font-size: 8px;
    line-height: 1.4;
    color: #797979;
}

/* 版权信息样式 - 在页面最底部单独占一行 */
.copyright {
    width: 100%;
    background-color: #666;
    text-align: center;
    padding: 12px 0;
    margin-top: 20px;
    border-top: none;
}

.copyright-text {
    margin: 0;
    font-size: 12px;
    color: #b0b0b0;
}

/* 视频容器样式 - 确保内容完全展示并竖向对齐 */
.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    overflow: visible; /* 允许内容完全显示 */
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
}

/* 抖音视频iframe优化 */
.video-container iframe {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px; /* 确保有足够的高度显示视频内容 */
    border: none;
    display: block;
}

/* 移除固定宽高比，让视频决定自身尺寸 */
.video-container::before {
    display: none; /* 不再使用伪元素控制宽高比 */
}

/* 错误消息样式 */
.error-message {
    background-color: #fee;
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    font-size: 14px;
    text-align: center;
}

/* 返回按钮悬停效果 */
.back-button:hover {
    background-color: #e0e0e0;
    transition: background-color 0.3s ease;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    /* 视频容器在移动端的样式 */
    .video-container {
        max-width: 100%;
        margin: 10px 0;
        border-radius: 4px; /* 移动端使用更小的圆角 */
        overflow: visible; /* 保持内容可见 */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 15px;
    }
    

    
    /* 确保不使用伪元素控制宽高比 */
    .video-container::before {
        display: none;
    }
    
    /* 错误消息在移动端的样式 */
    .error-message {
        padding: 12px 15px;
        margin: 15px 0;
        font-size: 13px;
    }
    
    /* 视频标题在移动端的样式 */
    .product-grid h4 {
        font-size: 18px;
        margin-top: 10px;
        margin-bottom: 15px;
    }
    
    /* 卡片在移动端的内边距调整 */
    .card {
        padding: 15px !important;
    }
    
    /* 页脚响应式设计 */
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-column {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom .contact-info,
    .footer-bottom .cooperation {
        margin-bottom: 10px;
    }
}

/* 小屏幕设备（手机竖屏）优化 */
@media (max-width: 480px) {
    /* 确保视频容器样式一致性 */
    .video-container {
        overflow: visible;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 10px;
    }
    

    
    /* 确保不使用伪元素控制宽高比 */
    .video-container::before {
        display: none;
    }
    
    /* 进一步减小字体大小以适应小屏幕 */
    .product-grid h4 {
        font-size: 16px;
        margin-top: 8px;
        margin-bottom: 12px;
    }
    
    /* 进一步减小卡片内边距 */
    .card {
        padding: 10px !important;
    }
    
    /* 进一步优化错误消息显示 */
    .error-message {
        padding: 10px 12px;
        margin: 12px 0;
        font-size: 12px;
    }
    .footer {
        padding: 15px 0 0;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-column {
        padding: 0 10px;
    }
    
    .footer-column h3 {
        font-size: 14px;
        margin-bottom: 10px;
        color: #e0e0e0;
    }
    
    .footer-column p {
        font-size: 12px;
        margin-bottom: 6px;
        color: #d0d0d0;
    }
    
    .partner-logos {
        justify-content: center;
        gap: 8px;
    }
    
    .partner-logo {
        height: 20px;
    }
    
    .disclaimer p {
        font-size: 10px;
        color: #c0c0c0;
    }
    
    .copyright {
        margin-top: 15px;
        padding: 10px 10px;
    }
    
    .copyright-text {
        font-size: 11px;
        color: #b0b0b0;
    }
}

/* 图片叠加层样式 */
.image-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* 旋转文本样式 - 手写体、左下角显示、旋转-5度 */
.rotated-text {
    font-family: 'STXingkai', 'Ma Shan Zheng', cursive;
    font-size: 24px;
    color: #222;
    transform: rotate(-5deg);
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
}

/* 图片容器样式 */
.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* 自定义产品卡片相关样式 */
/* 响应式弹性网格布局 - 横向均匀分布 */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px;
    justify-content: space-between;
}

/* 产品卡片容器 - 使用弹性布局 */
.product-card {
    background-color: var(--bc1);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px var(--bc12);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 250px;
    max-width: calc(25% - 30px);
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.product-card:hover {
    box-shadow: 0 5px 15px var(--bc12);
    transform: translateY(-5px);
}

/* 产品卡片内的flex布局 */
.product-flex-container {
    display: flex;
    flex: 1;
    flex-direction: column;
}

/* 图片容器 - 统一宽高比 */
.product-image-container {
    width: 100%;
    /* 保持统一的1:1宽高比 */
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: var(--bc2);
    display: flex;
    align-items: center;
    justify-content: center;
    /* 添加边框 */
    border-bottom: 1px solid var(--bc8);
}

/* 产品图片 - 统一大小和显示效果 */
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 确保图片居中且完全覆盖容器 */
    object-position: center;
    /* 添加过渡效果 */
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* 产品信息容器 */
.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* 产品标题 */
.product-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--bc6);
    line-height: 1.3;
}

/* 产品描述 */
.product-description {
    font-size: 14px;
    color: var(--bc4);
    margin-bottom: 12px;
    flex-grow: 1;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 产品价格 */
.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--mc4);
    margin-bottom: 12px;
    font-family: 'Arial', sans-serif;
    text-align: right;
}

.product-price::before {
    content: '￥';
    font-weight: normal;
    font-size: 16px;
}

/* 查看详情按钮 */
.detail-button {
    background-color: var(--mc1);
    color: var(--bc1);
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    align-self: flex-start;
    text-decoration: none;
    transition: all 0.3s ease;
}

.detail-button:hover {
    background-color: var(--mc2);
    color: var(--bc1);
    transform: translateY(-2px);
}

/* 响应式调整 - 大屏幕 (桌面，1200px 及以上) */
@media (min-width: 1200px) {
    .product-card {
        max-width: calc(20% - 24px);
    }
}

/* 响应式调整 - 中等屏幕 (平板，768px 及以上) */
@media (max-width: 1199px) and (min-width: 768px) {
    .product-card {
        max-width: calc(33.333% - 26.667px);
    }
}

/* 响应式调整 - 小屏幕 (手机，767px 及以下) */
@media (max-width: 767px) {
    /* 产品详情页面图片优化 */
    .all-fields {
        padding: 15px;
        max-width: 100%;
    }
    
    .all-fields img {
        margin-left: auto;
        margin-right: auto;
        max-width: 95%;
        margin-bottom: 10px;
    }
    
    /* 调整标题大小适应移动设备 */
    .all-fields h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .product-grid {
        padding: 10px;
        gap: 30px;
        justify-content: center;
    }
    
    .product-card {
        max-width: 100%;
        min-width: 100%;
    }
    
    /* 保持1:1宽高比，自动适应容器宽度 */
    .product-image-container {
        aspect-ratio: 1/1;
        height: auto;
    }
    
    .product-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .product-description {
        font-size: 13px;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .detail-button {
        padding: 5px 10px;
        font-size: 13px;
        align-self: center;
        width: 100%;
        text-align: center;
    }
}

/* 响应式调整 - 极小屏幕 (手机横屏，576px 及以下) */
@media (max-width: 576px) {
    /* 产品详情页面图片进一步优化 */
    .all-fields {
        padding: 10px;
        border-radius: 5px;
    }
    
    .all-fields img {
        max-width: 100%;
        border-radius: 4px;
        margin-bottom: 8px;
    }
    
    /* 进一步调整标题大小 */
    .all-fields h3 {
        font-size: 14px;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    .product-grid {
        padding: 5px;
        gap: 20px;
        justify-content: center;
    }
    
    /* 保持1:1宽高比，自动适应容器宽度 */
    .product-image-container {
        aspect-ratio: 1/1;
        height: auto;
    }
    
    .product-info {
        padding: 10px;
    }
}


