/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #446677;
    --primary-light: #6a8a99;
    --primary-dark: #2d4455;
    --accent-color: #2a363b;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-color: #2a363b;
    --white: #ffffff;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 20px rgba(0,0,0,0.1);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

/* 页面加载动画 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.loaded::before {
    opacity: 0;
    visibility: hidden;
}

.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    transition: all var(--transition-normal);
}

/* 头部样式 */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 600;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    color: var(--dark-gray);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 80%;
}

nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

nav a.active::after {
    width: 80%;
}

.search-box {
    display: flex;
    gap: 5px;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-sm);
    width: 220px;
    transition: all var(--transition-normal);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(232, 74, 95, 0.2);
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.search-box button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* 横幅区域样式 */
.banner {
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%), url('https://images.unsplash.com/photo-1556905055-8f358a7a47b2?auto=format&fit=crop&q=80&w=1600') no-repeat center center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 40px;
}

.banner-content {
    max-width: 900px;
    margin: 0 auto;
}

.banner h2 {
    font-size: 38px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* 联系信息样式 */
.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
}

.contact-item i {
    font-size: 18px;
}

/* 产品区域样式 */
.products {
    padding: 40px 0 80px;
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: white;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.filter-options,
.sort-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-options label,
.sort-control label {
    font-weight: 500;
    color: var(--dark-gray);
}

.filter-options select,
.sort-control select {
    padding: 8px 12px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-sm);
    background-color: white;
    cursor: pointer;
    min-width: 150px;
}

.filter-options select:focus,
.sort-control select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.product-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    animation: fadeInUp 0.5s ease both;
    display: flex;
    flex-direction: column;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.product-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

.product-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.product-price::before {
    content: '¥';
    font-size: 16px;
    margin-right: 2px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.product-code {
    background-color: var(--light-gray);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.shipping-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.shipping-time i {
    color: var(--primary-color);
}

.product-attributes {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attribute {
    font-size: 13px;
    color: #666;
    background-color: var(--light-gray);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.stock-status {
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

.stock-status.in-stock {
    color: #2e7d32;
}

.stock-status.out-of-stock {
    color: var(--primary-color);
}

.product-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.product-tag {
    background-color: rgba(255, 255, 255, 0.9);
    color: #666;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-tag.hot {
    background-color: rgba(232, 74, 95, 0.9);
    color: white;
}

.product-tag.hot::before {
    content: '🔥';
    margin-right: 4px;
}

.product-tag.new {
    background-color: rgba(33, 150, 243, 0.9);
    color: white;
}

.product-tag.new::before {
    content: '✨';
    margin-right: 4px;
}

.product-tag.promotion {
    background-color: rgba(255, 152, 0, 0.9);
    color: white;
}

.product-tag.promotion::before {
    content: '💰';
    margin-right: 4px;
}

.view-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 0;
    font-size: 15px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: auto;
    text-align: center;
}

.view-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-dark);
    transition: all 0.3s ease;
    z-index: -1;
}

.view-btn:hover::before {
    height: 100%;
}

.view-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 30px 0;
}

.modal-content {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    width: 85%;
    max-width: 1000px;
    animation: modalFadeIn 0.3s ease;
    position: relative;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: var(--dark-gray);
    background-color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-normal);
}

.close-btn:hover {
    background-color: var(--medium-gray);
    transform: rotate(90deg);
}

.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px;
}

.product-detail-gallery {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

.main-image {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover,
.thumbnail:focus {
    opacity: 0.9;
    transform: translateY(-3px);
}

.thumbnail.active {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

.product-detail-info {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.product-detail-header {
    margin-bottom: 20px;
}

.product-detail-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.product-detail-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 22px;
    margin: 12px 0;
    display: flex;
    align-items: center;
}

.product-detail-price::before {
    content: '¥';
    font-size: 18px;
    margin-right: 2px;
}

.product-detail-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.product-detail-code {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-detail .shipping-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-detail .stock-status {
    margin: 10px 0;
    font-size: 14px;
}

.product-detail-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-options {
    margin-bottom: 20px;
}

.option-group {
    margin-bottom: 15px;
}

.option-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.size-options,
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-option {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--medium-gray);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    padding: 5px;
}

.size-weight {
    font-size: 10px;
    margin-top: 2px;
    color: var(--medium-gray);
    white-space: nowrap;
}

.size-option:hover,
.size-option.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    color: white;
}

.size-option:hover .size-weight,
.size-option.selected .size-weight {
    color: rgba(255, 255, 255, 0.8);
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
}

.product-specs {
    margin-top: 20px;
    background-color: var(--light-gray);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
}

.product-specs h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-specs h4 i {
    color: var(--primary-color);
}

.specs-table {
    width: 100%;
}

.specs-table td {
    padding: 6px 0;
    border-bottom: 1px dashed var(--medium-gray);
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-name {
    font-weight: 500;
    color: var(--dark-gray);
    width: 30%;
}

.action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.contact-btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    header h1 {
        margin-bottom: 10px;
    }
    
    nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    nav ul {
        width: max-content;
    }
    
    nav ul li {
        white-space: nowrap;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .banner {
        padding: 60px 0;
    }
    
    .banner h2 {
        font-size: 28px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-content {
        width: 90%;
        max-width: 600px;
    }
    
    .main-image {
        height: 320px;
    }
    
    .product-detail {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .main-image {
        height: 280px;
    }
    
    .product-detail {
        padding: 15px;
        gap: 20px;
    }
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    font-size: 18px;
    color: var(--dark-gray);
}

/* 页脚样式 */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-light);
}

.footer-brand p {
    font-size: 14px;
    color: var(--medium-gray);
    max-width: 300px;
}

.footer-contact h4,
.footer-services h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-light);
}

.footer-services ul {
    list-style: none;
}

.footer-services li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.footer-services li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--medium-gray);
}

