/* Flatsome Theme Base Styles - Simplified Version */

/* Reset and Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Lato, sans-serif;
    line-height: 1.6;
    color: var(--fs-color-base, #4a4a4a);
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

#wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-wrapper {
    position: relative;
}

.header-top {
    background: #f5f5f5;
    padding: 10px 0;
    font-size: 12px;
}

.header-main {
    padding: 15px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    align-items: center;
}

.flex-col {
    flex: 0 0 auto;
}

.flex-col.flex-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.flex-col.flex-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.flex-col.flex-grow {
    flex: 1 1 auto;
}

.text-center {
    text-align: center;
}

.logo-left .header-inner {
    justify-content: flex-start;
}

.logo-left .flex-col.logo {
    flex: 0 0 auto;
    margin-right: 30px;
}

.logo img {
    max-width: 100%;
    height: auto;
}

/* Navigation */
.nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav li {
    margin: 0;
    padding: 0;
    position: relative;
}

.header-nav-main.nav {
    gap: 0;
}

.header-nav-main.nav > li {
    margin: 0 5px;
}

.header-nav-main.nav > li > a {
    padding: 10px 15px;
    display: block;
}

.nav a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
    display: inline-block;
}

.nav a:hover {
    color: var(--fs-color-primary);
}

.nav-top-link {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-top-link.is-small {
    padding: 8px 12px;
    font-size: 13px;
}

.nav-top-link:hover {
    color: var(--fs-color-primary, #446084);
}

.header-divider {
    width: 1px;
    height: 20px;
    background: #ddd;
    margin: 0 10px;
}

/* Icons */
.has-icon {
    position: relative;
}

.icon-menu,
.icon-search {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-style: normal;
    display: inline-block;
}

.icon-menu::before {
    content: '\f0c9';
}

.icon-search::before {
    content: '\f002';
}

/* Mobile Navigation */
.mobile-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.show-for-medium {
    display: none;
}

@media (max-width: 768px) {
    .show-for-medium {
        display: block !important;
    }
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--fs-color-primary, #446084);
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s;
}

.button:hover {
    background: var(--fs-color-secondary, #C05530);
}

.button.primary {
    background: var(--fs-color-primary);
}

/* Product Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.row .col {
    padding: 0;
    box-sizing: border-box;
}

.large-columns-4 .col {
    width: 25%;
}

.medium-columns-3 .col {
    width: 33.333%;
}

.small-columns-2 .col {
    width: 50%;
}

/* Product Card */
.product-small .box {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.product-small .box:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.box-image {
    position: relative;
    background: #f9f9f9;
}

.box-text {
    padding: 15px;
}

.product-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.product-title a:hover {
    color: var(--fs-color-primary);
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: var(--fs-color-primary);
}

.price del {
    color: #999;
    font-size: 14px;
    margin-right: 5px;
}

.price ins {
    text-decoration: none;
}

/* Section Title */
.section-title {
    text-align: center;
    margin: 40px 0 30px;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: #ddd;
}

.section-title::before {
    left: calc(50% - 80px);
}

.section-title::after {
    right: calc(50% - 80px);
}

.section-title-main {
    display: inline-block;
    padding: 0 20px;
    font-size: 28px;
    font-weight: 600;
}

/* Stack */
.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.stack .box {
    flex: 1;
    min-width: 200px;
}

.box-text-bottom {
    display: flex;
    flex-direction: column;
}

.box-text-bottom .box-image {
    order: 1;
}

.box-text-bottom .box-text {
    order: 2;
}

/* Footer */
.footer-wrapper {
    background: #2c2c2c !important; /* 深灰色背景 */
    margin-top: 60px;
}

.absolute-footer {
    padding: 20px 0;
    font-size: 14px;
}

.footer-secondary {
    float: right;
}

.footer-primary {
    float: left;
}

/* Utilities */
.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
}

.hide-for-medium {
    display: block;
}

.hide-for-small {
    display: block;
}

/* Responsive - 移动端优先 */
@media (max-width: 768px) {
    body {
        width: 100%;
        overflow-x: hidden;
    }
    
    #wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hide-for-medium {
        display: none !important;
    }
    
    .show-for-medium {
        display: block !important;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    .flex-row {
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
    }
    
    .flex-col {
        flex: 0 0 auto;
    }
    
    .flex-col.logo {
        flex: 0 0 auto;
        width: auto;
    }
    
    .flex-col.flex-left,
    .flex-col.flex-right {
        flex: 0 0 auto;
    }
    
    .flex-col.flex-grow {
        flex: 1 1 100%;
        width: 100%;
        order: 3;
    }
    
    .medium-logo-center .flex-col.logo {
        flex: 1 1 100%;
        text-align: center;
        margin: 10px 0;
    }
    
    .nav {
        flex-direction: row;
        gap: 0;
    }
    
    .header-nav-main.nav {
        flex-direction: column;
        width: 100%;
    }
    
    .header-nav-main.nav > li {
        margin: 0;
        width: 100%;
    }
    
    .nav a {
        display: block;
        padding: 12px 15px;
        min-height: 44px;
    }
    
    .mobile-nav {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .hide-for-small {
        display: none !important;
    }
    
    .container {
        padding: 0 10px;
    }
}
