/* ============================================
   Common Styles - 全局公共样式
   ============================================ */

/* CSS Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
    color: #334155;
    background-color: #ffffff;
}

/* Remove default list styles */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Remove default heading margins */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
}

/* Remove default paragraph margins */
p {
    margin: 0;
}

/* Remove default link styles */
a {
    color: inherit;
    text-decoration: none;
}

/* Remove default figure margins */
figure {
    margin: 0;
}

/* Image defaults */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Button defaults */
button {
    font-family: inherit;
    cursor: pointer;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: rgba(37, 99, 235, 0.2);
    color: #1e293b;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
