* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Roboto', -apple-system, sans-serif; }
body { background-color: #f4f6f8; color: #1f1f1f; -webkit-font-smoothing: antialiased; }
.app-bar { background-color: #ffffff; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid #e0e0e0; position: sticky; top: 0; z-index: 100; }
.logo { font-size: 20px; font-weight: 700; color: #1a73e8; letter-spacing: 1px;}
.inline-msg { font-size: 14px; font-weight: bold; margin: 8px 0; min-height: 20px; transition: color 0.3s; }

.main-content { padding: 12px; max-width: 1280px; margin: 0 auto; padding-bottom: 60px; }
.portal-view { display: none; }
.portal-view.active-view { display: block; animation: fade 0.2s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.static-quote {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin: 20px 0 25px 0;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #1a73e8, #d81b60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.action-bar-center { display: flex; justify-content: center; margin-bottom: 24px; align-items: center;}
.two-column-layout { display: flex; flex-direction: column; gap: 16px; }

.card { background: #ffffff; border-radius: 12px; border: 1px solid #dce0e4; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.auth-card { overflow: hidden; max-width: 400px; margin: 30px auto; }
form { padding: 20px; }

.form-grid-2col, .form-grid-3col { display: grid; grid-template-columns: 1fr; gap: 0; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 15px; color: #444746; margin-bottom: 8px; font-weight: bold; }
.google-input { width: 100%; padding: 14px; border: 1px solid #747775; border-radius: 8px; font-size: 16px; color: #1f1f1f; transition: border-color 0.2s; }
.google-input:focus { outline: none; border-color: #1a73e8; border-width: 2px; padding: 13px; }

.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.checkbox-label { display: flex; align-items: center; font-size: 16px; padding: 10px 18px; border: 1px solid #747775; border-radius: 8px; background: #f8f9fa;}
.checkbox-label input { margin-right: 8px; transform: scale(1.3); }

.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 10px; }
.btn { padding: 12px 24px; font-size: 16px; font-weight: bold; border-radius: 8px; cursor: pointer; border: none; }
.btn-primary { background-color: #1a73e8; color: white; }
.btn-large { padding: 16px 40px; font-size: 18px; border-radius: 100px; box-shadow: 0 4px 10px rgba(26,115,232,0.3); }
.btn-text { background: transparent; color: #1a73e8; }
.btn-edit { background-color: #00875a; color: white; padding: 8px 16px; border-radius: 6px; font-size: 14px;}
.btn-delete-red { background-color: #d93025; color: white; padding: 8px 16px; border-radius: 6px; border: none; cursor: pointer; font-size: 14px; font-weight:bold;}

.record-status-red { font-weight: 900; font-size: 18px; color: #d93025 !important; }
.records-container { display: flex; flex-direction: column; gap: 16px; }
.record-item { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid #e0e0e0; border-left: 6px solid #1a73e8; }
.record-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; border-bottom: 1px dashed #e0e0e0; padding-bottom: 12px;}
.record-content p { font-size: 17px; color: #202124; line-height: 1.6; margin-top: 8px; }
.record-content strong { color: #5f6368; font-size: 15px;}

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.metric-card { background: white; border-radius: 12px; padding: 16px; border: 1px solid #dce0e4; }
.metric-title { font-size: 15px; color: #5f6368; margin-bottom: 6px; font-weight:bold;}
.metric-value { font-size: 28px; font-weight: 800; color:#1a73e8; }

.search-box-wrapper { width: 100%; margin-top: 10px;}
.search-input { border-radius: 24px; padding-left: 18px; font-size: 15px; }
.day-group-box { background-color: #fff; border: 1px solid #dce0e4; border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.day-group-title { font-size: 17px; font-weight: 800; color: #1a73e8; margin-bottom: 16px; }

.table-responsive { overflow-x: auto; border: 1px solid #e0e0e0; border-radius: 8px; }
.google-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 15px; }
.google-table th { background-color: #f1f3f4; padding: 14px; border-bottom: 1px solid #e0e0e0; text-align: left; color:#202124; font-weight:bold;}
.google-table td { padding: 14px; border-bottom: 1px solid #f1f3f4; }

.approval-radio-container { display: flex; gap: 15px; align-items: center; }
.approval-radio-container label { font-size: 16px; cursor: pointer; display: flex; align-items: center; margin-bottom:0; font-weight:bold; color:#202124;}
.approval-radio-container input { margin-right: 6px; transform: scale(1.3); }

/* 全新设计的底部网关样式 */
.mobile-footer-gateways { margin-top: 60px; padding: 30px 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; border-top: 2px dashed #dce0e4; }
.footer-gateways-row { display: flex; gap: 20px; align-items: center; }
.footer-gate-btn { background: none; border: none; color: #80868b; font-size: 15px; cursor: pointer; font-weight:bold; transition: color 0.2s;}
.footer-gate-btn:hover { color: #1a73e8; }
.footer-gate-split { color: #dce0e4; }

.w-100 { width: 100% !important; }
.admin-vertical-layout { display: flex; flex-direction: column; gap: 24px; }

@media (min-width: 769px) {
    .main-content { padding: 30px; }
    .two-column-layout { flex-direction: row; }
    .form-card { flex: 4; } .list-card { flex: 5; }
    .form-grid-2col { grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
    .form-grid-3col { grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .search-box-wrapper { width: 300px; margin-top: 0; }
}