@charset "utf-8";

/* Common styles for all pages */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0.3rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
}

h1 { font-size: 0.48rem; }
h2 { font-size: 0.4rem; }
h3 { font-size: 0.36rem; }
h4 { font-size: 0.32rem; }
h5 { font-size: 0.28rem; }
h6 { font-size: 0.24rem; }

p {
    margin: 0 0 0.3rem 0;
}

a {
    color: #53b6c5;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #4a9fb0;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.2rem; }
.mb-2 { margin-bottom: 0.4rem; }
.mb-3 { margin-bottom: 0.6rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.2rem; }
.mt-2 { margin-top: 0.4rem; }
.mt-3 { margin-top: 0.6rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.2rem; }
.p-2 { padding: 0.4rem; }
.p-3 { padding: 0.6rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Colors */
.text-primary { color: #53b6c5; }
.text-secondary { color: #666; }
.text-muted { color: #999; }
.text-white { color: #fff; }

.bg-primary { background-color: #53b6c5; }
.bg-white { background-color: #fff; }
.bg-light { background-color: #f8f9fa; }
.bg-dark { background-color: #343a40; }

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #53b6c5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form elements */
input, textarea, select {
    width: 100%;
    padding: 0.2rem 0.3rem;
    border: 1px solid #ddd;
    border-radius: 0.1rem;
    font-size: 0.28rem;
    transition: border-color 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #53b6c5;
    box-shadow: 0 0 0 2px rgba(83, 182, 197, 0.2);
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
