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

/* ------------------- 页面主体样式 ------------------- */
body {
    margin: 0;
    padding: 60px 0 50px 0; /* 顶部为header留空间，底部为footer留空间 */
    background-image: url('./Image/bagroud.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: Arial, sans-serif;
    color: #fff;
    background-color: rgba(255,255,255,0.45);
    background-blend-mode: overlay;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ------------------- 通用布局样式 ------------------- */
/* 主内容区域 */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin-top: 100px; /* 从140px改为100px */
    gap: 60px;
}

section {
    padding: 20px;
}

/* ------------------- 头部样式 ------------------- */
header {
    background-image: url('Image/24_01.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 20px;
    color: white;
    font-size: 19px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 998;
}

header img {
    height: 50px;
    margin-right: 10px;
}

header h1 {
    margin: 0;
    flex-grow: 1;
    text-align: left;
    padding: 0;
}

header p {
    margin: 0;
    font-size: 20px;
    opacity: 0.9;
}

/* 固定头部占位容器 */
#header-placeholder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ------------------- 导航栏样式 ------------------- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #72A2c0;
    padding: 10px 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #b3e6b3;
    color: #000;
}

/* ------------------- 搜索栏样式 ------------------- */
.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 2px 6px;
    border: 1px solid #ccc;
    max-width: 250px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 6px 10px;
    font-size: 14px;
    background: transparent;
    border-radius: 25px;
    min-width: 100px;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding: 0;
}

.search-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ------------------- 页脚样式 - 固定在底部 ------------------- */
footer {
    background-color: #9ACD32; /* 柠檬绿色 */
    color: #fff;
    padding: 15px 0;
    font-size: 12px;
    text-align: center;
    position: fixed; /* 固定在底部 */
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* 确保在最上层 */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* 添加轻微阴影增加层次感 */
}

.footer-text {
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

/* ------------------- 关于我们页面样式 ------------------- */
#about {
    background-image: url('Image/background-about.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.about-description {
    background: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
}

#about h2 {
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#about p {
    font-size: 16px;
    line-height: 1.5;
}

/* ------------------- 联系我们页面样式 ------------------- */
/* 主内容区域 */
#contact main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin-top: 60px;
    gap: 60px;
}

#contact section {
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    color: #000;
}

#contact section h2 {
    margin-top: 0;
    font-size: 1.5em;
    text-align: center;
}

#contact section p,
#contact section label,
#contact section input,
#contact section textarea {
    font-size: 14px;
    line-height: 1.5;
}

#contact section input,
#contact section textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contact section button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: block;
    margin: 0 auto;
}

#contact section button:hover {
    background-color: #0056b3;
}

/* 联系信息区域 */
.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 40px;
}

.contact-info {
    flex: 1;
    text-align: left;
    padding-left: 20px;
}

.contact-info h2 {
    color: #005577;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.contact-info p {
    font-size: 16px;
    color: #222;
    line-height: 1.6;
    margin: 5px 0;
    text-align: left;
}

/* QR码区域 */
.qr-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-right: 20px;
}

.qr-section img {
    width: 160px;
    height: auto;
    max-width: 100%;
}

.qr-section div {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}

/* 反馈表单样式 */
.feedback-container {
    width: 800px;
    max-width: 90%;
    background-color: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    margin: 0 auto 80px;
}

.feedback-container h3 {
    text-align: center;
    color: #005577;
    margin-bottom: 25px;
    font-size: 22px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
    box-sizing: border-box;
}

.feedback-textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
    color: #333;
    resize: none;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* 消息提示样式 */
.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 提交按钮样式 */
.submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: #32CD32;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #28a428;
}

.submit-btn:disabled {
    background-color: #90EE90;
    cursor: not-allowed;
}

/* ------------------- Business Concept 区块样式 ------------------- */
/* 英文标题区域样式 */
.hero {
    margin-top: calc(60px + 1rem);
    padding: 3rem 0.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-top: 0rem;
    margin-bottom: 1px;
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
}

.business-concepts {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.concept-card {
    position: relative;
    margin: 0.5rem 0;
    padding: 2.5rem;
    border-radius: 15px;
    overflow: hidden;
    color: #fff;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease;
    background-size: cover;
    background-position: center;
}

.concept-card h2 {
    font-size: 2.2rem;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
}

.concept-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: justify;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
    max-width: 90%;
    margin: auto;
}

/* 背景图尺寸调整 */
.automation-bg,
.solutions-bg,
.security-bg {
    background-size: 101% auto;
    background-position: center;
    background-repeat: no-repeat;
}

