/* 基本样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f7fa;
    /* 背景颜色 */
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    background: linear-gradient(135deg, #1e90ff, #00fa9a);
    /* 科技感渐变背景 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.navbar .logo a {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
}
.navbar .search-bar {
    display: flex;
    align-items: center;
}
.navbar .search-bar input {
    padding: 12px 18px;
    font-size: 16px;
    width: 300px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar .search-bar input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.6);
}
.navbar .search-bar input::placeholder {
    color: #aaa;
    /* 占位符文字颜色 */
    font-style: italic;
    /* 占位符字体为斜体 */
}
.navbar .search-bar input:hover {
    border-color: #0056b3;
    background-color: #e2e6ea;
}
.navbar .search-bar button {
    padding: 10px 18px;
    margin-left: 10px;
    border: none;
    border-radius: 25px;
    background: #1e90ff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.navbar .search-bar button:hover {
    background: #00fa9a;
    transform: translateY(-2px);
}
.navbar .search-bar button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar .navbar-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    transition: color 0.3s;
}
.navbar .navbar-links a:hover {
    color: #ffeb3b;
}

/* 动态写入 home2 的内容机器人界面 */
.container111 {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
    /* ↓↓↓ 将固定左移改为居中 ↓↓↓ */
    max-width: 1200px;    /* 可选：给一个最大宽度，防止过宽 */
    margin: 0 auto;       /* 上下 0，左右自动平分空白，实现居中 */
    box-sizing: border-box;
}

.container111 h5 {
    flex: 0 0 auto;
    margin: 0;
    padding: 15px;
    width: 200px;
    background: #DCDCDC;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #2F4F4F;
}

/* 响应式设计：低分辨率 */
@media (max-width: 720px) {
    body {
        font-size: 14px;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    .navbar .search-bar {
        width: 100%;
        margin-top: 10px;
    }
    .navbar .search-bar input {
        width: 100%;
        font-size: 14px;
    }
    #dynamicImage {
        max-width: 100%;
        height: auto;
    }
    figure img {
        width: 40px;
    }
    .container111 {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        background-color: #f9f9f9;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin: 20px auto;
    }

}

/* 响应式设计：中分辨率 */
@media (min-width: 721px) and (max-width: 1080px) {
    body {
        font-size: 15px;
    }
    .navbar .search-bar input {
        width: 80%;
    }
    #dynamicImage {
        max-width: 100%;
        height: auto;
    }
    figure img {
        width: 60px;
    }
    .container111 {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        background-color: #f9f9f9;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin: 20px auto;
    }
}

/* 响应式设计：高分辨率 */
@media (min-width: 1081px) {
    body {
        font-size: 16px;
    }
    .navbar .search-bar input {
        width: 300px;
    }
    figure img {
        width: 80px;
    }
}


/* H2 标题 */
h2 {
    background-color: lightblue;
    text-align: center;
    line-height: 50px;
    height: 50px;
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: #333;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 3.5vh;
    margin-bottom: 20px;
}

/* 图片单元样式 */
figure {
    display: inline-block;
    text-align: center;
    margin: 10px;
}
figure img {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}
figure img:hover {
    filter: grayscale(50%);
    transform: scale(1.1);
}
figure figcaption {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}

/* 商品表格样式 */
#product-table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#product-table th {
    background: linear-gradient(135deg, #00fa9a, #1e90ff);
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 18px;
}
#product-table th[colspan="10"] {
    text-align: center;
}
#product-table td {
    text-align: center;
    padding: 12px;
    font-size: 16px;
    color: #333;
}
#product-table tr:nth-child(odd) {
    background: #f9f9f9;
}
#product-table tr:hover {
    background: #e0f7fa;
}
#product-table td:last-child {
    color: #1e90ff;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
#product-table td:last-child:hover {
    color: #ff4500;
}

/* QQ 单页背景 */
.zhongguo {
    text-align: center;
}

/* 悬停小提示 */
[title=W3Schools] {
    border: 5px solid blue;
}

/* 动态内容区域 容器宽度 & 居中 */
#dynamic-content,
#dynamic-content6,
#dynamic-content2,
#dynamic-content3,
#dynamic-content5 {
    width: 90%;
    margin: 0 auto 16px;
}

/* 动态生成内容的 CSS */
/* 让文本和按钮同行显示并居中，并加下划线分隔 */
.inline-elements {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* ↓↓↓ 改动处 ↓↓↓ */
  width: 70%;        /* 整体只占 80% 宽度 */
  margin: 0 auto;    /* 居中，自动在左右留 10% 空白 */
    box-sizing: border-box;      /* padding/border 算到 width 里 */
    /* ↑↑↑ 改动处 ↑↑↑ */
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    gap: 8px;
}


/* 按钮样式 */
.button {
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.button:hover {
    background-color: #45a049;
    padding: 8px 16px;
}

/* 购买按钮 */
.buy-button {
    flex: 0 0 auto;
    margin-left: 4px;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 4px;
}

/* 商品描述文字，带下划线 */
.special-text {
    flex: 1;
    margin-right: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: underline;
    text-decoration-color: #888;
    color: #2F4F4F;
    font-weight: bold;
}

/* 价格（橙色） */
.highlight-price {
    margin: 0 4px;
    color: #FF5400;
    font-weight: bold;
}

/* 数量（蓝色） */
.highlight-quantity {
    margin: 0 4px;
    color: #000CF9;
    font-weight: bold;
}

/* 后期微调元素 padding: 0 */
p,
button {
    margin: 0.5rem;
    padding: 0;
}

/* 顶部概括文本 */
#demoo,
#demookk,
#demook,
#demooo,
#demoooo {
    color: red;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    margin: 8px 0;
}

/* 购买页居中 */
.goum {
    text-align: center;
}
#purchase-details {
    text-align: center;
}

/* 落地搭建 CSS */
.container1111 {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background: #DCDCDC;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 70px;
}
.liness {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}
.liness::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #333;
}
.liness:nth-child(even) {
    color: #333;
}
.liness:hover {
    color: #0066cc;
    cursor: pointer;
}
@media (max-width: 1080px) {
  /* 让商品描述换行、完整显示 */
  .special-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  /* 让整行内联容器在移动/小屏上撑满宽度 */
  .inline-elements {
    width: 100%;       /* 全宽 */
    margin: 0;         /* 也可以改成你想要的左右内边距或居中方式 */
    box-sizing: border-box; /* 确保 padding/border 不撑破 */
  }
}
