/*
Theme Name: 山海观点
Theme URI: https://example.com
Description: 一个简约现代的WordPress主题 - 为Elementor优化
Author: 山海观点
Author URI: https://example.com
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shanhai
*/

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Site Layout */
.site {
    overflow-x: hidden;
}

#primary.site-main {
    margin: 0;
    padding: 0;
}

/* Entry Content - Allow Elementor full width */
.entry-content {
    margin: 0;
    padding: 0;
}

.entry-content > * {
    max-width: 100%;
}

/* Ensure Elementor containers can be full width */
.entry-content .elementor {
    width: 100%;
}

/* Responsive Images */
img.size-full,
img.size-large,
img.wp-post-image,
.entry-content img {
    max-width: 100%;
    height: auto;
}

/* Clearfix */
.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
    table-layout: fixed;
}

.clearfix::after {
    clear: both;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .entry-content {
        overflow-x: hidden;
    }
}

/* Prevent horizontal scroll on mobile */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}