/* 服务区块样式 */
section#services {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px 0;
}

.category {
    position: relative;
    overflow: hidden;
}

.category .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.category h3,
.category ul {
    position: relative;
    z-index: 1;
}

/* 页脚菜单样式 */
.footer-menu {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 2rem;
    background-color: #f2f2f2; /* 浅灰色背景 */
    color: #333; /* 深色文字 */
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 180px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #004d80;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
    text-align: left;
    font-size: 0.95rem;
    color: #333; /* 改为深色文字 */
}

.footer-column ul li a {
    color: #333; /* 深色链接 */
    text-decoration: none;
}

.footer-column ul li a:hover {
    text-decoration: underline;
    color: #005577; /* 悬停时使用主题蓝色 */
}

/* ------------------- 响应式设计 ------------------- */
@media (max-width: 768px) {
    main {
        margin-top: 100px;
    }
    
    .contact-section {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .contact-info, .qr-section {
        width: 100%;
        text-align: center;
        padding: 0 20px;
    }
    
    .contact-info {
        padding-left: 20px;
    }
    
    .feedback-container {
        padding: 20px;
        width: 95%;
        margin-bottom: 60px; /* 移动设备上减少底部间距 */
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .contact-info h2 {
        font-size: 18px;
    }
    
    .contact-info p {
        font-size: 15px;
    }
    
    .feedback-container h3 {
        font-size: 20px;
    }
    
    .form-group label {
        font-size: 15px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .concept-card {
        padding: 1.5rem;
        min-height: 250px;
    }
    
    .concept-card h2 {
        font-size: 1.8rem;
    }
    
    .concept-card p {
        font-size: 1rem;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }
}

/* 针对平板设备的额外优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .contact-section {
        gap: 30px;
    }
    
    .contact-info, .qr-section {
        padding: 0 15px;
    }
    
    .feedback-container {
        width: 90%;
    }
}

/* Projects页面特定样式 - 修复版本 */
body #Projects {
  max-width: 1400px;
  margin: 140px auto 60px !important;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

body #Projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 40px;
  justify-content: center;
}

body #Projects .project-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e0e0e0;
}

body #Projects .project-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

body #Projects .project-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

body #Projects .project-item:hover img {
  transform: scale(1.05);
}

body #Projects .project-item .text {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

body #Projects .project-item .text h3 {
  font-size: 24px;
  color: #2E8B57;
  margin-bottom: 15px;
  font-weight: 600;
}

body #Projects .project-item .text p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  flex-grow: 1;
  text-align: justify;
}

@media (max-width: 1100px) {
  body #Projects .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  }
}

@media (max-width: 900px) {
  body #Projects .projects-grid {
    grid-template-columns: 1fr;
  }
  
  body #Projects .project-item img {
    height: 280px;
  }
}

@media (max-width: 600px) {
  body #Projects {
    margin-top: 120px !important;
  }
  
  body #Projects .project-item img {
    height: 220px;
  }
  
  body #Projects .project-item .text {
    padding: 20px;
  }
  
  body #Projects .project-item .text h3 {
    font-size: 20px;
  }
  
  body #Projects .project-item .text p {
    font-size: 15px;
  }
}
/* Support页面链接样式 */
.support-link {
    display: inline-block;
    background-color: #2E8B57;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.support-link:hover {
    background-color: #267349;
}
/* Support页面登录表单样式 */
.login-container {
    max-width: 400px;
    margin: 60px auto 40px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.login-container h3 {
    text-align: center;
    color: #2E8B57;
    margin-bottom: 25px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #2E8B57;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #267349;
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: #2E8B57;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.login-links a:hover {
    text-decoration: underline;
}

/* 支持服务卡片样式 */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

.support-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e0e0e0;
    text-align: center;
    padding: 30px 20px;
}

.support-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.support-item h3 {
    font-size: 20px;
    color: #2E8B57;
    margin-bottom: 15px;
    font-weight: 600;
}

.support-link {
    display: inline-block;
    background-color: #2E8B57;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.support-link:hover {
    background-color: #267349;
}

/* Support页面布局调整 */
section#Support {
    margin-top: 140px;
    padding: 0 20px;
}

.support-section {
    margin-top: 80px;
}

@media (max-width: 768px) {
    section#Support {
        margin-top: 120px;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
}
/* 公共样式 - 与index.html保持一致 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-brand h2 {
    color: white;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 页脚样式 */
#common-footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2rem 0 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}
