/* 1. 基础设置与变量 */
:root {
    --primary-color: #6B8E88; /* 治愈系灰绿 */
    --secondary-color: #D3D9D4; /* 浅灰绿 */
    --bg-color: #fdfbf7; /* 暖米白背景 */
    --text-main: #2C3E50; /* 深灰蓝字体 */
    --text-light: #7F8C8D; /* 浅灰字体 */
    --footer-bg: #EFE9DB; /* 底部稍微深一点 */
    --card-bg: #FFFFFF;
    --shadow: 0 4px 20px rgba(107, 142, 136, 0.08); 
    --font-heading: "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-body: "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 2. 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(255, 255, 255, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    flex-shrink: 0; 
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Georgia', serif;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li {
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links li:hover, .nav-links li.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 3. 页面容器 */
.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1 0 auto;
}

.page { display: none; animation: fadeIn 0.5s ease-in-out; }
.active-page { display: block; }

/* 4. 头部个人信息 */
.profile-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.profile-img-container {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: var(--shadow);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-img:hover { transform: scale(1.05); }

.profile-info h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.title-tag {
    font-size: 1rem;
    background-color: var(--secondary-color);
    color: var(--text-main);
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    font-weight: normal;
    margin-left: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.tags { display: flex; gap: 10px; margin-bottom: 1.5rem; }
.tag {
    font-size: 0.85rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 2px 10px;
    border-radius: 20px;
}

.intro-text {
    font-style: italic;
    color: #555;
    background: white;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow);
}

/* === 5. 核心数据卡片 (动画布局 精细调整) === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem; 
}

.mobile-tap-hint {
    display: none;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 3rem;
    animation: bounce 2s infinite;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 220px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

/* 上半部分：图标、数字、标题 */
.card-content-top {
    transition: all 0.4s ease;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.card-content-top i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px; /* 默认间距 */
    display: block;
    transition: opacity 0.2s ease;
}

.card-content-top h3 {
    font-size: 1.5rem;
    margin-bottom: 5px; 
    color: var(--text-main);
    transition: margin 0.4s ease; /* 增加 margin 的过渡 */
}

.card-content-top p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* 下半部分：解释文案 */
.card-content-bottom {
    position: absolute;
    /* 初始位置在下面 */
    top: 55%; 
    left: 0;
    width: 100%;
    padding: 0 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    text-align: justify;
}

/* === 激活状态逻辑 === */
.stat-card:hover .card-content-top,
.stat-card.active .card-content-top {
    /* 整体上移，留出下半部分空间 */
    transform: translateY(-65px); 
}

.stat-card:hover .card-content-top i,
.stat-card.active .card-content-top i {
    /* 图标消失 */
    opacity: 0;
    height: 0;
    margin: 0;
}

.stat-card:hover .card-content-top h3,
.stat-card.active .card-content-top h3 {
    /* 激活时，增加标题下方的间距 */
    margin-bottom: 15px; 
}

.stat-card:hover .card-content-bottom,
.stat-card.active .card-content-bottom {
    opacity: 1;
    /* 上移文案到视觉中心 */
    transform: translateY(-10px); 
}

.stat-card:hover, .stat-card.active {
    box-shadow: 0 8px 25px rgba(107, 142, 136, 0.15);
}


/* 通用两列布局 */
.grid-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.resume-section h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px dashed var(--secondary-color);
    padding-bottom: 10px;
}

/* 温情导语样式 - 无边框 */
.section-subtitle {
    font-family: "FangSong", "Kaiti", serif; 
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 5px; 
    border-left: none; 
    line-height: 1.7;
    background: transparent;
    font-style: italic;
    text-align: left;
}

/* 6. 时间轴 */
.timeline {
    list-style: none;
    position: relative;
    padding-left: 20px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 0;
    width: 2px;
    background: #D3D9D4;
}
.timeline li { margin-bottom: 1.5rem; position: relative; }
.timeline li::after {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
}
.date { display: block; font-size: 0.85rem; color: var(--text-light); margin-bottom: 4px; }

/* 7. 卡片样式 (擅长领域等) */
.card-style {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: 100%;
}

/* 议题标签 (Tag 样式) */
.topic-list {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;
}

.topic-tag {
    background-color: var(--bg-color); 
    border: 1px solid rgba(107, 142, 136, 0.2);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: default;
}

.topic-tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 咨询流派 */
.approach-item { margin-bottom: 1rem; }
.approach-item h4 { color: var(--text-main); margin-bottom: 4px; }
.approach-item p { font-size: 0.9rem; color: #666; }

/* 咨询费用与方式 */
.fee-section {
    width: 100%;
    margin-bottom: 2rem;
}

.fee-card {
    background: white;
    padding: 2rem; 
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 5px solid var(--secondary-color);
}

.fee-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.fee-item h3 { 
    color: var(--text-main); 
    font-size: 1.3rem; 
    margin-bottom: 8px; 
}

.fee-item p { 
    color: var(--primary-color); 
    font-weight: bold; 
    font-size: 1.5rem; 
}

.fee-item span { 
    font-size: 1rem; 
    color: #999; 
    font-weight: normal; 
}

.fee-secondary {
    font-size: 1.1rem !important; 
    color: #7F8C8D !important;
    margin-top: 5px;
    font-weight: normal !important;
}

/* 联系我板块优化 */
.contact-full-width { margin-top: 1rem; width: 100%; }
.contact-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4fcfb 100%);
    text-align: center;
    padding: 3rem 2rem; 
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-action-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    margin: 1.5rem 0 2.5rem; 
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(107, 142, 136, 0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.contact-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 142, 136, 0.4);
    background-color: #5a7a75;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 2rem;
    position: relative; 
}

