/* 基础样式 */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #6c757d;
  --white: #ffffff;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --border-radius: 0.375rem;
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 公共内容 */
.content-container {
    max-width: 98%;
    margin: 0 auto;
    padding: 10px;
}

@media (max-width: 767px) {
    .content-container {
        flex-direction: column;
        max-width: 100%;
    }

    .left-form,
    .right-info {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* 导航栏 */
nav {
    background: linear-gradient(90deg, #165DFF, #0A42D2);
    color: #ffffff;
    width: 100%;
    z-index: 100;
    height: 60px;
    position: fixed;
    top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease;
}

nav:hover {
    background: linear-gradient(90deg, #1E69FF, #0F4ED9);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul li {
    padding: 15px;
    position: relative;
}

nav ul li:not(.nav-logo):not(.mobile-menu-btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 0;
    height: 2px;
    background-color: #4a9eff;
    transition: width 0.3s ease;
}

nav ul li:not(.nav-logo):not(.mobile-menu-btn):hover::after {
    width: calc(100% - 30px);
}

nav ul li a {
    color: #f0f2f5;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav ul li a:hover {
    color: #ffffff;
}

nav ul li.mobile-menu-btn {
    position: relative;
    margin-right: auto;
    padding-left: 45px;
}

nav ul li.nav-logo {
    margin-right: auto;
    padding-left: 20px;
    display: block;
}

nav ul li.nav-logo img {
    display: block; 
    height: 32px;
    transition: transform 0.3s ease;
}

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

/* 非手机端样式 */
@media (min-width: 768px) {
    nav.logged-in ul li.nav-logo {
        display: block;
    }
    .mobile-menu-btn {
        display: none !important;
    }
    nav.logged-in + .sidebar .sidebar-logo {
        display: none;
    }
}

/* 手机端样式 */
@media (max-width: 767px) {
    nav.logged-in ul li.nav-logo {
        display: none;
    }
    nav.logged-in + .sidebar .sidebar-logo {
        display: block;
    }
    nav ul li {
        padding: 5px;
    }
    nav ul li.nav-logo {
        padding-left: 10px;
    }
    nav ul li:not(.nav-logo):not(.mobile-menu-btn)::after {
        left: 10px;
        width: calc(100% - 20px);
    }
    
    nav ul li a {
        font-size: 16px;
    }
}

/* 侧边栏 */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0A1128, #16213E);
    height: calc(100vh - 60px);
    position: fixed;
    top: 60px;
    left: 0;
    padding: 15px 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    overflow-y: auto;
}

.sidebar-logo {
    display: none;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo img {
    height: 32px;
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-header {
    padding: 8px 20px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, rgba(74, 158, 255, 0.15), transparent);
    border-radius: 0 8px 8px 0;
}

.sidebar-header h4 {
    color: #CBD5E1;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar ul {
    padding: 0 15px;
}

.sidebar ul li.nav-item {
    margin: 4px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sidebar ul li.nav-item:hover {
    background: linear-gradient(90deg, rgba(74, 158, 255, 0.15), transparent);
    transform: translateX(5px);
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.15);
}

.sidebar ul li.nav-item a {
    color: rgba(203, 213, 225, 0.85);
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    text-decoration: none; 
    position: relative;
    z-index: 1;
}

.sidebar ul li.nav-item a i {
    width: 28px;
    font-size: 16px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.sidebar ul li.nav-item:hover a i {
    transform: translateX(3px);
    color: #4a9eff;
}

.sidebar ul li.nav-item a:hover {
    color: #ffffff;
    text-decoration: none;
}

.sidebar::-webkit-scrollbar {
    width: 4px; 
}

.sidebar::-webkit-scrollbar-track {
    background: #0A1128;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.sidebar ul li.nav-item.active {
    background: linear-gradient(90deg, rgba(22, 93, 255, 0.3), rgba(22, 93, 255, 0.1));
    transform: translateX(5px);
}

.sidebar ul li.nav-item.active a {
    color: #ffffff;
}

.sidebar ul li.nav-item.active a i {
    transform: translateX(3px);
    color: #93C5FD;
}

.nav-link.admin {
    color: #FFD700 !important;
    font-weight: 600;
}

.nav-link.admin i {
    color: inherit !important;
}

.sidebar-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    display: none;
    backdrop-filter: blur(2px);
}

@media (min-width: 768px) {
    .sidebar-overlay {
        display: none !important;
    }
}

.submenu {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 0.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.submenu.show {
    max-height: 2000px;
}

.submenu .nav-item {
    margin: 0.2rem 0;
}

.submenu .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.has-submenu .arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.has-submenu .submenu-open .arrow {
    transform: rotate(180deg);
}

.submenu .nav-link {
  position: relative;
  overflow: hidden;
  font-size: 14px !important;
  padding: 6px 15px 6px 24px !important;
  line-height: 1.5 !important;
  color: #7dccbb !important;
}

.submenu .nav-link i {
  font-size: 12px !important;
  margin-right: 8px !important;
  width: 16px !important;
  text-align: center !important;
  background: linear-gradient(currentColor, currentColor) no-repeat 15px 100%/0 1px;
  transition: background-size 0.3s;
}

.submenu .nav-link:before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 183, 77, 0.2));
  transition: left 0.6s;
}
.submenu .nav-link:hover:before {
  left: 0;
  background-color: rgba(0,0,0,0.03) !important;
  background-size: calc(100% - 15px) 1px;
  color: #4db8a1 !important;
  filter: drop-shadow(0 0 2px rgba(77,184,161,0.3));
}
.submenu .nav-link.active {
  color: #00ffd5 !important;
  background: #ff8f00;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.alert{
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    padding: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.dns-help-info {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 18px 20px;
    margin: 25px 0;
    font-size: 14px;
    line-height: 1.7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: #334155;
    border-left: 4px solid #3b82f6;
}

.dns-help-info p {
    margin: 8px 0;
    color: #475569;
}

.dns-help-info strong {
    color: #1e40af;
    font-weight: 600;
}

.dns-help-info p:nth-child(2),
.dns-help-info p:nth-child(3) {
    background-color: #f1f5f9;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: monospace;
    color: #2563eb;
}

.dns-help-info p:nth-child(3) {
    word-break: break-all;
}

.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 9999;
    animation: toast-fade 3s ease-out forwards;
}

@keyframes toast-fade {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0); }
    90% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

.main-content {
    flex: 1;
    padding: 60px 5px 0px 5px;
    transition: margin-left 0.3s;
    box-sizing: border-box;
    min-height: 100vh;
}

.sidebar::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 50%;
    filter: blur(30px);
}

