/* Homepage CSS */
:root {
    /* Define CSS variables for colors */
    --primary-color: #90c4b2; /* Primary color used throughout the site */
    --secondary-color: #50c878; /* Secondary color for accents */
    --background-color: #f8f9fa; /* Background color for the page */
    --text-color: #333; /* Standard text color */
    --white: #ffffff; /* White color for backgrounds and text */
}

* {
    /* Apply universal styles to all elements */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

body {
    /* Body element styles */
    font-family: 'Poppins', sans-serif; /* Set font family */
    line-height: 1.6; /* Set line height for better readability */
    color: var(--text-color); /* Use text color variable */
    background-color: var(--background-color); /* Use background color variable */
}

/* Loader CSS */
#loader-wrapper {
    /* Styles for the loader wrapper */
    position: fixed; /* Fix the loader to the viewport */
    top: 0; /* Position at the top */
    left: 0; /* Position at the left */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background: #f0f0f0; /* Light gray background color */
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    z-index: 9999; /* High z-index to overlay content */
}

#loader {
    /* Styles for the loader element */
    width: 100px; /* Width of the loader */
    height: 100px; /* Height of the loader */
    position: relative; /* Position relative for absolute children */
    animation: rotate 2s linear infinite; /* Continuous rotation animation */
}

#loader div {
    /* Common styles for loader child divs */
    position: absolute; /* Position relative to parent */
    width: 50px; /* Width of each square */
    height: 50px; /* Height of each square */
}

#loader div:nth-child(1) {
    /* First square */
    top: 0; /* Position at the top */
    left: 0; /* Position at the left */
    background: #ff4136; /* Red background color */
    animation: shape1 2s linear infinite; /* Unique animation for this square */
}

#loader div:nth-child(2) {
    /* Second square */
    top: 0; /* Position at the top */
    right: 0; /* Position at the right */
    background: #0074d9; /* Blue background color */
    animation: shape2 2s linear infinite; /* Unique animation for this square */
}

#loader div:nth-child(3) {
    /* Third square */
    bottom: 0; /* Position at the bottom */
    left: 0; /* Position at the left */
    background: #2ecc40; /* Green background color */
    animation: shape3 2s linear infinite; /* Unique animation for this square */
}

#loader div:nth-child(4) {
    /* Fourth square */
    bottom: 0; /* Position at the bottom */
    right: 0; /* Position at the right */
    background: #ffdc00; /* Yellow background color */
    animation: shape4 2s linear infinite; /* Unique animation for this square */
}

@keyframes rotate {
    /* Keyframes for rotation animation */
    0% { transform: rotate(0deg); } /* Start at 0 degrees */
    100% { transform: rotate(360deg); } /* End at 360 degrees */
}

@keyframes shape1 {
    /* Keyframes for first square animation */
    0%, 100% { transform: translate(0, 0); } /* Start and end at original position */
    25% { transform: translate(100%, 0); } /* Move right */
    50% { transform: translate(100%, 100%); } /* Move down */
    75% { transform: translate(0, 100%); } /* Move left */
}

@keyframes shape2 {
    /* Keyframes for second square animation */
    0%, 100% { transform: translate(0, 0); } /* Start and end at original position */
    25% { transform: translate(0, 100%); } /* Move down */
    50% { transform: translate(-100%, 100%); } /* Move left */
    75% { transform: translate(-100%, 0); } /* Move up */
}

@keyframes shape3 {
    /* Keyframes for third square animation */
    0%, 100% { transform: translate(0, 0); } /* Start and end at original position */
    25% { transform: translate(100%, 0); } /* Move right */
    50% { transform: translate(100%, -100%); } /* Move up */
    75% { transform: translate(0, -100%); } /* Move left */
}

@keyframes shape4 {
    /* Keyframes for fourth square animation */
    0%, 100% { transform: translate(0, 0); } /* Start and end at original position */
    25% { transform: translate(-100%, 0); } /* Move left */
    50% { transform: translate(-100%, -100%); } /* Move up */
    75% { transform: translate(0, -100%); } /* Move right */
}

.loaded #loader-wrapper {
    /* Hide the loader when the page is loaded */
    visibility: hidden; /* Make loader invisible */
    opacity: 0; /* Fully transparent */
    transition: all 0.3s ease-out; /* Smooth transition */
}

/* Header and Navigation */
header {
    /* Styles for the header */
    position: fixed; /* Fix header to the top */
    top: 0; /* Position at the top */
    left: 0; /* Position at the left */
    width: 100%; /* Full width */
    background-color: var(--white); /* White background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    z-index: 1000; /* High z-index to overlay content */
}

nav {
    /* Styles for the navigation bar */
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Space between items */
    align-items: center; /* Center items vertically */
    padding: 0.5rem 10%; /* Padding around navigation bar */
    height: 60px;  /* 固定导航栏高度 */
}

.logo {
    /* Styles for the logo container */
    display: flex; /* Use flexbox */
    align-items: center; /* Center items vertically */
}

.logo-image {
    /* Styles for the logo image */
    height: 40px; /* Fixed height */
    width: auto; /* Auto width to maintain aspect ratio */
    margin-right: 10px; /* Space to the right of the image */
}

#logo-text {
    /* ID for logo text */
    text-decoration: none; /* No underline */
}

.logo-text {
    /* Styles for the logo text */
    font-size: 1.5rem; /* Large font size */
    font-weight: 700; /* Bold font weight */
    color: var(--primary-color); /* Primary color */
}

.nav-links {
    /* Styles for navigation links container */
    display: flex; /* Use flexbox */
    list-style: none; /* Remove list bullets */
}

.nav-links li {
    /* Styles for each navigation link item */
    margin-left: 2rem; /* Space between items */
}

