﻿/* Modern visual layer for the legacy COA homepage. */
html,
body {
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #161616;
  font-family: Arial, "Microsoft YaHei", "SimSun", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

body {
  min-width: 960px;
}

a {
  color: #b40000;
  text-decoration: none;
}

a:hover {
  color: #e00000;
  text-decoration: underline;
}

img {
  max-width: 100%;
  border: 0;
  vertical-align: middle;
}

table {
  border-collapse: collapse;
}

#header,
#menu,
#mainflash,
#index_container,
#footer {
  width: 960px;
  margin-right: auto;
  margin-left: auto;
}

#header {
  margin-top: 18px;
  background: #ffffff;
  border-top: 5px solid #c40000;
  border-right: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
  border-left: 1px solid #d8d8d8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

#header table {
  width: 100%;
}

#header td {
  color: #111111;
}

#header .STYLE39 {
  color: #c40000;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0;
}

#header .STYLE46 {
  color: #111111;
  font-size: 13px;
}

#menu {
  margin-top: 10px;
  background: #111111;
  border-bottom: 4px solid #c40000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

#navigation {
  display: block;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  list-style: none;
}

#navigation li {
  position: relative;
  float: left;
  margin: 0;
  padding: 0;
  list-style: none;
}

#navigation li > a {
  display: block;
  min-width: 76px;
  height: 44px;
  padding: 0 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  line-height: 44px;
  text-align: center;
  text-decoration: none;
}

#navigation li > a:hover,
#navigation li:hover > a {
  background: #c40000;
  color: #ffffff;
}

#navigation ul {
  position: absolute;
  z-index: 50;
  top: 44px;
  left: 0;
  display: none;
  min-width: 150px;
  margin: 0;
  padding: 6px 0;
  background: #ffffff;
  border: 1px solid #cfcfcf;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

#navigation li:hover ul {
  display: block;
}

#navigation ul li {
  float: none;
}

#navigation ul li a {
  min-width: 0;
  height: auto;
  padding: 8px 14px;
  color: #111111;
  font-weight: normal;
  line-height: 1.35;
  text-align: left;
}

#navigation ul li a:hover {
  background: #f3eeee;
  color: #c40000;
}

#bdfm {
  float: right;
  margin: 8px 10px 0 0;
}

#bdfm input[type="text"],
#bdfm input[name="word"] {
  width: 145px;
  height: 24px;
  padding: 0 8px;
  background: #ffffff;
  border: 1px solid #999999;
  color: #111111;
}

#bdfm input[type="submit"],
#bdfm input[type="button"] {
  height: 26px;
  padding: 0 10px;
  background: #c40000;
  border: 1px solid #9b0000;
  color: #ffffff;
  cursor: pointer;
}

#mainflash {
  overflow: hidden;
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid #d6d6d6;
}

#mainflash table {
  width: 100%;
}

#index_container {
  overflow: hidden;
  margin-top: 14px;
}

#index_left {
  float: left;
  width: 220px;
}

#index_right {
  float: right;
  width: 726px;
}

#index_prolist,
#index_contact,
#index_hotproduct_23,
#index_hotproduct {
  background: #ffffff;
  border: 1px solid #d4d4d4;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
}

#index_contact,
#index_hotproduct {
  margin-top: 14px;
}

#left_title,
#index_contact1,
#index_hotproduct_12,
#index_hotproduct_1 {
  min-height: 34px;
  padding: 0 14px;
  background: #c40000;
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  line-height: 34px;
}

#left_content {
  padding: 8px 12px 12px;
}

#left_content table,
#index_contact table,
#index_hotproduct_23 table,
#index_hotproduct_2 table {
  width: 100%;
}

#left_content td {
  border-bottom: 1px solid #ececec;
}

#left_content a,
#left_content font {
  color: #111111 !important;
  font-size: 14px;
}

#left_content a:hover,
#left_content a:hover font {
  color: #c40000 !important;
}

#index_contact2 {
  padding: 12px 14px;
  color: #222222;
}

