@charset "utf-8";

/* Public/Common CSS styles */
.public-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 1rem;
}

.public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.3rem;
    height: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.public-logo {
    height: 0.7rem;
}

.public-logo img {
    height: 100%;
    width: auto;
}

.public-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.4rem;
}

.public-menu-item {
    font-size: 0.28rem;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
}

.public-menu-item:hover,
.public-menu-item.active {
    color: #53b6c5;
}

.public-content {
    margin-top: 1rem;
    min-height: calc(100vh - 2rem);
    padding-bottom: 1rem;
}

.public-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 0.4rem 0;
    font-size: 0.24rem;
}

.public-footer a {
    color: #53b6c5;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 0.2rem 0.3rem;
    font-size: 0.24rem;
    color: #666;
}

.breadcrumb a {
    color: #53b6c5;
    margin-right: 0.1rem;
}

.breadcrumb-separator {
    margin: 0 0.1rem;
    color: #999;
}

/* Page title */
.page-title {
    background: #fff;
    padding: 0.4rem 0.3rem;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid #f0f0f0;
}

.page-title h1 {
    font-size: 0.4rem;
    color: #333;
    margin: 0;
    text-align: center;
}

.page-subtitle {
    font-size: 0.26rem;
    color: #666;
    text-align: center;
    margin-top: 0.1rem;
}

/* Section containers */
.section {
    background: #fff;
    margin-bottom: 0.3rem;
    border-radius: 0.15rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.section-header {
    background: linear-gradient(135deg, #53b6c5, #6aebff);
    color: white;
    padding: 0.3rem;
    font-size: 0.32rem;
    font-weight: 600;
}

.section-content {
    padding: 0.3rem;
}

/* Alert messages */
.alert {
    padding: 0.3rem;
    border-radius: 0.1rem;
    margin-bottom: 0.3rem;
    font-size: 0.26rem;
}

.alert-info {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    color: #1976d2;
}

.alert-success {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.alert-error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: 0.2rem;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 0.4rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 0.36rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 0.4rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 0.4rem;
}

.modal-footer {
    padding: 0.4rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 0.2rem;
    justify-content: flex-end;
}