/* 服务模块样式 */
.service-section {
    padding: 60px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-header p {
    color: var(--dark-gray);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.service-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.service-image {
    flex: 1;
    min-width: 0;
}

.service-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.service-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.service-text {
    flex: 1;
    min-width: 0;
}

.service-text h3 {
    font-size: 24px;
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-weight: 600;
}

.service-text ul {
    list-style: none;
    margin-bottom: 25px;
}

.service-text li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-text li i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 3px;
}

.service-text p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.contact-btn i {
    margin-right: 8px;
}

.contact-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* 响应式调整 - 服务模块 */
@media (max-width: 992px) {
    .service-content {
        flex-direction: column;
    }
    
    .service-section:nth-child(odd) .service-content {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .service-text h3 {
        font-size: 22px;
    }
}

/* 在线客服链接样式 */
.online-service a {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 15px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 5px;
}

.online-service a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.online-service i {
    font-size: 16px;
}

/* 移动端样式适配 */
@media (max-width: 768px) {
    .online-service a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .mobile-menu .online-service {
        margin-top: 10px;
    }
    
    .mobile-menu .online-service a {
        justify-content: center;
        width: 100%;
    }
}

/* 联系我们模态框样式 */
.contact-modal-content {
    max-width: 850px;
    padding: 0;
    border-radius: var(--radius-lg);
    background-color: var(--white);
    overflow: hidden;
}

.contact-modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 25px 30px;
    text-align: center;
    position: relative;
}

.contact-modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-header h3 i {
    margin-right: 10px;
    font-size: 22px;
}

.contact-modal-header p {
    font-size: 16px;
    opacity: 0.9;
}

.contact-options {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
    gap: 20px;
}

.contact-option {
    flex: 1;
    min-width: 250px;
    background-color: var(--light-gray);
    border-radius: var(--radius-md);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.contact-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    opacity: 0.7;
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background-color: var(--primary-light);
    color: white;
    font-size: 28px;
    box-shadow: var(--shadow-sm);
}

.contact-details {
    width: 100%;
    text-align: center;
}

.contact-details h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-gray);
    font-weight: 600;
}

.contact-desc {
    color: var(--medium-gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-info-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 15px;
}

.contact-info-row .label {
    color: var(--dark-gray);
    font-weight: 500;
    margin-right: 5px;
}

.contact-info-row .value {
    color: var(--primary-color);
    font-weight: 600;
}

.qr-code-container {
    width: 180px;
    height: 180px;
    margin: 15px auto;
    background-color: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
}

.qr-code-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-action-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-normal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 80%;
    margin: 15px auto 0;
}

.phone-btn {
    background-color: #28a745;
}

.phone-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.online-btn {
    background-color: #17a2b8;
}

.online-btn:hover {
    background-color: #138496;
    transform: translateY(-2px);
}

.contact-modal-footer {
    background-color: var(--light-gray);
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--medium-gray);
    color: var(--dark-gray);
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-options {
        flex-direction: column;
        padding: 20px;
    }
    
    .contact-option {
        min-width: 100%;
    }
    
    .contact-modal-header {
        padding: 20px;
    }
    
    .contact-modal-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .contact-modal-content {
        width: 95%;
    }
    
    .contact-option {
        padding: 20px 15px;
    }
    
    .qr-code-container {
        width: 150px;
        height: 150px;
    }
}

/* 产品详情联系信息样式 */
.contact-info-detail {
    margin-top: 25px;
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: var(--radius-md);
}

.contact-info-detail h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info-detail h4 i {
    color: var(--primary-color);
}

.contact-item-detail {
    padding: 10px;
    background-color: white;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
}

.contact-item-detail i {
    color: var(--primary-color);
    font-size: 18px;
}

