/* Taobao-specific color scheme and styling */
:root {
    --taobao-primary: #0066CC; /* 主要蓝色 */
    --taobao-secondary: #4A90E2; /* 次要蓝色 */
    --taobao-light: #E8F4FF; /* 浅蓝色背景 */
    --taobao-dark: #333333; /* 深色文字 */
    --taobao-gray: #F5F5F5; /* 灰色背景 */
    --taobao-link: #0066CC; /* 链接蓝色 */
    --taobao-price: #0066CC; /* 价格蓝色 */
    --taobao-border: #E0E6ED; /* 边框蓝灰色 */
}

/* Override primary colors with Taobao orange */
.btn, 
.section-title:after,
.pricing-header {
    background-color: var(--taobao-primary);
}

.btn:hover {
    background-color: var(--taobao-secondary);
}

.section-title, 
.service-icon i, 
.service-item h3, 
.company-info h3,
.company-info ul li:before,
nav ul li a:hover,
nav ul li a.active,
.service-details-link,
.logo h1 {
    color: var(--taobao-primary);
}

.company-info h3 {
    color: var(--taobao-dark);
}

/* Add Taobao ribbon to featured pricing */
.pricing-item.featured:before {
    content: "热门选择";
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--taobao-primary);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.85rem;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Hero section with blue gradient */
.hero {
    background: linear-gradient(135deg, var(--taobao-primary), var(--taobao-secondary));
    padding-top: 200px;
}

.hero .btn {
    background-color: white;
    color: var(--taobao-primary);
}

.hero .btn:hover {
    background-color: var(--taobao-light);
}

/* Floating contact button Taobao style */
.floating-contact {
    background-color: var(--taobao-primary) !important;
}

.floating-contact:hover {
    background-color: var(--taobao-secondary) !important;
}

.floating-contact a i {
    color: white;
}

/* Add Taobao style badges to services */
.service-item {
    position: relative;
}

.service-item:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent var(--taobao-light) transparent transparent;
}

/* Case items taobao style */
.case-item {
    border: 1px solid var(--taobao-border);
}

.case-content p {
    color: var(--taobao-primary);
}

/* 案例展示部分样式优化 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.case-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-item:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 20px;
}

.case-content h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.case-content p {
    color: #ff6600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.case-quote {
    background-color: var(--taobao-light);
    border-left: 3px solid var(--taobao-primary);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
    height: 0;
    overflow: hidden;
}

.case-quote.active-quote {
    opacity: 1;
    height: auto;
    overflow: visible;
}

.case-quote:before {
    content: '"';
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 24px;
    color: #ddd;
    font-family: serif;
}

.case-quote p {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
    padding-left: 15px;
}

/* 品牌客户部分样式优化 */
.clients {
    background-color: #fff;
    padding: 80px 0;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 40px;
    color: #666;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.client-item {
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.client-item.animated {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.client-item img {
    width: 120px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-item p {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* 荣誉资质部分样式优化 */
.honors {
    background-color: #f8f9fa;
    padding: 80px 0;
    position: relative;
}

.honors:before {
    content: "我们的资质";
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--taobao-primary);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.honor-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--taobao-border);
}

.honor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.honor-image {
    height: 180px;
    overflow: hidden;
}

.honor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.honor-title {
    text-align: center;
    padding: 15px;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.company-info {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--taobao-border);
}

.company-info h3 {
    color: var(--taobao-dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.company-info p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

.company-info ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.company-info ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    list-style-type: none;
}

.company-info ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--taobao-primary);
    font-weight: bold;
}

/* Add Taobao highlight effect */
.service-item.taobao-highlight {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 68, 0, 0.2);
    border: 1px solid var(--taobao-primary);
}

/* Additional animation for service icons */
.service-icon.animated {
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 102, 204, 0.5);
    }
    to {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(0, 102, 204, 0.8);
    }
}

/* Improved animated fadeIn */
.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Add Taobao-style image overlay for case studies */
.case-image {
    position: relative;
}

