/* ===== CSS Variables ===== */
:root {
    --primary: #f84142;
    --primary-dark: #d81e06;
    --bg: #f8f5f6;
    --card-bg: #ffffff;
    --text: #333333;
    --text-secondary: #999999;
    --border-color: #eeeeee;
    --font-size: 16px;
    --navbar-height: 50px;
    --tabbar-height: 50px;
    --max-width: 1200px;
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--navbar-height);
    padding-bottom: var(--tabbar-height);
}

a {
    color: var(--text);
    text-decoration: none;
}

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

/* ===== Layout ===== */
.main-content {
    min-height: calc(100vh - var(--navbar-height) - var(--tabbar-height));
}

/* ===== Utilities ===== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 12px;
}

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.loading-tip {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== Responsive ===== */
@media (min-width: 769px) {
    :root {
        --navbar-height: 60px;
    }

    body {
        padding-bottom: 0;
    }
}

@media (min-width: 1025px) {
    .container {
        padding: 0 20px;
    }
}
