﻿/* ====== 专业配色方案 ====== */
:root {
  --primary: #2c3e50;      /* 深蓝 - 专业、可靠 */
  --secondary: #3498db;    /* 亮蓝 - 科技感 */
  --accent: #e74c3c;       /* 红色 - 保留作为强调色 */
  --success: #27ae60;      /* 绿色 - 更柔和的成功色 */
  --light-bg: #f8f9fa;     /* 浅灰背景 */
  --text-dark: #2c3e50;    /* 深色文本 */
  --text-light: #ecf0f1;   /* 浅色文本 */
  --border: #dce1e5;       /* 边框色 */
}

/* ====== 基础样式 ====== */
body {
  background-color: #f5f7fa;
  color: #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

    .content-block { 
        margin: 15px 0; 
        padding: 15px; 
        background: #F7F7FF; 
        border-radius: 4px;
    }
    .gradient-header {
        background: linear-gradient(to right, #FFF, #21519C);
        padding: 5px 10px;
        color: #21519C;
        font-weight: bold;
    }
    .part-table td { 
        padding: 4px 8px; 
        border-bottom: 1px solid #EEE;
    }


a {
  color: var(--secondary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ====== 布局结构 ====== */
.head {
  margin: 0 auto;
  height: 71px;
  width: 85%;
  text-align: left;
  background-color: transparent;
  padding: 10px 0;
}

.headtitle {
  margin: 0px auto;
  height: 85px;
  width: 85%;
padding: 0 25px;
color: white;
text-shadow: 0 1px 2px rgba(0,0,0,0.2);
 background: linear-gradient(135deg, #2c3e50, #1a252f);
 
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.05);
 transition: background 0.4s ease;
}
.headtitle:hover {
  background: linear-gradient(to right, #1a6ca6, #3498db, #1a6ca6); /* 深色方案悬停态 */
}

.nav-links {
            display: flex;
            gap: 25px;
        }
.headtitle a,
        .headtitle a:link,
        .headtitle a:visited,
        .headtitle a:hover,
        .headtitle a:active {
            color: white !important; /* 使用!important确保优先级 */
            text-decoration: none;
            position: relative;
            padding: 10px 0;
            transition: all 0.3s ease;
        }
.headtitle a:hover {
            color: #ffeb3b !important; /* 悬停时变为黄色 */
        }

.headtitlemain {
  /* 继承所有.headtitle属性 */
  margin: 0px auto;
  height: 85px;
  width: 85%;
  padding: 0 25px;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
 background: linear-gradient(135deg, #2c3e50, #1a252f);
  
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.05);
  transition: background 0.4s ease;
  
  /* 新增右对齐属性 */
  display: flex;
  justify-content: flex-end; /* 水平靠右 */
  align-items: center; /* 垂直居中 */
}
.headtitlemain:hover {
  background: linear-gradient(to right, #1a6ca6, #3498db, #1a6ca6);
}

/* 通用链接样式（同时作用于.headtitle和.headtitlemain） */
.headtitle a,
.headtitlemain a, /* 新增.headtitlemain选择器 */
.headtitle a:link,
.headtitlemain a:link,
.headtitle a:visited,
.headtitlemain a:visited,
.headtitle a:hover,
.headtitlemain a:hover,
.headtitle a:active,
.headtitlemain a:active {
  color: white !important;
  text-decoration: none;
  position: relative;
  padding: 10px 0;
  transition: all 0.3s ease;
}
.headtitle a:hover,
.headtitlemain a:hover {
  color: #ffeb3b !important;
}

/* 导航链接容器样式 */
.nav-links {
  display: flex;
  gap: 25px;
}

/* 为.headtitlemain中的导航链接添加右对齐 */
.headtitlemain .nav-links {
  justify-content: flex-end; /* 确保链接容器靠右 */
  width: 100%; /* 占据全部可用宽度 */
}


.mid-group {
  margin: 20px auto;
  width: 85%;
  text-align: left;
  line-height: 150%;
  display: block;
  word-break: break-all;
  word-wrap: break-word;
  overflow: hidden;
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* ====== 搜索区域 ====== */
.search-container {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px auto;
  padding: 18px 20px;

  background-color: #f8f9fa;
  border-radius: 10px;
box-shadow: 0 2px 12px rgba(0,0,0,0.8);
  max-width: 700px; 
}

.search-container input[type="text"] {
  flex-grow: 1;
  padding: 15px 18px;
  border: 2px solid #3498db;
  border-radius: 6px;
  font-size: 1.1rem;
  /* 添加阴影 */
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.search-container input[type="text"]:focus {
  border-color: #2980b9;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.25);
  outline: none;
}
.search-container input[type="submit"] {
  flex: 0 1 25%;
  padding: 15px;
  font-size: 1.15rem;
  background: linear-gradient(to bottom, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(52, 152, 219, 0.4);
}

.search-container input[type="submit"]:hover {
  background: linear-gradient(to bottom, #2980b9, #2573a7);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.6);
  transform: translateY(-2px);
}


.search-container font b {
  font-size: 1.1rem;
}


/*submit contrain*/
  .button-container {
            display: flex;
            justify-content: flex-end;
            margin-top: 25px;
            padding-top: 20px;
            border-top: 1px solid #e1e8f7;
        }
  
             
   



/* ====== 产品表格 ====== */
.product-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.product-table th {
  background: linear-gradient(to bottom, var(--secondary), #2980b9);
  color: var(--text-light);
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
}

.product-table td {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border);
}

.product-table tr:nth-child(even) {
  background-color: var(--light-bg);
}

.product-table tr:hover td {
  background-color: #e3f2fd;
}

.product-header {
  padding-bottom: 15px;
}

.manufacturer {
  margin: 5px 0 0;
  color: #555;
  font-size: 0.95rem;
}

.product-title {
  margin: 5px 0 0;
  font-style: italic;
}

.stock-status {
  color: var(--success);
  font-weight: bold;
}

.description-cell {
  padding-top: 20px !important;
}

.description-content {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  line-height: 1.7;
}

/* ====== 询价表格 ====== */
.quotation-section {
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  border-radius: 10px;
  padding: 30px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
  
  /* 新增立体效果样式 */
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.15),  /* 基础阴影 */
    inset 0 1px 10px rgba(255, 255, 255, 0.8), /* 内高光 */
    0 0 0 1px rgba(255, 255, 255, 0.6); /* 白色描边 */
  
  /* 添加3D边缘效果 */
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
}

/* 增强左侧装饰条 */
.quotation-section::before {

}

.inquiry-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  margin: 20px 0;
}

.inquiry-table th {
  background: linear-gradient(to bottom, var(--secondary), #2980b9);
  color: var(--text-light);
  padding: 12px 15px;
  font-weight: 600;
  text-align: left;
}

.inquiry-table td {
 background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);

}

.inquiry-table tr:last-child td {
  border-bottom: none;
}

.inquiry-table tr:nth-child(even) {
  background-color: var(--light-bg);
}

.inquiry-table tr:hover td {
  background-color: #e3f2fd;
}

/* ====== 表单元素 ====== */
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 0.95rem;
  transition: border 0.3s;
}

.form-input:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* ====== 状态标签 ====== */
.status-in-progress {
  background-color: var(--secondary);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ====== 优先级标签 ====== */
.priority-high {
  color: var(--accent);
  font-weight: bold;
  background-color: rgba(231, 76, 60, 0.1);
  padding: 5px 12px;
  border-radius: 15px;
  display: inline-block;
}

/* ====== 提交按钮 btn 和Btnb两个类注意大小写====== */
.submit-btn {
  background: linear-gradient(to right, var(--success), #219653);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
} 
.submit-btn:disabled {
            background: #ebebeb;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}


		
 .submitBtnb {
            background: linear-gradient(to bottom, #3498db, #2980b9);
            color: white;
            border: none;
            padding: 12px 30px;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 8px;
			
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(26, 109, 204, 0.25);
  
        }
        
       .submitBtnb:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(26, 109, 204, 0.35);
        }
        .submitBtnb:disabled {
            background: #ebebeb;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
            
            
            		
             
.submit-cell {
  text-align: center;
  padding: 20px !important;
}


/* ====== 页脚 ====== */
.footer {
  width: 85%;
  margin: 30px auto 20px;
  text-align: center;
  padding: 25px;
  background: var(--primary);
  color: var(--text-light);
  border-radius: 8px;
}
.footer:hover {
  background: #1a6ca6; /* 从渐变改为单一颜色 */
}
}
.footer p {
  margin: 8px 0;
}

.footer-divider {
  border-color: rgba(255,255,255,0.2);
  margin: 15px auto;
  width: 80%;
}

.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.copyright {
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.8;
}



/*新增图上文*/
     /* 核心样式 - 带背景图片的自适应div */
        .adaptive-bg-container {
            /* 背景图片设置 */
            background-image: url('/images/dkchip2025.jpg');
            background-size: cover;       /* 覆盖整个容器 */
            background-position: center;   /* 图片居中 */
            background-repeat: no-repeat;  /* 不重复 */
            
            /* 尺寸设置 - 宽度100%自动扩展，高度自适应 */
            width: 100%;
            min-height: 220px;            /* 最小高度 */
            margin: 0 auto 40px;
            
            /* 文字居中 */
            display: flex;
            flex-direction: column;
            justify-content: center;      /* 垂直居中 */
            align-items: center;          /* 水平居中 */
            
            /* 装饰效果 */
            border-radius: 15px;
            overflow: hidden;
            position: relative;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            border: 3px solid rgba(255, 255, 255, 0.2);
            transition: all 0.4s ease;
        }
        
        /* 添加半透明覆盖层增强文字可读性 */
        .adaptive-bg-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 1;
            transition: background 0.4s ease;
        }
        
        .adaptive-bg-container:hover::before {
            background: rgba(0, 0, 0, 0.2);
        }
        
        /* 文字容器 */
        .content {
            position: relative;
            z-index: 2; /* 确保文字在覆盖层上方 */
            text-align: center;
            padding: 40px;
            max-width: 80%;
        }
        
        .adaptive-bg-container h2 {
            font-size: 3.2rem;
            margin-bottom: 20px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
            color: white;
            transition: all 0.3s ease;
        }
        
        .adaptive-bg-container:hover h2 {
            transform: scale(1.05);
        }
        
        .adaptive-bg-container p {
            font-size: 1.4rem;
            line-height: 1.7;
            margin-bottom: 25px;
			 color: white;
            text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
        }
		
		/**/
	 .features {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 25px;
            margin: 40px 0;
        }
        
        .feature {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 25px;
            width: 280px;
            text-align: center;
            transition: all 0.3s ease;
        }
        
        .feature:hover {
            transform: translateY(-10px);
            background: rgba(255, 255, 255, 0.15);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }
        
        .feature i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: #ff7e5f;
        }
        
        .feature h4 {
            margin-bottom: 15px;
            font-size: 1.5rem;
            color: #feb47b;
        }	
        

/* ====== 响应式设计 ====== */
@media (max-width: 768px) {
  .head, .headtitle, .mid-group, .footer {
    width: 95%;
  }
  
  .mid-group {
    padding: 15px;
  }
  
  .product-table th,
  .product-table td,
  .inquiry-table th,
  .inquiry-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  
  .search-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-container input[type="submit"] {
    width: 100%;
    margin-top: 10px;
  }
  
  .submit-btn {
    padding: 10px 25px;
    font-size: 0.95rem;
  }
  
  .footer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .inquiry-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  
  .inquiry-table tr {
    display: block;
    margin-bottom: 10px;
  }
  
  .inquiry-table th {
    display: none;
  }
}