/* Main Content - Hero Section Style */
.main-content {
    flex: 1; /* Takes up remaining vertical space */
    display: flex;
    align-items: flex-start; /* 改为顶部对齐，不再垂直居中 */
    padding: 100px 0 60px 0; /* 增加顶部内边距，控制下移量 */
}

.hero-section {
    display: flex;
    align-items: center; /* 水平方向仍然居中对齐 */
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap; /* 允许在需要时换行 */
    gap: 30px; /* 元素之间的间距 */
}

.hero-text {
    max-width: 55%;
    min-width: 300px; /* 设置最小宽度 */
    flex: 1; /* 允许伸缩 */
}

.hero-text h1 {
    font-size: 3em; /* 调小一点 */
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.4em; /* 增加与副标题间距 */
    line-height: 1.1;
    white-space: nowrap; /* Prevent wrapping */
    text-align: left; /* Ensure left alignment */
    letter-spacing: -0.02em; /* 调整字母间距 */
}

.hero-text h2 {
    font-size: 1.8em; /* 调小副标题 */
    font-weight: 600; /* 减轻字重 */
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 1.2em; /* 增加与按钮的间距 */
    line-height: 1.2;
    white-space: nowrap; /* Prevent wrapping */
    text-align: left; /* Ensure left alignment */
}

.hero-text .description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 1.5em;
}

.hero-buttons .pill-button {
    display: inline-block;
    padding: 10px 28px; /* 增加内边距 */
    border-radius: 9999px; /* Pill shape */
    font-size: 0.95em;
    font-weight: 500;
    margin-right: 10px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hero-buttons .pill-button.primary {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden;
}

.hero-buttons .pill-button.primary:hover {
    background-color: #1C6BBF; /* 更深的蓝色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.hero-buttons .pill-button.secondary {
    background-color: #f5f5f5;
    color: var(--text-primary);
    border-color: #e0e0e0;
}
.hero-buttons .pill-button.secondary:hover {
    background-color: #e8e8e8;
    border-color: #d1d1d1;
    transform: translateY(-1px);
}

.hero-image {
    min-width: 200px; /* 设置最小宽度 */
    width: 240px; /* 调整大小 */
    height: 240px;
    border-radius: 50%;
    background: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    flex-shrink: 0;
    margin: 0;
    box-shadow: 0 10px 25px rgba(91,195,250,0.2); /* 添加柔和的阴影 */
}
 .hero-image img {
     width: 100%;
     height: 100%;
     object-fit: cover; /* 确保图片覆盖圆形区域并保持比例 */
     display: block;
 }

/* 添加一行类似SynBlog风格的副标题样式 */
.hero-subtitle {
    font-size: 1.1em;
    font-family: monospace;
    color: var(--text-secondary);
    margin-top: 0.5em;
    margin-bottom: 2em;
    letter-spacing: 0.05em;
    font-weight: 400;
}


/* --- Mobile Styles Specific to Index --- */
@media (max-width: 900px) {
    /* 在中等屏幕上添加额外的调整 */
    .hero-text, .hero-image {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    /* Hero Section adjustments */
    .main-content {
        padding: 80px 0 40px 0; /* 调整顶部和底部边距 */
    }
    .hero-section {
        flex-direction: column-reverse; /* Stack image above text */
        justify-content: center;
        gap: 30px;
    }
    .hero-text {
        max-width: 100%;
        min-width: unset;
        text-align: center;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        overflow-x: hidden; /* 防止内容溢出 */
    }
    
    .hero-text h1 {
        font-size: min(7vw, 2.2em); /* 使用视口宽度单位，但设置最大值 */
        white-space: nowrap; /* 不允许换行 */
        text-align: center;
        transform: scale(0.9); /* 略微缩小以适应屏幕 */
        width: auto;
        max-width: 100%;
        overflow: visible; /* 允许内容溢出容器但保持可见 */
    }
    
    .hero-text h2 {
        font-size: min(5vw, 1.6em); /* 使用视口宽度单位，但设置最大值 */
        white-space: nowrap; /* 不允许换行 */
        text-align: center;
        transform: scale(0.95); /* 略微缩小以适应屏幕 */
        margin-top: 0.2em;
    }
    
    .hero-subtitle {
        font-size: 0.95em;
        margin-bottom: 1.5em;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-buttons .pill-button {
        width: auto; /* 自动宽度 */
        white-space: nowrap; /* 不换行 */
        padding: 10px 20px;
        font-size: min(4vw, 1.1em); /* 响应式字体大小 */
    }
    
    .hero-image {
        width: 180px; /* Smaller image */
        height: 180px;
        min-width: 180px; /* 确保最小宽度匹配 */
        margin: 0 auto; /* Center the image */
    }
} 