/* 产品卡片组件 */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* 我们能提供什么模块的hover效果 */
.what-we-provide-section {
    position: relative;
    height: 482px;
    background: transparent;
}

.service-item {
    position: absolute;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 200;
}

.service-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.1);
}

.service-title {
    position: absolute;
    color: #ffffff;
    font-size: 25px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.service-item:hover .service-title {
    transform: translateY(-10px);
}

.service-desc {
    position: absolute;
    color: #ffffff;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    opacity: 0;
}

.service-item:hover .service-desc {
    opacity: 1;
    transform: translateY(-5px);
}

.service-icon {
    position: absolute;
    transition: all 0.3s ease;
    opacity: 0;
}

.service-item:hover .service-icon {
    opacity: 1;
    transform: scale(1.2);
}

/* 原网站风格的hover覆盖层效果 */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(10, 61, 208, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item:hover .service-overlay {
    opacity: 1;
}

/* 上下滑动hover效果 */
.service-image {
    position: relative;
    overflow: hidden;
}

.phfront, .phback {
    transition: transform 0.3s ease;
    will-change: transform;
}

.phback {
    transform: translateY(-100%);
}

.service-item:hover .phfront {
    transform: translateY(100%);
}

.service-item:hover .phback {
    transform: translateY(0);
}

.service-description {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.service-item:hover .service-description {
    opacity: 1;
    transform: translateY(0);
}

.product-view-btn {
    background: #0a3dd0;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #0a3dd0;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.product-category {
    font-size: 12px;
    color: #888;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 15px;
}

.product-rating {
    color: #ffd700;
    font-size: 14px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    margin: 50px auto;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0a3dd0;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0a3dd0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 消息提示 */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 分页组件 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #0a3dd0;
    color: #fff;
    border-color: #0a3dd0;
}

.page-link.active {
    background: #0a3dd0;
    color: #fff;
    border-color: #0a3dd0;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.tag-primary {
    background: #e3f2fd;
    color: #1976d2;
}

.tag-success {
    background: #e8f5e8;
    color: #2e7d32;
}

.tag-warning {
    background: #fff3e0;
    color: #f57c00;
}

.tag-danger {
    background: #ffebee;
    color: #d32f2f;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    white-space: nowrap;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 响应式表格 */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.responsive-table th,
.responsive-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.responsive-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.responsive-table tr:hover {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .responsive-table {
        display: block;
        overflow-x: auto;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-link {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* 解决方案模块 */
.solutions-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.solution-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.solution-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-item:hover .solution-image img {
    transform: scale(1.05);
}

.solution-content {
    padding: 25px;
}

.solution-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 12px;
}

.solution-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 新闻动态模块 */
.news-section {
    padding: 80px 0;
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.news-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    position: relative;
}

.news-date {
    position: absolute;
    top: -20px;
    right: 20px;
    background: #1a73e8;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.news-date .day {
    font-size: 20px;
    font-weight: 600;
    display: block;
}

.news-date .month-year {
    font-size: 12px;
    display: block;
}

.news-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 12px;
    margin-right: 70px;
}

.news-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-link {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.news-link:hover {
    text-decoration: underline;
}

/* 我们能做什么模块 */
.what-we-do-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.what-we-do-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.what-we-do-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.what-we-do-icon {
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.what-we-do-icon img {
    max-height: 60px;
    max-width: 60px;
    object-fit: contain;
}

.what-we-do-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 12px;
}

.what-we-do-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 关于我们模块 */
.about-section {
    padding: 80px 0;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    padding-right: 30px;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* 为什么选择我们模块 */
.why-choose-us-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.why-choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-choose-us-item {
    background: #0476ef5e;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-choose-us-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(229, 245, 12, 0.15);
}

.why-choose-us-icon {
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-choose-us-icon img {
    max-height: 60px;
    max-width: 60px;
    object-fit: contain;
}

.why-choose-us-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 12px;
}

.why-choose-us-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 新闻列表样式 - 参照原网站page8 */
.art-outcontainer {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.wpart-border-line {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 17px;
    padding-bottom: 18px;
    overflow: hidden;
}

.wp-new-article-style-01-left {
    height: 150px;
    width: 230px;
    text-align: center;
    position: relative;
    overflow: hidden;
    float: left;
    margin-right: 20px;
}

.wp-new-article-style-01-right {
    overflow: hidden;
    padding-top: 5px;
}

.wp-new-article-style-01-right .title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.wp-new-article-style-01-right .title a {
    color: #333;
    text-decoration: none;
}

.wp-new-article-style-01-right .title a:hover {
    color: #0064d4;
}

.wp-new-article-style-01-right .time {
    font-size: 12px;
    color: #929292;
    margin: 0 0 10px 0;
}

.wp-new-article-style-01-right .abstract {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.wp-article_list-thumbnail {
    margin: 0 auto;
    position: relative;
    height: 150px;
    width: 230px;
    object-fit: cover;
}

/* 分页样式 */
.wp-pager_link {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.wp-pager_link span,
.wp-pager_link a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.wp-pager_link .current {
    background: #0064d4;
    color: white;
    border-color: #0064d4;
}

.wp-pager_link a:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.wp-pager_link .disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 新闻详情页面样式 */
.news-detail-section {
    padding: 40px 0;
    background: #fff;
}

.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-detail-title h2 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: center;
}

.news-detail-info {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.meta-label {
    color: #999;
    margin-right: 4px;
}

.meta-value {
    color: #666;
}

.news-separator {
    color: #ddd;
    margin: 0 8px;
}

.news-detail-intro {
    background: #f5f5f5;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #868686;
}

.news-detail-content {
    margin-bottom: 40px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #5a5a5a;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-navigation {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.prev-news, .next-news {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.nav-arrow {
    width: 11px;
    height: 10px;
    display: block;
    margin-right: 8px;
    background-color: #c2c2c2;
}

.prev-arrow {
    background-image: url('../images/up_arrow.png');
    background-repeat: no-repeat;
    float: left;
}

.next-arrow {
    background-image: url('../images/down_arrow.png');
    background-repeat: no-repeat;
    float: left;
}

.nav-label {
    color: #048bcd;
    margin-right: 5px;
    font-size: 14px;
}

.nav-link {
    color: #727272;
    text-decoration: none;
    font-size: 14px;
}

.nav-link:hover {
    color: #0064d4;
}

.prev-news:hover .prev-arrow,
.next-news:hover .next-arrow {
    background-color: #048bcd;
}

.prev-news:hover .nav-label,
.next-news:hover .nav-label {
    color: #727272;
}

.prev-news:hover .nav-link,
.next-news:hover .nav-link {
    color: #048bcd;
}

/* 移动端菜单样式 */
.mobile-menu-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn.active .menu-icon:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .menu-icon:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-icon:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 80px 20px 20px;
    box-sizing: border-box;
}

.mobile-nav-menu.active {
    right: 0;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-menu a {
    display: block;
    padding: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #0066cc;
    background-color: #f5f5f5;
}

.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .mobile-menu-container {
        display: block;
    }
}

/* 产品分类标签样式 */
.product-categories {
    background: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 40px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-tab {
    padding: 12px 24px;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.category-tab:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

.category-tab.active {
    background: #007bff;
    color: white;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.no-products {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
    grid-column: 1 / -1;
}
