body {
	background-color: #141528 !important;
	rgb(20, 21, 40) !important;
}
.page-header h1 {
	color: #CCCCCC !important;
}
	
.internet-speed-test-container {
	background: #141528;
	width: 100%;
	margin: 1em auto;
	margin-left: 0;
	margin-right: 0;
	border-radius: 4px;
	/*padding: 3em 1em;*/
	user-select: none;
}

.intro {
	padding:30px 0;
	text-align:center;
}

.intro p {
	font-size:1em;
	color: #F1F1F1;
	padding: 45px 0 15px 0;
}

.outro {
  display: grid;
  grid-template-columns: 29% auto;
  /*grid-gap: 10px;*/
  background-color: #fff;
  border-top: 1px solid #c6c6c6;
  padding-top: 1em;
  color: #444;
  margin-top:1em;
   margin-bottom:1em;
   border-radius: 4px;
}

/* 868 */
@media (min-width: 181px) and (max-width: 868px) {
	.outro {
	  display: grid;
	  grid-template-columns: 90%;
	} 
}

.partone img{
  text-align:right;
}

.outro p {
	font-size:1em;
	letter-spacing: 2px;
	padding:1em;
	text-align: justify;
}


/*
#startStopBtn{
    width: 180px;
    height: 180px;
	margin: 1em;
    border-radius: 50%;
    border: 2px solid #0ebac5;
    display: flex;
    justify-content: center;
    align-items: center;
	font-size: 28px;
	color: #ffffff;*/
		
	/* Smoothly animates the color change over 5 seconds indefinitely */
	/*animation: changeColor 5s infinite linear; */
		
	/* Disable the focus outline (focus ring) applied by the browser */
	/*outline: none !important;
    box-shadow: none !important;
    user-select: none;
	
    transition: all 500ms ease;	
}

#startStopBtn:focus {
    outline: none !important;
    box-shadow: none !important;
    caret-color: transparent;
}

@keyframes changeColor {
  0%   { border-color: #ff0000; }*/ /* Red */
  /*33%  { border-color: #00ff00; } *//* Green */
  /*66%  { border-color: #0000ff; }*/ /* Blue */
  /*100% { border-color: #ff0000; } *//* Loop back to Red */
/*}

#startStopBtn:hover{
	box-shadow: 0 0 20px #0ebac5;
	cursor: pointer;
	transition: all 0.3s ease-in;
}

#startStopBtn:hover,
#startStopBtn.is-clicked {
	animation: none; 
}

#startStopBtn.running{
	border-color:#c63b1f;
	color:#FFFFFF;
}
#startStopBtn:before{
	content:"GO";
}

#startStopBtn:hover::before{
	content:"GO";
	padding: 15px;
	border-radius: 50%;
	box-shadow: 0 0 20px #0ebac5;
}
#startStopBtn.running:before{
	content:"Testing...";
}*/

/* Begin goTestingBtn */
#goTestingBtn {
    width: 180px;
    height: 180px;
    margin: 1em;
    border-radius: 50%;
    
    /* Sleek translucent center to blend over your #141528 dark canvas page */
    background: radial-gradient(circle, rgba(20, 21, 40, 0.9) 0%, rgba(14, 15, 29, 0.95) 70%);
    
    /* Clean high-tech border frame foundation */
    border: 2px solid rgba(14, 186, 197, 0.4);
    
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px; /* Crisper footprint for data density */
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    
    /* Smooth transition matrix across all interactive states */
    transition: all 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Interactive mechanics */
    outline: none !important;
    box-shadow: 0 0 15px rgba(14, 186, 197, 0.15);
    user-select: none;
    position: relative;
    
    /* Futuristic ambient heartbeat animation while sitting idle ready to test */
    animation: techPulse 2.5s infinite ease-in-out;
}

#goTestingBtn:focus {
    outline: none !important;
    box-shadow: none !important;
    caret-color: transparent;
}

/* --- High-Tech Interactive Hover State --- */
#goTestingBtn:hover {
    cursor: pointer;
    border-color: #0ebac5;
    color: #0ebac5;
    box-shadow: 0 0 30px rgba(14, 186, 197, 0.6), inset 0 0 15px rgba(14, 186, 197, 0.2);
    animation: none; /* Suspends structural pulse on mouse lock */
    transform: scale(1.03); /* Subtle energetic click tension expansion */
}

