* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-image: url('images/metal-texture.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    min-height: 100vh;
    animation: fadeIn 0.3s ease-in-out;
}

.product-image {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    text-align: center;
    margin-bottom: 30px;
}

.product-info h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.product-info h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.product-code {
    color: #666;
    font-size: 14px;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buttons button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: #000000;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buttons button:hover {
    background-color: #333333;
}

.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 20px;
}

.tab-btn.active {
    background: #000000;
    color: #ffffff;
}

.tab-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.info-group {
    margin-bottom: 20px;
}

.info-group h3 {
    margin-bottom: 15px;
    color: #333;
}

.info-group ul {
    list-style: none;
}

.info-group ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.info-group ul li span {
    font-weight: bold;
    margin-right: 10px;
}

.info-group .sub-list {
    margin-top: 5px;
    padding-left: 20px;
    list-style: none;
}

.info-group .sub-list li {
    padding: 4px 0;
    border-bottom: none;
    color: #666;
    font-size: 14px;
}

.model-viewer-container {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
    --progress-bar-color: #000000;
    --progress-bar-height: 2px;
}

.view-controls {
    display: none;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.view-btn {
    padding: 10px 20px;
    border: none;
    background: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: #000000;
    color: #ffffff;
    transform: scale(1.05);
}

.view-btn:hover {
    background: #000000;
    color: #ffffff;
}

.model-info {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.model-info h3 {
    margin-bottom: 10px;
}

.model-info ul {
    list-style: none;
    padding-left: 20px;
}

.model-info ul li {
    margin-bottom: 8px;
    position: relative;
}

.model-info ul li:before {
    content: "•";
    position: absolute;
    left: -15px;
    color: #000000;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

.authentication {
    margin-top: 20px;
    text-align: center;
}

.qr-code {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
}

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

.certifications {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.cert-item {
    text-align: center;
    width: 120px;
}

.cert-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-bottom: 8px;
}

.cert-item p {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.care-list {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.care-list h3 {
    margin-bottom: 20px;
    color: #333;
}

.care-list ul {
    list-style: none;
    padding: 0;
}

.care-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #333;
}

.care-list li:last-child {
    border-bottom: none;
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
}

.nav-btn {
    display: block;
    padding: 15px 20px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-header {
    display: flex;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 0;
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

.page-header h1 {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: #333;
}

.content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

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

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .product-image {
        height: 300px;
    }
    
    .product-info h1 {
        font-size: 20px;
    }
    
    .product-info h2 {
        font-size: 16px;
    }
    
    .tabs {
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 8px 15px;
    }
    
    .nav-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .page-header {
        padding: 15px 0;
    }
    
    .content {
        padding: 15px;
    }

    .model-viewer-container {
        height: 50vh;
        min-height: 300px;
    }

    .view-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .model-info {
        font-size: 14px;
    }
}

/* 可持续发展页面样式 */
.sustainability-details {
    margin-top: 30px;
}

.commitment {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.commitment ul {
    margin-top: 10px;
    padding-left: 20px;
}

.commitment ul li {
    margin-bottom: 8px;
    list-style-type: disc;
}

/* 保养维护页面样式 */
.service-details, .recycling-details {
    margin-top: 15px;
}

.service-details ul, .recycling-details ul {
    margin: 10px 0;
    padding-left: 20px;
}

.service-details ul li, .recycling-details ul li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.contact {
    margin-top: 15px;
    padding: 10px;
    background: #000000;
    color: #ffffff;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.recycling-info {
    margin-top: 30px;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 10px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .sustainability-details h4 {
        margin-top: 20px;
    }
    
    .service-details, .recycling-details {
        font-size: 14px;
    }
    
    .contact {
        font-size: 14px;
        padding: 8px;
    }
}

.product-video {
    width: 100%;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.product-video video,
.product-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border-radius: 10px;
    background: #ffffff;
}

/* 视频控制器样式优化 */
.product-video video::-webkit-media-controls {
    background-color: rgba(255, 255, 255, 0.9);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .product-video {
        margin: 15px 0;
    }
}

.product-video-player {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.product-video-player video {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border-radius: 10px;
}

.video-description {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.video-description h3 {
    margin-bottom: 10px;
    color: #333;
}

.video-description ul {
    list-style: none;
    padding-left: 20px;
}

.video-description ul li {
    margin-bottom: 8px;
    position: relative;
}

.video-description ul li:before {
    content: "•";
    position: absolute;
    left: -15px;
    color: #000000;
}

/* 产品展示页样式 */
.product-gallery {
    margin-bottom: 30px;
}

.main-image {
    width: 100%;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-list {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.view-btn-group {
    display: flex;
    gap: 20px;
}

.view-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.view-btn img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.view-btn.active {
    opacity: 1;
}

.product-details {
    padding: 20px 0;
}

.product-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.product-ref {
    color: #666;
    margin-bottom: 30px;
}

.price-weight-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.price-info,
.weight-info {
    flex: 1;
}

.price-info h3,
.weight-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.price,
.weight {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.product-overview h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.color-section,
.size-section {
    margin-bottom: 30px;
}

.color-section h3,
.size-section h3 {
    margin-bottom: 15px;
}

.color-options {
    display: flex;
    gap: 15px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

.color-btn.active {
    border-color: #000;
}

.color-btn .color-name {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
}

.size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.size-chart-btn {
    border: none;
    background: none;
    text-decoration: underline;
    cursor: pointer;
    color: #666;
}

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

.size-btn {
    min-width: 60px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.size-btn:hover {
    border-color: #000;
}

.size-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.size-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .product-title {
        font-size: 20px;
    }

    .color-btn {
        width: 30px;
        height: 30px;
    }

    .size-btn {
        min-width: 50px;
        padding: 10px 15px;
    }
}

/* 验证页面样式 */
.auth-content {
    padding: 20px;
    text-align: center;
}

.auth-status {
    margin-bottom: 30px;
}

.auth-icon {
    width: 60px;
    height: 60px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 15px;
}

.transfer-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.transfer-btn:hover {
    background: #45a049;
}

.detail-item {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    text-align: left;
}

.detail-item h3 {
    margin-bottom: 10px;
    color: #333;
}

.detail-item ul {
    list-style: none;
}

.detail-item ul li {
    margin: 10px 0;
    color: #666;
}

.detail-item ul li span {
    color: #333;
    font-weight: bold;
}

/* 数字孪生页面样式 */
.digital-twin-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.digital-twin-info {
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.digital-twin-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.digital-twin-info ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.digital-twin-info ul li {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 15px;
    color: #444;
}

.nft-info {
    padding: 25px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
}

.nft-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.nft-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.nft-btn {
    margin-top: 15px;
    padding: 12px 30px;
    background: #000;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.nft-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* 功能特性样式 */
.features-section {
    margin: 30px 0;
}

.feature-list {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    justify-content: space-between;
}

.feature-list li {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* 规格详情样式 */
.specs-section {
    margin: 30px 0;
}

.spec-group {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.spec-group h4 {
    margin-bottom: 10px;
    color: #333;
}

.spec-group ul {
    list-style: none;
    padding-left: 15px;
}

.spec-group li {
    margin: 5px 0;
    position: relative;
}

.spec-group li:before {
    content: "•";
    position: absolute;
    left: -15px;
    color: #000;
}

/* 面料信息的子列表样式 */
.sub-list {
    margin-top: 5px;
    margin-left: 20px;
    padding-left: 0;
}

.sub-list li {
    margin: 3px 0;
    font-size: 14px;
    color: #666;
}

.sub-list li:before {
    left: -12px;
    font-size: 12px;
}

.spec-group li strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

/* 产品描述样式 */
.product-description {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.product-info h4 {
    margin: 20px 0 10px;
    color: #333;
}

.product-info p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-overview {
    margin: 20px 0 30px;
}

.sustainability-content {
    margin-top: 15px;
}

.sustainability-item {
    margin-bottom: 20px;
}

.sustainability-item h4 {
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
}

.sustainability-item p {
    line-height: 1.6;
    color: #666;
}

/* 供应链追溯页面样式 */
.trace-list {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.trace-list h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.trace-item {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.trace-item:last-child {
    border-bottom: none;
}

.item-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.item-value {
    font-size: 14px;
    color: #666;
}

/* 社交媒体分享样式 */
.social-share {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.social-share h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    width: 120px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    transform: translateY(-2px);
    filter: brightness(110%);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.tiktok {
    background: #000000;
}

.social-btn.twitter {
    background: #1DA1F2;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .social-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
} 