        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        :root {
            --primary: #3b82f6;
            --primary-hover: #2563eb;
            --secondary: #6366f1;
            --secondary-hover: #4f46e5;
            --accent: #f97316;
            --accent-hover: #ea580c;
            --success: #10b981;
            --success-hover: #059669;
            --danger: #ef4444;
            --danger-hover: #dc2626;
            --dark: #1e293b;
            --light: #f8fafc;
            --gray-200: #e5e7eb;
            --gray-300: #d1d5db;
            --gray-700: #374151;
            --gray-800: #1f2937;
            --white: #ffffff;
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            --rounded-sm: 0.125rem;
            --rounded: 0.375rem;
            --rounded-md: 0.5rem;
            --rounded-lg: 0.75rem;
            --rounded-xl: 1rem;
            --rounded-2xl: 1.5rem;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #f8fafc, #e2e8f0);
            color: var(--gray-800);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            line-height: 1.6;
        }
        

       a.logo1:link, a.logo1:visited, a.logo1:hover { FONT-SIZE: 20px; color: #fff;text-decoration:none; } 

        /* 导航栏样式 */
        nav {
            background-color: var(--dark);
            color: var(--white);
            box-shadow: var(--shadow-md);
            position: sticky;
            top: 0;
            z-index: 50;
            transition: all 0.3s ease;
        }
        
        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0.75rem 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.25rem;
            font-weight: 700;
        }
        
        .logo i {
            color: var(--primary);
            font-size: 1.5rem;
        }
        
        .desktop-nav {
            display: flex;
        }
        
        .desktop-nav ul {
            display: flex;
            gap: 1.5rem;
            list-style: none;
        }
        
        .desktop-nav a {
            color: var(--white);
            text-decoration: none;
            transition: color 0.2s ease;
            padding: 0.5rem 0;
            font-size: 1rem;
        }
        
        .desktop-nav a:hover {
            color: var(--primary);
        }
        
        .menu-toggle {
            background: none;
            border: none;
            color: var(--white);
            font-size: 1.25rem;
            cursor: pointer;
            display: none;
        }
        
        .mobile-menu {
            max-height: 0;
            overflow: hidden;
            background-color: rgba(30, 41, 59, 0.95);
            backdrop-filter: blur(10px);
            transition: max-height 0.3s ease;
        }
        
        .mobile-menu.active {
            max-height: 500px;
        }
        
        .mobile-menu ul {
            list-style: none;
            padding: 1rem;
        }
        
        .mobile-menu li {
            padding: 0.5rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .mobile-menu a {
            color: var(--white);
            text-decoration: none;
            display: block;
            padding: 0.5rem 0;
            transition: color 0.2s ease;
        }
        
        .mobile-menu a:hover {
            color: var(--primary);
        }
        
        /* 主内容区 */
        main {
            flex: 1;
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem 1rem;
            width: 100%;
        }
        
        .tool-card {
            background-color: var(--white);
            border-radius: var(--rounded-2xl);
            box-shadow: var(--shadow-lg);
            padding: 1.5rem;
            margin-bottom: 2rem;
            transition: all 0.3s ease;
        }
        
        .tool-card:hover {
            box-shadow: var(--shadow-xl);
            transform: translateY(-2px);
        }
        
        .tool-title {
            font-size: clamp(1.5rem, 3vw, 2.5rem);
            font-weight: 700;
            text-align: center;
            color: var(--dark);
            margin-bottom: 1.5rem;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
        }
        
        .tool-title i {
            color: var(--primary);
        }
        
        /* 文本处理区域 */
        .text-processing {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        @media (min-width: 992px) {
            .text-processing {
                grid-template-columns: 1fr 1fr;
            }
        }
        
        .text-area {
            display: flex;
            flex-direction: column;
        }
        
        .text-area label {
            font-size: 1.125rem;
            font-weight: 500;
            color: var(--gray-700);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .text-area label i {
            color: var(--primary);
        }
        
        .output-label i {
            color: var(--secondary) !important;
        }
        
        textarea {
            flex: 1;
            width: 100%;
            padding: 1rem;
            border: 2px solid var(--gray-200);
            border-radius: var(--rounded-xl);
            font-family: inherit;
            font-size: 1rem;
            resize: none;
            transition: all 0.2s ease;
            background-color: #fff;
        }
        
        textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }
        
        #inputText {
            min-height: 450px;
        }
        
        #outputText {
            background-color: #f9fafb;
            min-height: 450px;
            cursor: not-allowed;
        }

        #inputText2 {
            min-height: 350px;
        }
        
        #outputText2 {
            background-color: #f9fafb;
            min-height: 350px;
            cursor: not-allowed;
        }
        
        /* 按钮区域 */
        .button-group {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.75rem 1.5rem;
            font-size: 1rem;
            font-weight: 500;
            border-radius: var(--rounded-lg);
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: var(--shadow-md);
        }
        
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        
        .btn-primary {
            background-color: var(--primary);
            color: var(--white);
        }
        
        .btn-primary:hover {
            background-color: var(--primary-hover);
        }
        
        .btn-secondary {
            background-color: var(--secondary);
            color: var(--white);
        }
        
        .btn-secondary:hover {
            background-color: var(--secondary-hover);
        }
        
        .btn-success {
            background-color: var(--success);
            color: var(--white);
        }
        
        .btn-success:hover {
            background-color: var(--success-hover);
        }
        
        .btn-danger {
            background-color: var(--danger);
            color: var(--white);
        }
        
        .btn-danger:hover {
            background-color: var(--danger-hover);
        }
        
        .btn i {
            margin-right: 0.5rem;
        }
        
        /* 消息提示 */
        .result-message {
            margin-top: 1rem;
            padding: 0.75rem;
            border-radius: var(--rounded);
            text-align: center;
            transition: all 0.3s ease;
            display: none;
            font-weight: 500;
        }
        
        .message-success {
            background-color: rgba(16, 185, 129, 0.1);
            color: var(--success);
            display: block;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }
        
        .message-warning {
            background-color: rgba(249, 115, 22, 0.1);
            color: var(--accent);
            display: block;
            border: 1px solid rgba(249, 115, 22, 0.3);
        }
        
        .message-error {
            background-color: rgba(239, 68, 68, 0.1);
            color: var(--danger);
            display: block;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }
        
        .message-info {
            background-color: rgba(59, 130, 246, 0.1);
            color: var(--primary);
            display: block;
            border: 1px solid rgba(59, 130, 246, 0.3);
        }
        

        .link-section {
            gap: 2rem;
            margin-top: 2rem;
        }