.nav-links a {
    /* Styles for navigation link */
    text-decoration: none; /* No underline */
    color: var(--text-color); /* Standard text color */
    font-weight: 600; /* Slightly bold font */
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

.nav-links a:hover {
    /* Hover effect for navigation link */
    color: var(--primary-color); /* Change color on hover */
}

.burger {
    /* Styles for the hamburger menu button (mobile) */
    display: none; /* Hidden by default */
    cursor: pointer; /* Pointer cursor on hover */
}

.burger div {
    /* Styles for the lines of the burger menu */
    width: 25px; /* Fixed width */
    height: 3px; /* Fixed height */
    background-color: var(--text-color); /* Standard text color */
    margin: 5px; /* Space between lines */
    transition: all 0.3s ease; /* Smooth transition */
}

/* Responsive design */
/* Navbar */
@media screen and (max-width: 768px) {
    /* Styles for screens smaller than 768px */
    nav {
        /* Adjust padding for smaller screens */
        padding: 0.5rem 5%;
    }

    .logo-image {
        /* Adjust logo image size for smaller screens */
        height: 30px;
    }

    #logo-text {
        /* Adjust logo text decoration */
        text-decoration: none;
    }

    .logo-text {
        /* Adjust logo text size */
        font-size: 1.2rem;
    }

    .nav-links {
        /* Mobile menu styling */
        position: fixed; /* Fix to the viewport */
        right: 0; /* Position at the right */
        top: 0; /* Position at the top */
        height: 100vh; /* Full viewport height */
        background-color: var(--white); /* White background */
        display: flex; /* Use flexbox */
        flex-direction: column; /* Column layout */
        align-items: center; /* Center items horizontally */
        width: 50%; /* Half width */
        transform: translateX(100%); /* Off-screen initially */
        transition: transform 0.5s ease-in-out; /* Smooth slide-in effect */
        padding-top: 50px; /* Space at the top */
    }

    .nav-links li {
        /* Spacing between mobile menu items */
        margin: 1.5rem 0; /* Space above and below */
        opacity: 0.9; /* Initially hidden */
    }

    .burger {
        /* Show burger menu on smaller screens */
        display: block; /* Display as block */
        z-index: 1001; /* High z-index to overlay content */
    }

    .nav-active {
        /* Show mobile menu */
        transform: translateX(0%); /* Slide into view */
    }
}

@media screen and (max-width: 480px) {
    /* Further adjustments for very small screens */
    .logo-image {
        /* Adjust logo image size for very small screens */
        height: 25px;
    }

    .logo-text {
        /* Adjust logo text size for very small screens */
        font-size: 1rem;
    }
}

/* Animation for mobile menu */
@keyframes navLinkFade {
    /* Fade-in animation for mobile menu items */
    from {
        opacity: 0; /* Start fully transparent */
        transform: translateX(50px); /* Start shifted to the right */
    }
    to {
        opacity: 1; /* End fully opaque */
        transform: translateX(0px); /* End at original position */
    }
}

.toggle .line1 {
    /* Rotate first line of burger menu */
    transform: rotate(-45deg) translate(-5px, 6px); /* Rotate and translate */
}

.toggle .line2 {
    /* Hide second line of burger menu */
    opacity: 0; /* Make transparent */
}

.toggle .line3 {
    /* Rotate third line of burger menu */
    transform: rotate(45deg) translate(-5px, -6px); /* Rotate and translate */
}

/* Theme Variables */
:root {
    /* Define more theme variables */
    --bg-color: #f8f9fa;
    --text-color: #333;
    --primary-color: #90c4b2;
    --secondary-color: #50c878;
    --white: #ffffff;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-color: #333;
    --text-color: #f8f9fa;
    --primary-color: #90c4b2;
    --secondary-color: #68d891;
    --white: #444;
}

/* Sepia Theme */
[data-theme="sepia"] {
    --bg-color: #f1e7d0;
    --text-color: #5b4636;
    --primary-color: #90c4b2;
    --secondary-color: #a0522d;
    --white: #faf0e6;
}

/* Theme Switcher */
.theme-switcher {
    order: 1; /* Position in flex order */
}

#theme-toggle {
    background: none; /* No background */
    border: none; /* No border */
    cursor: pointer; /* Pointer cursor */
    padding: 5px; /* Padding around the button */
    border-radius: 50%; /* Round shape */
    transition: background-color 0.3s; /* Smooth transition on hover */
}

#theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Light background on hover */
}

#theme-tooltip {
    position: absolute; /* Absolute positioning */
    top: 100%; /* Below the element */
    right: 0; /* Align to the right */
    background-color: var(--bg-color); /* Background color from theme */
    color: var(--text-color); /* Text color from theme */
    padding: 5px 10px; /* Padding inside the tooltip */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Light shadow */
    display: none; /* Hidden by default */
    z-index: 1000; /* Above other elements */
    white-space: nowrap; /* Single line text */
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .theme-switcher {
        position: absolute; /* Absolute positioning */
        right: 60px; /* Align 60px from the right */
        align-items: center; /* Center alignment */
    }
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 120px 0;
    margin-top: 60px;  /* 与导航栏高度相同 */
    position: relative;  /* 添加相对定位 */
}

/* 添加一个伪元素来填充可能的缝隙 */
.hero::before {
    content: '';
    position: absolute;
    top: -1px;  /* 向上延伸1px */
    left: 0;
    right: 0;
    height: 2px;  /* 高度稍大一点以确保覆盖 */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 20px;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);  /* 响应式字体大小 */
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.2;  /* 调整行高 */
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);  /* 响应式字体大小 */
    margin-bottom: 2rem;
    color: #fff;
    line-height: 1.6;
    max-width: 600px;  /* 限制段落宽度 */
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    text-align: left;
    margin-bottom: 2.5rem;
    padding: 0 1rem;  /* 添加左右内边距 */
}

.hero-features ul {
    list-style: none;
    padding: 0;
    max-width: 600px;  /* 限制列表宽度 */
    margin: 0 auto;
}

.hero-features li {
    color: #fff;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);  /* 响应式字体大小 */
    margin-bottom: 1rem;
    opacity: 0.9;
    padding-left: 1.5rem;  /* 为勾号留出空间 */
    position: relative;  /* 为勾号定位 */
}

.hero-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .hero {
        padding: 100px 0;  /* 移动端减小内边距 */
        margin-top: 50px;  /* 移动端调整顶部边距 */
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 80px 0;  /* 更小屏幕进一步减小内边距 */
    }
}

.cta-button {
    display: inline-block; /* Inline block layout */
    padding: 0.8rem 1.5rem; /* Padding inside the button */
    background-color: var(--white); /* White background */
    color: var(--primary-color); /* Primary color text */
    text-decoration: none; /* No underline */
    border-radius: 30px; /* Rounded corners */
    font-weight: 600; /* Bold text */
    transition: all 0.3s ease; /* Smooth transition */
}

.cta-button:hover {
    background-color: var(--primary-color); /* Primary background on hover */
    color: var(--white); /* White text on hover */
}

/* Latest Software Section */
.latest-software {
    padding: 5rem 10%; /* Padding top/bottom and sides */
    background-color: var(--white); /* White background */
}

.latest-software h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;  /* 减小底部距 */
    color: #333;
    text-align: center;  /* 添加居中对齐 */
    width: 100%;  /* 确保标题占满宽度 */
}

.software-grid {
    display: grid; /* Grid layout */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 1rem; /* Gap between items */
    margin: 0 auto; /* Center grid */
    max-width: 1200px; /* Maximum width */
    padding: 0 1rem; /* Horizontal padding */
}

