﻿

/* 奇美原料報價區域 */
#chimeiTitle {
    background-color: #2A2E33 !important;
    color: #ecf0f1 !important;
    padding: 8px 15px !important;
    font-weight: bold;
    border-radius: 0px;
}

#chimei {
    border: 3px solid #e67e22;
    border-radius: 0px;
    transition: transform 0.3s ease;
}

    #chimei:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(230, 126, 34, 0.3);
    }


/* 輸入欄位樣式 */
input[type="number"],
input[type="text"],
input[type="email"],
select,
textarea {
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 0px;
    transition: border-color 0.3s ease;
    background: white;
}

    input[type="number"]:focus,
    input[type="text"]:focus,
    input[type="email"]:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: #e67e22;
        box-shadow: 0 0 5px rgba(230, 126, 34, 0.3);
    }

select {
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 35px;
}

/* 計算按鈕 */
#submit {
    background: #e67e22;
    color: white;
    text-shadow: 0 0 0.3em black;
    border: none;
    padding: 12px 30px;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    #submit:hover {
        background: #d35400;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(211, 84, 0, 0.3);
    }

/* 計算結果區域 */
#calcResult {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
    border: 2px solid #e67e22 !important;
    border-radius: 0px !important;
    padding: 25px !important;
    line-height: 1.6;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

    #calcResult .result {
        font-weight: bold;
        color: #d35400;
        font-size: 1.2rem;
    }

    #calcResult hr {
        border: none;
        height: 2px;
        background: #e67e22;
        margin: 15px 0;
    }

/* 週期預估區域 */
h2 {
    color: #2A2E33;
    font-size: 2rem;
    margin: 30px 0 20px 0;
    font-weight: bold;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
}



.noDefault {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 0px;
}

    .noDefault td {
        padding: 15px 12px;
        border-bottom: 1px solid #ecf0f1;
    }

        .noDefault td:first-child {
            background: #ecf0f1;
            font-weight: bold;
            color: #2A2E33;
            border-right: 2px solid #e67e22;
        }

#cycleTime {
    background: #ffe6e6 !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    text-align: center !important;
    text-shadow: 0 0 0.2em white;
}



/* 提交按鈕 */
.btn-primary {
    background: #e67e22;
    border: 2px solid #e67e22;
    color: white;
    padding: 15px 40px;
    border-radius: 0px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

    .btn-primary:hover {
        background: transparent;
        color: #e67e22;
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(230, 126, 34, 0.3);
    }

/* 分隔線樣式 */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #e67e22, transparent);
    margin: 30px 0;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .container {
        padding: 20px 15px;
    }

    .calDiv {
        padding: 20px;
    }

    .w3ls_head {
        font-size: 2rem;
    }

    #calcResult {
        margin-top: 20px;
        position: static !important;
    }

    div[style*="position:absolute"] {
        position: static !important;
        text-align: center !important;
        margin: 20px 0 !important;
    }

    #chimei {
        width: 150px !important;
    }


        table td {
            padding: 8px 5px;
        }
}

/* FAQ 區塊樣式 - C&J Connectors Style */

.faq {
    margin-top: 30px;
}

.faq-content {
    max-width: 100%;
    margin: 0 auto;
}

