/* ===== 全局重置样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 变量 ===== */
:root {
    /* 主题色 */
    --primary-color: #000000;      /* 主色 */
    --secondary-color: #f2f0ed;    /* 次色 */
    --button-color: #FF6C0D;       /* 按钮颜色 */
    --text-color: #000000;         /* 文本颜色 */
    --cream-color: #F7F6F4;        /* 辅助色-米白 */
    --white-color: #FFFFFF;        /* 辅助色-白 */
    --gray-color: #74716F;         /* 辅助色-灰 */
    
    /* 其他变量 */
    --border-radius: 4px;
    --transition-speed: 0.3s;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

/* ===== 基础样式 ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--white-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    padding-top: 80px; /* 与导航栏高度相同 */
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 24px;
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--button-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--button-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #e55c00;
    color: var(--white-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

section {
    padding: 80px 0;
}

/* ===== 导航栏 ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
    cursor: pointer; /* 添加指针样式，表明可点击 */
}

/* 滚动后的导航栏样式 */
#navbar.navbar-scrolled {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

#navbar.navbar-scrolled .nav-wrapper {
    height: 60px;
}

#navbar.navbar-scrolled .logo {
    height: 30px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height var(--transition-speed) ease;
}

.logo {
    height: 40px;
    width: auto;
    transition: height var(--transition-speed) ease;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--button-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== 顶部横幅区域 ===== */
#hero {
    padding: 160px 0 80px;
    background-color: var(--cream-color);
    background-image: url('../images/hero-image.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* 添加一个覆盖层，使文本更容易阅读 */
#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--gray-color);
}

.hero-cta {
    display: flex;
    gap: 15px;
}

/* ===== 产品亮点展示区域 ===== */
#highlights {
    background-color: var(--white-color);
}

.highlights-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.highlight-item {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    background-color: var(--white-color);
    box-shadow: var(--shadow);
}

.highlight-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-item h3 {
    margin-bottom: 15px;
}

.highlight-item:hover {
    transform: translateY(-10px);
}

/* ===== 产品特点详细介绍 ===== */
#features {
    background-color: var(--cream-color);
}

.features-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* 移动端网格布局 - 默认在桌面端隐藏 */
.features-grid-mobile {
    display: none;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    max-width: 500px;
}

.feature-content {
    flex: 1;
}

/* ===== 技术参数区域 ===== */
#specs {
    background-color: var(--white-color);
}

.specs-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.specs-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.specs-item {
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: var(--cream-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.specs-label {
    font-weight: 600;
}

/* ===== 应用场景区域 ===== */
#applications {
    background-color: var(--cream-color);
}

.applications-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.application-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    transition: all var(--transition-speed) ease;
}

.application-image {
    height: 200px;
    overflow: hidden;
}

.application-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.application-item:hover .application-image img {
    transform: scale(1.1);
}

.application-item h3 {
    padding: 20px 20px 10px;
}

.application-item p {
    padding: 0 20px 20px;
}

/* ===== 用户评价区域 ===== */
#reviews {
    background-color: var(--white-color);
}

.reviews-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-item {
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: var(--cream-color);
}

.review-stars {
    color: var(--button-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.review-content {
    font-style: italic;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== 媒体认可区域 ===== */
#media {
    background-color: var(--cream-color);
}

.media-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: center;
}

.media-item {
    text-align: center;
    padding: 20px;
}

.media-item img {
    height: 40px;
    margin: 0 auto 15px;
    filter: grayscale(100%);
    transition: filter var(--transition-speed) ease;
}

.media-item:hover img {
    filter: grayscale(0%);
}

.media-item p {
    font-style: italic;
    color: var(--gray-color);
}

/* ===== FAQ区域 ===== */
#faq {
    background-color: var(--white-color);
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    background-color: var(--cream-color);
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-item.active .faq-answer {
    display: block;
}

/* ===== 购买区域 ===== */
#buy-now {
    background-color: var(--button-color);
    color: var(--white-color);
}

.buy-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.buy-content {
    flex: 1;
}

.buy-image {
    flex: 1;
    text-align: center;
}

.price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.original-price {
    font-size: 24px;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 10px;
}

.discount-info {
    font-size: 18px;
    margin-bottom: 20px;
}

.buy-benefits {
    list-style-type: none;
    margin-bottom: 30px;
}

.buy-benefits li {
    margin-bottom: 10px;
    font-size: 18px;
}

.buy-cta .btn {
    background-color: var(--white-color);
    color: var(--button-color);
}

.buy-cta .btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* ===== 联系我们区域 ===== */
#contact {
    background-color: var(--secondary-color);
}

.contact-wrapper {
    display: flex;
    justify-content: center;
}

.contact-info {
    max-width: 600px;
    text-align: center;
}

.contact-methods {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-icon {
    font-size: 24px;
}

/* ===== 页脚区域 ===== */
#footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 80px 0 30px;
}

