﻿/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft Yahei', sans-serif;
}

:root {
    /* 配色方案 - 科技蓝为主，适配主机销售场景 */
    --primary: #165DFF;
    --primary-light: #4080FF;
    --primary-dark: #0E42D2;
    --secondary: #0FC6C2;
    --accent: #FF7D00;
    --text-main: #333;
    --text-secondary: #666;
    --text-light: #fff;
    --bg-main: #F5F7FA;
    --bg-card: #fff;
    --border-light: #E5E6EB;
    --border-hover: #165DFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.12);
    /* 新增导航栏专属变量 */
    --nav-height: 88px;
    --nav-shadow: 0 2px 18px rgba(22, 93, 255, 0.08);
    --nav-hover-bg: rgba(22, 93, 255, 0.03);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    left: 0;
    right: 0;
}

/* 头部导航样式 - 核心优化 */
.header {
    background-color: var(--bg-card);
    box-shadow: var(--nav-shadow); /* 更细腻的阴影 */
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    /* 新增：导航栏顶部加1px渐变边框，提升精致感 */
    border-top: 3px solid var(--primary);
    /* 新增：轻微的背景渐变 */
    background: linear-gradient(to bottom, #ffffff, #fafbff);
}

.menu_nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height); /* 统一高度变量 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px; /* 更宽松的内边距 */
    position: relative;
}

.logo10isp img {
    margin-top:20px;
    height: 42px; /* 放大logo，更醒目 */
    width: auto;
    /* 新增：logo hover效果 */
    transition: transform 0.3s ease;
}

.logo10isp img:hover {
    transform: scale(1.03);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 36px; /* 增大间距，更舒展 */
    align-items: center; /* 垂直居中 */
}

.nav-item {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    /* 新增：导航项内边距，扩大点击区域 */
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* 新增：导航项hover背景 */
.nav-item:hover {
    background-color: var(--nav-hover-bg);
}

.nav-item a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
    /* 新增：文字间距，更易读 */
    letter-spacing: 0.5px;
}

.nav-item a:hover {
    color: var(--primary);
}

/* 优化：当前选中/推荐项样式 + 箭头 */
.chaojifwq {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    background-color: var(--nav-hover-bg);
    padding-right: 24px !important;
}
.chaojifwq > a {
    position: relative;
    padding-right: 16px;
}
.chaojifwq > a::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #165DFF;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}
.chaojifwq:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* ====================== 美化后的虚拟主机下拉菜单（核心修改） ====================== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(22,93,255,0.15);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
    overflow: hidden;
    border: 1px solid rgba(22,93,255,0.1);
}

/* 下拉菜单展开动画 */
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

/* 下拉菜单项样式 + 图标 */
.dropdown-menu li {
    padding: 0;
    border-bottom: 1px solid rgba(229,230,235,0.5);
}
.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.25s ease;
    position: relative;
}

/* 产品图标 */
.dropdown-menu a::before {
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(22,93,255,0.08);
    color: var(--primary);
    transition: all 0.25s ease;
}

/* 为每个子菜单设置不同图标 */
.dropdown-menu li:nth-child(1) a::before { content: "🔥"; } /* 特价空间 */
.dropdown-menu li:nth-child(2) a::before { content: "🇭🇰"; } /* 香港空间 */
.dropdown-menu li:nth-child(3) a::before { content: "🛡️"; } /* 高防空间 */
.dropdown-menu li:nth-child(4) a::before { content: "🏅"; } /* 金牌空间 */

/* 下拉菜单hover效果 */
.dropdown-menu a:hover {
    background: linear-gradient(90deg, #f0f5ff, #e8f3ff);
    color: var(--primary) !important;
    padding-left: 24px;
}
.dropdown-menu a:hover::before {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

/* ====================== 美化结束 ====================== */

/* 优化：登录按钮样式，突出CTA */
.nav-item:last-child {
    background-color: var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.15);
}

.nav-item:last-child a {
    color: var(--text-light);
    font-weight: 600;
}

.nav-item:last-child:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.2);
}

/* 汉堡菜单按钮 - 右侧贴边 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1000;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}
/* 汉堡菜单激活动画 */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 横幅区域样式（不变） */
.banner {
  background: linear-gradient(135deg, #165DFF, #0F38C2);
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}

.paoti3 a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 18px;
    margin-bottom: 10px;
    display: block;
}

.paoti2 {
    font-size: 36px;
    font-weight: 700;
    margin: 15px 0;
    letter-spacing: 1px;
}

.paoti4 {
    font-size: 18px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
}

