/* 中山荔枝页面样式 - fresh_selling_3.html */

/* 导航栏样式 - 参考 diet_ai.html */
.navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container a {
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.logo-container a:hover {
    opacity: 0.8;
}

.logo-container a:active {
    opacity: 0.6;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(90deg, #3a9ad9, #0d9488);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    margin-left: auto; /* 确保导航菜单靠右 */
}

.nav-link {
    text-decoration: none;
    color: #1a365d;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: #3a9ad9;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3a9ad9, #0d9488);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* 移动端导航栏适配 - 已移除，使用等比例缩放 */

/* Tailwind CSS 工具类 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .card-shadow {
        box-shadow: 0 2px 10px rgba(229, 57, 53, 0.1);
    }
    .speed-tag {
        background: linear-gradient(90deg, #FF9800, #FF5722);
    }
    .litchi-progress {
        background: linear-gradient(90deg, #E53935, #EF5350);
    }
}

/* 湖银健康观点样式 - 完整复用 shopping.html 的实现 */
.people-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    padding: 0;
}

.person {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(46, 125, 50, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
    outline: none;
}

.person:focus {
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.5);
}

.person:nth-child(1) { animation-delay: 0.1s; }
.person:nth-child(2) { animation-delay: 0.2s; }
.person:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.person::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.1), transparent);
    transition: left 0.7s;
}

.person:hover, 
.person:focus {
    background: rgba(46, 125, 50, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.2);
}

.person:hover::before, 
.person:focus::before {
    left: 100%;
}

.person.inactive {
    opacity: 0.4;
    filter: grayscale(0.7);
    transform: scale(0.9);
}

.person.active {
    background: rgba(46, 125, 50, 0.15);
    border-color: rgba(46, 125, 50, 0.3);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.3);
    z-index: 2;
}

.avatar-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    z-index: 2;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #66bb6a, #81c784) padding-box,
                linear-gradient(135deg, #66bb6a, #81c784) border-box;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.person.active .avatar {
    border-width: 4px;
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.4);
}

.speaking-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.7);
}

.speaking-indicator.active {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7);
    }
    70% { 
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(46, 125, 50, 0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
    }
}

.person-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 0.5px;
    color: #4caf50;
}

.person-title {
    font-size: 1rem;
    color: #666;
    text-align: center;
    font-weight: 300;
}

/* 观点内容显示样式 */
.quote-text-simple {
    text-align: center;
    margin: 30px 0 15px 0;
    font-size: 1.6rem;
    line-height: 1.8;
    font-weight: 300;
    color: #333;
    padding: 0 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.quote-text-simple.show {
    opacity: 1;
    transform: translateY(0);
}

/* 打字机光标样式 */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.6rem;
    background-color: #4caf50;
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 作者信息显示样式 */
.quote-author-simple {
    text-align: right;
    margin: 0 0 30px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2e7d32;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
    padding-right: 20px;
}

.quote-author-simple .author-name {
    font-size: 1.8rem;
    font-weight: 700;
}

.quote-author-simple .author-title {
    font-size: 1.3rem;
    font-weight: 500;
}

.quote-author-simple.show {
    opacity: 1;
    transform: translateY(0);
}

/* ai饮食按钮样式 */
.reset-btn {
    display: inline-block;
    margin: 40px auto 0;
    padding: 15px 40px;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
    outline: none;
    text-decoration: none;
    text-align: center;
}

.reset-btn:focus {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.5);
}

.reset-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.7s;
}

.reset-btn:hover, .reset-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.6);
}

.reset-btn:hover::before, .reset-btn:focus::before {
    left: 100%;
}

/* 湖银农业品牌标识图片区域 */
.brand-characters-section {
    width: 100%;
    background-color: #000;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.brand-characters-container {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.brand-character {
    width: 20%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .brand-character {
        width: 20%;
    }
}

@media (max-width: 768px) {
    .brand-character {
        width: 20%;
    }
}

@media (max-width: 480px) {
    .brand-character {
        width: 20%;
    }
}

/* 页脚蓝色背景样式 - 与 shopping.html 保持一致 */
footer {
    background: #1a365d;
    color: white;
    padding: 60px 5% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #3a9ad9;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3a9ad9;
}

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

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
}

.contact-info i {
    color: #3a9ad9;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
}

.copyright a {
    color: #a0aec0;
    text-decoration: none;
}

.copyright a:hover {
    color: #3a9ad9;
}

/* 移动端适配 */
/* 移动端页脚适配 - 已移除，使用等比例缩放 */