#index_hotproduct_12 {
  overflow: hidden;
  margin-bottom: 0;
  border: 1px solid #a90000;
}

#index_hotproduct_12 a {
  color: #ffffff;
  font-weight: bold;
}

#index_hotproduct_23 {
  padding: 14px;
  border-top: 0;
}

#index_hotproduct_23 table {
  background: #ffffff;
}

#index_hotproduct_23 td {
  padding: 8px;
  border: 1px solid #e3e3e3;
  color: #161616;
  text-align: center;
}

#index_hotproduct_23 td[bgcolor],
#index_hotproduct_23 td[bgcolor="#2AA4ED"] {
  background: #111111 !important;
  color: #ffffff;
  font-weight: bold;
}

#index_hotproduct_23 a {
  color: #b40000;
}

#index_hotproduct_2 {
  padding: 12px 10px 18px;
}

#index_hotproduct_2 table {
  margin-top: 8px;
}

#index_hotproduct_2 td {
  padding: 8px;
  border-color: #dedede !important;
  color: #111111;
}

#index_hotproduct_2 img {
  width: 175px;
  height: 162px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid #d2d2d2;
  padding: 4px;
}

#index_hotproduct_2 a {
  color: #111111;
  font-weight: bold;
}

#index_hotproduct_2 a:hover {
  color: #c40000;
}

#footer {
  clear: both;
  margin-top: 18px;
  margin-bottom: 24px;
  background: #111111;
  border-top: 5px solid #c40000;
  color: #ffffff;
}

#footer table {
  width: 100%;
}

#footer td {
  padding: 8px 12px;
  background: transparent !important;
  color: #ffffff;
  font-size: 12px;
}

#footer a {
  color: #ffffff;
}

.clear {
  clear: both;
  height: 0;
  overflow: hidden;
}

.STYLE1,
.STYLE14,
.STYLE15,
.STYLE22,
.STYLE24,
.STYLE25,
.STYLE36,
.STYLE37,
.STYLE38,
.STYLE39,
.STYLE42,
.STYLE44,
.STYLE45,
.STYLE46,
.style1 {
  letter-spacing: 0;
}

.STYLE17,
.STYLE18 {
  color: #c40000;
}

@media print {
  body {
    background: #ffffff;
  }

  #menu,
  #footer {
    box-shadow: none;
  }
}

.page-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-right: 1px solid #ddd;
    padding: 10px 0;
    overflow: visible;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.sidebar ul li {
    border-bottom: 1px solid #eee;
}

.sidebar ul li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.sidebar ul li a:hover {
    background: #c41a1a;
    color: #fff;
}

.main-content {
    flex: 1;
    padding: 15px 20px;
    background: #fff;
    min-width: 0;
}
.main-content * {
    text-align: left;
}

.main-content table {
    width: 100%;
    border-collapse: collapse;
}

.main-content table td {
    padding: 8px 12px;
    vertical-align: top;
    text-align: left;
}

.main-content img {
    max-width: 100%;
    height: auto;
}

.sidebar img {
    display: none;
}

/* 首页产品图片保持原始比例 */
.product-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

/* 首页产品卡片中的图片容器 */
.product-card {
    text-align: center;
}

.product-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 统一修复所有页面图片比例 */
img {
    max-width: 100%;
    height: auto !important;
}

/* 修复产品图片显示 */
.product-grid img,
.product-card img,
#main-content img,
.main-content img,
table img {
    width: auto;
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}

/* 修复表格内图片 */
table td img {
    display: block;
    max-width: 100%;
    height: auto !important;
}

/* 修复产品列表区域的图片 */
#index_hotproduct img,
#index_hotproduct_12 img,
#index_hotproduct_23 img,
#index_hotproduct_3 img,
#index_hotproduct_1 img,
#index_hotproduct_2 img,
#index_hotproduct_4 img,
#index_hotproduct_5 img,
#index_hotproduct_6 img,
#index_hotproduct_7 img,
#index_hotproduct_8 img,
#index_hotproduct_9 img,
#index_hotproduct_10 img {
    max-width: 120px;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* 修复产品列表区域的表格布局 */