A.xx:link , A.xx:visited, A.xx:hover   {FONT-SIZE: 16px; COLOR: #333333;  TEXT-DECORATION: none;}

A.index_main2:link , A.index_main2:visited {FONT-SIZE: 14px; COLOR: #1f51a1; FONT-FAMILY: 微软雅黑,Verdana, Arial, sans-serif; TEXT-DECORATION: none;}
A.index_main2:hover   {FONT-SIZE: 14px; COLOR: #da251d; FONT-FAMILY: 微软雅黑,Verdana, Arial, sans-serif; TEXT-DECORATION: none;}

A.end2:link , A.end2:visited, A.end2:hover   {FONT-SIZE: 14px; COLOR: #fff; FONT-FAMILY: 微软雅黑,Verdana, Arial, sans-serif; TEXT-DECORATION: none;}

        /* 文章区域 */
        .articles-section {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            margin-top: 2rem;
        }
        
        @media (min-width: 768px) {
            .articles-section {
                grid-template-columns: 1fr 1fr;
            }
        }
        
        .article-card {
            background-color: var(--white);
            border-radius: var(--rounded-2xl);
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .article-card:hover {
            box-shadow: var(--shadow-xl);
            transform: translateY(-2px);
        }
        
        .article-header {
            padding: 1rem;
            background-color: rgba(249, 115, 22, 0.1);
        }
        
        .article-header-primary {
            background-color: rgba(59, 130, 246, 0.1) !important;
        }
        
        .article-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .article-title i {
            color: var(--accent);
        }
        
        .article-title-primary i {
            color: var(--primary) !important;
        }
        
        .article-content {
            padding: 1rem;
        }
        
        .article-list {
            list-style: none;
        }
        
        .article-list li {
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--gray-200);
            margin-bottom: 0.75rem;
        }
        
        .article-list li:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        
        .article-link {
            display: flex;
            align-items: flex-start;
            color: var(--gray-800);
            text-decoration: none;
            transition: all 0.2s ease;
        }
        
        .article-link:hover {
            color: var(--primary);
        }
        
        .article-link i {
            color: var(--accent);
            margin-top: 0.25rem;
            margin-right: 0.5rem;
            transition: transform 0.2s ease;
        }
        
        .article-link-primary i {
            color: var(--primary) !important;
        }
        
        .article-link:hover i {
            transform: translateX(3px);
        }
        
        /* 页脚 */
        footer {
            background-color: var(--dark);
            color: var(--white);
            margin-top: auto;
            padding-top: 3rem;
        }
        
        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }
        
        @media (min-width: 768px) {
            .footer-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        .footer-section h4 {
            font-size: 1.125rem;
            font-weight: 700;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .footer-section h4 i {
            color: var(--primary);
        }
        
        .footer-section p {
            color: var(--gray-300);
            margin-bottom: 1rem;
        }
        
        .link-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }
        
        .footer-link {
            color: var(--gray-300);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: color 0.2s ease;
            font-size: 0.875rem;
        }
        
        .footer-link:hover {
            color: var(--primary);
        }
        
        .footer-link i {
            font-size: 0.75rem;
        }
        
        .contact-list {
            list-style: none;
        }
        
        .contact-list li {
            display: flex;
            align-items: flex-start;
            margin-bottom: 0.75rem;
            color: var(--gray-300);
        }
        
        .contact-list i {
            color: var(--primary);
            margin-top: 0.25rem;
            margin-right: 0.75rem;
        }
        
        .contact-list a {
            color: var(--gray-300);
            text-decoration: none;
            transition: color 0.2s ease;
        }
        
        .contact-list a:hover {
            color: var(--primary);
        }
        
        .copyright {
            border-top: 1px solid var(--gray-700);
            margin-top: 2rem;
            padding-top: 1.5rem;
            text-align: center;
            color: var(--gray-400);
            font-size: 0.875rem;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .menu-toggle {
                display: block;
            }
            
            .desktop-nav {
                display: none;
            }
            
            .button-group {
                flex-direction: column;
                width: 100%;
            }
            
            .btn {
                width: 100%;
            }
        }



        /* 替换控制区域 */
        .replace-controls {
            background-color: rgba(249, 115, 22, 0.05);
            border-radius: var(--rounded-xl);
            padding: 1.5rem;
            margin: 1.5rem 0;
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.2rem;
        }
        
        @media (min-width: 768px) {
            .replace-controls {
                grid-template-columns: 1fr auto 1fr;
            }
        }
        
        .replace-group {
            display: flex;
            flex-direction: column;
        }
        
        .replace-group label {
            font-weight: 500;
            margin-bottom: 0.5rem;
            color: var(--gray-700);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .replace-group input {
            padding: 0.8rem 1rem;
            border: 2px solid var(--gray-200);
            border-radius: var(--rounded-lg);
            font-size: 1rem;
            transition: all 0.2s ease;
        }
        
        .replace-group input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }
        
        .replace-arrow {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .replace-arrow i {
            font-size: 2rem;
            color: var(--accent);
        }
        
        .replace-options {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 0.5rem;
        }
        
        .option-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
        }
        

        .btn-accent {
            background-color: var(--accent);
            color: var(--white);
        }
        
        .btn-accent:hover {
            background-color: var(--accent-hover);
        }


        /* 替换统计 */
        .replace-stats {
            display: flex;
            justify-content: space-around;
            margin-top: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .stat-card {
            background: white;
            border-radius: var(--rounded-xl);
            padding: 1rem 1.5rem;
            text-align: center;
            box-shadow: var(--shadow-sm);
            min-width: 150px;
        }
        
        .stat-value {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--primary);
        }
        
        .stat-label {
            font-size: 0.9rem;
            color: var(--gray-600);
        }
        
            
            .replace-controls {
                grid-template-columns: 1fr;
            }
            
            .replace-arrow {
                transform: rotate(90deg);
                padding: 1rem 0;
            }

/* 字符统计 去重 区块css*/
.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 两列等宽 */
  gap: 1.5rem; /* 区块间距 */
  margin-top: 2rem;
}

.grid-item {
  background-color: #f8f9fa; /* 浅灰色背景 */
  padding: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 轻微阴影增加层次感 */
  text-align: center;
}

.item-title {
  font-size: 1rem;
  color: #666; /* 标题文字颜色 */
  margin-bottom: 0.5rem;
}

.item-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1a73e8; /* 蓝色数字 */
}



     .input-group {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
        }
        
        @media (max-width: 600px) {
            .input-group {
                flex-direction: column;
            }
        }

        .input-field {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            outline: none;
            background: #fafafa;
            color: #333;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }
        
        .input-field:focus {
            border-color: #3498db;
            background: #fff;
            box-shadow: 0 6px 12px rgba(52, 152, 219, 0.2);
        }
        
        .input-field::placeholder {
            color: #95a5a6;
            font-weight: 300;
        }