/* 基础样式重置 - 带hamster前缀 */
.hamster-reset {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.hamster-body {
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 变量定义 - 带hamster前缀 */
:root {
    --hamster-primary: #5d5fef;
    --hamster-secondary: #ff9f43;
    --hamster-accent: #00d2d3;
    --hamster-text: #333;
    --hamster-light: #fff;
    --hamster-gray: #f5f6fa;
    --hamster-dark: #222;
}

/* 容器样式 */
.hamster-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 网格背景图案 (图片加载前的替代方案) */
.hamster-bg-pattern {
    background-color: #f9f9f9;
    background-image:
            linear-gradient(#e1e1e1 1px, transparent 1px),
            linear-gradient(90deg, #e1e1e1 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 英雄区域 */
.hamster-hero {
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hamster-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease;
}

.hamster-hero-bg.loaded {
    opacity: 1;
}

.hamster-hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hamster-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--hamster-primary), var(--hamster-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    animation: hamster-fadeInUp 1s ease;
}

.hamster-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
    animation: hamster-fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hamster-btn {
    padding: 12px 30px;
    background-color: var(--hamster-primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(93, 95, 239, 0.3);
    animation: hamster-fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hamster-btn-card{
    border-radius: 10px;
}

.hamster-btn:hover {
    box-shadow: 0 6px 20px rgba(93, 95, 239, 0.4);
    color: white;
}

.hamster-btn-robot {
    background: linear-gradient(45deg, var(--hamster-primary), var(--hamster-accent));
}

. {
    background: linear-gradient(45deg, var(--hamster-secondary), #ffbe76);
}

.hamster-btn-outline {
    background-color: transparent;
    border: 2px solid var(--hamster-primary);
    color: var(--hamster-primary);
    margin-left: 15px;
}

.hamster-btn-outline:hover {
    background-color: var(--hamster-primary);
    color: white;
}

/* 核心功能介绍区域 */
.hamster-core-section {
    background-color: var(--hamster-light);
}

.hamster-section-title {
    text-align: center;
    margin: 60px 0 20px 0;
}

.hamster-section-title h2 {
    font-size: 2.5rem;
    color: var(--hamster-primary);
    margin-bottom: 15px;
}

.hamster-section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.hamster-feature-showcase {

}

.hamster-feature-showcase.reverse {
    flex-direction: row-reverse;
}

.hamster-feature-img {
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    aspect-ratio: 16/9;
    background-image: linear-gradient(#e1e1e1 1px, transparent 1px), linear-gradient(90deg, #e1e1e1 1px, transparent 1px);
}
.hamster-feature-desc{
    padding: 8px 0 0 28px;
}
.hamster-feature-img-placeholder {
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(45deg, #eee 25%, transparent 25%),
            linear-gradient(-45deg, #eee 25%, transparent 25%),
            linear-gradient(45deg, transparent 75%, #eee 75%),
            linear-gradient(-45deg, transparent 75%, #eee 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;            display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.hamster-feature-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.hamster-feature-img img.loaded {
    opacity: 1;
}

.hamster-feature-img:hover img {
    transform: scale(1.2);
}


.hamster-feature-desc h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--hamster-primary);
}

.hamster-feature-desc p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

.hamster-feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.hamster-feature-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.hamster-feature-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 15px;
    height: 15px;
    background-color: var(--hamster-accent);
    border-radius: 50%;
}

/* 按钮组样式 */
.hamster-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.hamster-btn-collapse {
    display: none;
}

.hamster-btn-collapse.show {
    display: inline-block;
}

.hamster-toggle-btn {
    background: transparent;
    border: none;
    color: var(--hamster-primary);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.hamster-toggle-btn i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.hamster-toggle-btn.expanded i {
    transform: rotate(180deg);
}

/* 功能卡片样式 */
.hamster-feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 5px 10px 30px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
}

.hamster-feature-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.hamster-feature-card-title h3 {
    font-size: 1.5rem;
    color: var(--hamster-primary);
    margin-bottom: 5px;
}

.hamster-feature-card-title p {
    color: #666;
    font-size: 0.9rem;
}

/* 赞助区域 */
.hamster-sponsor {
    padding: 40px 0;
    background-color: var(--hamster-gray);
}

.hamster-sponsor-grid {
    margin-bottom: 40px;
}
.hamster-sponsor-grid>div{
    margin-top: 20px;
}

.hamster-sponsor-card {
    background-color: white;
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 240px;
    margin: 0 10px;
}

.hamster-sponsor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hamster-sponsor-icon {
    font-size: 2.5rem;
    color: var(--hamster-accent);
    margin-bottom: 20px;
}

.hamster-sponsor-card h3 {
    margin-bottom: 15px;
    color: var(--hamster-text);
}

.hamster-sponsor-card p {
    color: #666;
    margin-bottom: 20px;
    height: 55px;
}

/* 页脚设计 */
.hamster-footer {
    background-color: var(--hamster-dark);
    color: white;
    padding: 60px 0 20px;
}

.hamster-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.hamster-footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hamster-footer-links {
    list-style: none;
}

.hamster-footer-links li {
    margin-bottom: 10px;
}

.hamster-footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.hamster-footer-links a:hover {
    color: white;
}

.hamster-social-links {
    margin-top: 30px;
}
.hamster-social-links .fa{
    margin: 0;
}

.hamster-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.hamster-social-links a:hover {
    background-color: var(--hamster-primary);
    transform: translateY(-3px);
}

.hamster-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9rem;
}

/* 动画效果 */
@keyframes hamster-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hamster-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}
/* 响应式设计 */
@media (max-width: 992px) {
    .hamster-hero h1 {
        font-size: 2.8rem;
    }


}

@media (max-width: 768px) {
    .hamster-hero h1 {
        font-size: 2.2rem;
    }

    .hamster-hero p {
        font-size: 1rem;
    }

    .hamster-btn {
        padding: 10px 20px;
    }

    .hamster-section-title h2 {
        font-size: 2rem;
    }

    .hamster-btn-group {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hamster-hero {
        text-align: center;
        height: 90vh;
    }

    .hamster-hero-buttons {
        display: flex;
        flex-direction: column;
    }

    .hamster-btn-outline {
        margin-left: 0;
        margin-top: 15px;
    }
}

/* 默认全部显示 */
.hamster-sponsor-grid .layui-col-xs12,
.hamster-sponsor-grid .layui-col-xs6,
.hamster-sponsor-grid .layui-col-md3 {
    display: block;
}

/* 小屏幕：xs12 时，只显示第1个 */
@media screen and (max-width: 767px) {
    .hamster-sponsor-grid .layui-col-xs12:nth-child(n+2) {
        display: none;
    }
    .hamster-footer-screen{
        display: none;
    }
}

/* 中小屏幕：xs6 时，只显示第1和第2个 */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .hamster-sponsor-grid .layui-col-sm6:nth-child(n+3) {
        display: none;
    }
    .hamster-footer-screen{
        display: none;
    }
}
/* 修改英雄区域样式 */
.hamster-hero {
    position: relative;
}

/* 添加半透明白色覆盖层 */
.hamster-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.87); /* 调整透明度 */
    z-index: 1;
}

/* 确保内容在覆盖层之上 */
.hamster-hero-content {
    z-index: 2;
}

/* 调整背景图片的z-index */
.hamster-hero-bg {
    z-index: 0;
}
.hamster-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hamster-btn:active {
    transform: scale(0.96);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.hamster-footer-beian {
    color: #eee;
    text-decoration: none;
}

.hamster-footer-beian:hover {
    color: #1890ff;
}

.hamster-footer-separator {
    margin: 0 10px;
    color: #ddd;
}

.hamster-footer-copy {
    color: #eee;
}

.hamster-footer-contact {
}

.hamster-contact-icons {
    display: flex;
    gap: 12px;
}

.hamster-contact-icon {
    color: #888;
    font-size: 16px;
    transition: all 0.3s;
}

.hamster-contact-icon:hover {
    transform: scale(1.2);
}

.hamster-contact-icon:nth-child(1):hover { color: #07C160; }
.hamster-contact-icon:nth-child(2):hover { color: #12B7F5; }
.hamster-contact-icon:nth-child(3):hover { color: #FFA500; }
.hamster-contact-icon:nth-child(4):hover { color: #333; }

.hamster-contact-tooltip {
    position: relative;
    display: inline-block;
}

.hamster-contact-tooltiptext {
    visibility: hidden;
    width: 100px;
    background-color: #fff;
    color: #333;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    border: 1px solid #eee;
}

.hamster-contact-tooltiptext img {
    width: 100px;
    height: 100px;
    margin-bottom: 5px;
}

.hamster-contact-tooltiptext p {
    width: 100px;
    margin-bottom: 0;
}

.hamster-contact-tooltip:hover .hamster-contact-tooltiptext {
    visibility: visible;
    opacity: 1;
}
.hamster-intro-text{
    visibility: hidden;
}