/* 全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero-header {
    text-align: center;
    margin: -40px -20px 50px -20px;
    padding: 80px 20px;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.8), rgba(0,255,136,0.8));
    border-radius: 20px 20px 0 0;
}

.header-content {
    position: relative;
    z-index: 2;
}

.title-box {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin: 0 auto;
    max-width: 90%;
}

.hero-header h1 {
    font-size: 3em;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-header .subtitle {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 0;
    line-height: 1.6;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .hero-header {
        margin: -20px -10px 30px -10px;
        padding: 60px 15px;
    }

    .title-box {
        padding: 20px;
    }

    .hero-header h1 {
        font-size: 2em;
    }

    .hero-header .subtitle {
        font-size: 1.1em;
    }
}

/* 基礎設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Particles 背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 主容器 */
.container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 標題樣式 */
header {
    text-align: center;
    margin-bottom: 50px;
}

header h1 {
    font-size: 3em;
    background: linear-gradient(45deg, #007bff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

/* 區塊樣式 */
.coach-profile, .intro-section, .process-overview {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.coach-profile:hover, .intro-section:hover, .process-overview:hover {
    transform: translateY(-5px);
}

/* 經驗列表 */
.experience-list {
    list-style: none;
    padding: 0;
}

.experience-list li {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid #007bff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.experience-list strong {
    display: block;
    font-size: 1.2em;
    color: #007bff;
    margin-bottom: 10px;
}

/* 價格區塊 */
.pricing-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.pricing-list {
    list-style: none;
    padding: 0;
}

.pricing-list li {
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

.pricing-list li:last-child {
    border-bottom: none;
}

/* 特色列表 */
.features {
    list-style: none;
    padding: 0;
}

.features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
}

/* 流程卡片網格 */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.step-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    margin-bottom: 15px;
}

.cta-section {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    /* 移除 padding 讓按鈕與上方內容對齊 */
    padding-left: 0;
    padding-right: 0;
}

.button-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* 移除最大寬度限制，讓按鈕寬度與容器一致 */
    width: 100%;
}

.primary-btn, .quick-start-btn {
    padding: 20px 30px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.1em;
    width: 100%;
    text-align: center;
}

.quick-start-btn {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
}

.primary-btn {
    background: linear-gradient(45deg, #007bff, #00ff88);
    color: white;
}

.primary-btn:hover, .quick-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.note {
    color: #666;
    margin-top: 20px;
    font-size: 0.9em;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .cta-section {
        padding: 0;
    }
    
    .primary-btn, .quick-start-btn {
        padding: 15px 20px;
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
        border-radius: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
        margin: 10px 0;
    }
}

/* 動畫效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}


.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

/* 標題樣式 */
h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
    font-size: 2.5em;
}

h2 {
    color: #34495e;
    margin: 20px 0 15px;
    font-size: 1.8em;
}

h3 {
    color: #7f8c8d;
    margin: 15px 0 10px;
    font-size: 1.3em;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* 進度條 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #007bff, #0056b3);
    transition: width 0.5s ease;
}

/* 表單樣式 */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* 複選框和滑塊 */
.checkbox-group,
.slider-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-group label,
.slider-item {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 5px;
    width: auto;
}

.slider-item {
    width: 100%;
    justify-content: space-between;
}

input[type="range"] {
    width: 200px;
    margin: 0 10px;
}

/* 按鈕樣式 */
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
}

.primary-btn,
.secondary-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.primary-btn {
    background: #007bff;
    color: white;
}

.primary-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.secondary-btn {
    background: #6c757d;
    color: white;
}

.secondary-btn:hover {
    background: #545b62;
}

.primary-btn:disabled,
.secondary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 首頁特殊樣式 */
.intro-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.features {
    list-style: none;
    padding-left: 0;
}

.features li {
    padding: 8px 0;
    font-size: 1.1em;
}

.process-overview {
    margin: 30px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.step-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.cta-section {
    text-align: center;
    margin: 40px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
}

.cta-section .primary-btn {
    font-size: 1.2em;
    padding: 15px 40px;
}

.note {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
}

/* 分析結果顯示 */
.previous-analysis,
.ai-suggestion,
.action-plan-summary {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #1976d2;
}

.previous-analysis h3,
.ai-suggestion h3,
.action-plan-summary h3 {
    color: #1976d2;
    margin-bottom: 10px;
}

/* 響應式設計 */
@media (max-width: 768px) {
	.button-stack {
        padding: 0 10px;
    }
    
    .primary-btn, .quick-start-btn {
        padding: 15px 20px;
    }
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .primary-btn,
    .secondary-btn {
        width: 100%;
    }
    
    .slider-item input[type="range"] {
        width: 150px;
    }
    
    .checkbox-group {
        flex-direction: column;
    }
}

/* 載入動畫 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* 列印樣式 */
@media print {
    body {
        background: white;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
        box-shadow: none;
    }
    
    .button-group,
    .progress-bar,
    .no-print {
        display: none !important;
    }
    
    .form-group {
        page-break-inside: avoid;
    }
}

/* 特殊效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 錯誤和成功訊息 */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