.case-image:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,102,204,0) 50%, rgba(0,102,204,0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-item:hover .case-image:after {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .case-grid,
    .clients-grid,
    .honors-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .client-item img {
        width: 100px;
    }
    
    .company-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .case-grid,
    .clients-grid,
    .honors-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating WeChat QR code */
.floating-wechat {
    position: fixed;
    bottom: 30px;
    right: 100px;
    z-index: 1999;
}

.wechat-icon {
    width: 60px;
    height: 60px;
    background-color: #09BB07; /* 微信绿色 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wechat-icon:hover {
    background-color: #07A805;
    transform: scale(1.1);
}

.wechat-icon i {
    color: #fff;
    font-size: 1.8rem;
}

.wechat-qrcode {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 150px;
    display: none;
    text-align: center;
    z-index: 2000;
}

.wechat-qrcode img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.wechat-qrcode p {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #333;
}

.wechat-qrcode.active {
    display: block !important;
}

/* Taobao promotional banner */
.taobao-promo-banner {
    background-color: var(--taobao-primary);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.taobao-promo-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-text i {
    margin-right: 5px;
    color: yellow;
    animation: spin 2s infinite linear;
}

.promo-timer {
    display: flex;
    align-items: center;
}

.promo-timer i {
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Adjust header position for the banner */
header {
    top: 43px;
    z-index: 998;
    transition: top 0.3s ease;
}

@media (max-width: 768px) {
    .taobao-promo-banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .promo-text, .promo-timer {
        margin: 5px 0;
    }
    
    header {
        top: 80px;
    }
}

/* 调整header在滚动时的位置 */
header.scrolled {
    top: 0;
}

/* Hero section adjustments for banner */
body {
    padding-top: 43px;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 250px;
    }
    
    body {
        padding-top: 80px;
    }
}

/* 联系我们部分改进样式 */
.contact {
    background-color: var(--taobao-gray);
    position: relative;
    padding: 80px 0;
}

.contact .section-title {
    color: var(--taobao-dark);
}

.contact .section-title:after {
    background-color: var(--taobao-primary);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--taobao-border);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--taobao-primary);
    font-size: 1.2rem;
}

.contact-item p {
    color: #333;
    font-size: 1rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--taobao-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--taobao-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 68, 0, 0.1);
}

.contact-form .btn {
    background: var(--taobao-primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
}

.contact-form .btn:hover {
    background: var(--taobao-secondary);
    transform: translateY(-3px);
}

/* 浮动联系按钮样式改进 */
.floating-contact {
    background-color: var(--taobao-primary) !important;
}

.floating-contact:hover {
    background-color: var(--taobao-secondary) !important;
}

/* 更新pricing-header以使用新颜色 */
.pricing-header {
    background: linear-gradient(to right, var(--taobao-primary), var(--taobao-secondary));
}

/* 价格表头 */
.pricing-header {
    background: linear-gradient(to right, var(--taobao-primary), var(--taobao-secondary));
}

/* 价格颜色 */
.price {
    color: white;
    font-weight: bold;
}

/* 页面背景 */
body {
    background-color: var(--taobao-gray);
    padding-top: 43px;
}

/* 内容区块背景 */
.services, .clients {
    background-color: white;
}

.pricing, .honors, .process, .contact {
    background-color: var(--taobao-gray);
}

/* 淘宝风格标题 */
.section-title:after {
    height: 4px;
    border-radius: 2px;
}

/* 淘宝风格价格 */
.price {
    font-size: 1.8rem;
    color: white;
    font-weight: bold;
}

/* 淘宝按钮样式优化 */
.btn {
    border-radius: 4px;
    font-weight: 700;
}

/* 添加淘宝风格分隔元素 */
.section-divider {
    height: 10px;
    background: linear-gradient(to right, var(--taobao-primary), var(--taobao-secondary), var(--taobao-light));
    margin: 0;
    padding: 0;
    border: none;
}

/* 添加淘宝店标签样式 */
.service-item:before {
    content: "热销";
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--taobao-primary);
    color: white;
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 3px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover:before {
    opacity: 1;
}

/* 浮动微信按钮透明度动画 */
.wechat-icon {
    animation: pulse-light 2s infinite alternate;
}

@keyframes pulse-light {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

/* 顶部导航栏优化 */
header {
    background-color: white;
    border-bottom: 1px solid var(--taobao-border);
}

nav ul li a {
    font-weight: 500;
}

/* 客户评价引号样式 */
.case-quote:before {
    color: var(--taobao-primary);
    opacity: 0.2;
    font-size: 40px;
    top: 0;
}