.faq-wrapper {
    background: white;
    margin-bottom: 20px;
    border-radius: 0px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #e67e22;
    transition: all 0.3s ease;
    overflow: hidden;
}

    .faq-wrapper:hover {
        transform: translateX(5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        border-left-color: #d35400;
    }

.faq-q {
    background: #2A2E33;
    color: white;
    padding: 20px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 2px solid #e67e22;
}

    .faq-q:hover {
        background: #34495e;
        color: #e67e22;
    }

    .faq-q::after {
        content: '+';
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        font-weight: bold;
        color: #e67e22;
        transition: transform 0.3s ease;
    }

.faq-wrapper.active .faq-q::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-a {
    background: #f8f9fa;
    padding: 25px 30px;
    color: #2A2E33;
    line-height: 1.7;
    display: none;
    border-top: 1px solid #ecf0f1;
}

.faq-wrapper.active .faq-a {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ 內部列表樣式 */
.faq-a ul {
    margin: 15px 0;
    padding-left: 30px;
}

    .faq-a ul.ul-disc {
        list-style: disc;
    }

        .faq-a ul.ul-disc li {
            margin-bottom: 20px;
            line-height: 1.6;
        }

    .faq-a ul.ul-number {
        list-style: decimal;
    }

        .faq-a ul.ul-number li {
            margin-bottom: 30px;
            line-height: 1.6;
        }

    .faq-a ul.ul-none {
        list-style: none;
        padding-left: 0;
    }

        .faq-a ul.ul-none li {
            margin-bottom: 30px;
            padding: 5px;
        }

/* FAQ 內部標題樣式 */
.faq-a h4 {
    color: #2A2E33;
    font-weight: bold;
    margin: 20px 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e67e22;
    display: inline-block;
}

/* 嵌套列表樣式 */
.faq-a ul ul {
    margin-top: -10px;
    border-left: 2px solid #e67e22;
    padding-left: 35px;
}

    .faq-a ul ul li {
        margin-bottom: 8px;
    }

/* 特殊強調樣式 */
.faq-a li strong {
    color: #e67e22;
    font-weight: bold;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .faq-wrapper {
        margin-bottom: 15px;
    }

    .faq-q {
        padding: 15px 20px;
        font-size: 1rem;
    }

        .faq-q::after {
            right: 20px;
            font-size: 1.3rem;
        }

    .faq-a {
        padding: 30px;
    }

        .faq-a ul {
            padding-left: 20px;
        }

            .faq-a ul ul {
                padding-left: 35px;
            }

        .faq-a h4 {
            font-size: 1.2rem;
        }

        .faq-a ul ul {
            padding-left: 35px;
        }

    .box-faq.style3 {
        padding: 1em;
    }
}

@media (max-width: 480px) {
    .faq-q {
        padding: 12px 15px;
    }

        .faq-q::after {
            right: 15px;
            font-size: 1.2rem;
        }

    .faq-a {
        padding: 15px;
    }

        .faq-a ul {
            padding-left: 12px;
        }

            .faq-a ul ul {
                margin-left: 8px;
                padding-left: 8px;
            }

        .faq-a h4 {
        }
}

/* 互動狀態 */
.faq-wrapper.active {
    border-left-color: #d35400;
}

    .faq-wrapper.active .faq-q {
        background: #d35400;
        color: white;
    }

/* 載入狀態 */
.faq-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

    .faq-loading::after {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid #e67e22;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-left: 10px;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 搜尋功能 (如果需要) */
.faq-search {
    margin-bottom: 30px;
    text-align: center;
}

    .faq-search input {
        padding: 12px 20px;
        border: 2px solid #ddd;
        border-radius: 0px;
        font-size: 1rem;
        width: 100%;
        max-width: 400px;
        transition: border-color 0.3s ease;
    }

        .faq-search input:focus {
            outline: none;
            border-color: #e67e22;
            box-shadow: 0 0 5px rgba(230, 126, 34, 0.3);
        }

/* 無結果狀態 */
.faq-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

    .faq-no-results::before {
        content: '🔍';
        display: block;
        font-size: 3rem;
        margin-bottom: 15px;
        opacity: 0.5;
    }

/* 標籤分類 (如果需要) */
.faq-tags {
    margin-bottom: 20px;
    text-align: center;
}

.faq-tag {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 0px;
    color: #2A2E33;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .faq-tag:hover,
    .faq-tag.active {
        background: #e67e22;
        border-color: #e67e22;
        color: white;
    }


@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .container {
        padding: 15px 10px;
    }

    .calDiv {
        padding: 15px;
    }

    .w3ls_head {
        font-size: 1.5rem;
    }

    input[type="number"],
    input[type="text"],
    input[type="email"],
    select {
        padding: 8px 10px;
    }

    #calcResult {
        padding: 15px !important;
    }

    .contact-grids1 {
        padding: 20px;
    }

    #chimei {
        width: 120px !important;
    }
}

/* 動畫效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* 工具提示效果 */
.tooltip {
    position: relative;
    cursor: help;
}

    .tooltip:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        background: #2A2E33;
        color: white;
        padding: 8px 12px;
        border-radius: 4px;
        white-space: nowrap;
        z-index: 1000;
    }

/* 特殊狀態樣式 */
.required {
    color: #e74c3c;
}

.readonly-input {
    background: #f8f9fa !important;
    cursor: not-allowed;
}

/* 表單驗證樣式 */
.invalid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3) !important;
}

.valid {
    border-color: #27ae60 !important;
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.3) !important;
}

/* 載入動畫 */
.loading {
    position: relative;
    pointer-events: none;
}

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid #e67e22;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
