/* ============================================
   幸福計畫頁面樣式 - Happiness Plan Styles
   ============================================ */

/* 容器樣式 */
.happiness-plan-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 區塊樣式 */
.plan-section {
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* 區塊標題 */
.section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e74c3c;
}

.section-title .icon {
    width: 32px;
    height: 32px;
    fill: #e74c3c;
}

.section-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* ============================================
   島嶼評估卡片網格
   ============================================ */
.evaluation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.eval-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.eval-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.eval-card:nth-child(2) .card-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.eval-card:nth-child(3) .card-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.eval-card:nth-child(4) .card-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.eval-card:nth-child(5) .card-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.eval-card:nth-child(6) .card-header {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2c3e50;
}

.card-icon {
    font-size: 1.8rem;
}

.card-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.card-content {
    padding: 20px;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.checklist li {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    line-height: 1.6;
    color: #555;
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist li strong {
    color: #2c3e50;
}

.rating-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.rating-label {
    font-weight: bold;
    color: #666;
}

.rating-stars {
    color: #ffc107;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* ============================================
   比較表格樣式
   ============================================ */
.comparison-table-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.comparison-table-container h4 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.score {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    color: white;
}

.score.high {
    background: #27ae60;
}

.score.medium {
    background: #f39c12;
}

.score.low {
    background: #e74c3c;
}

/* ============================================
   遊艇規劃區塊樣式
   ============================================ */
.yacht-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.yacht-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.yacht-card h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-size: 1.2rem;
}

/* 警告框 */
.alert-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-box.important {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.alert-box strong {
    color: #856404;
}

.alert-box.important strong {
    color: #721c24;
}

/* 法律項目 */
.legal-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-item h5 {
    color: #34495e;
    margin-bottom: 10px;
    font-size: 1rem;
}

.legal-item p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-item ul {
    margin: 0;
    padding-left: 20px;
}

.legal-item li {
    margin-bottom: 5px;
    color: #555;
}

.forbidden-list {
    list-style: none;
    padding: 0;
}

.forbidden-list li {
    padding: 8px 0;
    color: #e74c3c;
    font-weight: 500;
}

/* 文件清單 */
.doc-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.doc-category h5 {
    color: #2980b9;
    margin-bottom: 15px;
    font-size: 1rem;
}

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

.doc-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.doc-list li:last-child {
    border-bottom: none;
}

.doc-list input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.doc-list label {
    cursor: pointer;
    color: #555;
    line-height: 1.5;
    flex: 1;
}

.doc-list input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    color: #999;
}

/* 程序步驟 */
.procedure-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-num {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
}

.step-content p {
    color: #666;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* 安全提示 */
.safety-tips {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-box {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.tip-box.warning {
    background: #fff5f5;
    border-left-color: #e53e3e;
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-content strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
}

.tip-content p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 地區注意事項 */
.regional-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.note-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-top: 3px solid #3498db;
}

.note-item h6 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1rem;
}

.note-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 預算表格 */
.budget-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.budget-table th,
.budget-table td {

    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.budget-table th {
    background: #34495e;
    color: white;
    font-weight: 600;
}

.budget-table tr:hover {
    background: #f8f9fa;
}

/* 總結區塊 */
.summary-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

.summary-box h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.summary-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.summary-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-item p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================
   響應式設計
   ============================================ */
@media (max-width: 768px) {
    .happiness-plan-container {
        padding: 10px;
    }

    .plan-section {
        padding: 20px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .evaluation-grid,
    .yacht-content-grid {
        grid-template-columns: 1fr;
    }

    .doc-categories {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }

    .regional-notes {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tip-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}