body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    color: #1d1d1f;
    line-height: 1.5;
    background: #f5f5f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #0071e3;
}

.main-page-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* Dashboard 独立页面壳，不依赖主站主题样式。 */
.dashboard-site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dashboard-navbar {
    min-height: 76px;
    padding: 10px 0;
}

.dashboard-brand img,
.dashboard-footer-brand img {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
}

.dashboard-navbar .nav-link {
    padding: 10px 14px !important;
    color: #3a3a3c;
    font-size: 15px;
    font-weight: 500;
}

.dashboard-navbar .nav-link:hover,
.dashboard-navbar .nav-link:focus {
    color: #0071e3;
}

.dashboard-navbar .navbar-toggler {
    padding: 8px;
    border: 1px solid #d2d2d7;
}

.dashboard-navbar .navbar-toggler-icon {
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2829,29,31,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dashboard-demo-item {
    margin-left: 10px;
}

.demo-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #0071e3;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.demo-button:hover,
.demo-button:focus {
    background: #0062c4;
    color: #fff;
    text-decoration: none;
}

.demo-button img {
    width: 20px;
    height: 20px;
}

.dashboard-footer {
    padding: 46px 0 22px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.dashboard-footer h5 {
    margin-bottom: 14px;
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 600;
}

.footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-list li {
    margin-bottom: 8px;
}

.footer-list a {
    color: #6e6e73;
    font-size: 14px;
}

.footer-list a:hover,
.footer-list a:focus {
    color: #0071e3;
}

.dashboard-copyright {
    margin: 12px 0 0;
    padding-top: 20px;
    border-top: 1px solid #e5e5ea;
    color: #86868b;
    font-size: 13px;
    text-align: center;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.me-2 {
    margin-right: 8px !important;
}
h3{ font-size: 32px; font-weight: bold; margin-bottom: 5px; }
h4{ font-size: 18px !important; margin-bottom: 8px !important; }
.invoiceTable {
    font-size: 15px;
}

/* 主站 body 使用固定 em 行高，表格换行时需显式收紧行盒。 */
.invoiceTable th,
.invoiceTable td {
    line-height: 1.4;
    vertical-align: middle;
}
.subscription-overview-table tbody tr:first-child > * { border-top: 0; }

/* Dashboard Styles */
.dashboard-container {
    flex: 1 0 auto;
    padding-top: 30px;
    padding-bottom: 60px;
    background-color: #f5f5f7;

}

.dashboard-sidebar {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background-color: #0071e3; /* Apple blue */
    color: white;
    font-size: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-transform: uppercase;
    margin: 0 auto;
}

.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.dashboard-menu li {
    margin-bottom: 8px;
}

.dashboard-menu li a {
    display: block;
    padding: 12px 16px;
    color: #1d1d1f;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 400;
}

.dashboard-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    opacity: 0.7;
}

.dashboard-menu li a:hover {
    background-color: rgba(0, 113, 227, 0.1);
    color: #0071e3;
    text-decoration: none;
}

.dashboard-menu li.active a {
    background-color: #0071e3;
    color: #fff;
    font-weight: 500;
}

.dashboard-menu .logout-form {
    margin: 0;
}

.dashboard-menu .logout-button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    color: #1d1d1f;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 400;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.dashboard-menu .logout-button i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    opacity: 0.7;
}

.dashboard-menu .logout-button:hover {
    background-color: rgba(0, 113, 227, 0.1);
    color: #0071e3;
    text-decoration: none;
}

.dashboard-content {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* 未登录页面（登录 / 重发验证码）用的无卡片包裹层 */
.dashboard-content-plain {
    margin-bottom: 30px;
}

/* Dashboard 顶部导航使用 z-index: 9999，弹层及遮罩需要位于其上方。 */
.modal-backdrop {
    z-index: 10040;
}

.dashboard-modal {
    z-index: 10050;
}

.dashboard-card {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.dashboard-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(0, 113, 227, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.dashboard-card-icon i {
    font-size: 22px;
    color: #0071e3;
}

.dashboard-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d1d1f;
}

.dashboard-card p {
    color: #86868b;
    margin-bottom: 0;
    font-size: 13px;
}

.dashboard-card .value {
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.dashboard-section {
    margin-bottom: 25px;
}


.dashboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.dashboard-table th {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 12px 16px;
    font-weight: 500;
    color: #1d1d1f;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dashboard-table th:first-child {
    border-top-left-radius: 10px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.dashboard-table th:last-child {
    border-top-right-radius: 10px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.dashboard-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.dashboard-table tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.dashboard-table tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.dashboard-form label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #1d1d1f;
    font-size: 14px;
}

.dashboard-form .form-control {
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 16px;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

.dashboard-form textarea.form-control {
    height: auto;
    padding: 12px 16px;
}

.dashboard-form .form-control:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.3);
    outline: none;
}

.dashboard-btn {
    background-color: #0071e3;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    text-align: center;
}

.dashboard-btn:hover {
    background-color: #0077ED;
    color: #fff;
    transform: scale(1.02);
}

.dashboard-btn-outline {
    background-color: transparent;
    color: #0071e3;
    border: 1px solid #0071e3;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    text-align: center;
}

.dashboard-btn-outline:hover {
    background-color: rgba(0, 113, 227, 0.1);
    color: #0071e3;
}

.status-badge {
    display: inline-block;
    padding: 2px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.status-active {
    background-color: rgba(52, 199, 89, 0.1);
    color: #34c759; /* Apple green */
}

.status-pending {
    background-color: rgba(255, 149, 0, 0.1);
    color: #ff9500; /* Apple orange */
}

.status-trial {
    background-color: rgba(175, 82, 222, 0.1);
    color: #af52de;
}

.status-replaced {
    background-color: rgba(142, 142, 147, 0.14);
    color: #636366;
}

.status-expired {
    background-color: rgba(255, 59, 48, 0.1);
    color: #ff3b30; /* Apple red */
}

.license-key {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 16px;
    border-radius: 10px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    position: relative;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.license-key .copy-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #86868b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.license-key .copy-btn:hover {
    color: #0071e3;
}

/* Login Page Styles */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* 重发验证码：表单按钮伪装成链接 */
.resend-form {
    margin-bottom: 6px;
    line-height: 1.5;
}

.resend-form .resend-hint {
    font-size: 13px;
    line-height: 1.5;
    color: #86868b;
}

.link-button {
    display: inline-block;
    vertical-align: baseline;
    background: none;
    border: none;
    padding: 0;
    margin-left: 2px;
    font-size: 13px;
    line-height: 1.5;
    font-family: inherit;
    color: #0071e3;
    cursor: pointer;
    text-decoration: none;
}

.link-button:hover:not(:disabled) {
    text-decoration: underline;
}

.link-button:disabled {
    color: #86868b;
    cursor: not-allowed;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 120px;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
}

.login-title h4 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.login-title p {
    color: #86868b;
    font-size: 15px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-control {
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 16px;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

.login-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
}

.verification-code-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.verification-code-input {
    width: 44px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
    caret-color: #0071e3;
}

/* 隐藏number类型输入框的上下箭头 - Chrome, Safari, Edge, Opera */
.verification-code-input::-webkit-outer-spin-button,
.verification-code-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 隐藏number类型输入框的上下箭头 - Firefox */
.verification-code-input[type=number] {
    -moz-appearance: textfield;
}

.verification-code-input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.3);
    outline: none;
}

.verification-code-input.filled {
    background-color: rgba(0, 113, 227, 0.05);
}

.alert {
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: none;
    /* body 是 18px/1.7em，em 会算成固定 30.6px 行盒并继承下去，
       这里必须显式收回，否则单行提示语行距过大 */
    font-size: 16px;
    line-height: 1.5;
}
.alert li {
   font-size: 15px;
   line-height: 1.5;
   margin-bottom: 8px;
}

.alert-danger {
    background-color: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.alert-info {
    background-color: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.alert-success {
    background-color: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.license-change-summary {
    margin: 0 0 18px;
    padding: 18px;
    border: 1px dashed #c7c7cc;
    border-radius: 4px;
    background: #f8f8f9;
}

.license-change-summary-items {
    padding-bottom: 12px;
}

.license-change-summary-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: baseline;
    gap: 16px;
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.4;
}

.license-change-summary-item span {
    color: #6e6e73;
    text-align: left;
}

.license-change-summary-item strong {
    color: #1d1d1f;
    text-align: right;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.license-change-summary-item.is-credit strong {
    color: #167a3e;
}

.license-change-summary-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: baseline;
    gap: 16px;
    padding-top: 13px;
    border-top: 1px dashed #a9a9ad;
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 700;
}

.license-change-summary-total strong {
    color: #167a3e;
    font-size: 22px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.license-change-renewal {
    margin: 8px 0 0;
    color: #6e6e73;
    font-size: 12px;
    line-height: 1.4;
}

.license-change-summary-notice {
    margin: 12px 0 0;
    color: #6e6e73;
    font-size: 13px;
    line-height: 1.5;
}

.license-change-summary-notice.is-error {
    color: #c81e1e;
}

@media (max-width: 991.98px) {
    .dashboard-navbar .navbar-collapse {
        padding: 8px 0 14px;
    }

    .dashboard-demo-item {
        margin: 8px 0 0;
    }
}

/* Responsive Styles */
@media (max-width: 767px) {
    h3 {
        font-size: 26px;
    }

    .dashboard-brand img {
        width: 165px;
    }

    .dashboard-content {
        padding: 20px;
    }
    
    .dashboard-card {
        padding: 20px;
    }
    
    .dashboard-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .dashboard-card-icon i {
        font-size: 18px;
    }
    
    .dashboard-card .value {
        font-size: 22px;
    }
    
    .login-container {
        padding: 30px 20px;
    }

    .license-change-summary {
        padding: 15px;
    }

    .verification-code-input {
        width: 40px;
        height: 46px;
        font-size: 18px;
    }
} 
