/* 
* 香港尚赫國際股份有限公司 - 網站重新設計
* 更年輕、更輕量的設計風格
*/

/* 基本設置 */
:root {
    --primary: #009966;
    --primary-light: #4ECDC4;
    --secondary: #FF6B6B;
    --dark: #333333;
    --light: #F7F7F7;
    --white: #FFFFFF;
    --gray: #6c757d;
    --pink-bg: #FFF0F3;
    --green-bg: #F0FFF4;
    --blue-bg: #F0F7FF;
    --purple-bg: #F3F0FF;
    --yellow-bg: #FFFDF0;
    --teal-bg: #F0FFFC;
}

body {
    font-family: 'Open Sans', 'Noto Sans TC', sans-serif;
    color: var(--dark);
    line-height: 1.5;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

h1 {
    font-size: 2.3rem;
}

h2 {
    font-size: 1.8rem;
    position: relative;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 0.8rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

section {
    padding: 3rem 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.section-header p {
    color: var(--gray);
    font-size: 1.05rem;
}

.text-center .section-header h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* 按鈕樣式 */
.btn {
    padding: 0.5rem 1.3rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* 導航欄 */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.6rem 0;
}

.navbar-brand {
    padding: 0;
}

.logo {
    height: 45px;
}

.navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    position: relative;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: 80%;
}

.navbar-nav .nav-link.active {
    color: var(--primary);
}

.phone-link {
    color: var(--primary);
    font-weight: 600;
    margin-left: 1.2rem;
    display: flex;
    align-items: center;
}

.phone-link i {
    margin-right: 0.4rem;
    font-size: 1.1rem;
}

/* 英雄區域 */
.hero {
    padding: 6rem 0 3rem;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 153, 102, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--dark);
}

.hero-text {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 產品卡片 */
.new-products {
    background-color: var(--white);
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    padding: 1.5rem;
    text-align: center;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pink-bg {
    background-color: var(--pink-bg);
}

.green-bg {
    background-color: var(--green-bg);
}

.blue-bg {
    background-color: var(--blue-bg);
}

.purple-bg {
    background-color: var(--purple-bg);
}

.yellow-bg {
    background-color: var(--yellow-bg);
}

.teal-bg {
    background-color: var(--teal-bg);
}

.product-image img {
    max-height: 180px;
    transition: all 0.3s ease;
}

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

.product-info {
    padding: 1.2rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.product-info p {
    color: var(--gray);
    margin-bottom: 1.2rem;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.feature-tag {
    background-color: var(--light);
    color: var(--primary);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 關於我們 */
.about-us {
    background-color: var(--light);
}

.about-image img {
    width: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.milestones {
    margin-top: 1.5rem;
}

.milestone {
    display: flex;
    margin-bottom: 0.8rem;
}

.milestone-year {
    font-weight: 700;
    color: var(--primary);
    min-width: 60px;
}

.milestone-desc {
    padding-left: 1rem;
    position: relative;
}

.milestone-desc:before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
}

/* 我們的優勢 */
.our-advantages {
    background-color: var(--white);
}

.advantage-card {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.advantage-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.advantage-card p {
    color: var(--gray);
}

/* 聯繫我們 */
.contact-section {
    background-color: var(--light);
}

.contact-info-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.2rem;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--primary);
    margin-right: 0.8rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.contact-form-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-card h3 {
    margin-bottom: 1.2rem;
    text-align: center;
}

.form-control {
    border-radius: 30px;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary);
}

textarea.form-control {
    border-radius: 20px;
}

/* 頁腳 */
.footer {
    background-color: #222;
    color: #aaa;
    padding: 3rem 0 0;
}

.footer-logo {
    margin-bottom: 1.2rem;
}

.footer-logo img {
    height: 45px;
}

.footer-about {
    margin-bottom: 1.5rem;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.4rem;
}

.footer h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #aaa;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--primary);
    margin-right: 0.6rem;
    margin-top: 0.2rem;
}

.footer-contact a {
    color: #aaa;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding: 1.2rem 0;
    margin-top: 2rem;
}

.copyright {
    margin-bottom: 0;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

.social-links li {
    margin-left: 0.8rem;
}

.social-links a {
    color: #aaa;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

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

/* 產品詳情頁 */
.product-detail-section {
    padding-top: 6rem;
}

.breadcrumb-container {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    padding: 0;
    margin: 0;
    background-color: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray);
}

.product-detail-content {
    margin-bottom: 2rem;
}

.product-image-container {
    background-color: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.product-main-image {
    max-height: 400px;
    margin: 0 auto;
}

.product-info-container {
    padding: 0 0.5rem;
}

.product-title {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.product-features-list {
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.feature-item i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.product-description, .product-usage, .product-target {
    margin-bottom: 1.2rem;
}

.product-details-tabs {
    margin-bottom: 2rem;
}

.nav-tabs {
    border-bottom: 1px solid #ddd;
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-content {
    padding: 0.5rem;
}

.ingredients-content, .benefits-content, .faq-content {
    margin-bottom: 1rem;
}

.benefits-content ul {
    padding-left: 1.2rem;
}

.benefits-content li {
    margin-bottom: 0.5rem;
}

.accordion-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    padding: 1rem;
    font-weight: 500;
    background-color: var(--white);
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: rgba(0, 153, 102, 0.05);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #eee;
}

.accordion-body {
    padding: 1rem;
    background-color: var(--white);
}

.related-products {
    background-color: var(--light);
}

/* 頁面標題 */
.page-header {
    background-color: var(--light);
    padding: 6rem 0 2rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* 響應式設計 */
@media (max-width: 991.98px) {
    section {
        padding: 2.5rem 0;
    }
    
    .hero {
        padding: 6rem 0 2.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-image {
        margin-top: 1.5rem;
    }
    
    .contact-info-card {
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 0.8rem;
    }
    
    .copyright {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 2rem 0;
    }
    
    .hero {
        padding: 5.5rem 0 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .footer {
        padding: 2rem 0 0;
    }
    
    .footer-logo, .footer h4 {
        margin-top: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
}