/* 联系方式上方提示语 */
.contact-divider-text {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.8rem; 
    margin-top: -0.5rem; 
}

.contact-method-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-method-item img {
    width: 100px; 
    height: 100px;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 5px;
    background: white;
}

.contact-method-item p {
    font-size: 0.9rem;
    color: #666;
}

.contact-method-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* === 8. 预约系统优化 === */
.booking-layout {
    display: flex; gap: 3rem; max-width: 1100px;
    margin: 0 auto; background: white; padding: 2rem;
    border-radius: 20px; box-shadow: var(--shadow);
    align-items: flex-start; /* 顶部对齐 */
    flex-direction: column; /* 默认垂直排列，适应新插入的说明板块 */
}

/* 恢复左右布局的容器 */
.booking-content-wrapper {
    display: flex;
    gap: 3rem;
    width: 100%;
}

.calendar-section { flex: 1.2; }
.form-section { flex: 0.8; padding-left: 2rem; border-left: 1px dashed var(--secondary-color); padding-top: 0; }
.section-title h2 { color: var(--primary-color); font-size: 1.2rem; margin-bottom: 0.5rem; margin-top: 0; }
.section-title p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* 新增：初始评估说明板块 */
.intro-notice-box {
    background-color: #f4fcfb; /* 极淡的绿色背景 */
    border: 1px solid #dbece9;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    color: #555;
    font-size: 0.95rem;
}

.intro-notice-box h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.intro-notice-box ul {
    margin: 10px 0 10px 20px;
    padding: 0;
}

.intro-notice-box li {
    margin-bottom: 5px;
    color: #666;
}

.intro-notice-box .notice-footer {
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

/* 新增：回复时效说明 */
.reply-notice {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    margin-top: 15px;
    line-height: 1.5;
}

.reply-notice strong {
    color: var(--primary-color);
}

/* 日历选择器 */
.week-selector {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; background: transparent; 
    padding: 5px 0;
}
.week-days { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 5px; }

/* 简约箭头 */
.nav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--secondary-color); 
    font-size: 1.5rem; 
    padding: 0 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}
.nav-btn:hover {
    color: var(--primary-color); 
    transform: scale(1.1); 
}

/* 日期按钮 */
.day-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 50px; height: 60px; border-radius: 8px; cursor: pointer;
    background: transparent; transition: all 0.2s;
}
.day-btn span.d-name { font-size: 0.75rem; color: var(--text-light); }
.day-btn span.d-num { font-size: 1.1rem; font-weight: bold; color: var(--text-main); margin-top: 2px; }
.day-btn:hover { background: rgba(107, 142, 136, 0.1); }
.day-btn.active {
    background: var(--primary-color); box-shadow: 0 4px 10px rgba(107, 142, 136, 0.3);
}
.day-btn.active span { color: white !important; }

.current-date-label {
    text-align: center; font-weight: bold; color: var(--text-main);
    margin-bottom: 1rem; font-family: var(--font-heading);
}

