/**
 * 投資人問答集(依日期)前台樣式
 */

/* 主容器 */
.investor-qa-by-date-template {
    padding: 20px 0;
}

.investor-title {
font-size: 26px !important;}

.investor-qa-by-date-template .container {
    max-width: 100%;
    padding: 0;
}

/* 側邊欄布局調整 */
.infinite-content-container .investor-qa-by-date-template {
    padding: 10px 60px;
}

.infinite-content-container .investor-qa-by-date-template .container {
    padding: 0;
    max-width: none;
}

/* 頁面標題 */
.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header .page-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.page-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 篩選區域 */
.iqd-filter-section {
    padding: 10px 20px;
}

.iqd-filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.iqd-year-selector,
.iqd-month-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.iqd-filter-label {
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    font-size: 14px;
}

.iqd-year-filter,
.iqd-month-filter {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
    background: white;
}

.iqd-year-filter:focus,
.iqd-month-filter:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* 按鈕樣式 */
.iqd-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.iqd-btn-primary {
    background: #007cba;
    color: white;
}

.iqd-btn-primary:hover {
    background: #005a87;
    color: white;
}

.iqd-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.iqd-btn-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

/* 載入指示器 */
.iqd-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.iqd-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: iqd-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes iqd-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 歡迎訊息 */
.iqd-welcome-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.iqd-welcome-content {
    max-width: 400px;
    margin: 0 auto;
}

.iqd-welcome-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.iqd-welcome-message h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

.iqd-welcome-message p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 沒有結果訊息 */
.iqd-no-results-message {
    text-align: center;
    padding: 60px 20px;
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 8px;
    margin: 20px 0;
}

.iqd-no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.iqd-no-results-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.iqd-no-results-message h3 {
    color: #f57c00;
    font-size: 20px;
    margin-bottom: 10px;
}

.iqd-no-results-message p {
    color: #e65100;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 無資料訊息 */
.iqd-no-data-message {
    text-align: center;
    padding: 60px 20px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin: 20px 0;
}

.iqd-no-data-content {
    max-width: 400px;
    margin: 0 auto;
}

.iqd-no-data-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.iqd-no-data-message h3 {
    color: #6b7280;
    font-size: 20px;
    margin-bottom: 10px;
}

.iqd-no-data-message p {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 錯誤訊息 */
.iqd-error-message {
    text-align: center;
    padding: 60px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 20px 0;
}

.iqd-error-content {
    max-width: 400px;
    margin: 0 auto;
}

.iqd-error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.iqd-error-message h3 {
    color: #dc2626;
    font-size: 20px;
    margin-bottom: 10px;
}

.iqd-error-message p {
    color: #991b1b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 表格標題 */
.iqd-table-header {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-bottom: 4px solid#283d86;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.iqd-header-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.iqd-header-row li {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.iqd-header-date {
    flex-shrink: 0;
    width: 120px;
    margin-right: 20px;
    text-align: center;
}

.iqd-header-title {
    flex: 1;
    min-width: 0;
}

.iqd-header-download {
    flex-shrink: 0;
    margin-left: 20px;
    text-align: center;
    width: 100px;
}

/* 問答集列表 */
.iqd-qa-container {
    margin-top: 0;
}

.iqd-qa-container .iqd-qa-list {
    border-radius: 0 0 8px 8px;
    border-top: none;
}

.iqd-qa-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.iqd-qa-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.iqd-qa-item:last-child {
    border-bottom: none;
}

.iqd-qa-item:hover {
    background-color: #f8f9fa;
}

.iqd-qa-date-column {
    flex-shrink: 0;
    width: 120px;
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.iqd-qa-date-display {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
}

.iqd-qa-content {
    flex: 1;
    min-width: 0;
}

.iqd-qa-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 1px;
    line-height: 1.4;
}

.iqd-qa-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.iqd-qa-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.iqd-qa-language {
    display: flex;
    align-items: center;
    gap: 5px;
}

.iqd-qa-download {
    flex-shrink: 0;
    margin-left: 20px;
}

.iqd-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.iqd-download-btn:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.iqd-download-icon {
    font-size: 16px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .iqd-filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .iqd-year-selector,
    .iqd-month-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .iqd-filter-label {
        font-size: 13px;
    }

    .iqd-year-filter,
    .iqd-month-filter {
        min-width: auto;
        width: 100%;
    }

    .iqd-qa-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 15px;
    }

    .iqd-qa-date-column {
        width: auto;
        margin-right: 0;
        margin-bottom: 10px;
        justify-content: center;
    }

    .iqd-qa-date-display {
        font-size: 13px;
        padding: 6px 10px;
    }

    .iqd-qa-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .iqd-qa-download {
        margin-left: 0;
        align-self: center;
    }

    .page-header .page-title {
        font-size: 24px;
    }

    /* 表格標題響應式 */
    .iqd-table-header {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .investor-qa-by-date-template {
        padding: 10px 0;
    }

    .iqd-filter-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .iqd-qa-item {
        padding: 15px;
    }

    .iqd-qa-date-display {
        font-size: 12px;
        padding: 5px 8px;
    }

    .iqd-welcome-message,
    .iqd-no-results-message {
        padding: 40px 15px;
    }

    .iqd-welcome-icon,
    .iqd-no-results-icon {
        font-size: 36px;
    }
}

.investor-qa-by-date-template {
    padding: 10px 60px;
    max-width: 1200px;
    margin: 0 auto;

}