/* ===== 如易心理 - 增强版样式表 ===== */
/* 整合所有图片资源，添加现代化设计和动画效果 */

/* 导入基础样式 */
@import url('style.css');

/* ===== CSS变量定义 ===== */
:root {
    --primary-color: #ff9900;
    --primary-dark: #e68900;
    --secondary-color: #4a90e2;
    --accent-color: #e74c3c;
    --text-dark: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f0f0f0;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 10px 40px rgba(0,0,0,0.2);
    --radius-small: 5px;
    --radius-medium: 10px;
    --radius-large: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 基础增强样式 ===== */
* {
    transition: var(--transition);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../tupian/bg01.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
}

/* ===== 头部导航增强 ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: var(--shadow-light);
    padding: 20px 0;
}

.logo h1 {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 5px rgba(255, 153, 0, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(255, 153, 0, 0.6)); }
}

.nav ul {
    gap: 40px;
    position: relative;
}

.nav a {
    position: relative;
    padding: 10px 15px;
    border-radius: var(--radius-small);
    font-weight: 500;
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav a:hover::before,
.nav a.active::before {
    width: 80%;
}

.nav a:hover {
    background: rgba(255, 153, 0, 0.1);
    transform: translateY(-2px);
}

/* 电话图标集成 */
.contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 153, 0, 0.1);
    border-radius: var(--radius-medium);
    border: 1px solid rgba(255, 153, 0, 0.2);
}

.contact::before {
    content: '';
    width: 20px;
    height: 20px;
    background: url('../tupian/header/tel.png') no-repeat center;
    background-size: contain;
}

/* ===== 搜索功能 ===== */
.search-container {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    padding: 20px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.search-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-input {
    width: 300px;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-large);
    font-size: 16px;
    background: url('../tupian/search.png') no-repeat 95% center;
    background-size: 20px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

/* ===== 轮播图区域 ===== */
.banner-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: var(--radius-large);
    margin: 40px 0;
    box-shadow: var(--shadow-heavy);
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 0 20px;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: slideInUp 1s ease-out;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: slideInUp 1s ease-out 0.3s both;
}

.banner-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-large);
    font-size: 18px;
    font-weight: 500;
    animation: slideInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.banner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.banner-btn:hover::before {
    left: 100%;
}

/* 轮播控制按钮 */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 30px;
    background-image: url('../tupian/flash/arrowsleft.png');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.slider-next {
    right: 30px;
    background-image: url('../tupian/flash/arrowsright.png');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

/* 轮播指示器 */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* ===== 页面标题增强 ===== */
.page-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: url('../tupian/corner.png') no-repeat;
    background-size: 200px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.page-title h1 {
    color: white;
    position: relative;
    z-index: 1;
}

.page-title p {
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ===== 区块增强 ===== */
.section {
    position: relative;
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--bg-white);
}

.section:nth-child(odd) {
    background: var(--bg-light);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../tupian/bg03.png');
    background-size: 300px;
    background-repeat: repeat;
    opacity: 0.02;
    pointer-events: none;
}

.section-title {
    position: relative;
    margin-bottom: 60px;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: url('../tupian/heart1.png') no-repeat center;
    background-size: contain;
    opacity: 0.1;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

.section-title:after {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ===== 卡片增强 ===== */
.card {
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-medium);
    padding: 40px 30px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    background: url('../tupian/dot.png') no-repeat;
    background-size: contain;
    opacity: 0.05;
    transition: all 0.5s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.card:hover::after {
    transform: rotate(180deg) scale(1.5);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.card h3 {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.card p {
    text-align: center;
    line-height: 1.8;
}

/* ===== 咨询师卡片特殊样式 ===== */
.counselor-card {
    text-align: center;
    position: relative;
}

.counselor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
    padding: 3px;
    position: relative;
}

.counselor-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.counselor-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: url('../tupian/authentication.png') no-repeat center;
    background-size: contain;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.vip-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: url('../tupian/diamond-128.png') no-repeat center;
    background-size: contain;
}

.counselor-info h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.counselor-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.counselor-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== 按钮增强 ===== */
.btn {
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: var(--radius-large);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== 表单增强 ===== */
.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-label::before {
    content: '';
    width: 16px;
    height: 16px;
    background-size: contain;
}

.form-label.name::before {
    background-image: url('../tupian/user.png');
}

.form-label.phone::before {
    background-image: url('../tupian/header/tel.png');
}

.form-label.email::before {
    background-image: url('../tupian/mail-128.png');
}

.form-label.message::before {
    background-image: url('../tupian/pen.png');
}

.form-input {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-medium);
    padding: 15px 20px;
    font-size: 16px;
    background: var(--bg-white);
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.1);
    transform: translateY(-2px);
}

/* ===== 时间/日期装饰 ===== */
.time-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-lighter);
    font-size: 14px;
    margin-top: 15px;
}

