/* Smith Ribbon Product Page Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5f7a;
    --secondary-color: #159895;
    --accent-color: #57c5b6;
    --dark-color: #002B5B;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

/* Language Switch */
.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover, .lang-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Content Display */
.zh-content { display: block; }
.en-content { display: none; }

body.lang-zh .zh-content { display: block; }
body.lang-zh .en-content { display: none; }
body.lang-en .zh-content { display: none; }
body.lang-en .en-content { display: block; }

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Product Detail Section */
.product-detail {
    padding: 100px 20px 60px;
    background: white;
    min-height: 100vh;
}

.product-detail .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-light);
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Product Main Section */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary-color);
}

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

/* Product Info */
.product-info {
    padding: 20px 0;
}

.product-title {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.product-subtitle {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

/* Product Specs Table */
.product-specs {
    margin-bottom: 30px;
}

.product-specs h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
}

.product-specs table tr {
    border-bottom: 1px solid #eee;
}

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

.product-specs table th,
.product-specs table td {
    padding: 15px 20px;
    text-align: left;
}

.product-specs table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    width: 40%;
}

.product-specs table td {
    color: var(--text-color);
}

/* Product Features */
.product-features {
    margin-bottom: 30px;
}

.product-features h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.product-features ul {
    list-style: none;
}

.product-features ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-color);
}

.product-features ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Product Inquiry Button */
.product-inquiry {
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.inquiry-note {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-light);
}

/* Product Applications Section */
.product-applications {
    margin-bottom: 60px;
}

.product-applications h2,
.product-video h2,
.related-products h2 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.application-card {
    background: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.application-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.application-card h4 {
    padding: 20px 20px 10px;
    font-size: 18px;
    color: var(--dark-color);
}

.application-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* Product Video Section */
.video-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    color: white;
}

.video-placeholder p {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.video-note {
    font-size: 16px;
    opacity: 0.9;
}

/* Related Products Section */
.related-products {
    margin-bottom: 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

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

.product-card .product-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-card .product-info {
    padding: 25px;
}

.product-card .product-info h3 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.product-card .product-info p {
    color: var(--text-light);
    font-size: 14px;
}

/* Inquiry Section */
.inquiry-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: white;
}

.inquiry-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-align: center;
}

.inquiry-section > .container > p {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.9;
    font-size: 18px;
}

.inquiry-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.inquiry-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-large {
    width: 100%;
    padding: 18px;
    font-size: 18px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 20px 30px;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .application-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .application-grid {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .thumbnail img {
        height: 60px;
    }
    
    .inquiry-form {
        padding: 25px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}
