/*
Theme Name: sUx
Theme URI: https://yourwebsite.com/sux-theme
Author: Your Name
Author URI: https://yourwebsite.com
Description: 专业外贸企业主题，色彩鲜明极具特色，支持简单商品展示。专为国际贸易公司设计的现代化WordPress主题，具有响应式布局、跨浏览器兼容性和丰富的自定义选项。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sux
Domain Path: /languages
Tags: two-columns, three-columns, right-sidebar, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, blog, e-commerce, portfolio

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

sUx主题是基于WordPress最佳实践开发的外贸企业主题。
特点：
- 现代商务专业设计风格
- 色彩鲜明具有视觉冲击力
- 完全响应式设计，支持桌面、平板、手机
- 简单易用的商品展示功能
- 跨浏览器兼容（Chrome、Firefox、Safari、Edge、IE11+）
- 代码简洁高效，注释清晰
- 多种自定义页面模板
- SEO友好
- 快速加载优化
*/

/* ----------------------------------------
   CSS重置和基础样式
   ---------------------------------------- */

/* 标准化样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ----------------------------------------
   版心布局
   ---------------------------------------- */

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    display: flex;
    margin: 40px 0;
}

.content-area {
    flex: 1;
    margin-right: 40px;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ----------------------------------------
   顶部栏 (Header Top Bar)
   ---------------------------------------- */

.top-bar {
    background-color: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-info {
    font-size: 14px;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar-info:hover {
    color: var(--sux-primary-color, #0066cc);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #e9ecef;
    border-radius: 50%;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--sux-primary-color, #0066cc);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ----------------------------------------
   网站头部
   ---------------------------------------- */

.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-logo {
    max-width: 200px;
    height: auto;
    display: block;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--sux-primary-color, #0066cc);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: var(--sux-secondary-color, #ff6600);
}

.site-description {
    font-size: 14px;
    color: #6c757d;
    margin: 5px 0 0 0;
}

/* ----------------------------------------
   导航菜单
   ---------------------------------------- */

.main-navigation {
    background-color: var(--sux-primary-color, #0066cc);
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
}

.main-menu a:hover,
.main-menu li.current-menu-item > a {
    background-color: rgba(0, 0, 0, 0.1);
}

/* 子菜单样式 */
.main-menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    z-index: 1000;
}

.main-menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu ul.sub-menu li {
    margin: 0;
}

.main-menu ul.sub-menu a {
    color: #333;
    padding: 12px 20px;
    border-bottom: 1px solid #f8f9fa;
    font-weight: 400;
}

.main-menu ul.sub-menu a:hover {
    background-color: var(--sux-primary-color, #0066cc);
    color: #ffffff;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--sux-primary-color, #0066cc);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ----------------------------------------
   主要内容区域
   ---------------------------------------- */

.site-main {
    padding: 40px 0;
}

/* 文章列表样式 */
.post {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 30px;
}

.entry-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--sux-primary-color, #0066cc);
}

.entry-meta {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.entry-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta a:hover {
    color: var(--sux-primary-color, #0066cc);
}

.entry-excerpt {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.read-more {
    display: inline-block;
    background-color: var(--sux-primary-color, #0066cc);
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: var(--sux-secondary-color, #ff6600);
    transform: translateY(-2px);
}

/* ----------------------------------------
   分页
   ---------------------------------------- */

.pagination {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    color: #6c757d;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--sux-primary-color, #0066cc);
    color: #ffffff;
    border-color: var(--sux-primary-color, #0066cc);
}

/* ----------------------------------------
   侧边栏
   ---------------------------------------- */

.widget {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sux-primary-color, #0066cc);
}

/* 搜索小工具 */
.widget_search .search-form {
    display: flex;
}

.widget_search .search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}

.widget_search .search-submit {
    background-color: var(--sux-primary-color, #0066cc);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.widget_search .search-submit:hover {
    background-color: var(--sux-secondary-color, #ff6600);
}

/* 文章分类小工具 */
.widget_categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_categories li {
    margin-bottom: 8px;
}

.widget_categories a {
    color: #555;
    text-decoration: none;
    padding: 8px 0;
    display: block;
    border-bottom: 1px solid #f8f9fa;
    transition: color 0.3s ease;
}

.widget_categories a:hover {
    color: var(--sux-primary-color, #0066cc);
}

/* ----------------------------------------
   页脚
   ---------------------------------------- */

.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget .widget-title {
    color: #ffffff;
    border-bottom-color: var(--sux-secondary-color, #ff6600);
}

.footer-widget a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    font-size: 14px;
    color: #95a5a6;
}

/* ----------------------------------------
   首页特色区域
   ---------------------------------------- */

.hero-section {
    background: linear-gradient(135deg, var(--sux-primary-color, #0066cc) 0%, var(--sux-secondary-color, #ff6600) 100%);
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-hero {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #ffffff;
    color: var(--sux-primary-color, #0066cc);
}

.btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--sux-primary-color, #0066cc);
    transform: translateY(-3px);
}

/* ----------------------------------------
   特色服务区域
   ---------------------------------------- */

.features-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--sux-primary-color, #0066cc), var(--sux-secondary-color, #ff6600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.feature-description {
    font-size: 16px;
    line-height: 1.8;
    color: #6c757d;
}

/* ----------------------------------------
   商品展示区域
   ---------------------------------------- */

.products-section {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--sux-secondary-color, #ff6600);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-content {
    padding: 25px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.product-description {
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 20px;
}

.product-link {
    display: inline-block;
    background-color: var(--sux-primary-color, #0066cc);
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-link:hover {
    background-color: var(--sux-secondary-color, #ff6600);
}

/* ----------------------------------------
   动画效果
   ---------------------------------------- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ----------------------------------------
   工具类
   ---------------------------------------- */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.sux-primary-color {
    color: var(--sux-primary-color, #0066cc);
}

.sux-primary-bg {
    background-color: var(--sux-primary-color, #0066cc);
}

.sux-secondary-color {
    color: var(--sux-secondary-color, #ff6600);
}

.sux-secondary-bg {
    background-color: var(--sux-secondary-color, #ff6600);
}

/* 隐藏元素 */
.screen-reader-text {
    display: none;
}

/* 清除浮动 */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* ----------------------------------------
   浏览器兼容性修复
   ---------------------------------------- */

/* IE11+ 兼容性 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .features-grid {
        display: -ms-grid;
        -ms-grid-columns: 1fr 1fr 1fr;
    }
}

/* Edge浏览器特定修复 */
@supports (-ms-ime-align: auto) {
    .hero-section {
        background-attachment: fixed;
    }
}