.software-card {
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Light shadow */
    overflow: hidden; /* Hide overflow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
    display: flex; /* Flexbox layout */
    flex-direction: column; /* Column layout */
    position: relative;  /* 为勾号定位做准备 */
}

.software-card:hover {
    transform: translateY(-5px); /* Move up on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.software-image {
    width: 100%; /* Set the image width to 100% of its container */
    height: auto; /* Maintain aspect ratio based on width */
    object-fit: contain; /* Fit the entire image within the container */
    border-bottom: 1px solid #e0e0e0; /* Border at the bottom */
}

.software-title {
    font-size: 1.25rem; /* Medium font size */
    margin: 1rem 1rem 0.5rem; /* Spacing around the title */
    word-wrap: break-word; /* Wrap long words */
}

.software-price {
    display: inline-flex;  /* 改为 inline-flex */
    align-items: center;
    justify-content: center;
    font-size: 1rem;  /* 稍微减小字号 */
    font-weight: 600;
    color: var(--secondary-color);  /* 使用第二主题色 */
    background-color: rgba(80, 200, 120, 0.1);  /* 使用第二主题色的半透明背景 */
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin: 0.5rem 0;  /* 调整上下边距 */
    min-width: auto;  /* 移除最小宽度限制 */
    max-width: fit-content;  /* 根据内容自适应宽度 */
    position: relative;  /* 为伪元素定位 */
    transition: all 0.3s ease;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;  /* 元素之间的间距 */
    margin: 0 1rem;  /* 保持左右边距 */
}

.software-price:hover {
    background-color: rgba(80, 200, 120, 0.2);  /* 使用第二主题色的半透明背景 */
    transform: translateY(-1px);  /* 轻微上浮效果 */
    color: var(--secondary-color);  /* 保持第二主题色 */
}

.software-description {
    font-size: 0.9rem; /* Small font size */
    margin: 0 1rem 1rem; /* Spacing around the description */
    word-wrap: break-word; /* Wrap long words */
    white-space: pre-line; /* Preserve line breaks */
    overflow-wrap: break-word; /* Wrap long words */
    hyphens: auto; /* Automatic hyphenation */
    max-width: 100%; /* Full width */
    overflow: hidden; /* Hide overflow */
    flex-grow: 1; /* Grow to fill space */
}

.software-affiliate-link {
    display: block;
    background-color: var(--secondary-color);  /* 默认使用第二主题色 */
    color: #ffffff;
    text-align: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.software-affiliate-link:hover {
    background-color: var(--secondary-color);
    opacity: 0.9;
}

/* 已完成状态的按钮使用第���主题色 */
.software-card.completed .software-affiliate-link {
    background-color: var(--primary-color) !important;  /* 使用第一主题色并强制优先级 */
    color: #ffffff;
    border: none;
    opacity: 0.9;
}

.software-card.completed .software-affiliate-link:hover {
    opacity: 1;
    background-color: var(--primary-color) !important;
}

/* 完成状态的遮罩 */
.software-card.completed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 1;
}

/* 完成状态的勾号 */
.software-card.completed::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 2;
}

/* Media Queries for Responsive Design */

/* For screens up to 768px wide */
@media (max-width: 768px) {
    .software-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Smaller columns */
    }
    .software-title {
         word-wrap: break-word; /* Wrap long words */
    }
    .latest-software h2 {
        font-size: 2.3rem; /* Adjust heading font size for medium screens */
    }
}

/* For screens up to 600px wide */
@media screen and (max-width: 600px) {
    .latest-software h2 {
        font-size: 2.3rem; /* Adjust heading font size for smaller screens */
    }
}

/* For screens up to 480px wide */
@media (max-width: 480px) {
    .latest-software h2 {
        font-size: 2.3rem; /* Adjust heading font size for very small screens */
    }
}


/* Products Section */
.products {
    padding: 5rem 10%; /* Padding top/bottom and sides */
    text-align: center; /* Center text */
    background-color: var(--white); /* White background */
}

.products h2 {
    font-size: 2.5rem; /* Large font size */
    margin-bottom: 3rem; /* Space below the heading */
}

.product-grid {
    display: grid; /* Grid layout */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 1rem; /* Gap between items */
}

.product-card {
    background-color: var(--white); /* White background */
    padding: 2rem; /* Padding inside the card */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Light shadow */
    transition: transform 0.3s ease; /* Smooth transition */
    overflow: hidden; /* Prevent content overflow */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-10px); /* Move up on hover */
}

.product-card i {
    font-size: 3rem; /* Large icon size */
    color: var(--primary-color); /* Primary color */
    margin-bottom: 1rem; /* Space below the icon */
}

.product-card h3 {
    font-size: 1.5rem; /* Medium font size */
    margin-bottom: 1rem; /* Space below the heading */
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Ensure proper word wrapping */
}

.product-card p {
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Ensure proper word wrapping */
}

.find-product {
    display: block; /* Block layout */
    background-color: var(--primary-color); /* Blue background */
    color: #ffffff; /* White text */
    text-align: center; /* Center text */
    padding: 0.75rem 1rem; /* Padding inside the link */
    text-decoration: none; /* No underline */
    font-weight: bold; /* Bold font weight */
    transition: background-color 0.3s ease; /* Smooth transition */
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Ensure proper word wrapping */
}

.find-product:hover {
    background-color: var(--secondary-color); /* Darker blue on hover */
}

/* Media Queries for Responsive Design */

/* For screens up to 768px wide */
@media (max-width: 768px) {
    .products h2 {
        font-size: 2.3rem; /* Adjust heading font size for medium screens */
    }
}

/* For screens up to 600px wide */
@media screen and (max-width: 600px) {
    .products h2 {
        font-size: 2.3rem; /* Adjust heading font size for smaller screens */
    }
}

/* For screens up to 480px wide */
@media (max-width: 480px) {
    .products h2 {
        font-size: 2.3rem; /* Adjust heading font size for very small screens */
    }
}


/* Reviews and Blogs Section */
.reviews-blogs {
    padding: 5rem 20%; /* Padding top/bottom and sides */
    padding: 4rem 2rem; /* Padding around the section */
    background-color: var(--white); /* White background color */
}

.reviews-blogs h2 {
    text-align: center; /* Center align heading text */
    font-size: 2.5rem; /* Font size for heading */
    margin-bottom: 3rem; /* Space below heading */
}

.blog-grid {
    display: grid; /* Grid layout for blog items */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive column layout */
    gap: 1rem; /* Gap between grid items */
}

.blog-card {
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Light shadow for card */
    overflow: hidden; /* Hide content overflow */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth transition effects */
}