.sidebar ul.nav {
    list-style-type: none;
    padding-left: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    nav ul {
        flex-direction: row;
        justify-content: flex-end;
    }
    nav ul li.mobile-menu-btn {
        margin-right: auto;
        padding-left: 50px;
    }
    
    .toggle-sidebar {
        display: flex !important;
        top: 50%;
        left: 10px;
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .main-content {
        margin-left: 0;
        transition: margin 0.3s ease;
    }
    
    .sidebar.show ~ .main-content {
        margin-left: 240px;
        position: relative;
        overflow: hidden;
    }
    
    .main-content {
        margin-left: 0px !important;
    }
    
    .hamburger-icon, .close-icon {
        transition: all 0.3s ease;
    }
}

@media (min-width: 769px) {
    .toggle-sidebar {
        display: none !important;
    }
}

/* 认证容器样式 */
.auth-wrapper {
    display: grid;
    place-items: center;
    margin-top: 20px;
}

.auth_auth-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 450px;
    text-align: center;
}

/* 标题样式 */
.auth_auth-container h2 {
    color: #333;
    margin-bottom: 20px;
}

/* 错误提示 */
.auth_alert.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 表单组样式 */
.auth_form-group {
    margin-bottom: 20px;
    text-align: left;
}

/* 标签样式 */
.auth_form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 600;
}

/* 输入框样式 */
.auth_form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.auth_form-group input:focus {
    border-color: #007BFF;
    outline: none;
}

