/* 基础样式和重置 */
:root {
    --primary-color: #0D47A1;
    --secondary-color: #1976D2;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #777;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    /*--accent-color: #FF6D00;  橙色作为强调色，提高CTA按钮的可见性 */
    --neutral-light: #F5F7FA; /* 浅灰色用于背景 */
    --neutral-dark: #263238; /* 深灰色用于文本 */

    /* 定义字体变量 */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;

    --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
        "WenQuanYi Micro Hei", sans-serif;

    --font-mono: SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

/* CSS 初始化 */
*,
*::before,
*::after {
    box-sizing: border-box;
    /* 使用更直观的盒模型 */
    margin: 0;
    /* 清除默认外边距 */
    padding: 0;
    /* 清除默认内边距 */
    word-wrap: break-word;
    overflow-wrap: break-word;
}
a{ text-decoration:none; color:var(--primary-color) }
a:active,a:hover{color:var(--accent-color)}
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary), var(--font-cn);
    line-height: 1.6;
    color: var(--neutral-dark);
    /*background-color: var(--neutral-light);
    --medium-gray: 1;
    background-color: rgb(249 250 251 / var(--medium-gray, 1));*/
    /* 优化字体渲染 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/*code,
pre {
    font-family: var(--font-mono);
}

p {
    color: var(--dark-gray);
}*/

input,
input:focus {
    outline: none;
    border: none;
}

/* 辅助类 */
.none {
    display: none;
}

.bg-foot {
    --medium-gray: 1;
    background-color: var(--neutral-light);
    color:var(--neutral-dark);
}
.bg-foot .text{color:var(--neutral-dark);}
.tag{border-radius: 5px; opacity: 0.8; padding:5px; font-weight: 700;}
.tag-top{
    color: red;
}
.tag-new{
    color: green;
}
.tag-hot{
    color: orange;
}
.tag-store{
    color: blue;
}
.bg-search{
    background: linear-gradient(to bottom, rgba(13,71,161, 0.8) 100%, rgba(92, 177, 166, 0.8) 0%), url(../assets/img/bg-masthead.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/*.container-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
*/
/* 跳过链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}



/*
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}
*/
#button-addon2{border:none}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary.focus,
.btn-primary:focus {
    background-color: var(--accent-color);
    color: var(--white);
}
/* 导航栏样式 */
    .navbar {
      background-color: var(--primary-color);
     /* box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
      box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);

    }

    .navbar-brand {
      font-weight: 700;
      color: white;
      max-width: 12px;
    }

    .navbar-nav .nav-link {
      color: rgba(255,255,255,0.8);
      transition: color 0.3s;
    }

    .navbar-nav .nav-link:hover {
      color: white;
    }

    .navbar-toggler {
      border-color: rgba(255,255,255,0.5);
    }
    .logo-svg{
        fill: var(--white); /* 填充色 */
    }
    .navbar-toggler-icon {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.5%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }


/* 分页样式 */
    .pagination .page-item .page-link {
      color: var(--primary-color);
    }

    .pagination .page-item.active .page-link {
      background-color: var(--primary-color);
      border-color: var(--primary-color);
      color: var(--white);
    }

    /* 响应式调整 */
    @media (max-width: 768px) {
      .filter-sidebar {
        margin-bottom: 20px;
      }
    }

/* 顶部通知样式 */
/*.site-top {
    background-color: var(--light-gray);
    color: var(--text-color);
}

.site-top .container {
    padding: 0.3rem 1rem;
}*/

/* 头部样式 */
/*.site-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container,
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--secondary-color);
}*/

/* 搜索 */
/*.search-input {
    min-width: 6rem;
    padding: 0.75rem 1rem;
    min-width: 150px;
    border-radius: 0.25rem;
}

.main-detail {
    padding: 0 3rem;
}

.pdl3 {
    padding-left: 3rem;
}

.pdr3 {
    padding-right: 3rem;
}*/

/* 面包屑导航 */
/*.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 0.5rem;
    color: var(--dark-gray);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb [aria-current] {
    color: var(--text-color);
}*/





/* 页脚 */
.site-footer {
    --tw-bg-opacity: 1;
    background-color: rgb(29 41 57 / var(--tw-bg-opacity, 1));
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-column {
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-column a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.3rem 0;
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* 移动端适配 */
@media (max-width: 767px) {

    .site-header .container,
    .site-footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-selector {
        align-self: flex-start;
    }
}

/* 打印样式 */
@media print {

    .site-header,
    .site-footer,
    .product-actions {
        display: none;
    }

    .product-container {
        grid-template-columns: 1fr;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}