.blog-card:hover {
    transform: translateY(-5px); /* Move card up on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.blog-image {
    height: 200px; /* Fixed height for image */
    overflow: hidden; /* Hide overflow */
}

.blog-image img {
    width: 100%; /* Full width of the container */
    height: 100%; /* Full height of the container */
    object-fit: cover; /* Cover the container without stretching */
    transition: transform 0.3s ease-in-out; /* Smooth scale transition */
}

.blog-card:hover .blog-image img {
    transform: scale(1.05); /* Slightly zoom in image on hover */
}

.blog-content {
    padding: 1.5rem; /* Padding inside the content */
}

.blog-title {
    font-size: 1.25rem; /* Font size for the blog title */
    font-weight: 600; /* Bold font weight */
    margin-bottom: 0.75rem; /* Space below the title */
    line-height: 1.4; /* Line height for readability */
    word-wrap: break-word; /* Wrap long words */
}

.blog-excerpt {
    font-size: 0.9rem; /* Font size for the excerpt */
    margin-bottom: 1rem; /* Space below the excerpt */
    line-height: 1.6; /* Line height for readability */
    display: -webkit-box; /* Flexbox layout for clipping */
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical; /* Vertical box orientation */
    overflow: hidden; /* Hide overflow */
}

.blog-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);  /* 使用主题色变量 */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease-in-out;
}

.blog-link:hover {
    background-color: var(--secondary-color);  /* 使用次要色变量 */
}

/* Media Queries for Responsiveness */

/* For screens up to 768px wide */
@media screen and (max-width: 768px) {
    .reviews-blogs {
        padding: 3rem 1rem; /* Reduced padding for smaller screens */
    }

    .reviews-blogs h2 {
        font-size: 2.3rem; /* Smaller font size for heading */
        margin-bottom: 2rem; /* Reduced space below heading */
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust column layout */
    }

    .blog-card {
        background-color: var(--white); /* White background for card */
        border-radius: 10px; /* Rounded corners */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Light shadow */
        overflow: hidden; /* Hide content overflow */
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition effects */
        display: flex; /* Flexbox layout */
        flex-direction: column; /* Column layout */
    }

    .blog-title {
        word-wrap: break-word; /* Wrap long words */
    }
}

/* For screens up to 600px wide */
@media screen and (max-width: 600px) {
    .reviews-blogs h2 {
        font-size: 2.3rem; /* Adjust heading font size for smaller screens */
    }
}

/* For screens up to 480px wide */
@media screen and (max-width: 480px) {
    .reviews-blogs h2 {
        font-size: 2.3rem; /* Adjust heading font size for very small screens */
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust column layout */
    }

    .blog-card {
        border-radius: 10px; /* Rounded corners */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Light shadow */
        overflow: hidden; /* Hide content overflow */
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition effects */
        display: flex; /* Flexbox layout */
        flex-direction: column; /* Column layout */
    }

    .blog-title {
        font-size: 1.1rem; /* Smaller font size for title */
        word-wrap: break-word; /* Wrap long words */
    }

    .blog-excerpt {
        font-size: 0.85rem; /* Smaller font size for excerpt */
    }

    .blog-link {
        font-size: 0.85rem; /* Smaller font size for link */
    }
}

/* About Section Styles */
.about {
    padding: 5rem 10%;
    background-color: var(--white);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-content > div {
    margin-bottom: 3rem;
}

.about-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.about-offers ul {
    list-style: none;
    padding: 0;
}

.about-offers li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
}

.about-offers li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.about-offers li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .about {
        padding: 3rem 5%;
    }

    .about h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-content h3 {
        font-size: 1.3rem;
    }

    .about-content p,
    .about-offers li {
        font-size: 1rem;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 10%; /* Padding around the section */
    text-align: center; /* Center align text */
    background-color: var(--white); /* White background color */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.1); /* Light shadow */
    position: relative; /* Relative positioning */
    z-index: 1; /* Layering */
}

.contact h2 {
    font-size: 2.5rem; /* Font size for heading */
    margin-bottom: 2rem; /* Space below heading */
}

#contact-form {
    display: flex; /* Flexbox layout */
    flex-direction: column; /* Column layout */
    max-width: 500px; /* Maximum width for form */
    margin: 0 auto; /* Center form */
}

#contact-form input,
#contact-form textarea {
    margin-bottom: 1rem; /* Space below form fields */
    padding: 0.8rem; /* Padding inside the fields */
    border: 1px solid #ddd; /* Light border */
    border-radius: 5px; /* Rounded corners */
}

#contact-form button {
    padding: 0.8rem; /* Padding inside the button */
    background-color: var(--primary-color); /* Primary color background */
    color: var(--white); /* White text color */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s ease; /* Smooth transition on hover */
}

#contact-form button:hover {
    background-color: var(--secondary-color); /* Secondary color on hover */
}

#contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Media Queries for Responsive Design */

/* For screens up to 768px wide */
@media (max-width: 768px) {
    .contact h2 {
        font-size: 2.3rem; /* Adjust heading font size for medium screens */
    }
}

/* For screens up to 600px wide */
@media screen and (max-width: 600px) {
    .contact h2 {
        font-size: 2.3rem; /* Adjust heading font size for smaller screens */
    }
}

/* For screens up to 480px wide */
@media (max-width: 480px) {
    .contact h2 {
        font-size: 2.3rem; /* Adjust heading font size for very small screens */
    }
}


/* Footer */
footer {
    background-color: var(--white); /* White background color */
    padding: 3rem 10% 1rem; /* Padding around the footer */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1); /* Light shadow */
    position: relative; /* Relative positioning */
    z-index: 1; /* Layering */
}

.footer-content {
    display: flex; /* Flexbox layout */
    justify-content: space-between; /* Space out sections */
    flex-wrap: wrap; /* Wrap items on small screens */
    margin-bottom: 2rem; /* Space below content */
    gap: 1rem; /* Gap between sections */
}

.footer-section {
    flex: 1; /* Flex growth */
    margin-bottom: 1rem; /* Space below section */
}

.footer-section h3 {
    margin-bottom: 1rem; /* Space below heading */
}

.footer-section ul {
    list-style: none; /* Remove list bullets */
}

.footer-section ul li {
    margin-bottom: 0.5rem; /* Space below list items */
}

.footer-section ul li a {
    text-decoration: none; /* No underline */
    color: #20B2AA; /* Custom color */
}

.social-icons a {
    font-size: 1.5rem; /* Large icon size */
    margin-right: 1rem; /* Space between icons */
    color: #20B2AA

; /* Custom color */
}

