/* ================================================================
   common.css  锐途科技 - 公共样式
   说明：本文件存放各页面共享的样式内容（CSS 变量、body 基础样式、
        新闻中心、底部信息、滚动进入动画），由各页面统一引入。
   ================================================================ */

:root {
    --primary-color: #0a3d91;
    --accent-color: #c8161d;
    --accent-red: #c30d23;
    --text-dark: #333;
    --text-gray: #666;
    --bg-light: #f5f7fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}
a {
    text-decoration: none
}

/* ========== 顶部导航栏（内页白色版） ========== */
.navbar-custom {
    position: relative;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}
.navbar-custom .container { max-width: 1610px; }
.navbar-custom .logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
}
.navbar-custom .logo span { color: var(--accent-color); }
.navbar-custom .nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.navbar-custom .nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
    position: relative;
}
.navbar-custom .nav-menu a:hover,
.navbar-custom .nav-menu a.active {
    color: var(--accent-red);
    font-weight: bold;
}
.navbar-custom .nav-menu a.active::after,
.navbar-custom .nav-menu li:hover > a::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-red);
}
.navbar-custom .phone {
    color: var(--accent-color);
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
}
.navbar-custom .phone i { font-size: 20px; margin-right: 5px; }

/* 二级下拉菜单 */
.nav-menu .has-dropdown { position: relative; }
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    background: #fff;
    min-width: 160px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1001;
}
.nav-menu .has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
}
.nav-dropdown li { margin: 0; }
.nav-dropdown li a {
    display: block;
    padding: 8px 20px;
    color: var(--text-dark);
    font-size: 14px !important;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}
.nav-dropdown li a:hover {
    background: #f6f6f6;
    color: var(--accent-red);
    font-weight: normal;
}
.nav-dropdown li a::after { display: none; }

