/* app.css - 精简版自定义样式 */

/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ========== 首页全屏滚动 ========== */
#container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.sections {
    position: relative;
    height: 100%;
    will-change: transform;
}

.section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Section 内容动画容器 */
.section-content {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 内容入场动画 */
.section-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 标题动画 */
.section-content h1 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.section-content.animate-in h1 {
    opacity: 1;
    transform: translateY(0);
}

/* 描述文字动画 */
.section-content p {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.section-content.animate-in p {
    opacity: 1;
    transform: translateY(0);
}

/* 按钮动画 */
.section-content a.inline-block {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.section-content.animate-in a.inline-block {
    opacity: 1;
    transform: translateY(0);
}

/* 首页背景图 */
.start {
    background: url('img/banner_01.jpg') center center no-repeat;
    background-size: cover;
}

.product1 {
    background: url('img/banner_02.jpg') center center no-repeat;
    background-size: cover;
}

.product5 {
    background: url('img/banner_06.jpg') center center no-repeat;
    background-size: cover;
}

/* ========== 导航栏 ========== */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s;
}

.header-fixed.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-fixed.scrolled a {
    color: #333;
}

/* ========== 下拉菜单 ========== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    min-width: 120px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 8px 0;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.dropdown-active {
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: #666;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    color: #ff9900;
    background-color: #f9f9f9;
}

/* ========== 移动端侧边栏 ========== */
.sidebar-wrapper {
    position: relative;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: #fff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar.s-translate {
    transform: translateX(0);
}

.sidebar-title {
    height: 50px;
    background: #3671cf;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.left-arrow-icon {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-menu > li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu > li > a {
    font-size: 16px;
    color: #333;
    display: block;
}

.sidebar-sub-menu {
    padding-left: 15px;
    margin-top: 10px;
    display: none;
}

.sidebar-sub-menu.active {
    display: block;
}

.sidebar-sub-menu li {
    padding: 8px 0;
}

.sidebar-sub-menu li a {
    color: #666;
    font-size: 14px;
}

/* 移动端菜单切换按钮 */
.icon-toggle {
    display: none;
    width: 30px;
    height: 30px;
    background: url('img/icon-toggle.png') no-repeat center;
    background-size: contain;
    cursor: pointer;
}

@media (max-width: 1023px) {
    .icon-toggle {
        display: block;
    }
}

/* ========== 固定侧边栏 ========== */
.fixBar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px 0 0 4px;
    z-index: 90;
    transition: right 0.3s;
}

.fixBar ul {
    padding: 5px 0;
}

.fixBar li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.fixBar li:hover {
    background-color: #3671cf;
}

.fixBar li:hover a {
    color: #fff;
}

.fixBar a {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.f-top {
    border-top: 1px solid #eee;
    padding: 10px 15px;
    cursor: pointer;
    text-align: center;
}

.f-top:hover {
    background-color: #3671cf;
    color: #fff;
}

.f-top:hover a {
    color: #fff;
}

.f-close {
    border-top: 1px solid #eee;
    padding: 8px 15px;
    cursor: pointer;
    text-align: center;
}

.fixbar-expand {
    position: fixed;
    right: 0;
    bottom: 20px;
    z-index: 90;
    display: none;
}

.fixbar-expand span {
    display: block;
    background: #3671cf;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    font-size: 12px;
}

/* ========== 页面指示器（小圆点导航） ========== */
.page-nav {
    z-index: 100;
}

.page-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.page-dot.active {
    background: transparent;
    border-color: #fff;
    transform: scale(1.2);
}

/* ========== 鼠标滚动提示 ========== */
.mousetip {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    cursor: pointer;
    animation: bounce 1s infinite;
    transition: opacity 0.3s ease;
}

.mousetip img {
    width: 40px;
    height: auto;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ========== 页脚 ========== */
#footer {
    background-color: #282828;
    color: #fff;
    padding: 50px 0 30px;
}

#footer a {
    color: #fff;
    transition: color 0.2s;
}

#footer a:hover {
    color: #ff9900;
}

#footer h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

#footer ul li {
    line-height: 2;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* ========== 文章列表 ========== */
.article-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.article-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card h3 a:hover {
    color: #ff9900;
}

.article-card .text {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 文章详情 ========== */
.news_text {
    font-size: 16px;
    line-height: 2;
    color: #444;
}

.news_text p {
    margin-bottom: 1em;
}

.news_text img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* ========== Banner ========== */
.banner {
    height: 300px;
    background: linear-gradient(135deg, #3671cf 0%, #5a8fd8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.banner h1 {
    font-size: 32px;
    font-weight: bold;
}

/* ========== 响应式 ========== */
@media (max-width: 767px) {
    .section {
        height: auto;
        min-height: 100vh;
    }

    .fixBar {
        display: none;
    }

    .banner {
        height: 200px;
    }

    .banner h1 {
        font-size: 24px;
    }

    #footer {
        padding: 30px 15px;
    }
}

/* ========== 工具类 ========== */
.text-accent {
    color: #ff9900;
}

.bg-primary {
    background-color: #3671cf;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