.contact-item-detail:last-child {
    margin-bottom: 0;
}

/* 回到顶部和底部按钮样式 */
.scroll-buttons {
    position: fixed;
    right: 25px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-buttons.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.scroll-btn i {
    font-size: 20px;
}

/* 媒体查询 */
@media (max-width: 768px) {
    .scroll-buttons {
        right: 20px;
        bottom: 30px;
        gap: 12px;
    }
    
    .scroll-btn {
        width: 45px;
        height: 45px;
    }
    
    .scroll-btn i {
        font-size: 18px;
    }
}

/* 移动端适配 - 基础设置 */
@media (max-width: 992px) {
    :root {
        --container-width: 100%;
        --padding-x: 15px;
    }

    .container {
        padding-left: var(--padding-x);
        padding-right: var(--padding-x);
    }
}

/* 平板适配 */
@media (max-width: 768px) {
    /* 头部导航样式 */
    header {
        padding: 10px 0;
    }
    
    header h1 {
        font-size: 20px;
    }
    
    /* 隐藏桌面导航，显示移动菜单按钮 */
    header nav > ul {
        display: none;
    }
    
    /* 产品卡片布局 */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Banner样式调整 */
    .banner {
        padding: 40px 0;
    }
    
    .banner-content h2 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    /* 服务板块调整 */
    .service-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-image, 
    .service-text {
        width: 100%;
    }
    
    /* 模态框调整 */
    .modal-content {
        width: 90%;
        margin: 30px auto;
    }
    
    /* 页脚调整 */
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-brand, 
    .footer-contact, 
    .footer-services {
        width: 100%;
    }
}

/* 手机端适配 */
@media (max-width: 576px) {
    /* 基础调整 */
    body {
        font-size: 14px;
    }
    
    /* 产品网格调整为单列 */
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    /* 产品卡片高度调整 */
    .product-card {
        height: auto;
    }
    
    .product-image {
        height: 250px;
    }
    
    /* 搜索框样式 */
    .search-box {
        width: 100%;
        max-width: none;
        margin-top: 10px;
    }
    
    /* Banner区域 */
    .banner {
        padding: 30px 0;
    }
    
    .banner-content h2 {
        font-size: 20px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 8px;
    }
    
    /* 产品详情模态框 */
    .product-detail {
        padding: 15px;
        flex-direction: column;
    }
    
    .main-image {
        height: 280px;
    }
    
    /* 尺码和颜色选择器 */
    .size-options, 
    .color-options {
        justify-content: center;
    }
    
    .size-option {
        width: 60px;
        height: 60px;
    }
    
    /* 联系模态框 */
    .contact-options {
        padding: 15px;
    }
    
    /* 底部导航按钮调整 */
    .scroll-buttons {
        right: 15px;
        bottom: 20px;
    }
    
    /* 标题调整 */
    .section-header h2 {
        font-size: 20px;
    }
}

/* 移动菜单按钮样式修复 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark-gray);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 100;
    position: absolute;
    right: 15px;
    top: 15px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--medium-gray);
}

.mobile-menu-header h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 5px;
}

.mobile-menu nav {
    padding: 20px;
}

.mobile-menu nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu nav a {
    display: block;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.mobile-menu nav a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--medium-gray);
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 触摸设备的产品卡片样式 */
.product-card.touch-active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 针对触摸设备的优化 */
@media (hover: none) {
    /* 确保触摸设备上按钮和链接有足够大的点击区域 */
    .view-btn,
    .contact-btn,
    nav a,
    .footer-services a,
    .size-option,
    .color-option {
        min-height: 44px;
        padding: 12px;
    }
    
    /* 增大间距，防止误触 */
    .size-options, 
    .color-options {
        gap: 12px;
    }
    
    /* 适配iPhone X及以上刘海屏 */
    @supports (padding: max(0px)) {
        .modal-content {
            padding-left: max(15px, env(safe-area-inset-left));
            padding-right: max(15px, env(safe-area-inset-right));
        }
        
        .mobile-menu {
            padding-left: max(0px, env(safe-area-inset-left));
            padding-right: max(0px, env(safe-area-inset-right));
            padding-top: max(0px, env(safe-area-inset-top));
            padding-bottom: max(0px, env(safe-area-inset-bottom));
        }
    }
}

/* 适配超小屏幕手机 */
@media (max-width: 375px) {
    .product-image {
        height: 220px;
    }
    
    .product-card {
        margin-bottom: 15px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .scroll-btn {
        width: 40px;
        height: 40px;
    }
    
    .scroll-btn i {
        font-size: 16px;
    }
    
    /* 联系模态框调整 */
    .contact-options {
        gap: 10px;
    }
    
    .contact-option {
        padding: 15px 10px;
    }
    
    .qr-code-container {
        width: 120px;
        height: 120px;
    }
} 