/* 按钮样式 */
.auth_button {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.auth_button:hover {
    background-color: #0056b3;
}

/* 链接样式 */
.auth_links {
    margin-top: 20px;
}

.auth_links a {
    color: #007BFF;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.auth_links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    position: relative;
    background: #f8f9fa;
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.auth-tab {
    flex: 1;
    padding: 12px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    border-radius: 26px;
}

.auth-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #4a6cf7, #a855f7);
    box-shadow: 0 4px 8px rgba(74, 108, 247, 0.25);
}

.auth-tab:not(.active):hover {
    color: #4a6cf7;
    background: rgba(74, 108, 247, 0.1);
}

.auth-form {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.auth-form.active {
    opacity: 1;
    height: auto;
    overflow: visible;
}

.auth-form {
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
                height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.captcha-group .input-with-image {
    display: flex;
    align-items: center;
}

.captcha-group .input-with-image input {
    flex: 1;
    margin-right: 10px;
}

.captcha-group .input-with-image img {
    cursor: pointer;
}

.auth_form-group.remember-me {
  margin: 15px 0;
}

.remember-me-row {
  display: flex;
  align-items: center;
}

.remember-me-row input[type="checkbox"] {
  margin-right: 3px;
  width: auto;
}

.remember-me-row label {
  cursor: pointer;
  margin: 0;
  user-select: none;
}

.remember-me-notice {
  color: #ff4d4f;
  font-size: 14px;
  display: none;
  padding-left: 5px;
}


@media (max-width: 769px) {
    .auth_auth-container {
        width: 100%;
    }
}

/* 服务价格页面 */
.service-prices {
    max-width: 100%;
    margin: 0 0;
}

/* 页面标题 */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #007bff;
    margin: 15px auto 0;
}

/* 价格表包裹容器 */
.price-table-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* 单个价格表 */
.price-table {
    flex: 0 0 calc(25% - 30px);
    min-width: 310px;
    max-width: 310px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.price-table:hover {
    transform: translateY(-8px);
}

/* 价格表头部 */
.price-table-header {
    background-color: #f0f5ff;
    padding: 20px;
    text-align: center;
    height: 150px; 
}

.level-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    color: #333;
    margin: 0;
}

.level-separator {
    border: none;
    border-top: 1px solid #ccc;
    margin: 10px 0;
}

.price-container {
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    margin-top: 10px;
    font-size: 1rem;
}

.monthly-price {
    color: #e74c3c;
    font-weight: 700;
    margin-right: 10%;
}

.yearly-price-group {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.yearly-discount {
    color: white;
    font-weight: 700;
    background-color: #e74c3c;
    border-radius: 5px;
    padding: 3px 6px; 
    margin-bottom: 5px;
    font-size: 0.8em;
}

.yearly-price {
    color: #e74c3c;
    font-weight: 700;
}

/* 价格表主体 */
.price-table-body {
    padding: 20px;
    flex-grow: 1;
}

.info-label {
    color: #007bff;
    font-size: 16px;
    font-weight: 600;
}

.info-value {
    color: #333;
    font-size: 16px;
}

/* 价格表底部 */
.price-table-footer {
    padding: 20px;
    text-align: center;
    background-color: #f0f5ff;
}

.action-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.action-button:hover {
    background-color: #0056b3;
}

.home-container {
    text-align: center;
    padding-top: 40px;
    padding-right: 5px;
    padding-bottom: 0;
    padding-left: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-container h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.home-container p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 800px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* API 页面样式 */
.api-info {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
    transition: box-shadow 0.3s ease;
}

.api-info:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.api-table th,
.api-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.api-table th {
    background-color: #6f42c1;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #5a32a3;
}

.api-table th:hover {
    background-color: #5a32a3;
}

.api-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.api-table tr:hover td {
    background-color: #f0f8ff;
    transform: translateY(-2px);
}

.api-table td:first-child,
.api-table th:first-child {
    padding-left: 25px;
}

.api-table td:last-child,
.api-table th:last-child {
    padding-right: 25px;
}

.api-table td a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

.api-table td a:hover {
    color: #0056b3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .api-table th,
    .api-table td {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* 用户信息 */
.user-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 
                0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow: hidden;
    position: relative;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 12px !important;
}

.user-info h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    letter-spacing: 0.5px;
    text-align: center;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.user-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.user-info-item:last-child {
    margin-bottom: 0;
}

.user-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin-right: 1rem;
}

.user-info-icon.user { background: rgba(58, 134, 255, 0.1); color: #3a86ff; }
.user-info-icon.email { background: rgba(75, 192, 192, 0.1); color: #4bc0c0; }
.user-info-icon.vip { background: rgba(255, 99, 132, 0.1); color: #ff6384; }

.user-info-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 0.2rem;
}

.user-info-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

.user-info-value.vip { 
    color: #ff6384; 
    font-weight: 600;
}
.user-info-value.vip-expired { 
    color: #e74c3c; 
    font-size: 0.8rem; 
    font-weight: normal;
}
.user-info-value.vip-date { 
    color: #e74c3c;
    font-size: 0.8rem; 
    font-weight: normal;
}
.user-info-value.no-vip { 
    color: #7f8c8d; 
}

.user-info-button {
    padding: 0.25rem 0.35rem !important;
    font-size: 0.8rem !important;
    background: rgba(58, 134, 255, 0.1) !important;
    color: #3a86ff !important;
    border: 1px solid rgba(58, 134, 255, 0.3) !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.shorten-form {
    width: 100%;
    display: block;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 0 auto;
    text-align: left;
}

.url-input {
    width: 100%;
    padding: 16px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    margin-bottom: 15px;
}

.url-input:focus {
    border-color: #3498db;
    outline: none;
}

.domain-select {
    width: auto;
    padding: 8px 25px 8px 5px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.8rem;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%237f8c8d"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center/16px;
    appearance: none;
    float: left;
}

.advanced-btn {
    display: block;
    width: 100%;
    padding: 6px 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    color: #4a6cf7;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(74, 108, 247, 0.2);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(74, 108, 247, 0.08);
    position: relative;
    overflow: hidden;
}

.advanced-btn:hover {
    background: linear-gradient(135deg, #f0f2ff 0%, #e6ebff 100%);
    border-color: rgba(74, 108, 247, 0.4);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.12);
    transform: translateY(-1px);
}

.advanced-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(74, 108, 247, 0.1);
}

.submit-btn {
    width: auto;
    padding: 12px 30px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    display: block;
    margin: 0 auto;
    clear: both;
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* 结果展示 */
.result-box {
    margin-top: 30px;
    padding: 20px 40px;
    background: #ecf5ff;
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}

.result-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

/* 功能卡片 */
.features-container {
    padding: 30px 0px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

.feature-card {
    padding: 40px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-card p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.feature-card:nth-child(1) .feature-icon {
    color: #3B82F6; /* 蓝色 */
    text-shadow: 0 2px 5px rgba(59, 130, 246, 0.2);
}

.feature-card:nth-child(2) .feature-icon {
    color: #10B981; /* 绿色 */
    text-shadow: 0 2px 5px rgba(16, 185, 129, 0.2);
}

.feature-card:nth-child(3) .feature-icon {
    color: #F59E0B; /* 黄色 */
    text-shadow: 0 2px 5px rgba(245, 158, 11, 0.2);
}

.feature-card:nth-child(4) .feature-icon {
    color: #8B5CF6; /* 紫色 */
    text-shadow: 0 2px 5px rgba(139, 92, 246, 0.2);
}

.feature-card:nth-child(5) .feature-icon {
    color: #EC4899; /* 粉色 */
    text-shadow: 0 2px 5px rgba(236, 72, 153, 0.2);
}

.feature-card:nth-child(6) .feature-icon {
    color: #6366F1; /* 靛蓝 */
    text-shadow: 0 2px 5px rgba(99, 102, 241, 0.2);
}

.feature-card:nth-child(7) .feature-icon {
    color: #14B8A6; /* 青色 */
    text-shadow: 0 2px 5px rgba(20, 184, 166, 0.2);
}

.feature-card:nth-child(8) .feature-icon {
    color: #F97316; /* 橙色 */
    text-shadow: 0 2px 5px rgba(249, 115, 22, 0.2);
}

@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动端单列布局 */
@media (max-width: 599px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.copy-success {
    color: green;
}

.copy-failure {
    color: red;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .home-container h1 {
        font-size: 2rem;
    }

    .shorten-form {
        align-items: stretch;
        padding: 20px;
    }

    .url-input,
    .submit-btn {
        width: 100%;
        max-width: 100%;
        margin: 0 0 10px 0;
        height: auto;
    }

    .submit-btn {
        float: none;
        clear: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 30px 20px;
    }
}

/* 数据表格样式 */
.table-container {
    overflow-x: auto;
    white-space: nowrap;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 表头样式 */
.data-table th {
    background-color: #6f42c1;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-bottom: 2px solid #5a32a3;
}

/* 表体单元格样式 */
.data-table td {
    padding: 5px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

/* 鼠标悬停行样式 */
.data-table tr:hover td {
    background-color: #f0f8ff;
}

/* 偶数行样式 */
.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 第一列样式 */
.data-table td:first-child,
.data-table th:first-child {
    padding-left: 20px;
}

/* 最后一列样式 */
.data-table td:last-child,
.data-table th:last-child {
    padding-right: 20px;
}

/* 按钮所在单元格样式 */
.table-actions {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.data-table td.long-url {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table td a {
    text-decoration: none;
}

/* 按钮所在单元格样式 */
.button-cell {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #4169E1;
}

input[type="url"], 
input[type="number"],
input[type="text"], 
input[type="password"],
input[type="email"],
select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.site-footer {
    --footer-bg: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    --text-color: #4a5568;
    --link-color: #4f46e5;
    --link-hover: #4338ca;
    --border-color: rgba(160, 174, 192, 0.2);
    --shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
    
    background: var(--footer-bg);
    color: var(--text-color);
    padding: 0.8rem 1rem;
    width: 100%;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
    z-index: 10;
    margin-top: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links li {
    position: relative;
}

.footer-links li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--text-color);
    opacity: 0.3;
}

.footer-links li a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.25rem 0;
}

.footer-links li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--link-hover);
    transition: width 0.3s ease;
}

.footer-links li a:hover {
    color: var(--link-hover);
}

.footer-links li a:hover::after {
    width: 100%;
}

@media (max-width: 640px) {
    .footer-links {
        gap: 1rem;
    }
    
    .footer-links li:not(:last-child)::after {
        display: none;
    }
    
    .footer-content {
        gap: 1rem;
    }
}

.error-page {
    --primary-color: #6366f1;
    --error-color: #ef4444;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --text-light: #64748b;
    
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0;
    border-radius: 1.5rem;
    background-color: var(--bg-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
}

.error-content {
    position: relative;
    width: 100%;
    width: 100%;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.error-illustration {
    position: relative;
    height: 180px;
    margin-bottom: 2rem;
}

.error-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    animation: pulse 4s infinite ease-in-out;
}

.error-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    animation: float 6s infinite ease-in-out;
}

.error-shape-2 {
    position: absolute;
    top: 30%;
    left: 30%;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    animation: float 5s infinite ease-in-out reverse;
}

.error-title {
    font-size: 7rem;
    font-weight: 800;
    margin: 0;
    color: var(--error-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--text-color);
}

.error-message {
    color: var(--text-light);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.error-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.1);
}

.error-button:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.15);
}

.error-button svg {
    transition: transform 0.3s ease;
}

.error-button:hover svg {
    transform: translateX(3px);
}

.error-button.secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.error-button.secondary:hover {
    background-color: #f8fafc;
    color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(45deg) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) rotate(45deg) translateY(-10px);
    }
}

@media (max-width: 640px) {
    .error-content {
        padding: 2rem 1.5rem;
    }
    
    .error-title {
        font-size: 4rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-button {
        width: 100%;
    }
}

/* 短链接统计部分样式 */
.short-url-stats {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
}

.short-url-stats h3 {
    margin-top: 0;
}

.short-url-stats p {
    margin: 5px 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 侧边栏切换按钮样式 */
.toggle-sidebar {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    margin: 0;
    padding: 2px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    backdrop-filter: none;
    border: 2px solid #ffffff;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4), 0 2px 4px -1px rgba(59, 130, 246, 0.2);
}

.toggle-sidebar:active {
    transform: translateY(-50%) scale(0.95);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 4px -1px rgba(59, 130, 246, 0.4);
}

.toggle-sidebar i {
    font-size: 24px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sidebar.show + .mobile-menu-btn .toggle-sidebar {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.4), 0 2px 4px -1px rgba(239, 68, 68, 0.2);
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.p-4 {
    padding: 1.5rem;
}

.rounded {
    border-radius: 0.25rem;
}

.shadow {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.d-flex {
    display: flex;
}

.justify-content-around {
    justify-content: space-around;
}

.justify-content-center {
    justify-content: center;
}

.admin-dashboard {
    padding: 10px;
}

.admin-dashboard h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.admin-dashboard .actions {
    display: flex;
    justify-content: center;
}

.admin-dashboard .actions a {
    margin: 0 10px;
}

.admin-dashboard .stats-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-dashboard .stat-card {
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
    min-width: 0;
}

.admin-dashboard .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1400px) {
    .admin-dashboard .stats-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .admin-dashboard .stats-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .admin-dashboard .stats-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.admin-dashboard .stat-card h3 {
    font-size: 18px;
    color: #da4453;
    margin-bottom: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-dashboard .stat-card p {
    font-weight: 700;
    color: #967adc;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: min(22px, 4vw);
    width: 100%;
    max-width: fit-content;
}

.percentage {
    display: inline-block;
    margin-left: 8px;
    font-size: min(12px, 4vw);
    width: 100%;
    max-width: fit-content;
    font-weight: normal;
}

.percentage.up {
    color: #e74c3c;
}

.percentage.down {
    color: #2ecc71;
}

.percentage.same {
    color: #95a5a6;
}

/* 设置页面样式 */
.admin-settings {
    padding: 20px;
}

.admin-settings h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.admin-settings .tabs {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 5px;
    padding-bottom: 5px;
    height: 100%;
    align-items: center;
    flex: 1;
}

.admin-settings .tab {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px 6px 0 0;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
    position: relative;
    margin-right: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.admin-settings .tab:hover {
    background-color: #e9ecef;
    color: #333;
    border-color: #d0d0d0;
}

.admin-settings .tab.active {
    background-color: #fff;
    color: #1976d2;
    border-color: #e0e0e0;
    border-bottom-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 1;
}

.admin-settings .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #1976d2;
}

.admin-settings .tab-content {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 0 4px 4px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: -1px;
}

.tabs-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    height: 80px;
}

.tabs-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.scroll-arrow {
    width: 20px;
    height: 40px;
    background: white;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    margin: 0 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #555;
    position: relative;
    outline: none;
}

.scroll-arrow.visible {
    display: flex;
}

.scroll-arrow:hover {
    background: #f5f5f5;
    transform: scale(1.05);
    color: #1976d2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-arrow:active {
    transform: scale(0.95);
}

.scroll-arrow svg {
    transition: transform 0.2s;
}

.scroll-arrow:hover svg {
    transform: scale(1.2);
}

/* 通用按钮 */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4361ee 0%, #3a86ff 100%);
    color: white;
    padding: 10px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 0;
    margin-right: 10px;
    box-sizing: border-box;
    font-size: 1em;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 
        0 2px 4px rgba(67, 97, 238, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button:hover {
    background: linear-gradient(135deg, #3a56d5 0%, #2a6bc4 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(67, 97, 238, 0.3),
        0 2px 0 rgba(255, 255, 255, 0.1) inset;
}

.button:active {
    transform: translateY(1px);
    box-shadow: 
        0 1px 2px rgba(67, 97, 238, 0.2),
        0 -1px 0 rgba(0, 0, 0, 0.1) inset;
}

.button:focus {
    outline: none;
    animation: pulse 1.5s infinite;
}

.button button {
    font-family: inherit;
    padding: 10px 20px;
    margin: -10px -10px;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 4px 4px 0 0;
    z-index: 1;
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.button:hover::after {
    opacity: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(67, 97, 238, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
}

.button:hover {
    position: relative;
}

.button:hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 6px;
    background: linear-gradient(135deg, #4361ee, #4895ef);
    z-index: -1;
    filter: blur(2px);
    opacity: 0.6;
}

body:not(.logged-in) .main-content {
    margin-left: 0;
    text-align: center;
}

body.logged-in .main-content {
    margin-left: 240px;
}

.links {
    margin-top: 10px;
}

.links a {
    text-decoration: none;
}

.links a:link,
.links a:visited {
    color: blue;
}

.links span {
    color: black;
}

.modern-datetime {
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    width: 280px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-datetime:hover {
    border-color: #007bff;
}

.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.flatpickr-day.selected {
    background: #007bff;
    border-color: #007bff;
}

.flatpickr-time input:hover {
    background: #f8f9fa;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
    gap: 8px;
}

.pagination li {
    margin: 0;
}

.pagination li a {
    display: inline-block;
    background-color: #f4f4f9;
    color: #333;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    font-size: 1em;
    line-height: 1;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination li a:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.pagination li a.active {
    background-color: #6f42c1;
    color: white;
    cursor: default;
}

.pagination li.total-data {
    margin-left: 5px;
    color: #666;
    font-size: 0.9em;
}

@media (max-width: 767px) {
    .pagination {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .pagination li:not(.total-data) {
        margin: 2px;
    }
    
    .pagination li a, 
    .pagination li span {
        padding: 4px 8px;
        font-size: 16px;
    }
    
    .pagination li.total-data {
        order: 2;
        flex-basis: 100%;
        text-align: center;
        margin-top: 5px;
        padding: 5px 0;
        font-size: 13px;
    }
}

.title-management-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.title-management-container h2 {
    margin: 0;
}

.controls-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) { 
    .title-management-container {
        display: block;
    }

    .controls-container {
        margin-top: 15px;
        display: flex;
        flex-direction: row;
        gap: 15px;
        width: 100%;
    }

    .sort-container, .per-page-select {
        flex: 1;
        min-width: 150px;
    }
}

/* 选择器样式 */
.sort-container,
.per-page-select {
    display: flex;
    align-items: center;
    height: 100%;
}

.sort-container label,
.per-page-select label {
    font-size: 1em;
    color: #333;
    margin-right: 0px;
}

.sort-container select,
.per-page-select select {
    padding: 3px 20px 3px 5px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path fill="%23333" d="M0 0l5 6 5-6H0z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 10px;
}

.sort-container select:hover,
.per-page-select select:hover {
    border-color: #007bff;
}

.sort-container select:focus,
.per-page-select select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.user-card-deck {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    max-width: 90%;
    margin: 0 auto;
    gap: 10%;
    justify-content: center;
}

/* 卡片容器 - 紧凑布局 */
.user-card-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 单张卡片 - 精致简约风 */
.user-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* 悬浮效果 */
.user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* 卡片顶部色带 */
.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
}

/* 卡片内容 */
.user-card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 标题样式 */
.user-card-title {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 主数值 */
.user-card-text {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

/* 数值装饰线 */
.user-card-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-card-deck {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .user-card {
        padding: 15px;
    }
    
    .user-card-text {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .user-card-deck {
        grid-template-columns: 1fr 1fr;
    }
    
    .user-card-text {
        font-size: 20px;
    }
}

.user-user-info {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.user-user-info h3 {
    margin-top: 0;
}

.user-user-info p {
    margin: 5px 0;
}

.mt-4 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    text-align: center;
}

/* 搜索按钮样式 */
.search-button {
    display: inline-block;
    background-color: #9b59b6;
    color: #ffffff;
    padding: 8px 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    font-size: 1em;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(155, 89, 182, 0.2);
    margin-left: 5px;
}

.search-button:hover {
    background-color: #8e44ad;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(155, 89, 182, 0.3);
}

.search-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(155, 89, 182, 0.2);
}

.toolbar-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.toolbar {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .toolbar-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-container .toolbar {
        margin-bottom: 10px;
    }
}

/* 模态框样式 */
.modal {
    display: none; 
    position: fixed; 
    z-index: 100; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(3px); 
    -webkit-backdrop-filter: blur(3px);
    transition: backdrop-filter 0.3s ease;
}

/* 模态框内容 */
.modal-content {
    position: fixed;
    background-color: #ffffff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border: none;
    border-radius: 8px;
    max-width: 30%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    box-sizing: border-box;
}

/* 标题栏容器 */
.modal-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
    padding: 0;
}

/* 标题样式 */
.modal-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
}

/* 关闭按钮 */
.modal-close {
    position: absolute;
    right: 0;
    top: 0;
    color: #999;
    font-size: 36px;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 10px;
    margin: 0;
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover,
.modal-close:focus {
    color: #333333;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}

.close {
    position: absolute;
    right: 0;
    top: 0;
    color: #999;
    font-size: 36px;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 10px;
    margin: 0;
    cursor: pointer;
    z-index: 10;
}

.close:hover,
.close:focus {
    color: #333333;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}

/* 模态框短链接样式 */
.modal-short-url {
    margin-bottom: 20px;
    text-align: center;
    text-decoration: none;
    color: #ff0000;
}

.modal-short-url a {
    text-decoration: none;
    color: #ff0000;
    font-size: 20px;
}

.copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 8px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gray-qr-icon {
    font-size: 290px;
    color: gray;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.copy-button:hover {
    background-color: #45a049;
}

.copy-button:active {
    background-color: #3d8b40;
    transform: translateY(1px);
}

.copy-message-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.copy-message {
    text-align: center;
    margin: 10px 0;
}

/* 模态框二维码容器样式 */
.modal-qr-code {
    text-align: center;
}

/* 手机端模态框样式 */
@media (max-width: 767px) {
    .modal-content {
        max-width: 80%;
        font-size: 14px;
    }
}

.custom-flex-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

input[name="long_url"] {
    width: 100%;
}
input[name="expiration_date"] {
    width: 150px;
}

@media (max-width: 767px) {
    input[name="long_url"] {
        width: 100%;
    }
}

h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    color: #333;
    text-align: center;
    margin: 20px 0;
    padding: 10px 0;
    position: relative;
}

/* h2 标签 */
h2::after {
    content: '';
    display: block;
    max-width: 120px;
    height: 3px;
    background-color: #007bff;
    margin: 10px auto 0;
}

.pay-alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.pay-alert.success {
    background-color: #d4edda;
    color: #155724;
}

.pay-alert.error {
    background-color: #f8d7da;
    color: #721c24;
}

.pay-alert.info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* 创建微信分享卡片样式 */
.wechatcard_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.wechatcard_title {
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.wechatcard_error-message {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 布局样式 */
.wechatcard_layout {
    display: flex;
    gap: 2rem;
}

.wechatcard_form-container {
    flex: 1;
    max-width: 600px;
}

.wechatcard_preview-container {
    flex: 1;
    max-width: 500px;
    position: sticky;
    top: 1rem;
    align-self: flex-start;
}

.wechatcard_preview-title {
    color: #666;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

/* 表单样式 */
.wechatcard_form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wechatcard_form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wechatcard_label {
    font-weight: 500;
    color: #555;
}

.wechatcard_input, 
.wechatcard_textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.wechatcard_input:focus, 
.wechatcard_textarea:focus {
    border-color: #07C160;
    outline: none;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.1);
}

.wechatcard_textarea {
    min-height: 100px;
    resize: vertical;
}

.wechatcard_file-input {
    padding: 0.5rem 0;
}

.wechatcard_image-preview {
    margin-top: 0.5rem;
}

.wechatcard_image-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.wechatcard_submit-btn {
    padding: 0.75rem 1.5rem;
    background-color: #07C160;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.wechatcard_submit-btn:hover {
    background-color: #05a14d;
}

/* 预览样式 */
.wechatcard_preview {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wechatcard_preview-card {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wechatcard_preview-image {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wechatcard_preview-image-placeholder {
    color: #999;
    font-size: 0.9rem;
}

.wechatcard_preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wechatcard_preview-content {
    padding: 1rem;
}

.wechatcard_preview-title-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.wechatcard_preview-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.wechatcard_preview-url {
    font-size: 0.8rem;
    color: #07C160;
    margin-top: 0.5rem;
}

.wechatcard_preview-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
}

/* 微信分享预览样式 */
.wechatcard_preview-moment {
    background-color: #f7f7f7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wechatcard_preview-moment-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.wechatcard_preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: #ddd;
    margin-right: 10px;
}

.wechatcard_preview-user {
    font-size: 15px;
    font-weight: 500;
    color: #576b95;
}

.wechatcard_preview-moment-text {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #333;
}

.wechatcard_preview-link {
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    background: #fff;
}

.wechatcard_preview-link-image {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.wechatcard_preview-link-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wechatcard_preview-link-content {
    padding: 8px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.wechatcard_preview-link-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wechatcard_preview-moment-footer {
    margin-top: 10px;
    font-size: 13px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

.wechatcard_preview-like {
    color: #576b95;
}

/* 聊天窗口样式 */
.wechatcard_preview-chat {
    background-color: #eee;
    padding: 15px;
    border-radius: 8px;
}

.wechatcard_preview-chat-bubble {
    background-color: #fff;
    border-radius: 4px;
    padding: 10px;
    max-width: 80%;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.wechatcard_preview-chat-link {
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 80px;
    padding-right: 70px;
}

.wechatcard_preview-chat-text {
    flex: 1;
}

.wechatcard_preview-chat-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60px;
    height: 60px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
}

.wechatcard_preview-chat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wechatcard_preview-chat-content {
    padding-left: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.wechatcard_preview-chat-title {
    font-size: 16px;
    color: #000;
    margin-bottom: 5px;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-all;
}

.wechatcard_preview-chat-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
    word-break: break-all;
}

.wechatcard_preview-chat-url {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wechatcard_preview-image-placeholder {
    color: #999;
    font-size: 12px;
}

.wechatcard_preview-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.wechatcard_preview-avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wechatcard_layout {
        flex-direction: column;
    }
    
    .wechatcard_form-container,
    .wechatcard_preview-container {
        max-width: 100%;
    }
    
    .wechatcard_preview-container {
        position: static;
    }
}

.tab-container {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 10px 20px;
    background: #f1f1f1;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
}

.tab-button:hover {
    background: #ddd;
}

.tab-button.active {
    background: #4CAF50;
    color: white;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
}

.compact-contact {
  font-size: 14px;
  line-height: 1.2;
}

.compact-contact h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
}

.contact-desc {
  margin: 0 0 8px 0;
  color: #666;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
  padding: 0;
}

.contact-item i {
  width: 18px;
  margin-right: 6px;
  text-align: center;
  color: #555;
}

.contact-label {
  display: inline-block;
  min-width: 60px;
  font-weight: bold;
  margin-right: 5px;
}

.contact-item a, 
.contact-item span {
  font-size: 13px;
  color: #333;
}

.contact-item:last-child {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

#batch-results-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-in-out;
}

.result h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
    color: #4CAF50;
    border-left: 5px solid #4CAF50;
    padding-left: 10px;
    font-weight: bold;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

.result-table th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.result-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 350px;
}

.result-table tr:hover {
    background-color: #f9f9f9;
}

.result-table td a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
}

.result-table td a:hover {
    text-decoration: underline;
}

.ellipsis {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-icon {
    font-size: 10px;
    color: white;
    background-color: green;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 20px;
}
    
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.qrcode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background-color: #333333;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

#loading-indicator {
    display: none;
    text-align: center;
    margin: 20px 0;
}

#loading-indicator img {
    width: 50px;
    height: 50px;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
}

.filter-btn svg {
    color: white !important;
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.global-filter-options {
    display: none;
    position: fixed;
    background-color: #fff;
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    border-radius: 4px;
    padding: 5px 0;
    border: 1px solid #eee;
    margin: 0;
    transform: none;
}


.global-filter-options.show {
    display: block;
}

.global-filter-options a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
}

.global-filter-options a:hover {
    background-color: #f5f5f5;
}

.global-filter-options a.active {
    background-color: #e9ecef;
    color: #495057;
    font-weight: bold;
}

.filter-dropdown.show .filter-btn svg {
    transform: rotate(180deg);
}

.filter-indicator {
    color: #28a745;
    margin-left: 5px;
    font-weight: bold;
}

/* 用户中心数据表 */
.dashboard-chart-container {
    margin-top: 40px;
    margin-bottom: 60px;
    height: 300px;
}

.latest-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-table-container {
    margin-top: 40px;
    flex: 1;
    min-width: 300px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-table-container table {
    border: 1px solid #ddd;
    border-collapse: collapse;
    min-width: 100%;
    white-space: nowrap;
}

.dashboard-table-container table th,
.dashboard-table-container table td {
    border-right: 1px solid #ddd;
    padding: 8px 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.dashboard-table-container table th:last-child,
.dashboard-table-container table td:last-child {
    border-right: none;
}

.dashboard-table-container a {
    text-decoration: none;
}

.dashboard-table-container::-webkit-scrollbar {
    height: 6px;
}

.dashboard-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dashboard-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dashboard-table-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

@media (max-width: 768px) {
    .dashboard-table-container {
        flex-basis: 100%;
    }
}

.vip-only {
    color: gray;
    cursor: not-allowed;
}
    
.vip-upgrade-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #e74c3c;
    font-size: 0.8rem;
    text-decoration: none;
}
    
.disabled-field {
    opacity: 0.6;
    pointer-events: none;
}
    
.toast-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
}
    
.vip-upgrade-container {
    margin: 40px auto 0;
    padding: 10px;
    border: 1px solid #e74c3c;
    border-radius: 5px;
    background-color: #ffebee;
    text-align: center;
    max-width: 320px;
}

@media (max-width: 768px) {
    .admin-settings .tabs {
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    
    .admin-settings .tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .admin-settings .tabs .tab {
        display: inline-block;
        float: none;
        margin-right: 8px;
    }
    
    .admin-settings .tab-content form > div {
        flex-direction: column;
    }

    .admin-settings .tab-content form > div > div {
        width: 100%;
        margin-bottom: 20px;
    }
    
    div[style*="width: 48%"] {
        width: 100% !important;
    }
    
    .admin-settings .form-group input[type="text"],
    .admin-settings .form-group input[type="password"],
    .admin-settings .form-group input[type="number"],
    .admin-settings .form-group select,
    .admin-settings .form-group textarea {
        width: 100% !important;
    }
    
    .admin-settings #customer_service .flex.items-center.space-x-2 {
        display: flex;
        align-items: center;
    }
    
    .admin-settings #customer_service #customer_service_color {
        width: 70% !important;
    }
    
    #favicon-display, #logo-display {
        display: block !important;
        margin-top: 5px;
    }
    
    #favicon-preview, #logo-preview {
        margin-left: 0;
        margin-top: 5px;
        display: block;
    }
}

.features-header {
    text-align: center;
    margin-bottom: 50px;
}

.features-header h2 {
    color: #1e293b;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.features-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3B82F6;
    border-radius: 2px;
}

.features-header p {
    font-size: 1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

/* 首页文章 */
.news-container {
    margin: 30px auto;
    padding: 0 0px;
}

.news-header {
    margin-bottom: 25px;
    text-align: center;
}

.news-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.news-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3B82F6;
    border-radius: 2px;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.news-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 20px;
    width: 280px;
    margin: 0 auto;
    border-left: 3px solid #3B82F6;
    border-right: 3px solid #3B82F6;
}

.news-card.sticky {
    border-left-color: #EF4444;
    border-right-color: #EF4444;
}

.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.news-headline {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d3748;
    margin: 0 0 12px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.news-card:hover .news-headline {
    color: #3B82F6;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b7280;
}

.news-date {
    opacity: 0.8;
}

.news-badge {
    background: #EF4444;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 1rem;
}

@media (min-width: 1024px) {
    .news-list {
        grid-template-columns: repeat(4, minmax(250px, 1fr));
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .news-list {
        grid-template-columns: repeat(3, minmax(250px, 1fr));
    }
}

@media (max-width: 767px) {
    .news-container {
        padding: 0 15px;
    }
    
    .news-header {
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .news-title {
        font-size: 1.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: block;
        padding-bottom: 8px;
    }
    
    .news-title:after {
        position: static;
        left: 0;
        transform: none;
        width: 40px;
    }
    
    .news-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    
    .news-card {
        max-width: 100%;
        padding: 6px;
    }
    
    .news-headline {
        font-size: 0.95rem;
    }
    
    .news-meta {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .news-title {
        font-size: 1.3rem;
        padding: 0 5px 8px;
    }
    
    .news-list {
        gap: 10px;
    }
    
    .news-card {
        padding: 12px 10px;
    }
    
    .news-headline {
        font-size: 0.9rem;
    }
}

.premium-showcase {
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 30px;
}

.premium-header {
    text-align: center;
    margin-bottom: 3rem;
}

.premium-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0.8rem;
}

.premium-header p {
    color: #64748B;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.premium-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.premium-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.premium-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.icon-blue {
    background: #EEF2FF;
}

.icon-blue i {
    font-size: 1.5rem;
    color: #3B82F6;
}

.icon-green {
    background: #F0FDF4;
}

.icon-green i {
    font-size: 1.5rem;
    color: #10B981;
}

.icon-orange {
    background: #FFF6ED;
}

.icon-orange i {
    font-size: 1.5rem;
    color: #F97316;
}

.premium-card h3 {
    font-size: 1.25rem;
    color: #1E293B;
    font-weight: 600;
    margin: 0;
}

.premium-card p {
    color: #64748B;
    line-height: 1.6;
}

.premium-stats {
    margin-top: 3rem;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    border-radius: 12px;
    padding: 2rem 5%;
    box-sizing: border-box;
    color: #FFFFFF;
}

.home-stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.home-stat-item {
    margin: 0;
    padding: 0.5rem;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.home-stat-label {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .premium-showcase {
        margin: 0.5rem auto 0 auto;
        padding: 0 1rem;
    }
    
    .premium-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .premium-header p {
        font-size: 0.95rem;
    }
    
    .premium-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .premium-card {
        border-radius: 10px;
        padding: 1.5rem;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    }
    
    .card-header {
        margin-bottom: 1rem;
    }
    
    .premium-icon {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        margin-right: 1rem;
    }
    
    .icon-blue i, 
    .icon-green i, 
    .icon-orange i {
        font-size: 1.25rem;
    }
    
    .premium-card h3 {
        font-size: 1.1rem;
    }
    
    .premium-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .premium-stats {
        margin-top: 3rem;
        border-radius: 12px;
        padding: 2rem 1.5rem;
    }
    
    .home-stats-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .home-stat-item {
        margin: 0;
    }
    
    .home-stat-value {
        font-size: 1.75rem;
        margin-bottom: 0.3rem;
    }
    
    .home-stat-label {
        font-size: 0.9rem;
    }
}

.form-custom-error {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #fff;
    color: #c62828;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #ffcdd2;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    max-width: 250px;
}

.form-custom-error.show {
    opacity: 1;
    transform: translateY(0);
}

.error-icon {
    width: 16px;
    height: 16px;
    background-color: #f44336;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    margin-right: 8px;
    font-weight: bold;
    font-size: 11px;
    flex-shrink: 0;
}

.error-text {
    flex: 1;
    word-break: break-word;
}

input.error, textarea.error {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.form-custom-error::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-bottom: 8px solid #ffcdd2;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    z-index: 1;
}

.form-custom-error::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% - 1px);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-bottom: 7px solid #fff;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    z-index: 2;
}

.notification-container {
    position: fixed;
    right: 20px;
    top: 80px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-notification {
    background: linear-gradient(135deg, #ff4d4d, #f56c6c);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    max-width: calc(100%);
}

.message-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.message-content {
    display: flex;
    align-items: center;
    font-size: 14px;
    width: 100%;
}

.message-badge {
    background: white;
    color: #ff9500;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

.message-close-btn {
    margin-left: 15px;
    font-size: 18px;
    font-weight: bold;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.message-close-btn:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .notification-container {
        right: 10px;
        top: 80px;
        max-width: calc(100%);
    }
    
    .message-notification {
        padding: 10px 15px;
    }
    
    .message-badge {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .message-content {
        font-size: 13px;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-3px); }
    40%, 80% { transform: translateX(3px); }
}

.message-notification:hover {
    animation: shake 0.5s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.refresh-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.refresh-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.refresh-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(59, 130, 246, 0.2);
}

.refresh-icon {
    display: flex;
    align-items: center;
    margin-right: 8px;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
}

.refresh-btn.loading .refresh-icon {
    animation: spin 1s linear infinite;
}

.refresh-text {
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

.refresh-btn.loading .refresh-text {
    opacity: 0.8;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.d-flex.justify-content-between.align-items-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

@media (max-width: 768px) {
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: flex-start;
    }
}

.refresh-btn.loading svg {
    animation: spin 1s linear infinite;
}

.refresh-btn.success {
    background: linear-gradient(135deg, #28a745, #218838) !important;
}

.refresh-btn.error {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    animation: shake 0.5s;
}

.refresh-btn.success svg,
.refresh-btn.error svg {
    animation: none !important;
}

.error-content {
    margin: 15px 0;
    text-align: center;
}

.error-message {
    color: #d32f2f;
    font-size: 16px;
    margin-bottom: 20px;
}

.error-action-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: red;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.error-action-button:hover {
    background-color: #ff4d4f;
}

.add-location, 
.remove-location,
.add-device,
.remove-device,
.add-app,
.add-url,
.remove-url,
.remove-app {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.add-location,
.add-device,
.add-url,
.add-app {
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.remove-location,
.remove-device,
.remove-url,
.remove-app {
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.add-location:hover,
.remove-location:hover,
.add-device:hover,
.remove-device:hover,
.add-app:hover,
.remove-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.add-location:active,
.remove-location:active,
.add-device:active,
.remove-device:active,
.add-app:active,
.remove-app:active {
    transform: translateY(0);
}

.location-device-wrapper {
    display: flex;
    gap: 20px;
}

.location-group, .device-group {
    flex: 1;
}

.location-row, .device-row, .app-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .location-device-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .location-row, .device-row, .app-row {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .location-row select, 
    .device-row select,
    .location-row input,
    .device-row input,
    .app-row select,
    .app-row input {
        width: 100%;
    }
    
    .location-row button,
    .device-row button,
    .app-row button {
        align-self: flex-start;
    }
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 280px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 用户菜单 */
@media (max-width: 768px) {
    .desktop-menu-item {
        display: none !important;
    }
    
    .mobile-user-menu {
        display: block !important;
        margin-left: auto;
    }
    
    .user-dropdown {
        position: relative;
        display: inline-block;
        padding: 5px 0;
    }
    
    .user-avatar-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        padding: 5px 10px;
        border-radius: 20px;
        transition: background 0.3s;
    }
    
    .user-avatar-wrapper:hover {
        background: rgba(0,0,0,0.05);
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .dropdown-arrow {
        font-size: 12px;
        color: #fff;
        transition: transform 0.3s;
    }
    
    .user-dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .dropdown-content {
        display: none;
        position: absolute;
        right: 0;
        background: #fff;
        width: max-content;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-radius: 8px;
        padding: 8px 0;
        z-index: 1000;
        border: 1px solid #eee;
        height: auto !important;
        max-height: 80vh;
        overflow-y: auto;
    }

    .logged-in .dropdown-content li::after,
    .logged-in .mobile-user-menu::after {
        content: none !important;
        display: none !important;
    }
    
    .all-devices-menu-item {
        display: block !important;
    }
    
    .dropdown-content li {
        margin-top: 0px !important;
        margin-bottom: 0px !important;
        padding: 0px 16px !important;
    }
    
    .dropdown-content li a {
        display: flex;
        align-items: center;
        padding: 10px 16px;
        color: #333;
        font-size: 16px;
        gap: 10px;
        transition: background 0.2s;
    }
    
    .dropdown-content li a:hover {
        background: #f7f7f7;
        color: #1677ff;
    }
    
    .dropdown-content li a i {
        width: 18px;
        text-align: center;
    }

    .user-dropdown:hover .dropdown-content {
        display: block;
    }
    
    .arrow-container {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 5px;
        transition: all 0.3s ease;
    }

    .user-avatar-wrapper:hover .arrow-container {
        background: rgba(255,255,255,0.3);
    }
}

@media (min-width: 769px) {
    .mobile-user-menu {
        display: none !important;
    }
    
    .desktop-menu-item {
        display: list-item !important;
    }
}

.hero-section {
    text-align: center;
}

.hero-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.gradient-text {
    background: linear-gradient(45deg, #3498db, #9b59b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.title-badge {
    position: absolute;
    top: -8px;
    right: -25px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 20px;
    transform: rotate(15deg);
}

.hero-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0px;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 0.8rem 0;
}

.pill {
    padding: 0.3rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
    
    color: #2c3e50;
    
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    
    transition: all 0.25s ease;
}

.pill:nth-child(4n+1) {
    background-color: #f0f6ff;
    border-color: #d6e4ff;
    color: #3a6bb7;
}

.pill:nth-child(4n+2) {
    background-color: #f5f3ff;
    border-color: #e5dbff;
    color: #6741d9;
}

.pill:nth-child(4n+3) {
    background-color: #fff4f6;
    border-color: #ffdeeb;
    color: #d6336c;
}

.pill:nth-child(4n+4) {
    background-color: #f0fdf4;
    border-color: #dcfce7;
    color: #15803d;
}

.pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    border-color: #ced4da;
}

.pill:active {
    transform: translateY(0);
    box-shadow: none;
}

@media (min-width: 768px) {
    .hero-section {
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-badge {
        top: -10px;
        right: -30px;
        font-size: 0.8rem;
        padding: 2px 8px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        flex-direction: row;
        justify-content: center;
    }
    
    .feature-pills {
        margin-left: 1rem;
        flex-wrap: nowrap;
    }
    
    .pill {
        padding: 0.2rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .title-badge {
        right: -20px;
        font-size: 0.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .pill {
        font-size: 0.7rem;
        padding: 0.1rem 0.5rem;
    }
}

/* 优惠券信息 */
.upgrade-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    overflow: auto;
}

.upgrade-modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    margin: 0 !important;
    overflow-y: auto;
    position: absolute;
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translate(-50%, -55%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

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

.upgrade-modal-header h3 {
    margin: 0;
}

.upgrade-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.upgrade-close:hover {
    color: black;
}

.upgrade-modal-body {
    padding: 15px 0;
    max-height: 60vh;
    overflow-y: auto;
}

#upgrade-coupons-list tr {
    border-bottom: 1px solid #eee;
}

#upgrade-coupons-list tr:last-child {
    border-bottom: none;
}

#upgrade-coupons-list td {
    padding: 10px;
}

.coupon-info-container {
    display: flex;
    flex-direction: column;
}

.coupon-code {
    font-weight: bold;
    font-size: 14px;
}

.coupon-type {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.coupon-type.no-threshold {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.coupon-type.threshold-money {
    background-color: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.coupon-type.threshold-month {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

#upgrade-coupons-list td {
    padding: 12px;
    vertical-align: middle;
}

.coupon-banner {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 10px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 999;
    width: 200px;
    text-align: center;
    animation: floatBanner 3s ease-in-out infinite;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
}

.coupon-banner:hover {
    animation: none;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.coupon-banner .title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    margin-top: 8px;
    display: flex;
    margin-right: 8px;
    align-items: center;
    justify-content: center;
}

.coupon-banner .title i {
    margin-right: 8px;
    color: #FFD700;
}

.coupon-banner .desc {
    font-size: 14px;
    opacity: 0.9;
}

.coupon-banner .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s;
}

.coupon-banner .btn:hover {
    background: rgba(255,255,255,0.3);
}

.coupon-banner .close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;  /* 增大点击区域 */
    height: 30px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px; /* 增加内边距使点击更容易 */
    margin: -5px -5px 0 0; /* 轻微外移 */
}

.coupon-banner .close-btn:hover {
    opacity: 1;
}

@keyframes floatBanner {
    0% { transform: translateY(-50%); }
    50% { transform: translateY(-55%); }
    100% { transform: translateY(-50%); }
}

@media (max-width: 1200px) {
    .coupon-banner {
        right: 10px;
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .coupon-banner {
        position: fixed;
        right: 10px;
        bottom: 15%;
        top: auto;
        transform: none;
        width: 200px;
        animation: floatBannerMobile 3s ease-in-out infinite;
    }
    
    .coupon-banner:hover {
        animation: floatBannerMobile 3s ease-in-out infinite;
        transform: none;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    }
    
    .coupon-banner .close-btn {
        width: 28px;
        height: 28px;
        font-size: 24px;
        padding: 6px;
        margin: -6px -6px 0 0;
    }
    
    @keyframes floatBannerMobile {
        0% { transform: translateY(0); }
        50% { transform: translateY(-5px); }
        100% { transform: translateY(0); }
    }
}

@media (max-width: 480px) {
    .coupon-banner {
        max-width: 200px;
        padding: 6px 8px;
    }
    
    .coupon-banner .close-btn {
        width: 26px;
        height: 26px;
        font-size: 24px;
        padding: 7px;
        margin: -7px -7px 0 0;
    }
}

.order-button-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.order-dropdown {
    position: relative;
    display: inline-block;
}

.order-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 230px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0;
}

.order-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.order-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.order-dropdown:hover .order-dropdown-content {
    display: block;
}