nav {
    position: fixed; /* 固定在页面顶部 */
    top: 0;
    left: 0;
    width: 100%;
    height: 4rem; /* 导航栏高度 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px); /* 可选：添加模糊效果 */
    z-index: 1000; /* 确保导航栏在最上层 */
    border-radius: 0.5rem;
}

nav * {
    color: #002321;
}

nav img {
    height: 100%; /* 高度和 nav 一样 */
    width: auto; /* 宽度自适应 */
}

nav ul {
    margin-left: auto; /* 向右对齐 */
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center; /* 垂直居中 */
}

nav ul li {
    margin-left: 1rem; /* 根据需要调整间距 */
}

nav ul li a {
    transition: all 0.2s;
    padding-right: 0.5rem;
    text-decoration: none;
    font-weight: bolder;
    color: inherit; /* 根据需要调整颜色 */
}

nav ul li a:hover, nav ul li a:hover * {
    color: #ff4f11;
}

body {
    height: 100vh;
    margin: 0 auto;
    background: url("../image/backImage.jpg") center center / cover no-repeat fixed;
}

body * {
    color: #3f3f3f;
    font-family: 'icomoon', system-ui, Helvetica, Arial, serif;
}

body.mobile nav {
    height: 10rem;
}

body.mobile {
    font-size: 40px;
}

.glass-effect {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

main, nav {
    border-radius: 0.5rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.85));
    /*border: #fff 0.3vw solid;*/
}

nav .price-icon {
    display: inline;
    color: #ff4f11;
    font-size: 1.7rem;
    font-weight: 500;
}

main {
    width: 100%;
    min-height: 90vh;
    margin-top: 5rem;
    text-align: center;
}

.container {
    text-align: left;
    width: 30%;
    min-width: 300px;
    display: inline-block;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin: 0.5rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.85));
}

.container.product .price-h2 {
    white-space: nowrap; /* 防止文本换行 */
    overflow: hidden; /* 隐藏溢出的内容 */
    text-overflow: ellipsis; /* 使用省略号表示被隐藏的文本 */
    max-width: 100%; /* 确保元素有一个最大宽度 */
}

body.mobile .container.product .price-h2 {
    white-space: inherit;
    overflow: visible;
    text-overflow: inherit;
}

body.mobile .container {
    width: 96%;
}

body.mobile .container {
    margin-top: 10rem;
}

body.mobile .container pre {
    height: auto;
}

body.mobile .container img {
    height: auto;
}


.container pre {
    color: #3f3f3f;
    white-space: pre-wrap;
    word-wrap: break-word;
    height: 3rem;
}

.container img {
    width: 100%;
    height: 10vw;
    min-height: 250px;
}

.tabPS {
    border-left: #ff950d 0.2rem solid;
    background: rgb(255 148 83 / 11%);
    padding: 0.5rem;
}

button.disable, .button.disable {
    color: rgba(255, 255, 255, 0.5);
}

button, .button {
    font-size: larger;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background: #ff6429;
    color: #ffffff;
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
}

button:hover, .button:hover {
    color: #ffa682;
    background: #2f0d00;
}

.price-h2 {
    color: #da4400;
}

.price-value {
    color: #ff6429;
}

.price-value .number {
    font-size: 2rem;
    color: #ff6429;
}

.price {
    text-align: right;
}

.quantity-input {
    float: left;
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.quantity-input label {
    margin-right: 0.5rem;
    color: #333;
}

.quantity-input input[type="number"] {
    width: 6rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: unset;
    transition: border-color 0.3s ease;
}

.quantity-input input[type="number"]:focus {
    border-color: #ff6200;
    outline: none;
}


.footer {
    width: 100%;
    bottom: 0;
    /*background-color: #3a3838;*/
    background-color: rgba(30, 11, 10, 0.8);
}

.footer * {
    color: #FFFFFF;
    font-size: 1.5vh;
    text-decoration: none;
}

.footer > .footerRow {
    text-align: center;
    display: inline-block;
}

.footer a:hover {
    color: #00ffe8;
}

.footer > .footerCol {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: flex-start;
    flex-wrap: nowrap;
    align-items: flex-start;
    border-bottom: #ffffff24 1px solid;
}

.footer > .footerCol > ul {
    display: inline-block;
    border-right: #ffffff24 1px solid;
    padding-left: 0;
}

.footer > .footerCol > ul.PC {
    width: 20%;
}

.footer > .footerCol > ul.Phone {
    width: 30%;
}

.footer > .footerCol > ul > li {
    margin: 10%;
}

.footer > .footerRow {
    display: block;
    padding: 1%
}

.footer > .footerRow > a {
    margin: 0 10px 0 10px;
}

.footer > .footerRow > .friend_container_list > a {
    display: inline-block;
    border-left: rgba(255, 255, 255, 0.05) 1px solid;
    padding-left: 5px;
}

.PathsShow {
    width: -moz-available; /* Mozilla browsers */
    width: -webkit-fill-available; /* WebKit browsers */
    width: fill-available; /* Standard syntax */
    color: #3f3f3f;
}

.PathsShow a {
    text-decoration: none;
    color: inherit;
}

.PathsShow a:hover {
    color: #ff6200;
}

/* 专注于将一个标签中 不同大小的两个字体做均衡 */
.fontSizeLink {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    text-decoration: none;
    color: inherit;
}

.copy {
    cursor: pointer;
    color: #ff4f11;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 1001;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-menu li {
    margin: 0;
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #002321;
    transition: all 0.2s ease;
    border-radius: 0.3rem;
    margin: 0 0.3rem;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 79, 17, 0.1);
    color: #ff4f11;
}

.dropdown.active .dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端适配 */
body.mobile .dropdown-menu {
    position: fixed;
    top: 10rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 300px;
}

body.mobile .dropdown-menu li a {
    font-size: 40px;
    padding: 1rem 2rem;
}