.footer-bottom {
    text-align: center; /* Center align text */
    padding-top: 1rem; /* Space above the footer bottom */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Top border line */
}

/* Cookie Banner CSS */
.cookie-banner {
    position: fixed; /* Fixed position at the bottom */
    bottom: 0; /* Align to bottom */
    left: 0; /* Align to left */
    right: 0; /* Align to right */
    background: #f1f1f1; /* Light background color */
    color: #333; /* Dark text color */
    padding: 10px 20px;
    z-index: 9999; /* High z-index to be on top */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
}

.cookie-banner p {
    margin: 0;
    padding: 0;
    display: inline;
    margin-right: 10px;
}

.cookie-banner button {
    display: inline-block;
    border: none;
    padding: 6px 12px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 4px;
}

#accept-cookies {
    background: #007bff; /* Blue background */
    color: white; /* White text color */
}

#reject-cookies {
    background: #dc3545; /* Red background */
    color: white; /* White text color */
}

/* Product Pages CSS */
#product-page-detail {
    margin-top: 2rem; /* Margin on top */
    padding: 5rem 10%; /* Padding around the section */
    background-color: var(--white); /* White background color */
}

#product-page-detail h1 {
    text-align: center; /* Center align heading text */
    font-size: 3rem; /*  Large Font size for heading */
    margin-bottom: 1.5rem; /* Space below heading */
}

.product-page-detail-grid {
    display: grid; /* Grid layout for product items */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive column layout */
    gap: 1.5rem; /* Gap between grid items */
    margin: 0 auto; /* Center grid */
    max-width: 850px; /* Maximum width */
    padding: 0 1rem; /* Padding on sides */
}

.product-page-detail-card {
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Light shadow */
    overflow: hidden; /* Hide content overflow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition effects */
    display: flex; /* Flexbox layout */
    flex-direction: column; /* Column layout */
}

.product-page-detail-card:hover {
    transform: translateY(-5px); /* Move card up on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.product-page-detail-image {
    width: 100%; /* Set the image width to 100% of its container */
    height: auto; /* Maintain aspect ratio based on width */
    object-fit: contain; /* Fit the entire image within the container */
    border-bottom: 1px solid #e0e0e0; /* Bottom border line */
}

.product-page-detail-title {
    font-size: 1.25rem; /* Font size for title */
    margin: 1rem 1rem 0.5rem; /* Margin around title */
    word-wrap: break-word; /* Wrap long words */
}

.product-page-detail-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);  /* 使用第二主题色 */
    background-color: rgba(80, 200, 120, 0.1);  /* 使用第二主题色的半透明背景 */
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin: 0.5rem 0;
    min-width: auto;
    max-width: fit-content;
    position: relative;
    gap: 0.2rem;
    transition: all 0.3s ease;
}

.product-page-detail-description {
    font-size: 0.9rem; /* Font size for description */
    margin: 0 1rem 1rem; /* Margin around description */
    word-wrap: break-word; /* Wrap long words */
    white-space: pre-line; /* Preserve white space */
    overflow-wrap: break-word; /* Wrap long words */
    hyphens: auto; /* Automatic hyphenation */
    max-width: 100%; /* Max width */
    overflow: hidden; /* Hide overflow */
    flex-grow: 1; /* Grow to fill space */
}

.product-page-detail-link {
    display: block; /* Block layout */
    background-color: var(--primary-color); /* Blue background */
    color: #ffffff; /* White text color */
    text-align: center; /* Center align text */
    padding: 0.75rem 1rem; /* Padding inside the link */
    text-decoration: none; /* No underline */
    font-weight: bold; /* Bold font weight */
    transition: background-color 0.3s ease; /* Smooth transition on hover */
}

.product-page-detail-link:hover {
    background-color: var(--secondary-color); /* Darker blue on hover */
}

/* Search Button CSS */
.search-form {
    display: flex; /* Flexbox layout */
    align-items: center; /* Center items vertically */
    max-width: 600px; /* Maximum width of the form */
    margin: 20px auto; /* Center form with margin */
    background-color: #fff; /* White background */
    border-radius: 50px; /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.1); /* Light shadow */
    overflow: hidden; /* Hide overflow */
    transition: all 0.3s ease; /* Smooth transition effects */
}

.search-form:focus-within {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.1); /* Stronger shadow on focus */
}

.search-input-container {
    position: relative; /* Relative positioning for clear button */
    flex-grow: 1; /* Grow to fill space */
}

.search-input {
    width: 100%; /* Full width */
    padding: 15px; /* Padding inside the input */
    font-size: 16px; /* Font size */
    border: none; /* No border */
    background-color: transparent; /* Transparent background */
    color: #333; /* Dark text color */
    outline: none; /* Remove outline */
}

.search-input::placeholder {
    color: #999; /* Placeholder text color */
}

.clear-button {
    position: absolute; /* Absolute positioning */
    right: 15px; /* Align to the right */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Center vertically */
    background: none; /* No background */
    border: none; /* No border */
    font-size: 24px; /* Font size for icon */
    cursor: pointer; /* Pointer cursor */
    color: #999; /* Placeholder color */
    display: none; /* Hidden by default */
    transition: color 0.3s ease; /* Smooth transition on hover */
}

.clear-button:hover {
    color: #4a90e2; /* Color on hover */
}

.search-input:not(:placeholder-shown) + .clear-button {
    display: block; /* Show clear button when input has text */
}

/* Search button styles */
.search-button {
    background-color: var(--primary-color); /* Blue background color */
    border: none; /* No border */
    color: white; /* White text color */
    padding: 15px 20px; /* Padding inside button */
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s ease; /* Smooth transition on hover */
    display: flex; /* Flexbox layout */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
}

/* Search button icon styles */
.search-button svg {
    width: 20px; /* Icon width */
    height: 20px; /* Icon height */
}

/* Hover effect for the search button */
.search-button:hover {
    background-color: var(--secondary-color); /* Darker blue on hover */
}

/* Focus effect for the search button */
.search-button:focus {
    background-color: #3a80d2; /* Slightly lighter blue on focus */
    outline: none; /* Remove outline */
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 600px) {
     .search-form {
        max-width: 90%; /* Adjust width for smaller screens */
    }

    .search-input {
        font-size: 14px; /* Smaller font size for input */
    }

}

@media (max-width: 768px) {
    #product-page

-detail h2 {
        font-size: 1.75rem; /* Smaller font size for heading */
    }

    .product-page-detail-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust grid layout */
    }
}