/* ========== 新闻中心 ========== */
.news-section { background: #fff; padding-bottom: 60px; }
.news-section .container { max-width: 1756px; }
.news-title { text-align: center; margin-bottom: 15px; padding-top: 60px; }
.news-title h2 { font-size: 36px; font-weight: bold; margin-bottom: 10px; }
.news-title h2 .accent { color: #c30d23; }
.news-title h2 .normal { color: #333; }
.news-title .slogan { font-size: 15px; color: #999; }
.news-tabs {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.news-tabs .tab-item {
    padding: 10px 36px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    background: #f6f6f6;
    color: #666;
}
.news-tabs .tab-item.active {
    background: #c30d23;
    color: #fff;
}
.news-tabs .tab-item:hover:not(.active) {
    background: #e8e8e8;
}
.news-content { display: flex; gap: 30px; align-items: flex-start; }
.news-left { max-width: 698px; flex-shrink: 0; }
.news-feature-img { width: 100%; overflow: hidden; }
.news-feature-img img { width: 100%; display: block; }
.news-feature-info {
    margin-top: 20px;
    padding: 25px 30px;
    border: 1px solid #e0e0e0;
}
.news-feature-info .news-date-text {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}
.news-feature-info h5 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;
}
.news-feature-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}
.news-list { list-style: none; padding: 0; margin: 0; flex: 1; }
.news-list li {
    display: flex;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
    transition: all 0.3s;
    gap: 20px;
}
.news-list li:hover .news-item-title { color: #c30d23; }
.news-list li .news-date-box {
    flex-shrink: 0;
    text-align: center;
    width: 80px;
    padding: 12px 0;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}
.news-list li .news-date-box .day {
    font-size: 30px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}
.news-list li .news-date-box .month {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.news-list li .news-item-content { flex: 1; min-width: 0; }
.news-list li .news-item-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 6px 0;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-list li .news-item-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 底部信息 ========== */
.footer {
    background-image: url('../images/i_bottom_bg.jpg');
    background-size: cover;
    background-position: center;
    color: #b0b8c4;
    padding: 60px 0 0;
}
.footer .container { max-width: 1756px; }
.footer-main { padding-bottom: 40px; }
.footer-nav-grid {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr 1fr 1.2fr 1.2fr;
    gap: 30px;
}
.footer-col h5 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 6px 0;
    font-weight: bold;
}
.footer-col h5 { margin-bottom: 15px; }
.footer-col .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col .footer-links li {
    margin-bottom: 10px;
}
.footer-col .footer-links li a {
    color: #b0b8c4;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.footer-col .footer-links li a:hover { color: #fff; }
.footer-col .footer-contact-item {
    font-size: 14px;
    line-height: 1.8;
    color: #b0b8c4;
}
.footer-col .footer-contact-item .label {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    display: block;
    margin-bottom: 2px;
}
.footer-solution-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.footer-qr {
    display: flex;
    gap: 15px;
}
.footer-qr .qr-item { text-align: center; }
.footer-qr .qr-box {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.footer-qr .qr-box i { font-size: 50px; color: #333; }
.footer-qr .qr-item span { font-size: 12px; color: #b0b8c4; }
.footer-bottom {
    border-top: none;
    padding: 0 0 20px;
    font-size: 13px;
}
.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 15px;
}
.footer-links-row span {
    color: #fff;
    font-size: 13px;
}
.footer-links-row a {
    color: #b0b8c4;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links-row a:hover { color: #fff; }
.footer-copyright { text-align: center; color: #7a8290; }

/* ========== 滚动进入动画 ========== */
[data-animate] { opacity: 0; }
[data-animate].animate-in {
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-fill-mode: forwards;
}
@keyframes anim-fade-up {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes anim-fade-down {
    from { opacity: 0; transform: translateY(-60px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes anim-fade-left {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes anim-fade-right {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes anim-zoom-in {
    from { opacity: 0; transform: scale(0.75); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes anim-flip-y {
    from { opacity: 0; transform: perspective(800px) rotateY(45deg); transform-origin: left center; }
    to   { opacity: 1; transform: perspective(800px) rotateY(0); transform-origin: left center; }
}
[data-animate="fade-up"].animate-in    { animation-name: anim-fade-up; }
[data-animate="fade-down"].animate-in  { animation-name: anim-fade-down; }
[data-animate="fade-left"].animate-in  { animation-name: anim-fade-left; }
[data-animate="fade-right"].animate-in { animation-name: anim-fade-right; }
[data-animate="zoom-in"].animate-in    { animation-name: anim-zoom-in; }
[data-animate="flip-y"].animate-in     { animation-name: anim-flip-y; }

/* 交错延迟 */
[data-delay="1"].animate-in { animation-delay: 0.1s; }
[data-delay="2"].animate-in { animation-delay: 0.2s; }
[data-delay="3"].animate-in { animation-delay: 0.3s; }
[data-delay="4"].animate-in { animation-delay: 0.4s; }
[data-delay="5"].animate-in { animation-delay: 0.5s; }
[data-delay="6"].animate-in { animation-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
    [data-animate] { opacity: 1 !important; }
    [data-animate].animate-in { animation: none !important; }
}

/* ========== 公共响应式（新闻中心 / 底部信息） ========== */
@media (max-width: 991px) {
    .news-content { flex-direction: column; }
    .news-left { max-width: 100%; }
    .footer-nav-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .footer-nav-grid { grid-template-columns: 1fr; }
    .footer-solution-cols { grid-template-columns: 1fr; }
    .news-list li { flex-direction: column; gap: 10px; align-items: flex-start; }
    .news-list li .news-date-box { width: 100%; display: flex; gap: 8px; align-items: center; justify-content: flex-start; padding: 8px 12px; }
    .news-list li .news-date-box .day { font-size: 18px; }
    .news-list li .news-date-box .month { margin-top: 0; }
    .news-title h2 { font-size: 28px; }
    .news-feature-info { padding: 20px; }
    .news-feature-info h5 { font-size: 17px; }
    .footer-qr { justify-content: center; }
}