/* 时间格子 */
.slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 1.5rem; }
.time-slot {
    padding: 10px 5px; text-align: center; border: 1px solid #eee; background: white;
    border-radius: 8px; cursor: pointer; font-size: 0.95rem; color: var(--text-main); transition: all 0.2s;
}
.time-slot:hover { border-color: var(--primary-color); color: var(--primary-color); transform: translateY(-2px); }
.time-slot.selected { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.time-slot.booked {
    background-color: #f0f0f0; color: #ccc; cursor: not-allowed;
    text-decoration: line-through; border-color: transparent; pointer-events: none;
}

/* 图例 */
.slot-legend { display: flex; justify-content: center; gap: 1.5rem; font-size: 0.8rem; color: var(--text-light); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot.available { background: white; border: 1px solid #ccc; }
.dot.booked { background: #f0f0f0; }
.dot.selected { background: var(--primary-color); }

/* 表单样式 */
.booking-form .form-group { margin-bottom: 1.5rem; }
.booking-form label { display: block; margin-bottom: 0.5rem; color: var(--text-main); font-weight: bold; }
.booking-form input[type="text"], 
.booking-form select, 
.booking-form textarea {
    width: 100%; 
    padding: 12px; 
    border: 1px solid #e0e0e0; 
    border-radius: 8px;
    font-size: 1rem; 
    background: #fdfdfd;
    transition: border-color 0.3s;
}
.booking-form input:focus, .booking-form textarea:focus {
    border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px rgba(107, 142, 136, 0.1);
}

.readonly-input { 
    background-color: #f9f9f9 !important; cursor: default; font-weight: bold; 
    color: var(--primary-color) !important; font-size: 0.95rem; 
    text-overflow: ellipsis; white-space: nowrap; 
}
.full-width-btn { width: 100%; padding: 12px; margin-top: 1rem; opacity: 0.5; cursor: not-allowed; }
.full-width-btn.active { opacity: 1; cursor: pointer; }

/* 单选按钮组样式 */
.radio-group { 
    display: flex; 
    gap: 2rem; 
    padding: 5px 0; 
    align-items: center; 
}
.radio-label { 
    display: flex; 
    align-items: center; 
    cursor: pointer; 
    font-size: 1rem; 
    color: var(--text-main); 
    transition: opacity 0.2s; 
    -webkit-tap-highlight-color: transparent;
}
.radio-label:hover { opacity: 0.8; }
.radio-label input[type="radio"] { 
    width: 18px; 
    height: 18px; 
    margin-right: 8px; 
    cursor: pointer; 
    accent-color: var(--primary-color); 
    background-color: transparent; 
    outline: none; 
    border: none;
    -webkit-appearance: none; 
    appearance: auto;
}

/* Footer */
.site-footer {
    flex-shrink: 0; background-color: var(--footer-bg); padding: 1.5rem 0;
    text-align: center; font-size: 0.85rem; color: var(--text-light); margin-top: auto;
}
.beian-info a { color: var(--text-light); text-decoration: none; transition: color 0.3s ease; display: inline-flex; align-items: center; gap: 5px; }
.beian-info a:hover { color: var(--primary-color); }

/* 动画 */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-5px);} 60% {transform: translateY(-3px);} }

.fade-in { animation: fadeIn 0.8s ease-out forwards; }
.fade-in-up { opacity: 0; animation: fadeIn 0.8s ease-out 0.3s forwards; }
.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 0.7s; }

/* 移动端适配 */
@media (max-width: 768px) {
    .grid-row-2 { grid-template-columns: 1fr; gap: 2rem; }
    .stats-grid { grid-template-columns: 1fr; margin-bottom: 2rem; }
    .profile-header { flex-direction: column; text-align: center; gap: 1.5rem; }
    .tags { justify-content: center; }
    .intro-text { text-align: left; }
    /* 预约页面移动端布局调整 */
    .booking-layout { padding: 1.5rem; gap: 1rem; }
    .booking-content-wrapper { flex-direction: column; gap: 2rem; }
    .form-section { padding-left: 0; border-left: none; border-top: 1px dashed var(--secondary-color); padding-top: 2rem; }
    .slots-grid { grid-template-columns: repeat(3, 1fr); }
    .mobile-tap-hint { display: block; } 
    .contact-methods { flex-direction: column; gap: 2rem; }
    .fee-grid { flex-direction: column; gap: 1rem; }
    .radio-group { gap: 1rem; flex-wrap: wrap; }
}