/* style.css - 力瀧科技有限公司共用樣式 */
/* 全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft JhengHei', sans-serif;
}

:root {
    --primary-color: #1a2a3a;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --metal-color: #7f8c8d;
    --light-metal: #bdc3c7;
    --dark-metal: #2c3e50;
    --text-color: #ecf0f1;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2a3a 100%);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 頁首樣式 */
header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1000;
}

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

.logo-link {
    display: flex;
    align-items: center;
}

.company-logo {
    width: 360px;
    height: 51px;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

nav ul li a:hover:after {
    left: 10%;
    width: 80%;
}

/* 主題區域樣式 */
.main-content {
    position: relative;
    z-index: 1;
}

.section {
    padding: 60px 0;
    position: relative;
}

/* 漸層分隔線 */
.section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

.section:nth-child(even) {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(26, 42, 58, 0.9) 100%);
}

.section:nth-child(odd) {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.9) 0%, rgba(44, 62, 80, 0.9) 100%);
}

/* 橫幅樣式 */
.banner {
    height: 680px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--primary-color));
}

.banner-content {
    max-width: 800px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

/* 產品展示區樣式 */
.products-showcase {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    color: var(--text-color);
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

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

.product-card {
    background: linear-gradient(145deg, rgba(52, 73, 94, 0.9), rgba(44, 62, 80, 0.9));
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 680px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.product-img {
    height: 480px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.product-img:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.8));
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-info p {
    color: var(--light-metal);
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--accent-color), #c0392b);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: linear-gradient(to right, #c0392b, var(--accent-color));
    transform: scale(1.05);
}

/* 公司簡介樣式 */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 18px;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.feature h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* 專業工廠區塊樣式 */
.factory-image-container {
    height: 400px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/factory_pic.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.factory-image-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(231, 76, 60, 0.1), rgba(52, 152, 219, 0.1));
    z-index: 1;
}

.factory-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.factory-content i {
    font-size: 80px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.factory-content h3 {
    color: var(--text-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.factory-content p {
    color: var(--light-metal);
    margin-top: 10px;
}

/* 頁尾樣式 */
footer {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 50px 0 20px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

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

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.footer-column p, .footer-column a {
    color: var(--light-metal);
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-metal);
    font-size: 14px;
}

/* 移動端適配 */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .banner h1 {
        font-size: 36px;
    }
    
    .company-logo {
        width: 280px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    .logo-link {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .banner {
        height: 500px;
    }
    
    .product-card {
        height: auto;
    }
    
    .product-img {
        height: 350px;
    }
    
    .company-logo {
        width: 240px;
        height: 34px;
    }
    
    .factory-image-container {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .banner h1 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .company-logo {
        width: 200px;
        height: 28px;
    }
    
    .factory-image-container {
        height: 300px;
    }
    
    .factory-content i {
        font-size: 60px;
    }
}