/* InvoSmartHub产品页面专属样式 */

/* 产品页面logo样式 */
.logo-img {
    height: auto;
    width: 50px;
    background-color: transparent;
}

/* Demo按钮tooltip提示 */
.btn-demo {
    position: relative;
    overflow: visible;
}

.btn-demo::before {
    content: 'Demo服务器开机时间暂时为9:00-21:00，且有不确定性，如遇不可连接请换时间再试。推荐下载安装文件自部署试用';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: #333;
    color: #fff;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    width: 280px;
    white-space: normal;
    line-height: 1.5;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.btn-demo::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2px;
    border: 6px solid transparent;
    border-bottom-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.btn-demo:hover::before,
.btn-demo:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 页脚样式 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 页脚品牌区域样式 */
.footer-brand {
    flex: 1;
    max-width: 320px;
}

.footer-logo {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-company-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 社交媒体链接 */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #3498db;
    transform: translateY(-3px);
}

.social-link i {
    font-size: 1rem;
}

/* 页脚链接区域 */
.footer-links {
    display: flex;
    gap: 50px;
    flex: 1;
    justify-content: flex-end;
}

.footer-column h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #3498db;
}

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

.footer-column ul li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #3498db;
}

.footer-column ul li i {
    margin-right: 8px;
    color: #3498db;
    width: 16px;
}

/* 页脚底部 */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    gap: 10px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom .icp-info a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom .icp-info a:hover {
    color: #3498db;
}

.footer-bottom .visitor-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom .visitor-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-bottom .visitor-stats i {
    font-size: 12px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #3498db;
}

.footer-bottom-links .divider {
    color: rgba(255, 255, 255, 0.3);
}

/* 产品横幅样式 */
.product-hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: visible;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://picsum.photos/seed/invo-pattern/1920/1080.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.product-hero .container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #f8f9fa;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    overflow: visible;
    position: relative;
}

/* Demo按钮特殊样式 */
.btn-demo {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
    animation: pulse-demo 2s infinite;
}

.btn-demo:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

.btn-demo i {
    margin-right: 5px;
}

@keyframes pulse-demo {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.hero-image {
    flex: 1.2;
    max-width: 55%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-right: -100px;
    margin-bottom: -100px;
}

.hero-image img {
    width: 110%;
    max-width: none;
    border-radius: 10px 0 0 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* 产品特点样式 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 产品截图样式 */
.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.platform-tab {
    padding: 12px 30px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-tab:hover {
    background: #ecf5fc;
}

.platform-tab.active {
    background: #3498db;
    color: white;
}

.platform-tab i {
    font-size: 1.2rem;
}

.platform-content {
    display: none;
}

.platform-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.screenshots-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.screenshot-item {
    display: none;
    text-align: center;
    overflow: hidden;
}

.screenshot-item.active {
    display: block;
}

.screenshot-item.slide-left {
    animation: slideLeft 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.screenshot-item.slide-right {
    animation: slideRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.screenshot-item img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.screenshot-item h4 {
    font-size: 1.3rem;
    color: #333;
}

.screenshot-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #3498db;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #3498db;
    color: white;
}

/* 下载选项样式 */
.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.download-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
}

.download-icon {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.download-icon i {
    font-size: 2.5rem;
    color: #3498db;
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.download-card p {
    color: #666;
    margin-bottom: 15px;
}

.download-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* Windows下载下拉菜单 */
.download-dropdown {
    position: relative;
    width: 100%;
}

.download-btn-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.download-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.download-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    overflow: hidden;
}

.download-dropdown.active .download-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.download-menu-section {
    padding: 10px 0;
}

.download-menu-section:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.menu-section-title {
    padding: 8px 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
}

.download-menu-item:hover {
    background: #f5f7fa;
}

.download-menu-item i {
    font-size: 1.1rem;
    color: #3498db;
    width: 20px;
    text-align: center;
}

.download-menu-item .item-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.download-menu-item .item-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.download-menu-item .item-size {
    font-size: 0.8rem;
    color: #999;
}

.download-btn {
    width: 100%;
}

/* 许可授权样式 */

/* 授权周期选择器 */
.license-period-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 12px 30px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.period-btn:hover {
    background: #ecf5fc;
}

.period-btn.active {
    background: #3498db;
    color: white;
}

.license-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.license-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    position: relative;
}

.license-card:hover {
    transform: translateY(-10px);
}

.license-card.featured {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid #3498db;
}

.license-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #e74c3c;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.license-header {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
}

.license-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.currency {
    font-size: 1.2rem;
    color: #666;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #3498db;
}

.period-text {
    color: #666;
    font-size: 1rem;
}

.price-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #27ae60;
    font-weight: 500;
    min-height: 20px;
}

.license-features {
    padding: 30px 0;
    list-style: none;
}

.license-features li {
    padding: 10px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.license-features i {
    font-size: 1.1rem;
}

.license-features .fa-check {
    color: #2ecc71;
}

.license-features .fa-times {
    color: #e74c3c;
}

.license-features strong {
    color: #3498db;
}

.license-btn {
    width: calc(100% - 40px);
    margin: 0 20px 30px;
}

/* 版本对比表 */
.version-comparison {
    margin-top: 60px;
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.version-comparison h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #333;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.comparison-table .fa-check {
    color: #2ecc71;
    font-size: 1.2rem;
}

.comparison-table .fa-times {
    color: #e74c3c;
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 0;
        justify-content: center;
    }
    
    .hero-image img {
        width: 100%;
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-options {
        grid-template-columns: 1fr;
    }
    
    .license-options {
        grid-template-columns: 1fr;
    }
    
    .license-card.featured {
        transform: none;
    }
    
    .screenshot-controls {
        top: auto;
        bottom: -40px;
        transform: none;
    }

    .period-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .version-comparison {
        padding: 20px;
        overflow-x: auto;
    }

    .comparison-table {
        min-width: 500px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* 页脚响应式 */
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
        flex-wrap: nowrap;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .footer-column {
        text-align: center;
        min-width: 140px;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column ul li i {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    .btn-demo {
        order: -1; /* Demo按钮在移动端显示在最前面 */
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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