@media (max-width: 480px) {
    #product-page-detail {
        padding: 1.5rem 0; /* Adjust padding */
    }

    #product-page-detail h2 {
        font-size: 1.5rem; /* Smaller font size */
        margin-bottom: 1rem; /* Space below heading */
    }

    .product-page-detail-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .product-page-detail-card {
        max-width: 300px; /* Maximum width of card */
        margin: 0 auto; /* Center card */
    }

    .product-page-detail-title {
        font-size: 1.1rem; /* Smaller font size */
    }

    .product-page-detail-price {
        font-size: 1rem; /* Smaller font size */
    }

    .product-page-detail-description {
        font-size: 0.85rem; /* Smaller font size */
    }

    .product-page-detail-link {
        padding: 0.6rem 0.8rem; /* Adjust padding */
        font-size: 0.9rem; /* Smaller font size */
    }
}

/* no-results-message */
#no-results-message {
    display: none; /* Ensures the element is not displayed on the page */
    align-items: center; /* Center items vertically */
    max-width: 300px; /* Maximum width of the form */
    margin: 2rem auto; /* Center form with margin */
    text-align: center; /* Center-aligns the text within the message */
    font-size: 1.1rem; /* Sets a slightly larger font size for better readability */
    color: #777; /* Uses a soft gray color for the text to ensure it's readable but not too harsh */
    margin-top: 2rem; /* Adds space above the message to separate it from other content */
    padding: 0.8rem; /* Adds padding inside the message for better spacing */
    background-color: #f8d7da; /* Sets a light pink background color to indicate no results in a gentle manner */
    border: 1px solid #f5c6cb; /* Adds a subtle border that matches the background color */
    border-radius: 10px; /* Rounds the corners of the message box for a modern look */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow to give the message a slightly lifted appearance */
}

/* Styling for the anchor tag within the no-results-message element */
.no-results-message a {
    color: #007BFF; /* Sets the link text color to a primary blue */
    text-decoration: none; /* Removes the default underline from the link */
    font-weight: bold; /* Makes the link text bold */
    transition: color 0.3s ease, border-bottom 0.3s ease; /* Smooth transition for color and border-bottom changes */
    border-bottom: 2px solid transparent; /* Adds an invisible bottom border for a hover effect */
}

/* Hover effect for the anchor tag */
.no-results-message a:hover {
    color: #0056b3; /* Changes the text color to a darker blue on hover */
    border-bottom: 2px solid #0056b3; /* Adds a bottom border on hover for a visual cue */
}

/* Focus state for accessibility */
.no-results-message a:focus {
    outline: none; /* Removes the default outline */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Adds a blue shadow around the link for focus state */
}

/* Active state for the anchor tag */
.no-results-message a:active {
    color: #004085; /* Changes the text color to an even darker blue when the link is active */
}


/* Media queries for responsiveness */
@media (max-width: 768px) {
    #no-results-message {
        font-size: 1rem; /* Reduces font size on smaller screens */
        margin-top: 1.5rem; /* Reduces space above the message for smaller screens */


    }
}

@media (max-width: 480px) {
    #no-results-message {
        font-size: 0.9rem; /* Further reduces font size for very small screens */
        margin-top: 1rem; /* Further reduces space above the message */


    }
}

/* Blog and Review CSS */
.blog-review-detail h1 {
    text-align: center; /* Center the heading text */
    font-size: 3rem; /*  Set Large font size of the heading */
    margin-bottom: 3rem; /* Add space below the heading */
}

/* Blog Section */
#blog-review-detail {
    padding: 4rem 2rem; /* Add padding around the blog section */
    background-color: var(--white); /* Set background color using a CSS variable */
    margin-top: 3rem; /* Add space above the heading */
}

/* Blog Grid */
.blog-review-detail-article {
    display: grid; /* Use grid layout for the blog articles */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid columns */
    border-radius: 10px; /* Round the corners of each article */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow to each article */
    overflow: hidden; /* Hide overflow content */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth transition for transform and box-shadow */
}

.blog-review-detail-article:hover {
    transform: translateY(-5px); /* Slightly move the article up on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Intensify the shadow on hover */
}

/* Blog Image */
.blog-review-detail-image {
    max-height: 800px; /* Set maximum height for the image container */
    overflow: hidden; /* Hide overflow content */
    display: flex; /* Use flexbox to center the image */
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
}

.blog-review-detail-image img {
    width: 100%; /* Set the image width to 100% of its container */
    height: auto; /* Maintain aspect ratio based on width */
    object-fit: contain; /* Fit the entire image within the container */
    transition: transform 0.3s ease-in-out; /* Smooth transition for transform */
}

.blog-review-detail-article:hover .blog-review-detail-image img {
    transform: scale(1.05); /* Slightly scale up the image on hover */
}


/* Blog Content */
.blog-review-detail-content {
    padding: 1rem; /* Add padding around the content */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */

}

.blog-review-detail-title-h3{
    font-size: 1.25rem; /* Set the font size of the title */
    font-weight: 600; /* Make the title font weight bold */
    line-height: 1.4; /* Set the line height */
    word-wrap: break-word; /* Allow words to break to the next line */
    padding: 10px; /* Add padding around the title */
}

.blog-review-detail-excerpt-content {
    font-size: 0.9rem; /* Set the font size of the excerpt */
    margin-bottom: 0.5rem; /* Add space below the excerpt */
    line-height: 1.6; /* Set the line height */
    word-wrap: break-word; /* Allow words to break to the next line */
    white-space: pre-line; /* Preserve whitespace and line breaks */
    overflow: visible; /* Ensure content is not hidden */
}

.blog-review-detail-title-h3-span {
    font-weight: bold; /* Make the span within the title bold */
}

.blog-review-detail-excerpt-content-span {
    font-weight: bold; /* Make the span within the excerpt bold */
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    #blog-review-detail {
        padding: 3rem 1rem; /* Adjust padding for smaller screens */
    }

    .blog-review-detail-h2 {
        font-size: 2rem; /* Adjust heading font size for smaller screens */
        margin-bottom: 2rem; /* Adjust space below the heading */
    }

    .blog-review-detail-article {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust grid columns for smaller screens */
    }

    .blog-review-detail-content {
        padding: 1.5rem; /* Adjust content padding for smaller screens */
    }

    .blog-review-detail-image {
        max-height: 300px; /* Adjust maximum height for images on smaller screens */
    }

    .blog-review-detail-title-h3 {
        font-size: 1.1rem; /* Adjust title font size for smaller screens */
    }

    .blog-review-detail-excerpt-content {
        font-size: 0.85rem; /* Adjust excerpt font size for smaller screens */
    }
}

