/* 全局重置 & 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 1024px;
    font-family: system-ui, -apple-system, sans-serif;
    color: #1d1d1f;
}

a {
    text-decoration: none;
}

ul,
li {
    list-style: none;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* 主题色定义 */
:root {
    --primary: #4F46E5;
    --primary-light: #6366F1;
    --primary-bg: rgba(79, 70, 229, 0.1);
    --primary-hover: #4338ca;
    --gray-50: #f9fafb;
    --gray-600: #6b7280;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
}

/* 首屏横幅区块 */
.hero-section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(to right, var(--primary-bg), rgba(79, 70, 229, 0.1));
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    width: 50%;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    border-radius: 4px;
}

.hero-btn:hover {
    background: var(--primary-hover);
}

.hero-video-box {
    width: 50%;
    height: 100%;
    position: relative;
}

.hero-video-box img {
    width: 688px;
    height: 600px;
    object-fit: cover;
}

/* 通用区块基础 */
.section-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 64px;
}

.section-white {
    padding: 80px 0;
    background: #fff;
}

.section-gray {
    padding: 80px 0;
    background: var(--gray-50);
}

/* 工具三栏网格 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.tool-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    transition: box-shadow 0.3s ease;
}

.tool-card:hover {
    box-shadow: var(--shadow-xl);
}

.tool-icon-box {
    width: 64px;
    height: 64px;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.tool-icon-box i {
    font-size: 32px;
    color: var(--primary);
}

.tool-card h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
}

.tool-desc {
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.5;
    height: 7.75em;
}

.tool-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
}

.tool-btn:hover {
    background: var(--primary-hover);
}

/* 优势四栏网格 */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.advantage-item {
    text-align: center;
}

.advantage-icon-box {
    width: 64px;
    height: 64px;
    background: var(--primary-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.advantage-icon-box i {
    font-size: 32px;
    color: var(--primary);
}

.advantage-item h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.advantage-item p {
    color: var(--gray-600);
}

/* 数据三栏 */
.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.data-num {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 8px;
}

.data-text {
    color: var(--gray-600);
}

/* 用户评价三栏 */
.review-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-right: 16px;
}

.review-name {
    font-weight: bold;
}

.review-job {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 4px;
}

.star-group {
    color: #facc15;
    margin-bottom: 16px;
}

.review-text {
    color: var(--gray-600);
    line-height: 1.6;
}

/* 移动端页面主体响应式 */
@media (max-width: 768px) {
    .hero-wrap {
        flex-direction: column;
        padding: 40px 24px;
        height: auto;
        text-align: center;
    }

    .hero-text,
    .hero-video-box {
        width: 100%;
    }

    .grid-3,
    .grid-4,
    .data-grid {
        grid-template-columns: 1fr;
    }
}

.my-tools-item {
    line-height: 1.5;
    height: 4.5em;
}

.icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.star-group .icon-img {
    width: 18px;
    height: 18px;
}

.tool-icon-box .icon-img,
.advantage-icon-box .icon-img {
    width: 40px;
    height: 40px;
}