/* 全局样式 */
:root {
    --primary-color: #6772e5; /* 主色调 */
    --primary-hover: #5469d4; /* 悬停色 */
    --text-color: #32325d; /*主要文字颜色 */
    --text-light: #525f7f; /* 次要文字颜色 */
    --background-color: #f6f9fc; /* 背景色 */
    --white: #ffffff;
    --shadow-sm: 0 2px 5px rgba(50, 50, 93, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 13px 27px -5px rgba(50, 50, 93, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.3);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* 顶部导航栏样式 */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px; /* 限制高度，保持比例 */
    width: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* 页面标题区域样式 */
.page-title {
    background: linear-gradient(135deg, #6772e5 0%, #5469d4 100%);
    color: var(--white);
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.breadcrumb a:hover {
    border-bottom-color: var(--white);
}

/* 主要内容区域样式 (Hero Section) */
.main-content {
    padding: 40px 0 80px;
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px; /* 使用 gap 代替 padding */
}

.text-content {
    flex: 1;
}

.big-title {
    color: var(--primary-color);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.description {
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
}

.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.herbs-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.herbs-image:hover {
    transform: translateY(-5px);
}

/* 按钮样式 */
.buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px; /* 圆角胶囊样式 */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 数据库结构/Features 区域样式 */
.db-structure-content {
    background-color: var(--white);
    padding: 80px 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 5vw)); /* 底部斜切效果 */
}

.db-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.db-intro h1 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.db-intro h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.db-intro p {
    font-size: 17px;
    color: var(--text-light);
}

/* Features 三列布局 */
.simple-layout {
    margin-top: 40px;
}

.three-column-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.side-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.center-column {
    flex: 1.2; /* 中间列稍宽 */
    display: flex;
    justify-content: center;
}

.system-img {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 12px;
    /* 可选：给中间图片加个微妙的投影 */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.tool-item {
    background: var(--background-color);
    padding: 25px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.tool-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.tool-icon {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.custom-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tool-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.tool-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* 分隔符样式 (可选，已保留并优化) */
.separator {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    opacity: 0.3;
}

.dots {
    display: flex;
    align-items: center;
    width: 200px;
}

.dot-line {
    flex: 1;
    height: 1px;
    background-color: var(--text-light);
}

.dot-circle {
    margin: 0 15px;
    color: var(--text-light);
}

/* 漂浮按钮样式 */
.floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-button button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6772e5 0%, #5469d4 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 弹性动画 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-button button:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column-reverse; /* 图片在文字上方 */
        text-align: center;
        gap: 30px;
    }

    .text-content {
        padding-right: 0;
    }
    
    .buttons {
        justify-content: center;
    }

    .description {
        margin: 0 auto 30px;
    }

    .three-column-layout {
        flex-direction: column;
    }
    
    .center-column {
        order: -1; /* 图片排在最前 */
        margin-bottom: 30px;
    }
    
    .tool-item:hover {
        transform: translateY(-5px); /* 移动端改为向上浮动 */
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* 实际项目中通常需要汉堡菜单 */
    }
    
    .big-title {
        font-size: 36px;
    }
    
    .page-title h2 {
        font-size: 28px;
    }
}