
/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f8f9fa;
    --white: #fff;
    --border-color: #e0e0e0;
    --font-family: 'Helvetica Neue', Helvetica, Arial, '微軟正黑體', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

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

nav ul li a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--secondary-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #222;
    color: #bbb;
    padding: 40px 0;
    margin-top: auto;
    text-align: center;
}

footer a {
    color: #ddd;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Page: Home (index.html)
   ========================================================================== */
.hero {
    background-color: var(--bg-color);
    padding: 80px 20px;
    text-align: center;
}
.hero h1 {
    font-size: 36px;
    max-width: 800px;
    margin: 0 auto 20px;
    color: var(--primary-color);
    line-height: 1.4;
}

.about-section {
    padding: 80px 0;
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-image {
    flex: 1;
}
.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.about-text {
    flex: 1;
}
.about-text h2 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--primary-color);
}
.about-text h3 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--primary-color);
}
.about-text p {
    color: var(--light-text);
    margin-bottom: 16px;
}
.cta-box {
    margin-top: 40px;
    padding: 24px;
    background-color: var(--bg-color);
    border-left: 5px solid var(--secondary-color);
}
.cta-box p { margin: 0; }
.cta-box h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 8px;
}

.features {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}
.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}
.feature-item h3 {
    font-size: 18px;
    font-weight: 500;
}

/* ==========================================================================
   Page: Products (products.html)
   ========================================================================== */
.page-header {
    background-color: var(--bg-color);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}
.page-header h1 {
    font-size: 32px;
    color: var(--primary-color);
}
.page-header p {
    color: var(--light-text);
    margin-top: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: var(--white);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.product-image {
    width: 100%;
    height: 220px;
    background-color: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    padding: 20px;
    text-align: center;
}
.product-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* ==========================================================================
   Page: Contact / Inquiry (contact.html)
   ========================================================================== */
.contact-section {
    display: flex;
    gap: 50px;
    margin-bottom: 80px;
}
.contact-form-wrapper {
    flex: 2;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}
.contact-form-wrapper h2 {
    margin-bottom: 24px;
    color: var(--primary-color);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 16px;
    transition: border-color 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}
.contact-info-wrapper {
    flex: 1;
}
.info-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.info-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-card p {
    color: var(--light-text);
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .about-section, .contact-section {
        flex-direction: column;
    }
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
}
