.back-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 50px;
height: 50px;
background: linear-gradient(135deg, #4A90E2 0%, #67B8F9 100%);
color: #fff;
border: none;
border-radius: 50%;
cursor: pointer;
display: none;
align-items: center;
justify-content: center;
box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
z-index: 999;
transition: all 0.3s ease;
font-size: 24px;
}

.back-to-top:hover {
transform: translateY(-5px);
box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
}

.back-to-top.show {
display: flex;
}

.lightbox {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.9);
z-index: 9999;
align-items: center;
justify-content: center;
}

.lightbox.active {
display: flex;
}

.lightbox img {
max-width: 90%;
max-height: 90%;
border-radius: 8px;
box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
position: absolute;
top: 30px;
right: 30px;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.2);
border: 2px solid #fff;
border-radius: 50%;
color: #fff;
font-size: 24px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s;
}

.lightbox-close:hover {
background: rgba(255, 255, 255, 0.3);
transform: rotate(90deg);
}

.hamburger-menu {
display: none;
flex-direction: column;
gap: 5px;
cursor: pointer;
padding: 10px;
z-index: 1001;
}

.hamburger-menu span {
width: 25px;
height: 3px;
background: #4A90E2;
border-radius: 2px;
transition: all 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
.nav-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
width: 100%;
background: #fff;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
flex-direction: column;
padding: 20px;
gap: 15px;
z-index: 1000;
}

.nav-menu.active {
display: flex !important;
}

.hamburger-menu {
display: flex;
}
}

@media (min-width: 769px) {
.nav-menu {
display: flex !important;
}
}

.animate-fade-in {
animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.scroll-indicator {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 4px;
background: linear-gradient(90deg, #4A90E2 0%, #67B8F9 100%);
z-index: 9999;
transition: width 0.3s ease;
}

*:focus {
outline: 2px solid #4A90E2;
outline-offset: 2px;
}

img[loading="lazy"] {
transition: opacity 0.3s;
}

img[loading="lazy"]:not([src]) {
opacity: 0;
}

section img {
cursor: pointer;
transition: transform 0.3s;
}

section img:hover {
transform: scale(1.02);
}

.stat-number {
counter-reset: num 0;
animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
from {
opacity: 0;
transform: scale(0.8);
}
to {
opacity: 1;
transform: scale(1);
}
}

.principle-card, .stat-item {
opacity: 0;
animation: slideUp 0.6s ease forwards;
}

.principle-card:nth-child(1) { animation-delay: 0.1s; }
.principle-card:nth-child(2) { animation-delay: 0.2s; }
.principle-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

body {
scroll-behavior: smooth;
}

.header {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header.hide {
transform: translateY(-100%);
}

.header.show {
transform: translateY(0);
box-shadow: 0 4px 20px rgba(74, 144, 226, 0.15);
}

::selection {
background: #4A90E2;
color: #fff;
}

::-webkit-scrollbar {
width: 12px;
}

::-webkit-scrollbar-track {
background: #E3F2FD;
}

::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #4A90E2 0%, #67B8F9 100%);
border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
background: linear-gradient(135deg, #3A7BC8 0%, #5AA8E5 100%);
}

dl div {
transition: all 0.3s ease;
}

dl div:hover {
background: rgba(74, 144, 226, 0.05);
padding-left: 20px;
border-left: 3px solid #4A90E2;
}

table tr {
transition: background 0.2s ease;
}

table tbody tr:hover {
background: rgba(74, 144, 226, 0.08) !important;
}

.logo-img {
transition: transform 0.3s ease;
object-fit: contain;
}

.logo-img:hover {
transform: scale(1.05);
}

section img {
object-fit: cover;
}

.principle-icon {
object-fit: contain !important;
}

@media print {
.header, .back-to-top, footer {
display: none;
}
body {
background: white;
}
}

.trust-badge {
animation: slideInLeft 0.8s ease 0.5s both;
}

@keyframes slideInLeft {
from {
opacity: 0;
transform: translateX(-30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

button:active, a:active {
transform: scale(0.98);
}

.cta-primary:active, .cta-secondary:active {
transform: translateY(-1px) scale(0.98);
}

.footer-links button:hover {
color: var(--secondary-color) !important;
text-decoration: underline;
}

.floating-nav {
position: fixed;

top: 50%;
transform: translateY(-50%);
z-index: 998;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
align-items: center;
}

.floating-nav-toggle {
width: 56px;
height: 56px;
background: linear-gradient(135deg, #4A90E2 0%, #67B8F9 100%);
border-radius: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
transition: all 0.3s ease;
margin-bottom: 15px;
position: relative;
border: 3px solid rgba(255, 255, 255, 0.3);
}

.floating-nav-toggle::after {
content: '目录';
position: absolute;
bottom: -22px;
left: 50%;
transform: translateX(-50%);
color: var(--primary-color);
font-size: 11px;
font-weight: 600;
white-space: nowrap;
background: white;
padding: 2px 8px;
border-radius: 10px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.floating-nav-toggle:hover {
transform: scale(1.1) rotate(5deg);
box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
border-color: rgba(255, 255, 255, 0.5);
}

.floating-nav-toggle svg {
width: 26px;
height: 26px;
color: white;
transition: all 0.3s ease;
}

.floating-nav.collapsed .floating-nav-toggle svg {
transform: scale(0.85);
}

.floating-nav-toggle:hover svg {
animation: bounce-icon 0.6s ease infinite;
}

@keyframes bounce-icon {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-3px); }
}

.floating-nav-list {
list-style: none;
margin: 0;
margin-top: 10px;
padding: 0;
background: white;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
overflow: hidden;
max-height: 600px;
opacity: 1;
transition: all 0.3s ease;
}

.floating-nav.collapsed .floating-nav-list {
max-height: 0;
opacity: 0;
margin-top: 0;
}

.floating-nav-list li {
border-bottom: 1px solid #E3F2FD;
}

.floating-nav-list li:last-child {
border-bottom: none;
}

.floating-nav-list a {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
color: var(--text-dark);
text-decoration: none;
transition: all 0.3s ease;
font-size: 14px;
font-weight: 500;
}

.floating-nav-list a:hover {
background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
color: var(--primary-color);
padding-left: 20px;
}

.floating-nav-list a svg {
width: 20px;
height: 20px;
color: var(--primary-color);
flex-shrink: 0;
}

.floating-nav-list a span {
white-space: nowrap;
}

.floating-nav-list a.active {
background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
color: var(--primary-color);
border-left: 3px solid var(--primary-color);
}

@media (max-width: 1024px) {
.floating-nav {
right: 20px;
}
}

@media (max-width: 768px) {
.floating-nav {
display: none;
}
}