.footer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    height: 40px;
    margin: 0 auto;
    background-color: white;
    padding: 5px;
    border-radius: 4px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-links-column h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links-column a {
    display: block;
    color: var(--white-color);
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-links-column a:hover {
    opacity: 1;
    color: var(--button-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
}

.social-link:hover {
    background-color: var(--button-color);
    color: var(--white-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.footer-policy-links {
    display: flex;
    gap: 20px;
}

.footer-policy-links a {
    color: var(--white-color);
    opacity: 0.8;
}

.footer-policy-links a:hover {
    opacity: 1;
    color: var(--button-color);
}

/* ===== 跟随购物车 ===== */
#floating-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: none;
}

.floating-cart-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    max-width: var(--container-width);
    margin: 0 auto;
    gap: 15px;
}

.floating-cart-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-cart-info img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.floating-cart-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.floating-price {
    font-weight: 600;
    margin-bottom: 0;
}

.floating-cart .btn {
    white-space: nowrap;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 30px;
    }
    
    .hero-wrapper {
        flex-direction: column-reverse;
        gap: 40px;
    }
    
    .hero-image {
        width: 90%;
        margin: 0 auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .feature-item, .feature-item.reverse {
        flex-direction: column;
    }
    
    .feature-image {
        margin-bottom: 30px;
    }
    
    .buy-wrapper {
        flex-direction: column;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px; /* 与移动端导航栏高度相同 */
    }
    
    .nav-wrapper {
        flex-direction: row;
        justify-content: center;
        height: 60px;
        padding: 0;
    }
    
    .nav-links, .cta-button {
        display: none;
    }
    
    .logo-link {
        display: block;
    }
    
    .logo {
        height: 30px;
    }
    
    #navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
    
    #hero {
        padding: 120px 0 60px;
        background-position: right center;
    }
    
    section {
        padding: 60px 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-policy-links {
        justify-content: center;
    }
    
    /* 移动端两栏布局调整 */
    .highlights-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .highlight-item {
        padding: 15px;
    }
    
    .highlight-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .highlight-item h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .highlight-item p {
        font-size: 14px;
    }
    
    /* 产品特点两栏布局 */
    .features-wrapper {
        gap: 30px;
    }
    
    .feature-item, .feature-item.reverse {
        flex-direction: column;
    }
    
    /* 添加这个新的移动端产品特点网格布局 */
    .features-grid-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .feature-mobile-item {
        background-color: var(--white-color);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        overflow: hidden;
        height: 100%;
    }
    
    .feature-mobile-image {
        height: 120px;
        overflow: hidden;
    }
    
    .feature-mobile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .feature-mobile-content {
        padding: 15px;
    }
    
    .feature-mobile-content h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .feature-mobile-content p {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    /* 隐藏在移动端的原始特点布局 */
    .features-wrapper {
        display: none;
    }
    
    .features-grid-mobile {
        display: grid;
    }
    
    /* 技术参数两栏布局 */
    .specs-table {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .specs-item {
        padding: 10px;
    }
    
    .specs-label, .specs-value {
        font-size: 14px;
    }
    
    /* 应用场景两栏布局 */
    .applications-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .application-item h3 {
        padding: 15px 15px 5px;
        font-size: 16px;
    }
    
    .application-item p {
        padding: 0 15px 15px;
        font-size: 14px;
    }
    
    .application-image {
        height: 150px;
    }
    
    /* 在768px以下屏幕调整为垂直布局，图片在上方 */
    .buy-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .buy-image {
        flex: none;
        width: 80%;
        margin: 0 auto;
    }
    
    .buy-content {
        flex: none;
        text-align: center;
    }
    
    .buy-benefits {
        display: inline-block;
        text-align: left;
        margin: 0 auto 20px;
    }
    
    .price {
        font-size: 28px;
    }
    
    .original-price {
        font-size: 18px;
    }
    
    .discount-info {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .buy-benefits li {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    /* 移动端购物车样式调整 */
    .floating-cart-content {
        padding: 10px 15px;
    }
    
    .floating-cart-text h4 {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .floating-price {
        font-size: 14px;
    }
    
    .floating-cart .btn {
        font-size: 14px;
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .nav-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    #hero {
        padding: 100px 0 40px;
        background-position: 70% center;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-content {
        margin-top: 20px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content h2 {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    /* 移动端跟随购物车样式 */
    #floating-cart {
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
    
    /* 其他移动端样式保持不变 */
    .highlights-wrapper,
    .specs-table,
    .applications-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* 在更小屏幕上进一步调整图片比例 */
    .buy-image {
        width: 90%;
    }
    
    .buy-cta .btn {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    /* 小屏幕购物车样式 */
    .floating-cart-info img {
        width: 40px;
        height: 40px;
    }
} 