/* Web/Web/styles/common.css */
/* --- Resets and Base Styles (Adapted from Apple) --- */
html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* Apple System Font Stack */
    margin: 0;
    color: #333;
    background-color: #fff; /* White background */
    -webkit-font-smoothing: antialiased; /* Smoother fonts on macOS */
    -moz-osx-font-smoothing: grayscale;
    /* ADD THESE LINES */
    min-height: 100vh; /* Ensure full viewport height */
    background: linear-gradient(180deg, rgba(212, 234, 246, 0.7), rgba(249, 249, 249, 0.7) 75%, rgba(255,255,255, 0.7)); /* Apply gradient to body */

}

a, a:hover {
    text-decoration: none;
}
ul, ol, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --- Focus Styles (Apple) --- */
:focus-visible {
    outline: 2px solid var(--sk-focus-color, #0071e3);
    outline-offset: var(--sk-focus-offset, 1px);
}

#ac-localnav .ac-ln-wrapper .ac-ln-background {
    height: calc(100% - 1px);
}

/* --- Sticky Nav (Adapted from Apple) --- */
#ac-localnav {
    --r-localnav-height: 52px; /*  Base height */
    position: fixed;  /*  Important for sticky positioning - ALWAYS fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100; /* Ensure it's above other content */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
     /* Apple-style blurred background */
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    border-bottom: 1px solid #e0e0e0;
}

/* --- ac-ln-wrapper (Adapted from Apple)---*/
.ac-ln-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    z-index: 1;
}

#ac-localnav.ac-ln-sticking .ac-ln-background {  /* Remove this block, as we're always "sticking" */
    -webkit-transition: background .24scubic-bezier(0.28, 0.11, 0.32, 1);
    transition: background .24scubic-bezier(0.28, 0.11, 0.32, 1);
    -webkit-transition-property: background, -webkit-backdrop-filter;
    transition-property: background, -webkit-backdrop-filter;
    transition-property: background, backdrop-filter;
    transition-property: background, backdrop-filter, -webkit-backdrop-filter;
}

@supports ((-webkit-backdrop-filter: initial) or (backdrop-filter: initial)) {
    #ac-localnav.ac-localnav-scrim .ac-ln-background {
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
    }
}


/* --- ac-ln-content (Adapted from Apple)---*/
.ac-ln-content {
    height: var(--r-localnav-height);
    margin: 0 auto;
    max-width: 980px; /* Apple's max-width */
    padding: 0 22px;  /* Apple's padding */
    position: relative;
    z-index: 2;
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Vertically center items */
    justify-content: space-between; /* Space out items */
}
/* --- ac-ln-background (Adapted from Apple)---*/
.ac-ln-background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: background-color 0.24s cubic-bezier(0.28, 0.11, 0.32, 1);
    background-color: transparent; /* Initially transparent */
}

#ac-localnav .ac-ln-background { /* Changed from #ac-localnav.ac-ln-sticking */
  background-color: rgba(255, 255, 255, 0.8); /*  Semi-transparent white when sticky */
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.ac-localnav-scrim .ac-ln-background:after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%; /* Full width */
    transform: translateX(-50%); /* Center the line */
    height: 0px; /* Initially hidden */
    background: rgba(0, 0, 0, 0.16); /* Apple's keyline color */
    z-index: 3; /* Above the background, below content */
    transition: height 0.2s ease; /* Smooth transition for the border */
}

#ac-localnav.scrolled .ac-ln-background:after {
     height: 1px;  /* Show border when scrolled */
     background:  #e0e0e0;
}
/* --- ac-ln-title (Adapted from Apple)---*/
.ac-ln-title {
    font-size: 21px;
    line-height: 1.1428571429;
    font-weight: 600;
    letter-spacing: 0.011em;
    font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    margin-right: auto; /* Push title to the left */
}
.ac-ln-title a {
    color: #000; /* Black logo */
}

/* --- .ac-ln-menu and .ac-ln-menu-item (Adapted from Apple)---*/
.ac-ln-menu {
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    margin-left: auto; /* Push menu to the right */

}
.ac-ln-menu-items {
   display: flex; /* Make the menu items flex items */
   align-items: center;
}