/* --- Active Live Execution / 'Testing...' State --- */
#goTestingBtn.running {
    border-color: #f1c40f;
    color: #f1c40f;
    /* Uses an alert golden-orange warning glow pattern while actively tracking data streams */
    box-shadow: 0 0 35px rgba(241, 196, 15, 0.5), inset 0 0 20px rgba(241, 196, 15, 0.15);
    animation: activeDataStream 1.5s infinite linear; /* Fast kinetic rhythm */
}

/* --- Core Dynamic Text Content Management --- */
#goTestingBtn::before {
    content: "开始测试";
    transition: all 0.3s ease;
}

#goTestingBtn.running::before {
    content: "正在测试......";
    font-size: 20px; /* Scales down layout footprint gracefully for longer word length */
    letter-spacing: 0.04em;
}

#goTestingBtn.running:hover::before {
    content: "正在测试......";
    font-size: 20px; /* Scales down layout footprint gracefully for longer word length */
    letter-spacing: 0.04em;
	box-shadow: 0 0 20px #f1c40f;
}

/* Cleaned up duplicate hover rules to prevent layout jumping effects */
#goTestingBtn:hover::before{
	padding: 15px;
	border-radius: 50%;
	box-shadow: 0 0 20px #0ebac5;
}


/* --- Premium Telemetry Keyframe Animations --- */

/* Ambient idle heartbeat pulse */
@keyframes techPulse {
    0% {
        box-shadow: 0 0 15px rgba(14, 186, 197, 0.2), inset 0 0 5px rgba(14, 186, 197, 0.05);
        border-color: rgba(14, 186, 197, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(14, 186, 197, 0.45), inset 0 0 15px rgba(14, 186, 197, 0.15);
        border-color: rgba(14, 186, 197, 0.9);
    }
    100% {
        box-shadow: 0 0 15px rgba(14, 186, 197, 0.2), inset 0 0 5px rgba(14, 186, 197, 0.05);
        border-color: rgba(14, 186, 197, 0.4);
    }
}

/* Active running loop simulating data capture friction */
@keyframes activeDataStream {
    0% {
        box-shadow: 0 0 20px rgba(241, 196, 15, 0.4), inset 0 0 10px rgba(241, 196, 15, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(241, 196, 15, 0.7), inset 0 0 25px rgba(241, 196, 15, 0.3);
        opacity: 0.9;
    }
    100% {
        box-shadow: 0 0 20px rgba(241, 196, 15, 0.4), inset 0 0 10px rgba(241, 196, 15, 0.1);
    }
}
/* End of goTestingBtn */












#test{
	margin-top:6em;
	margin-bottom:2em;
	text-align: center;
}
div.testArea {
	display: inline-block;
	width: 17em;
	height: 12.5em;
	position: relative;
	box-sizing: border-box;
}
div.testName{
	position: absolute;
	top:-5em; left:0;
	width: 100%;
	font-size: 1em;
	background: #383c50;
	border-radius: 0.3em;
	padding: 0.3em;
	letter-spacing: 2px;
	color: #eeeeee;
	user-select: none;
	z-index: 9;
	
}
div.iconTest {
	background: -webkit-linear-gradient(#eee, #333);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	position:absolute;
	top:-0.7em; left:0;
	width:100%;
	font-size:2em;
	color:#eeeeee !important;
	user-select: none;
	z-index:9;
}
.testArea .icontest {
	 color: #cccccc;
}

div.meterText{
	position:absolute;
	bottom:2.2em; left:30%;
	width:40%;
	font-size:1.55em;
	color:#ffffff !important;
	/*background-color: #55be00;*/
	border-radius:0.3em;
	user-select: none;
	padding:0.2em;
	z-index:9;
}
	
div.meterText:empty:before{
	content:"0.00";
}
div.unit{
	position:absolute;
	bottom:2em; left:0;
	width:100%;
	color: #cccccc;
	user-select: none;
	z-index:9;
}
div.testArea canvas{
	position:absolute;
	top:20px; left:0; width:100%; height:100%;
	z-index:1;
}
div.testGroup{
	display:inline-block;
	height: 15em;
}

@media (min-width: 560px) and (max-width: 1224px) {

	#test{
		margin-top:6em;
		margin-bottom:1em;
		text-align: center;
	}
	div.testArea {
		width:17em;
		height:12.5em;
	}
	div.testGroup{
		display:inline-block;
		height:12.5em;
		position:relative;
		box-sizing:border-box;
		margin-bottom:6em;
	}
}

@media (min-width: 10px) and (max-width: 615px) {
	div.testName {
		position: absolute;
		top: -60px;
		left: 0;
		width: 100%;
		font-size: 1em;
		background: #383c50;
		border-radius: 0.3em;
		padding: 0.3em;
		letter-spacing: 2px;
		color: #eeeeee;
		z-index: 9;
	}

	div.testArea canvas {
		position: absolute;
		top: 20px;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 1;
	}

	#test{
		margin-top: 6em;
		margin-bottom:1em;
		text-align: center;
	}
	div.testArea {
		width: 17em;
		height: 12.5em;
		margin-bottom: 40px;
	}
	div.testGroup{
		display: inline-block;
		height: 12.5em;
		position: relative;
		box-sizing: border-box;
		margin-bottom: 18em;
	}
}