@media screen and (max-width: 480px) {
    .blog-review-detail-h2 {
        font-size: 1.75rem; /* Adjust heading font size for very small screens */
    }

    .blog-review-detail-article {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust grid columns for very small screens */
    }

    .blog-review-detail-title-h3 {
        font-size: 1.1rem; /* Adjust title font size for very small screens */
    }

    .blog-review-detail-excerpt-content {
        font-size: 0.85rem; /* Adjust excerpt font size for very small screens */
    }
}

/* Container for messages */
.messages-container {
    position: fixed; /* Fix the container to a specific position on the screen */
    top: 1rem; /* Position the container 1rem from the top */
    right: 1rem; /* Position the container 1rem from the right */
    z-index: 9999; /* Ensure messages are above other content */
    display: flex; /* Use flexbox for the container */
    flex-direction: column; /* Stack messages vertically */
    gap: 0.5rem; /* Add space between messages */
    max-width: 90%; /* Ensure messages fit within the viewport */
}

/* Individual message styling */
.message {
    display: flex; /* Use flexbox for messages */
    align-items: center; /* Center items vertically */
    padding: 1rem; /* Add padding around messages */
    border-radius: 5px; /* Round the corners of messages */
    background-color: #f8d7da; /* Set background color for error messages */
    color: #721c24; /* Set text color for error messages */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow to messages */
    position: relative; /* Position relative for close button positioning */
    opacity: 1; /* Set initial opacity */
    transition: opacity 0.5s ease-out; /* Smooth transition for opacity */
    animation: fadeIn 0.5s ease; /* Apply fadeIn animation */
}

/* Message types */
.message.info {
    background-color: #d1ecf1; /* Set background color for info messages */
    color: #0c5460; /* Set text color for info messages */
}

.message.success {
    background-color: #d4edda; /* Set background color for success messages */
    color: #155724; /* Set text color for success messages */
}

/* Close button styling */
.close-btn {
    background: none; /* Remove background for the button */
    border: none; /* Remove border for the button */
    font-size: 1.25rem; /* Set font size for the button */
    color: inherit; /* Inherit color from the message */
    cursor: pointer; /* Change cursor to pointer */
    position: absolute; /* Position the button absolutely */
    top: 0.5rem; /* Position the button 0.5rem from the top */
    right: 0.5rem; /* Position the button 0.5rem from the right */
    transition: color 0.3s ease; /* Smooth transition for color */
}

/* Close button hover effect */
.close-btn:hover {
    color: #333; /* Change color on hover */
}

/* Animation for message appearance */
@keyframes fadeIn {
    from {
        opacity: 0; /* Start with 0 opacity */
        transform: translateY(-10px); /* Start with slight upward movement */
    }
    to {
        opacity: 1; /* End with full opacity */
        transform: translateY(0); /* End at original position */
    }
}

/* Automatically hide messages after 5 seconds */
@keyframes fadeOut {
    from {
        opacity: 1; /* Start with full opacity */
    }
    to {
        opacity: 0; /* End with 0 opacity */
    }
}

/* Apply the fadeOut animation */
.message.fade-out {
    animation: fadeOut 0.5s ease-out forwards; /* Apply fadeOut animation */
}

/* Media Queries for Smaller Screens */
@media screen and (max-width: 768px) {
    .messages-container {
        right: 0.5rem; /* Adjust right position for smaller screens */
        top: 0.5rem; /* Adjust top position for smaller screens */
        max-width: 95%; /* More space on smaller screens */
    }

    .message {
        padding: 0.75rem; /* Less padding for smaller screens */
        font-size: 0.9rem; /* Slightly smaller text */
    }

    .close-btn {
        font-size: 1rem; /* Smaller close button */
        top: 0.25rem; /* Adjust top position for smaller screens */
        right: 0.25rem; /* Adjust right position for smaller screens */
    }
}

@media screen and (max-width: 480px) {
    .message {
        padding: 0.5rem; /* Further reduced padding */
        font-size: 0.8rem; /* Smaller text size for very small screens */
    }

    .close-btn {
        font-size: 0.9rem; /* Smaller close button */
        top: 0.2rem; /* Adjust top position for very small screens */
        right: 0.2rem; /* Adjust right position for very small screens */
    }
}

/* Back to Top Button */
.back-to-top {
    /* Fixed position at the bottom right corner */
    position: fixed;
    bottom: 20px;
    right: 5px;
    /* Button background color */
    background-color: #90c4b2;
    /* Text color */
    color: #fff;
    /* Remove border */
    border: none;
    /* Round shape */
    border-radius: 50%;
    /* Padding inside the button */
    padding: 10px 15px;
    /* Hide the button initially */
    display: none;
    /* Center the icon inside the button */
    justify-content: center;
    align-items: center;
    /* Pointer cursor on hover */
    cursor: pointer;
    /* Add a subtle shadow */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Smooth transition for opacity and visibility */
    transition: opacity 0.3s, visibility 0.3s;
    /* Ensure button appears above other content */
    z-index: 1000;
}

/* Font Awesome icon inside the button */
.back-to-top i {
    /* Icon size */
    font-size: 20px;
}

/* Responsive styles for smaller devices */
@media (max-width: 600px) {
    .back-to-top {
        /* Adjust position and padding */
        bottom: 15px;
        right: 2px;
        padding: 8px 12px;
    }

    .back-to-top i {
        /* Adjust icon size */
        font-size: 16px;
    }
}

/* Class to show the button */
.back-to-top.show {
    /* Flexbox to show the button */
    display: flex;
}

/* Class to hide the button */
.back-to-top.hide {
    /* Make the button invisible */
    opacity: 0;
    /* Make the button not interactable */
    visibility: hidden;
}

/* Style for the arrow button */
.arrow-button {
    display: inline-flex;  /* 改为 inline-flex */
    align-items: center;
    justify-content: center;
    min-width: 200px;  /* 设置最小宽度 */
    margin: 1rem auto;  /* 上下边距和水平居中 */
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Style for the arrow text */
.arrow {
    font-size: 1rem;
    color: white;
    white-space: nowrap;  /* 防止文字换行 */
}

/* Style for the arrow button on hover */
.arrow-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media screen and (max-width: 480px) {
    .arrow-button {
        min-width: 180px;  /* 移动端稍微减小最小宽度 */
        padding: 0.7rem 1.2rem;
    }
    
    .arrow {
        font-size: 0.9rem;
    }
}

/* Usage instructions style */
.usage-instructions {
    color: #666;
    margin-bottom: 2.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;  /* 移除上下padding，只保留左右padding */
}

.usage-instructions h3 {
    color: var(--primary-color);
    font-size: 1.2rem;  /* 稍微减小字号 */
    margin-bottom: 0.8rem;  /* 减小底部间距 */
    font-weight: 500;  /* 稍微减轻字重 */
}

.usage-instructions p {
    font-size: 1rem;
    margin-bottom: 0.8rem;  /* 减小底部间距 */
    line-height: 1.5;
}

.usage-instructions ul {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    padding-left: 2rem;
}

.usage-instructions li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #555;
}