.ac-ln-menu-item {
    list-style: none;
    margin-left: 24px; /* Apple's spacing */

}
.ac-ln-menu-link {
    color: rgb(0, 0, 0); /* Apple blue link color */
    display: inline-block;
    line-height: 22px;
    white-space: nowrap;
    opacity: 0.8;
    text-decoration: none;
    position: relative;
    padding: 8px 0; /* Add some vertical padding */
}

.ac-ln-menu-link:hover {
    opacity: 1;
}
/* --- ac-ln-actions and ac-ln-button (Simplified from Apple)---*/
.ac-ln-actions {
    margin-left: auto;
}
.ac-ln-action-button {
    /* Simplified Apple-style button */
    font-size: 12px;
    line-height: 1.33337;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-family: "SF Pro Text","SF Pro Icons","Helvetica Neue","Helvetica","Arial",sans-serif;
    color: #fff;
    border-radius: 12px;
    padding: 4px 11px;
    display: inline-flex; /* Use flexbox to center the image vertically */
    align-items: center; /* Center vertically */

}


/* --- Language Specific --- */
.ac-ln-menu:lang(zh), .ac-ln-title:lang(zh), #ac-localnav .ac-ln-button:lang(zh) {
    letter-spacing: 0em;
}
.ac-ln-menu:lang(zh-CN), .ac-ln-title:lang(zh-CN), #ac-localnav .ac-ln-button:lang(zh-CN)  {
    font-family: "SF Pro SC","SF Pro Text","SF Pro Icons","PingFang SC","Helvetica Neue","Helvetica","Arial",sans-serif;
}

.ac-ln-menu:lang(zh-HK), .ac-ln-title:lang(zh-HK), #ac-localnav .ac-ln-button:lang(zh-HK)  {
    font-family: "SF Pro HK","SF Pro Text","SF Pro Icons","PingFang HK","Helvetica Neue","Helvetica","Arial",sans-serif;
}
.ac-ln-menu:lang(zh-TW), .ac-ln-title:lang(zh-TW), #ac-localnav .ac-ln-button:lang(zh-TW)  {
    font-family: "SF Pro TC","SF Pro Text","SF Pro Icons","PingFang TC","Helvetica Neue","Helvetica","Arial",sans-serif;
}

/* --- footer ---*/
/* Footer Styles */
footer {
    background-color: #f2f2f2;
    padding: 30px 0;
    text-align: center; /* Center-align content */
    font-size: 0.8em;
}

.footer-content {
    max-width: 980px; /* Match Apple's max-width */
    margin: 0 auto; /* Center the content horizontally */
    padding: 0 20px;  /* Add some horizontal padding */
}


.footer-nav ul {
    display: flex; /* Use flexbox for horizontal layout */
    justify-content: center; /* Center the links */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-bottom: 15px; /* Space between nav and legal */
    padding: 0;
    list-style: none;

}

.footer-nav li {
    margin: 0 12px; /* Spacing between links */
    position: relative; /* For the divider positioning */
}

.footer-nav li:not(:last-child)::after {
    content: "|"; /* Vertical divider */
    color: #ccc;
    position: absolute;
    right: -14px; /* Position the divider */
    top: 0;

}
.footer-nav a {
    color: #6e6e73; /* Apple's gray link color */
    text-decoration: none;
    white-space: nowrap; /* Prevent links from wrapping */
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-legal {
    color: #888; /* Slightly darker gray for legal text */
    font-size: 0.9em;
}

/* --- button ---*/
.button {
    display: inline-block;
    padding: 10px 18px; /* Slightly less padding */
    background-color: #007aff; /* Apple blue */
    color: #fff;
    text-decoration: none;
    border-radius: 12px; /* More rounded corners */
    border: none; /* Remove explicit border */
    font-weight: 500;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.button:hover {
    background-color: #0066cc; /* Darker blue on hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
}

.button.primary-button {
    background-color: #007aff;
    color: #fff;
}

.button.primary-button:hover {
    background-color: #0066cc;
}