.fbdiv a { 
  background-color: rgb(60, 90, 153); 
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  width: 100%;
  border-radius: 4px;
}

#counter-area {
	padding: 2px;
	background-color: rgba(205, 204, 204, 0.19);
	border-radius: 2px;
	width: 300px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	width: 100%;
}

#counter-winkey {
	color: white;
	background-color: #db8002;
	padding: 3px 9px;
	border-radius: 5px;
}

.fa-gradient {
	background: linear-gradient(to bottom, #1db6ff 0%, #6ae8f5 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Apply the gradient */
.gradient-background {
	border-top: 1px solid;
    border-image: linear-gradient(to right,#1db6ff,#2de4d1) 1 0 0 0;
}


var dlColor = "linear-gradient(to right, #1db6ff, #ff7e5f)";

/* Speed Test */

.quality-row p {
  /* color: #f5f5f5;*/
	height: 20px;
	line-height: 1.5;
    margin: 1px 0; 
}
#dlQuality,
#ulQuality,
#pingQuality,
#jitterQuality {
   /* color: #f5f5f5;*/
}


/*.quality-row #ipArea, .quality-row #ispArea {*/
.pr-content-col #ipArea, .pr-content-col #ispArea {
	color: #f5f5f5 !important;
	user-select: none;
	transition: opacity 0.6s ease-in;
}


/* Connection Score */
/*
.connection-score-box {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    background: #0E0F1D;
    color: #ffffff;
    border-left: 4px solid #ED2228;*/ /* PlateRiver.NET red */
/*}

.connection-score-box h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
}

.connection-score-box p {
    margin: 4px 0;
    font-size: 15px;
    overflow-wrap: break-word;
    word-break: break-word;
}*/
/* --- Refined High-Tech Connection Score Box --- */
/*meter-scale-box {*/
.meter-scale-box {
    margin-top: 60px;
    padding: 16px 20px;       /* Slightly more breathing room for a premium layout */
    border-radius: 12px;       /* Matches modern dashboard design curves */
    background: linear-gradient(135deg, rgba(14, 15, 29, 0.7), rgba(20, 21, 40, 0.4));
    backdrop-filter: blur(10px); /* Premium glassmorphism backdrop blur */
    -webkit-backdrop-filter: blur(10px);
    
    /* Subtle 3D borders instead of a flat heavy edge */
    border: 1px solid rgba(255, 255, 255, 0.05); 
    position: relative;
    overflow: hidden;
    
    /* Smooth transition for when tier states dynamically change styles */
    transition: all 0.4s ease-in-out; 
}

/* --- The High-Tech Glowing Left Indicator Line --- */
/*.connection-score-box::before {*/
.meter-scale-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ED2228; /* PlateRiver.NET red baseline */
    transition: background 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

/* --- Clean, Sharp Modern Typography --- */
/*.connection-score-box h3 {*/
.meter-scale-box h3 {
    margin: 0 0 10px 0;
    font-size: 18px;          /* Slightly smaller to look crisp and technical */
    font-weight: 600;
    text-transform: uppercase; /* Looks like telemetry instrumentation */
    letter-spacing: 0.08em;    /* Sci-fi UI spacing spacing */
    color: rgba(255, 255, 255, 0.7);
}

/*.connection-score-box p {*/
.meter-scale-box p {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #c0c0c0;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* --- Meter Scale collapsible section --- */

.meter-scale-expand {
    margin-top: 6px;
    cursor: pointer;
    color: #ED2228;
    font-size: 13px;
    font-weight: 600;
    user-select: none;
}

.meter-scale-expand:hover {
    text-decoration: underline;
}

/* Hidden content container */
.meter-scale-details {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #e0e0e0;
    display: none; /* collapsed by default */
}

/* Smooth expand animation */
.meter-scale-details.show {
    display: block;
    animation: meterScaleFade 0.25s ease;
}

@keyframes meterScaleFade {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pr-layout-wrapper {
	margin-top: 50px;
}

.pr-layout-wrapper .pr-content-col h4 {
	margin-bottom: 30px;
	font-size: 18px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	user-select: none;
}

.pr-layout-wrapper .pr-content-col p {
	font-size: 13px;
	color: #f1f1f1;
	user-select: none;
}
.pr-content-col {
	cursor: auto;
    border: 1px solid #27294e;
    padding: 20px;
    /*border-radius: 8px;*/
    /*transition: all 0.2s ease;*/
}

.pr-content-col:hover {
    border: 1px solid #27294e;
    transform: none;
    box-shadow: none;
	user-select: none;
}

.pr-layout-cell {
    position: relative;    /* allow child hover */
    overflow: visible;     /* allow tooltip to escape cell */
}

/* ----------------------------
// 1-Connection-score-box 
-------------------------------*/
.connection-score-box {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    background: #181A30;
    color: #ffffff;
	user-select: none;
    /*border-left: 4px solid #ED2228;*/ /* PlateRiver.NET red */
}

.score-value-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.score-value {
    font-size: 26px;
    font-weight: 700;
}

.score-label {
    font-size: 16px;
    opacity: 0.8;
}

.score-bar {
    width: 100%;
    height: 1px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    width: 0%;
	background: linear-gradient(90deg, #FF0055 0%, #00F0FF 70%, #CC00FF 100%);
    /*background: #ED2228;*/
    transition: width 0.6s ease;
}


/* -----------------------------
// 2-Add colour-coded CSS badges 
--------------------------------*/
.badge {
	width: 100%;
    display: block;
    padding: 10px;
    border-radius: 4px;
	margin: 4px 0;
    font-weight: 600;
	line-height: 1.3;
    /*color: #f1f1f1 !important;*/
    overflow-wrap: break-word;   /* prevents long text from overflowing */
    word-wrap: break-word;       /* legacy support */
    hyphens: auto;               /* optional: cleaner breaks */
	white-space: normal;
}

/* Excellent = Green */
/*.badge.green {
    background-color: #86EFAC;
	background-image: linear-gradient(to right, cyan , green);
	background-color: #00C8FF;	
	color: #166534 !important;
}*/

/* Good = Yellow (Very Good) */
/*.badge.yellow {
    background-color: #FDE68A; 
    color: #854D0E !important;
	background-image: linear-gradient(to right, #A6E22E , #A6E22E); 
    color: #A6E22E !important;
}*/

/* Noticeable = Orange (Good)*/
/*.badge.orange {
    background-color: #FDBA74; 
	color: #9A3412 !important;
}*/

/* Poor = Red (Basic / Poor)*/
/*.badge.red {
    background-color: #FCA5A5; 
	color: #991B1B !important;
}*/
/* Ultra‑Fast: Green/Blue */
.badge.ultra-fast {
	background-image: linear-gradient(135deg, #7F00FF, #00F2FE);
    background-color: #00C8FF; /* cyan/blue */
	box-shadow: 0 0 25px rgba(0, 242, 254, 0.45), 0 0 10px rgba(127, 0, 255, 0.2);
    color: #000;
	transition: opacity 0.6s ease-in;
}

/* Excellent: Light Green. green */
.badge.excellent {
	background-image: linear-gradient(135deg, #0575E6, #00F260);
    background-color: #A6E22E;
	box-shadow: 0 0 25px rgba(0, 242, 96, 0.4), 0 0 10px rgba(5, 117, 230, 0.2);
    color: #000;
	transition: opacity 0.6s ease-in;
}

/* Good: Yellow */
.badge.good {
	background-image: linear-gradient(to right, #00c6ff, #0072ff);
    background-color: #F1C40F;
	box-shadow: 0 0 20px rgba(0, 198, 255, 0.35);
    color: #000;
	transition: opacity 0.6s ease-in;
}

/* Basic: Light Orange */
.badge.basic {
	background-image: linear-gradient(135deg, #F12711, #f5af19);
    background-color: #F39C12;
	box-shadow: 0 0 20px rgba(245, 175, 25, 0.3);
    color: #000;
	transition: opacity 0.6s ease-in;
}

/* Poor: Red/Orange */
.badge.poor {
	background-image: linear-gradient(135deg, #ed213a, #93291e);
    background-color: #E74C3C;
	box-shadow: 0 0 20px rgba(237, 33, 58, 0.25);
    color: #fff;
	transition: opacity 0.6s ease-in;
}


/* -----------------------------
// 3-ISP Box 
--------------------------------*/
.isp-box {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    background: #181A30;
    color: #ffffff;
}

.isp-row {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
	position: relative;
}

.isp-label {
    font-size: 13px;
    opacity: 0.7;
}

.isp-value {
    font-size: 13px;
    font-weight: normal;
}

/* --- Info Icon Container --- */
.isp-label-group {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Spaces the icon cleanly away from the text */
}

.info-icon {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4); /* Dim by default so it doesn't distract */
    cursor: help; /* Changes cursor to a question mark on hover */
    transition: all 0.3s ease;
    user-select: none;
}

/* --- Active Hover Effect --- */
/* The icon lights up and glows when either the row or the icon itself is hovered */
.isp-row:hover .info-icon {
    color: #0ebac5; /* Lights up with your turquoise brand theme color */
    text-shadow: 0 0 8px rgba(14, 186, 197, 0.6);
}





/* Connection type */
/*.connectionTypeBox {
    margin-top: 20px;
    text-align: center;
	
}

.connectionTypeFade {
    opacity: 0;
    transition: opacity 0.6s ease-in;
}

.connectionTypeFade.show {
	font-size: 13px;
    color: #00C8FF;*/ /* cyan */
   /* opacity: 1;
}*/

/* Tooltip CSS */
/*
.connectionTypeBox {
    position: relative;
    display: inline-block;
	font-size: 13px;
	color: #f1f1f1;
	z-index: 10;
}

.connectionTypeText {

	font-size: 13px;
	color: #00C8FF;
}
*/
/* Begin connectionTooltip */
.connectionTooltip {
    visibility: hidden;
    opacity: 0;
    width: 260px;
    background-color: #FFFDFD;
    color: #000000 !important;
    isolation: isolate;              /* break blending inheritance */
    mix-blend-mode: normal !important; /* prevent blending into dark bg */
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 999;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
    font-size: 13px !important;
    line-height: 1.4;	
    /*box-shadow: 0 0 10px rgba(0,0,0,0.4);*/
}

/* Begin override Bootstrap tooltip */
#connectionTooltip hr {
    border: 0 !important;
    border-top: var(--border-width) solid #333333 !important;
    opacity: .25;
    margin: 1rem 0 0 0;
}

#connectionTooltip small {
    color: #000000 !important;
}/* End of override Bootstrap tooltip */

.isp-row:hover .connectionTooltip {
    visibility: visible;
	opacity: 1;
}

.pr-content-col .score {
	padding-bottom: 20px;
	font-size: 18px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	cursor: help;
	user-select: none;
}

.score:hover .connectionTooltip {
    bottom: 97%;
    visibility: visible;
	opacity: 1;
	font-size: 13px !important;
	font-weight: normal;
}
/* End of connectionTooltip */

/* ⭐ Score Breakdown */
.score-breakdown-container {
    margin-top: 20px;
    padding: 15px;
    /*background: rgba(255,255,255,0.05);*/
	background: #181A30;
    border-radius: 8px;
}

.score-breakdown-title {
    /*font-size: 1.2rem;*/
	font-size: 15px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.score-breakdown-tooltip {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    cursor: help;
}

.score-breakdown-item {
    display: flex;
    justify-content: space-between;
    margin: 0;
    /*color: #fff;*/
}

.sbi-label {
	font-size: 13px;
	color: #F1F1F1;
	opacity: 0.7;
}

.sbi-value {
	font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.sbi-points {
	font-size: 13px;
    color: #ED2228;
}

.score-breakdown-total {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: space-between;
    color: #CCC;
}

.sbt-value {
    font-size: 13px;
    color: #ED2228;
}

/* Fix total score outputs on breakdown */
.score-breakdown-total {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
    min-height: 24px; /* ⭐ REQUIRED */
}
.sbt-value {
    min-width: 60px; /* ⭐ REQUIRED */
    display: inline-block;
}