/* Hero Section Styles */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #fff;
    line-height: 1.6;
}

.hero-features {
    text-align: left;
    margin-bottom: 2.5rem;
}

.hero-features ul {
    list-style: none;
    padding: 0;
}

.hero-features li {
    color: #fff;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: 1rem;
    opacity: 0.9;
    padding-left: 1.5rem;
    position: relative;
}

.hero-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}

/* 调整 CTA 按钮样式 */
.cta-button {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* 统一的价格标签样式 */
.software-price,
.product-page-detail-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);  /* 使用第二主题色 */
    background-color: rgba(80, 200, 120, 0.1);  /* 使用第二主题色的半透明背景 */
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin: 0.5rem 0;
    min-width: auto;
    max-width: fit-content;
    position: relative;
    gap: 0.2rem;
    transition: all 0.3s ease;
}

/* 货币符号样式 */
.currency-symbol {
    font-size: 0.85em;
    font-weight: 500;
    opacity: 0.9;
    color: inherit;  /* 继承父元素的颜色 */
}

/* 价格容器样式 */
.price-container,
.product-page-detail-card .product-page-detail-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

/* 价格标签悬停效果 */
.software-price:hover,
.product-page-detail-price:hover {
    background-color: rgba(80, 200, 120, 0.2);  /* 使用第二主题色的半透明背景 */
    transform: translateY(-1px);  /* 轻微上浮效果 */
    color: var(--secondary-color);  /* 保持第二主题色 */
}

/* Blog Review Detail Styles */
.blog-review-detail {
    padding: 5rem 5%;  /* 减小左右内边距，让容器更宽 */
    background-color: var(--white);
}

.blog-review-detail-article {
    max-width: 1200px;  /* 增加最大宽度 */
    margin: 0 auto;
    padding: 3rem;  /* 增加内边距 */
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.blog-review-detail-title-h3 {
    font-size: 2rem;  /* 增大标题字号 */
    color: var(--text-color);
    margin-bottom: 2rem;  /* 增加底部间距 */
    text-align: center;
}

.blog-review-detail-image {
    width: 100%;
    max-width: 400px;  /* 减小图片最大宽度 */
    height: 300px;  /* 固定高度 */
    margin: 0 auto 3rem;  /* 增加底部间距 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-review-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* 改为 contain 以保持图片比例 */
    display: block;
    background-color: #f8f9fa;  /* 添加浅色背景 */
}

.blog-review-detail-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 修改内容文字样式 */
.blog-review-detail-excerpt-content {
    font-size: 1.25rem;  /* 增大字体大小 */
    line-height: 1.8;    /* 增加行高 */
    color: #333;         /* 更深的文字颜色 */
    margin-bottom: 2.5rem;
    text-align: justify;
    font-weight: 400;    /* 适中的字重 */
    letter-spacing: 0.3px;  /* 轻微增加字间距 */
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .blog-review-detail {
        padding: 3rem 3%;
    }

    .blog-review-detail-article {
        padding: 2rem;
    }

    .blog-review-detail-image {
        max-width: 300px;  /* 移动端更小的图片 */
        height: 225px;  /* 保持 4:3 比例 */
    }

    .blog-review-detail-title-h3 {
        font-size: 1.6rem;
    }

    .blog-review-detail-excerpt-content {
        font-size: 1.1rem;  /* 移动端稍微小一点的字号 */
        line-height: 1.7;
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .blog-review-detail-h2 {
        font-size: 1.75rem; /* Adjust heading font size for very small screens */
    }

    .blog-review-detail-article {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust grid columns for very small screens */
    }

    .blog-review-detail-title-h3 {
        font-size: 1.1rem; /* Adjust title font size for very small screens */
    }

    .blog-review-detail-excerpt-content {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
}

/* SEO优化相关样式 */
.seo-heading {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-review-detail-article {
    /* 现有样式保持不变 */
    margin-top: 2rem;
    margin-bottom: 3rem;
}

/* 确保图片有合适的alt文本样式 */
.blog-review-detail-image img {
    /* 现有样式保持不变 */
    max-width: 100%;
    height: auto;
}

/* 确保内容可读性 */
.blog-review-detail-excerpt-content {
    /* 现有样式保持不变 */
    max-width: 70ch;  /* 优化阅读宽度 */
    margin-left: auto;
    margin-right: auto;
}

/* SEO优化相关样式 */
.breadcrumb-nav {
    padding: 1rem 10%;
    background-color: var(--bg-color);
}

.breadcrumb {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
    color: var(--text-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
}

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

/* 确保主要内容区域的可访问性 */
main {
    min-height: 100vh;
    padding-bottom: 3rem;
}

/* 优化标题层级样式 */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    max-width: 15ch;
    margin: 0 auto 1.5rem;
    line-height: 1.2;
}

.light-text {
    color: var(--text-primary);
}

[data-theme='dark'] .light-text {
    color: #ffffff;
}

/* Blog Review Detail Content Markdown */
.blog-review-detail-content-markdown {
    margin-top: 2em;
    line-height: 1.6;
    color: #333;
}

.blog-review-detail-content-markdown h1,
.blog-review-detail-content-markdown h2,
.blog-review-detail-content-markdown h3,
.blog-review-detail-content-markdown h4,
.blog-review-detail-content-markdown h5,
.blog-review-detail-content-markdown h6 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

.blog-review-detail-content-markdown p {
    margin-bottom: 1em;
}

.blog-review-detail-content-markdown ul,
.blog-review-detail-content-markdown ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.blog-review-detail-content-markdown li {
    margin-bottom: 0.5em;
}

.blog-review-detail-content-markdown code {
    background-color: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
}

.blog-review-detail-content-markdown pre {
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1em;
}

.blog-review-detail-content-markdown blockquote {
    border-left: 4px solid #ddd;
    padding-left: 1em;
    margin-left: 0;
    margin-bottom: 1em;
    color: #666;
}

.blog-review-detail-content-markdown img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
}

.blog-review-detail-content-markdown table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}

.blog-review-detail-content-markdown th,
.blog-review-detail-content-markdown td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.blog-review-detail-content-markdown th {
    background-color: #f5f5f5;
}

.blog-review-detail-content-markdown a {
    color: #0366d6;
    text-decoration: none;
}

.blog-review-detail-content-markdown a:hover {
    text-decoration: underline;
}