.time-meta::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url('../tupian/time.png') no-repeat center;
    background-size: contain;
}

.date-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-meta::before {
    content: '';
    width: 14px;
    height: 14px;
    background: url('../tupian/date_ddd.png') no-repeat center;
    background-size: contain;
}

/* ===== 社交分享按钮 ===== */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.wechat {
    background: #07c160;
    background-image: url('../tupian/weixin.png');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.share-btn.qq {
    background: #12b7f5;
    background-image: url('../tupian/qq.png');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.share-btn.weibo {
    background: #e6162d;
    background-image: url('../tupian/weibo.png');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-medium);
}

/* ===== 点赞/收藏按钮 ===== */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.action-btn.like::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url('../tupian/heart1.png') no-repeat center;
    background-size: contain;
}

.action-btn.favorite::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url('../tupian/favourite.png') no-repeat center;
    background-size: contain;
}

.action-btn.reply::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url('../tupian/reply.png') no-repeat center;
    background-size: contain;
}

/* ===== 侧边工具栏 ===== */
.side-tools {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-tool {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.side-tool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-tool:hover::before {
    opacity: 1;
}

.side-tool:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.side-tool-icon {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: filter 0.3s ease;
}

.side-tool:hover .side-tool-icon {
    filter: brightness(0) invert(1);
}

.tool-tel {
    background-image: url('../tupian/sidetools/side-icon-tel.png');
    background-size: contain;
}

.tool-service {
    background-image: url('../tupian/sidetools/side-icon-service.png');
    background-size: contain;
}

.tool-wechat {
    background-image: url('../tupian/sidetools/side-icon-weixin.png');
    background-size: contain;
}

.tool-top {
    background-image: url('../tupian/sidetools/side-icon-top.png');
    background-size: contain;
}
}

/* ===== 底部增强 ===== */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../tupian/bg01.png');
    background-size: 200px;
    opacity: 0.05;
}

.footer-section h3 {
    position: relative;
    padding-bottom: 15px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.footer-section a::before {
    content: '';
    width: 12px;
    height: 12px;
    background: url('../tupian/home.png') no-repeat center;
    background-size: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.footer-section a:hover::before {
    opacity: 1;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-contact::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url('../tupian/header/tel.png') no-repeat center;
    background-size: contain;
}

/* ===== 动画关键帧 ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 滚动动画类 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 加载动画 ===== */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url('../tupian/flash/loading.gif') no-repeat center;
    background-size: contain;
}

/* ===== 响应式增强 ===== */
@media (max-width: 768px) {
    .banner-section {
        height: 400px;
        margin: 20px 0;
    }
    
    .banner-content h2 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .search-input {
        width: 250px;
    }
    
    .side-tools {
        right: 15px;
    }
    
    .side-tool {
        width: 50px;
        height: 50px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .banner-content h2 {
        font-size: 24px;
    }
    
    .search-input {
        width: 200px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-prev {
        left: 15px;
    }
    
    .slider-next {
        right: 15px;
    }
}