/* 域名注册搜索模块 - 完美美化版 */
.domain-search-section {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 40px auto;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    text-align: center;
}
.domain-title {
    font-size: 28px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 600;
}
.domain-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
}
.domain-search-box {
    display: flex;
    max-width: 780px;
    margin: 0 auto;
    gap: 12px;
    position: relative;
    align-items: center;
}
.domain-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.domain-input {
    width: 100%;
    height: 56px;
    padding: 0 110px 0 20px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}
.domain-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(22,93,255,0.1);
}
.domain-suffix {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
    pointer-events: none;
    background: #fff;
}
.domain-search-btn {
    height: 56px;
    padding: 0 36px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.domain-search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22,93,255,0.2);
}
.domain-hot {
    max-width: 780px;
    margin: 20px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
}
.domain-hot span {
    color: var(--text-secondary);
    font-size: 15px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-main);
    cursor: pointer;
    transition: all 0.2s;
}
.domain-hot span:hover {
    background: var(--primary);
    color: #fff;
}
@media (max-width:768px){
    .domain-search-box{flex-direction:column;}
    .domain-input {padding: 0 20px;}
    .domain-suffix{display:none;}
    .domain-search-section{padding:30px 20px;}
    .domain-search-btn {width: 100%;}
}

/* 产品板块通用样式（不变） */
.product-section {
    margin: 60px auto;
    max-width: 1500px;
    width: calc(100% - 40px);
}

.yun_list_name {
    font-size: 28px;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.yun_list_name::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.yun_jiqi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.yun_list {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.yun_list:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

.yun_cpbt {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.yun_nr ul {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.yun_nr li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
    font-size: 14px;
}

.yun_nr li span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.yun_nr li font {
    color: var(--text-main);
}

.jiage_bg {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 12px;
    background-color: var(--primary-light);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    width: 100%;
    flex-wrap: wrap;
}

.jiage_bg .price-text {
    white-space: nowrap;
}

.jiage_bg a {
    color: var(--text-light);
    text-decoration: none;
    background-color: var(--accent);
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    min-width: 80px;
    display: inline-block;
    white-space: nowrap;
}

.jiage_bg a:hover {
    background-color: #e67000;
}

/* 产品优势板块样式（不变） */
.advantage-section {
    background-color: var(--bg-card);
    padding: 60px 0;
    margin: 60px auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 1500px;
    width: calc(100% - 40px);
}

.advantage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.advantage-item:hover {
    background-color: var(--bg-main);
}

.advantage-item img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.advantage-item h3 {
    color: var(--primary-dark);
    font-size: 18px;
    margin-bottom: 8px;
}

.advantage-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* 联系我们 - 美化版样式 */
.contact-section {
    background: #fff;
    padding: 60px 20px;
    border-radius: 16px;
    max-width: 1500px;
    margin: 60px auto;
    box-shadow: var(--shadow);
    text-align: center;
}
.contact-info-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 40px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fafbff;
    border-radius: 12px;
    min-width: 200px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}
.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(22,93,255,0.08);
    border-color: var(--primary-light);
}
.contact-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 10px;
    flex-shrink: 0;
}
.contact-text h4 {
    font-size: 16px;
    color: var(--primary-dark);
    margin: 0 0 4px 0;
    font-weight: 600;
    text-align: left;
}
.contact-text p,
.contact-text a {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
    text-decoration: none;
    text-align: left;
}
.contact-text a:hover {
    color: var(--primary);
}

/* 页脚样式（不变） */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.footer2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer2 a {
    color: var(--secondary);
    text-decoration: none;
}

.footer2 a:hover {
    text-decoration: underline;
}

/* ========== 核心修改：导航不换行 + 右侧悬浮菜单 ========== */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: #fff;
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 998;
        overflow-y: auto;
        gap: 5px;
    }
    .nav-list.active {
        transform: translateX(0);
    }
    .nav-item {
        width: 100%;
        text-align: left;
    }
    /* 移除了隐藏箭头的代码 */
    .nav-item:last-child {
        margin-top: 15px;
        text-align: center;
    }
    /* 移动端下拉菜单 */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    .yun_jiqi {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .banner {
        padding: 40px 0;
        width: calc(100% - 40px);
    }
    .paoti2 {
        font-size: 28px;
    }
    .yun_list_name {
        font-size: 24px;
    }
    .advantage-list {
        gap: 20px;
    }
    .jiage_bg {
        flex-direction: column;
        gap: 8px;
    }
    .jiage_bg a {
        width: 100%;
        margin-left: 0;
    }
    /* 联系我们移动端适配 */
    .contact-info-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }
    .contact-item {
        width: 100%;
        max-width: 380px;
    }
}

@media (max-width: 576px) {
    .yun_jiqi {
        grid-template-columns: 1fr;
    }
    .paoti4 {
        font-size: 16px;
        padding: 8px 15px;
    }
    .jiage_bg {
        font-size: 16px;
    }
}