#index_hotproduct table,
#index_hotproduct_12 table,
#index_hotproduct_23 table,
#index_hotproduct_3 table,
#index_hotproduct_1 table,
#index_hotproduct_2 table {
    width: 100%;
    border-collapse: collapse;
}

#index_hotproduct td,
#index_hotproduct_12 td,
#index_hotproduct_23 td,
#index_hotproduct_3 td,
#index_hotproduct_1 td,
#index_hotproduct_2 td {
    text-align: center;
    padding: 10px;
    vertical-align: top;
}

/* 产品名称文字 */
#index_hotproduct a,
#index_hotproduct_12 a,
#index_hotproduct_23 a,
#index_hotproduct_3 a,
#index_hotproduct_1 a,
#index_hotproduct_2 a {
    display: block;
    font-size: 13px;
    color: #1A1A1A;
    text-decoration: none;
    margin-top: 6px;
}

#index_hotproduct a:hover,
#index_hotproduct_12 a:hover,
#index_hotproduct_23 a:hover,
#index_hotproduct_3 a:hover,
#index_hotproduct_1 a:hover,
#index_hotproduct_2 a:hover {
    color: #C41A1A;
}



/* 统一左侧菜单样式 - 覆盖所有页面 */
#left_title {
    background: #1A1A1A;
    color: #FFFFFF;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid #C41A1A;
}

#left_content {
    padding: 0;
}

#left_content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#left_content ul li {
    border-bottom: 1px solid #eee;
}

#left_content ul li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

#left_content ul li a:hover {
    background: #C41A1A;
    color: #FFFFFF;
    padding-left: 28px;
}

/* 左侧菜单中的产品分类标题图片 */
#left_content img {
    display: none;
}

/* 首页底部5个产品图片 - 统一正方形尺寸，平均分布 */
#index_hotproduct_12 table,
#index_hotproduct_23 table,
#index_hotproduct_3 table,
#index_hotproduct_1 table,
#index_hotproduct_2 table {
    width: 100%;
    table-layout: fixed;
}

#index_hotproduct_12 td,
#index_hotproduct_23 td,
#index_hotproduct_3 td,
#index_hotproduct_1 td,
#index_hotproduct_2 td {
    width: 20%;
    text-align: center;
    padding: 10px;
    vertical-align: top;
}

#index_hotproduct_12 img,
#index_hotproduct_23 img,
#index_hotproduct_3 img,
#index_hotproduct_1 img,
#index_hotproduct_2 img {
    width: 100%;
    max-width: 150px;
    height: 150px !important;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

#index_hotproduct_12 a,
#index_hotproduct_23 a,
#index_hotproduct_3 a,
#index_hotproduct_1 a,
#index_hotproduct_2 a {
    display: block;
    font-size: 13px;
    color: #1A1A1A;
    text-decoration: none;
    margin-top: 8px;
    text-align: center;
}

#index_hotproduct_12 a:hover,
#index_hotproduct_23 a:hover,
#index_hotproduct_3 a:hover,
#index_hotproduct_1 a:hover,
#index_hotproduct_2 a:hover {
    color: #C41A1A;
}

/* 强制首页底部5个产品图片为正方形 */
#index_hotproduct_12 img,
#index_hotproduct_23 img,
#index_hotproduct_3 img,
#index_hotproduct_1 img,
#index_hotproduct_2 img {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    object-fit: cover !important;
    border-radius: 8px;
    display: block !important;
    margin: 0 auto !important;
    border: 1px solid #eee;
}

#index_hotproduct_12 td,
#index_hotproduct_23 td,
#index_hotproduct_3 td,
#index_hotproduct_1 td,
#index_hotproduct_2 td {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    text-align: center !important;
    vertical-align: top !important;
    padding: 10px !important;
}

/* 首页底部5个产品卡片平均一行 */
#index_hotproduct_2 > table div[style*="float:left"] {
    box-sizing: border-box;
    width: 20% !important;
    margin: 0 !important;
    padding: 0 8px !important;
    text-align: center !important;
}


